UNIMO-3: Multi-granularity Interaction for Vision-Language Representation Learning

Hao Yang, Can Gao, Hao Liu, Xinyan Xiao, Yanyan Zhao, Bing QinarXiv 2023

Abstract

Vision-and-language (VL) pre-training aims to learn a general representation of image-text pairs that can be transferred to various downstream tasks. A significant challenge in VL modeling is learning effective cross-modal interactions, particularly fine-grained ones. Existing Transformer-based models often adopt in-layer cross-modal interaction but ignore that semantic information across different modalities at the same layer may not be uniform. This leads to interaction collapsing into limited multi-modal semantic spaces. We propose UNIMO-3, a model designed to simultaneously learn multimodal in-layer and cross-layer interactions. UNIMO-3 establishes effective connections between different layers in a cross-modal encoder, adaptively capturing interactions at multiple levels of granularity. Experimental results demonstrate state-of-the-art performance across various downstream tasks, with ablation studies confirming that effective cross-layer learning significantly enhances multimodal representation.

Introduction

In the current landscape of Vision-Language (VL) pre-training, the "Two-Tower" architecture is the standard: separate encoders for text and images feed into a third "fusion" encoder. However, most existing models only utilize the final output of the uni-modal towers for fusion. This approach overlooks the fact that deep neural networks represent different granularities of information at different depths—lower layers might focus on specific words or visual textures, while higher layers capture abstract semantic concepts.

By only fusing the top layers, models miss the rich, multi-level interactions necessary for complex tasks like Visual Question Answering (VQA), where connecting a specific word to a fine-grained visual detail is often required. UNIMO-3 addresses this by introducing a mechanism to adaptively fuse information from various depths of the text and image encoders.

Methods

Architecture and Cross-Layer Interaction

UNIMO-3 utilizes a CLIP-ViT-B/16 visual backbone and a RoBERTa-base textual backbone. The core innovation lies in how these backbones interface with the cross-modal fusion encoder. Unlike traditional models that only link the final layers, UNIMO-3 establishes links between all layers of the uni-modal encoders and the fusion encoder.

Comparison of vision-language architectures: (a) METER, (b) BridgeTower, (c) UNIMO-3, and (d) UNIMO-3+METER.

Gate-based Feature Selection

To manage the influx of data from multiple layers and prevent the model from being overwhelmed, UNIMO-3 employs a Gating Mechanism and a Link Layer. For each layer in the fusion process, the model calculates a "gate value" (via a Sigmoid function) to determine the weight assigned to features from various depths of the uni-modal towers. This allows the model to adaptively "pick and choose" the most relevant level of detail for a specific input.

Detailed architecture of UNIMO-3 showing the Link Layer and the flow of textual and visual features into the Cross-Modal Encoder.

Pre-training Strategy

The model is pre-trained on a standard aggregate of 4 million images (COCO, Visual Genome, Conceptual Captions, and SBU Captions). Training objectives include standard Masked Language Modeling (MLM) and Image-Text Matching (ITM) to ensure robust alignment between modalities.

Key Results and Insights

State-of-the-Art Performance

UNIMO-3 achieves exceptional results on the VQAv2 benchmark. The "Base" version reached 78.88% on the test-std set, setting a new record for models pre-trained on 4M images. When scaled to a "Large" version (using CLIP-ViT-L/14), it achieved 81.27%, outperforming many competitors that utilized significantly larger pre-training datasets.

Multi-granularity Advantage

The success of UNIMO-3 confirms that both lower-level (word/texture) and higher-level (semantic) features are crucial for VL tasks. The gating mechanism provides a flexible, adaptive alternative to the static fusion methods used in previous models like BridgeTower.

Preserving Uni-modal Strength

Interestingly, cross-modal training was found to improve the textual encoder's performance on certain pure language tasks (e.g., the RTE task in GLUE) compared to the original RoBERTa-base. This suggests that visual grounding can actively enhance language understanding.

Conclusion

UNIMO-3 demonstrates that smarter feature fusion is often more effective than simply increasing data scale. By capturing multi-granularity interactions through an adaptive gating mechanism, the model achieves superior performance in discriminative vision-language tasks. Future work may extend this cross-layer interaction approach to generative tasks such as image captioning and text-to-image synthesis.

Summary updated

BibTeX
@misc{yang2023unimo,
  author = {Hao Yang and Can Gao and Hao Liu and Xinyan Xiao and Yanyan Zhao and Bing Qin},
  title = {{UNIMO-3: Multi-granularity Interaction for Vision-Language Representation Learning}},
  year = {2023},
  eprint = {2305.13697},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.13697},
}
Figure