mPLUG
A vision-language model that fuses image and text through cross-modal skip-connections and generates text.
Multimodal · 1,602 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
- 491.4M
- Operations
- 1,602
- Framework
- PyTorch
- Recurrent
- No
- Published
- EMNLP 2022
- Cited by
- 15 (as of 26 October 2026)
- Authors
- Chenliang Li, Haiyang Xu, Junfeng Tian and others
- Source
- GitHub: X-PLUG/mPLUG
- License
- Apache-2.0
- 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
- m21654
- Graph hash
- 832f4d1dffdea91bf47a7f2fc4771bc6bb832ff345df198cfa0e55f32343138c
- Skeleton hash
- 7289d722f5f97b2403cd1649eb1f8b9f3f314a55a7dd92831333b3edb5619bb9
- Architecture hash
- 9e0859c5419db3a1e1c60b58ecc5fe39b1c99adb45be39f3e87ee1aab632460a
- Diagram SHA-256
- 9ccfa6334c0e9a2d539d8ab2699fbb78d0647f2a31cad0b2e70a0b4e006df9ac
- 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
mPLUG is a vision-language model built for both cross-modal understanding and generation, covering tasks such as visual question answering and image captioning. The paper starts from two problems with long sequences of image patches, the first being that full self-attention over them costs much more computation than it does over text. The second is an asymmetry of information, since a caption is usually short and abstract while the image holds more detail.
The model has two single-modality encoders, one for the image and one for the text, followed by a cross-modal skip-connected network and a decoder that generates text. In each block of that network, the first few layers use asymmetric co-attention, which removes the co-attention on the vision side for efficiency. One connected-attention layer follows, taking the original visual representation concatenated with the co-attention output on the language side.
In the paper's setup the text encoder and the skip-connected network are each a 6-layer Transformer, and the decoder is a 12-layer Transformer. The visual encoder is a visual transformer, with ViT-B/16 as the base architecture and ViT-L/14 as the large one. The paper reports that its skip-connected network runs at least four times faster than the other cross-modal fusion networks it compares.
Key idea. mPLUG introduces cross-modal skip-connections, inter-layer shortcuts that let visual features skip a set number of fusion layers so image and text are fused efficiently.
- mplug
- vision-language model
- vision-language pre-training
- cross-modal skip-connections
- visual question answering
- vqa
- image captioning
- image-text retrieval
- visual grounding
- multimodal
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{li2022mplugeffectiveefficientvisionlanguage,
title={mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections},
author={Chenliang Li and Haiyang Xu and Junfeng Tian and Wei Wang and Ming Yan and Bin Bi and Jiabo Ye and Hehong Chen and Guohai Xu and Zheng Cao and Ji Zhang and Songfang Huang and Fei Huang and Jingren Zhou and Luo Si},
year={2022},
eprint={2205.12005},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2205.12005},
}