Seeing Out of the Box: End-to-End Pre-Training for Vision-Language Representation Learning

Zhicheng Huang, Zhaoyang Zeng, Yupan Huang, Bei Liu, Dongmei Fu, Jianlong Fu

Abstract

We study on joint learning of Convolutional Neural Network (CNN) and Transformer for vision-language pre-training (VLPT) which aims to learn cross-modal alignments from millions of image-text pairs. State-of-the-art approaches extract salient image regions and align regions with words step-by-step. As region-based representations usually represent parts of an image, it is challenging for existing models to fully understand the semantics from paired natural languages. In this paper, we propose SOHO to "See Out of tHe bOx" that takes a full image as input, and learns vision-language representation in an end-to-end manner. SOHO does not require bounding box annotations, while enables 10 times faster inference than region-based approaches. In particular, SOHO learns to extract comprehensive yet compact image features through a visual dictionary (VD) that facilitates cross-modal understanding. VD is designed to represent consistent visual abstractions of similar semantics, and VD can be further updated on-the-fly during pre-training. We conduct experiments on four well-established vision-language tasks by following standard VLPT settings. SOHO achieves absolute gains of 2.0% R@1 score on MSCOCO text retrieval 5k test split, 1.5% accuracy on NLVR2 test-P split, 6.7% accuracy on SNLI-VE test split, respectively.

1. Introduction

Vision-Language Pre-training (VLPT) has become a cornerstone for tasks requiring joint understanding of visual and textual data. Traditional state-of-the-art models typically employ a two-stage pipeline: first, a pre-trained object detector (e.g., Faster R-CNN) extracts region-based features within bounding boxes; second, these features are aligned with text tokens using a Transformer. However, this "box-based" approach suffers from context blindness, fixed object vocabularies, and significant computational overhead.

Figure 1: Traditional region-based approaches focus on isolated bounding boxes, often missing the holistic context and spatial relationships between objects.

2. The SOHO Framework

To address these limitations, we introduce SOHO ("See Out of tHe bOx"), an end-to-end framework that processes the entire image as input. By bypassing region proposals, SOHO achieves a 10x inference speedup compared to region-based models like BUTD.

2.1 Architecture and Visual Dictionary

The SOHO architecture consists of a trainable visual encoder (e.g., ResNet-101), a novel Visual Dictionary (VD), and a multi-layer Transformer. The core innovation, the Visual Dictionary, serves as a bridge between continuous visual features and discrete language tokens. The visual encoder's output feature maps are mapped to the nearest embeddings in the VD, effectively "tokenizing" visual patches into semantic abstractions.

Figure 2: The SOHO framework overview, illustrating the end-to-end pipeline, the Visual Dictionary (VD)-based embedding process, and the pre-training tasks.

2.2 Pre-training Objectives

SOHO is pre-trained using standard tasks like Image-Text Matching (ITM) and Masked Language Modeling (MLM), alongside a new Masked Visual Modeling (MVM) task. MVM requires the model to predict the Visual Dictionary indices of masked image patches, encouraging the VD to capture consistent semantic representations.

3. Experiments and Results

We evaluated SOHO on several downstream benchmarks, including VQA 2.0, MSCOCO/Flickr30K retrieval, NLVR2, and SNLI-VE. SOHO consistently outperformed region-based baselines. Notably, it achieved a 2.0% R@1 improvement on MSCOCO text retrieval and a 6.7% accuracy boost on SNLI-VE, demonstrating superior relational reasoning and fine-grained understanding.

4. Conclusion

SOHO represents a shift towards holistic, end-to-end vision-language learning. By "seeing out of the box," the model captures richer contextual information more efficiently, setting a new standard for VLPT performance and speed.

Summary updated

BibTeX
@inproceedings{huang2021seeing,
  author = {Zhicheng Huang and Zhaoyang Zeng and Yupan Huang and Bei Liu and Dongmei Fu and Jianlong Fu},
  title = {{Seeing Out of the Box: End-to-End Pre-Training for Vision-Language Representation Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=LNnPi41i_Jv},
}
Figure