Toward Building General Foundation Models for Language, Vision, and Vision-Language Understanding Tasks

Xinsong Zhang, Yan Zeng, Jipeng Zhang, Hang Li · OpenReview

Abstract

Foundation models have significantly advanced performance across language, vision, and vision-language (VL) understanding. However, a persistent challenge remains: existing models typically excel in only one of these domains. This paper introduces X-FM (the X-Foundation Model), a general foundation model designed to achieve state-of-the-art performance across all three areas simultaneously. By employing a modular architecture and two novel training techniques—stop-gradient for language learning and vision-language guided masked image modeling—X-FM overcomes the performance trade-offs typical of generalist models. Extensive benchmarking demonstrates that X-FM outperforms existing general foundation models and rivals specialized models in their respective domains.

Introduction

In the current artificial intelligence landscape, the most successful foundation models are often specialists. For instance, RoBERTa excels at natural language understanding, BEiTv2 dominates vision tasks, and models like X-VLM are optimized for multi-modal alignment. While "generalist" models like FLAVA and OFA have attempted to unify these domains, they often suffer from a "jack-of-all-trades, master of none" effect, where performance on specific tasks lags behind their specialized counterparts.

The difficulty lies in the inherent differences between data modalities: language is highly abstract and symbolic, whereas vision is concrete and continuous. Training a single model on both can lead to interference, where the requirements of multi-modal alignment degrade the purity of linguistic or visual representations. X-FM addresses this conflict through a strategic modular design and a refined training methodology.

The X-FM Architecture

X-FM is built upon a modular framework consisting of three distinct encoders:

  1. Language Encoder: Dedicated to processing text and capturing abstract linguistic features.
  2. Vision Encoder: Responsible for extracting semantic information from visual inputs.
  3. Fusion Encoder: A multi-modal component that integrates features from both the language and vision encoders to perform vision-language tasks.

This modularity allows the encoders to be used independently for downstream tasks (e.g., using only the vision encoder for image classification) or in combination for complex tasks like Visual Question Answering (VQA).

Novel Training Strategies

The core innovation of X-FM lies in how these encoders are trained to prevent inter-modal interference while maximizing semantic alignment.

1. Stop-Gradient for Language Learning

The authors identify an asymmetry between language and vision: language is more abstract. To prevent the noise of multi-modal alignment from "corrupting" stable linguistic representations, X-FM employs a Stop-Gradient technique. During vision-language training, gradients are prevented from flowing from the Fusion Encoder back into the Language Encoder. This ensures the Language Encoder focuses on pure text via Masked Language Modeling (MLM), while the Fusion Encoder learns to align those stable text features with images.

2. Vision-Language Guided Masked Image Modeling (MIM)

Standard Masked Image Modeling typically tasks a model with predicting raw pixels or low-level visual tokens. X-FM instead uses the representations learned during vision-language training as the targets for the vision encoder. This VL-Guided MIM forces the vision encoder to learn features that are not just visually accurate but semantically meaningful, bridging the gap between raw pixels and high-level concepts.

Experimental Setup and Datasets

X-FM was pre-trained on a massive, diverse corpus to ensure broad generalization:

  • Vision-Language: COCO, Visual Genome, SBU Captions, and Conceptual Captions (CC-3M). Scaling experiments also utilized CC-12M and a filtered version of the LAION-1.3B dataset.
  • Pure Language: The RoBERTa corpus and the C4 dataset.
  • Pure Vision: ImageNet-21K.

The model was evaluated on standard benchmarks including GLUE for language, ImageNet (and 17 other vision datasets) for vision, and MSCOCO/Flickr30K/VQA/NLVR2 for multi-modal tasks.

Key Results

X-FM demonstrates that a generalist model can indeed match or exceed the performance of specialists:

  • Language: On the GLUE benchmark, X-FM (base) achieved an average score of 87.7, slightly outperforming the specialized RoBERTa-base (87.6).
  • Vision: On ImageNet-1K, X-FM achieved 85.5% accuracy, matching the performance of the specialized BEiTv2.
  • Vision-Language: X-FM significantly outperformed previous general models. In zero-shot text retrieval (R@1) on MSCOCO, X-FM scored 77.6, a dramatic improvement over FLAVA’s 42.7.
  • Generalization: In linear evaluations across 18 different vision datasets, X-FM outperformed heavyweights like CLIP and FLAVA in 11 out of 18 tasks.

Conclusion

X-FM represents a significant step toward the realization of a truly general foundation model. By acknowledging the asymmetry between modalities and implementing targeted training interventions—specifically the stop-gradient and VL-guided MIM—the model successfully navigates the trade-offs that have historically hindered generalist architectures. Future work will focus on scaling X-FM to larger parameter counts and exploring more efficient attention mechanisms to further enhance its capabilities.

Summary updated

BibTeX
@inproceedings{zhang2023toward,
  author = {Xinsong Zhang and Yan Zeng and Jipeng Zhang and Hang Li},
  title = {{Toward Building General Foundation Models for Language, Vision, and Vision-Language Understanding Tasks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=CYvOnVvY3v},
}
Figure