X-FM
Base-size foundation model with language, vision and fusion encoders for language, vision and vision-language tasks.
Multimodal · 1,477 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Multimodal
- Parameters
- 403.7M
- Operations
- 1,477
- Framework
- PyTorch
- Recurrent
- No
- Published
- Findings of EMNLP 2023
- Cited by
- 15 (as of 30 October 2026)
- Authors
- Xinsong Zhang, Yan Zeng, Jipeng Zhang, Hang Li
- Source
- GitHub: zhangxinsong-nlp/XFM
- License
- BSD-3-Clause
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m21514
- Graph hash
- 3861d8c832da6d6db6a559b9fd8a2f077797e0ad89c4ba9df2a09aed3c08178f
- Skeleton hash
- 6e6d19c431177a1ccfd2fbf9167824c8fe80b302129b272a9a4ba01058ec04c7
- Architecture hash
- 5190e02d2ff9f28e30c52714c7ca5f3119e945a4261b4c89fe3824c989071d73
- Diagram SHA-256
- df557289ac2d9adf62420b9963385a5ec7ee9c1e1e78d59b6fd38a8fb14d0718
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
X-FM, the X-Foundation Model, is one pre-trained model intended to serve language tasks, vision tasks and vision-language tasks together. The paper observes that existing foundation models perform best in only one of those three types of task. It calls a model that performs best across all the understanding tasks a general foundation model, and describes whether one can be constructed as an open question.
X-FM has one language encoder, one vision encoder and one fusion encoder. Its training method adds two techniques for learning from text, image and image-text pair data. The first stops gradients from the vision-language training when learning the language encoder. The second uses the vision-language training to guide the learning of the vision encoder.
The paper reports that X-FM outperforms existing general foundation models and performs better than or comparably to foundation models built specifically for language, vision or vision-language understanding. The repository describes the base size model as having 327M parameters. It offers two base-size checkpoints, one pre-trained on 4M data and a recommended one pre-trained on 1.3B data.
Key idea. X-FM combines language, vision and fusion encoders with a training method that stops vision-language gradients when learning the language encoder and uses vision-language training to guide the vision encoder.
- X-FM
- XFM
- X-Foundation Model
- general foundation model
- foundation model
- vision-language pre-training
- image-text retrieval
- visual question answering
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2023buildinggeneralfoundationmodels,
title={Toward Building General Foundation Models for Language, Vision, and Vision-Language Understanding Tasks},
author={Xinsong Zhang and Yan Zeng and Jipeng Zhang and Hang Li},
year={2023},
eprint={2301.05065},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2301.05065},
}