Toward Building General Foundation Models for Language, Vision, and Vision-Language Understanding Tasks
About
Foundation models or pre-trained models have substantially improved the performance of various language, vision, and vision-language understanding tasks. However, existing foundation models can only perform the best in one type of tasks, namely language, vision, or vision-language. It is still an open question whether it is possible to construct a foundation model performing the best for all the understanding tasks, which we call a general foundation model. In this paper, we propose a new general foundation model, X-FM (the X-Foundation Model). X-FM has one language encoder, one vision encoder, and one fusion encoder, as well as a new training method. The training method includes two new techniques for learning X-FM from text, image, and image-text pair data. One is to stop gradients from the vision-language training when learning the language encoder. The other is to leverage the vision-language training to guide the learning of the vision encoder. Extensive experiments on benchmark datasets show that X-FM can significantly outperform existing general foundation models and perform better than or comparable to existing foundation models specifically for language, vision, or vision-language understanding. Code and pre-trained models are released at https://github.com/zhangxinsong-nlp/XFM.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Visual Question Answering | VQA v2 (test-dev) | Overall Accuracy80.5 | 664 | |
| Image Classification | ImageNet-1K | -- | 524 | |
| Image Classification | Food-101 | Accuracy90.5 | 494 | |
| Image Classification | DTD | Accuracy80 | 487 | |
| Image Classification | Flowers102 | Accuracy96.4 | 478 | |
| Image Classification | Stanford Cars | Accuracy88.3 | 477 | |
| Visual Question Answering | VQA v2 (test-std) | Accuracy80.4 | 466 | |
| Natural Language Understanding | GLUE | SST-295 | 452 | |
| Image Classification | SUN397 | Accuracy83.9 | 425 | |
| Image Classification | MNIST | Accuracy99 | 395 |