Xinsong Zhang, Yan Zeng, Jipeng Zhang, Hang Li
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.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Visual Question Answering (VQA) | VQA v2 test-dev | Accuracy | 80.4 | XFM (base) |
| Visual Reasoning | NLVR2 Dev | Accuracy | 87.6 | XFM (base) |
| Visual Reasoning | NLVR2 Test | Accuracy | 88.4 | XFM (base) |
| Image Retrieval with Multi-Modal Query | COCO 2014 | Image-to-text R@1 | 84.2 | XFM (base) |
| Image Retrieval with Multi-Modal Query | COCO 2014 | Image-to-text R@10 | 98.4 | XFM (base) |
| Image Retrieval with Multi-Modal Query | COCO 2014 | Image-to-text R@5 | 96.4 | XFM (base) |
| Image Retrieval with Multi-Modal Query | COCO 2014 | Text-to-image R@1 | 67 | XFM (base) |
| Image Retrieval with Multi-Modal Query | COCO 2014 | Text-to-image R@10 | 92.4 | XFM (base) |
| Image Retrieval with Multi-Modal Query | COCO 2014 | Text-to-image R@5 | 87.2 | XFM (base) |
| Visual Grounding | RefCOCO+ test B | Accuracy (%) | 79.8 | XFM (base) |
| Visual Grounding | RefCOCO+ val | Accuracy (%) | 86.1 | XFM (base) |
| Visual Grounding | RefCOCO+ testA | Accuracy (%) | 90.4 | XFM (base) |
| Cross-Modal Information Retrieval | COCO 2014 | Image-to-text R@1 | 84.2 | XFM (base) |
| Cross-Modal Information Retrieval | COCO 2014 | Image-to-text R@10 | 98.4 | XFM (base) |
| Cross-Modal Information Retrieval | COCO 2014 | Image-to-text R@5 | 96.4 | XFM (base) |
| Cross-Modal Information Retrieval | COCO 2014 | Text-to-image R@1 | 67 | XFM (base) |
| Cross-Modal Information Retrieval | COCO 2014 | Text-to-image R@10 | 92.4 | XFM (base) |
| Cross-Modal Information Retrieval | COCO 2014 | Text-to-image R@5 | 87.2 | XFM (base) |
| Cross-Modal Retrieval | COCO 2014 | Image-to-text R@1 | 84.2 | XFM (base) |
| Cross-Modal Retrieval | COCO 2014 | Image-to-text R@10 | 98.4 | XFM (base) |
| Cross-Modal Retrieval | COCO 2014 | Image-to-text R@5 | 96.4 | XFM (base) |
| Cross-Modal Retrieval | COCO 2014 | Text-to-image R@1 | 67 | XFM (base) |
| Cross-Modal Retrieval | COCO 2014 | Text-to-image R@10 | 92.4 | XFM (base) |
| Cross-Modal Retrieval | COCO 2014 | Text-to-image R@5 | 87.2 | XFM (base) |