VL-BERT: Pre-training of Generic Visual-Linguistic Representations
- Publication
- ICLR 2020Conference
- First submitted to arXiv
- arXiv:1908.08530
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{multimodalityvlbert2019,
title = {{VL-BERT: Pre-training of Generic Visual-Linguistic Representations}},
author = {Weijie Su and Xizhou Zhu and Yue Cao and Bin Li and Lewei Lu and Furu Wei and Jifeng Dai},
year = {2019},
eprint = {1908.08530},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1908.08530}
}
We mentioned VisualBERT earlier. It brings image and text into one Transformer stream; its pre-training supervises masked words and image–text matching, but has no direct masked-region classification objective. We also saw ViLBERT, which has separate visual and text streams that exchange information through cross-attention. That makes the design somewhat more involved.
- Wait, what are One-Tower and Two-Tower architectures?
We haven't stressed these names before—they can add more confusion than insight. Now that we have different architectures to compare, though, they are useful.
In vision-and-language learning, One-Tower and Two-Tower are two main architectures describing how multimodal information is integrated and exchanged.
-
Single-Tower Architecture (One-Tower)
A single Transformer processes concatenated visual and text tokens, allowing early interaction. Parameter count and compute still depend on depth, width and sequence length; a single stream is not automatically cheaper.
Examples include ViLT, VL-BERT, UNITER, and OSCAR. Many models like VisualBERT and VL-BERT adapt BERT for this purpose.
-
Two-Tower Architecture (Dual-Tower)
Here, visual and text inputs are processed separately in distinct Transformer stacks. Cross-modal interactions are introduced through cross-attention layers.
Each modality has its own encoder and interacts through cross-attention layers, as in ViLBERT, LXMERT and BridgeTower.
Here, “two-stream” refers to cross-modal fusion such as ViLBERT or LXMERT, not an independent dual encoder such as CLIP. ViLT and BridgeTower are later examples used to explain the taxonomy, not predecessors of this 2019 paper.
Defining the Problem
Faced with these two designs, it is easy to wonder which direction to take.
Single- and two-stream designs fuse information differently; two streams do not inherently learn deeper associations. VL-BERT uses a single-stream Transformer and studies generic input representations and pre-training objectives.
The authors aim for a general visual-language representation that can be reused for VQA, visual commonsense reasoning and referring-expression comprehension. The backbone is shared, while output heads, losses and fine-tuning settings remain task-specific.
Approach
Model Architecture
Inspired by BERT, the VL-BERT model builds on the original BERT framework, a multi-layer bidirectional Transformer encoder designed to capture dependencies between input elements.
To accommodate both visual and language inputs, the model input sequence begins with a special [CLS] token, followed by language elements, visual elements, and ends with an [END] token. A [SEP] token is inserted between language and visual elements to differentiate them clearly.
Each input element in VL-BERT is represented by four encoding types: token encoding, visual feature encoding, segment encoding, and sequence position encoding. Visual feature encoding is especially important for capturing visual clues, while the other encodings derive from the original BERT design.
Visual features combine RoI appearance and geometry. Faster R-CNN supplies regions; its Fast R-CNN detection branch extracts appearance features and is updated during both pre-training and fine-tuning. Text tokens also receive whole-image visual features.
Pre-training Mechanism
The authors pre-train VL-BERT to connect visual and language clues. Image–text examples come from Conceptual Captions; longer pure-text examples come from BooksCorpus and English Wikipedia.
-
Task #1: Masked Language Modeling (MLM) with Visual Clues
This adapts BERT’s MLM task to use visual information. Figure 1 shows a caption about a kitten drinking from [MASK]; the model uses the remaining words and image to predict “bottle.”
-
Task #2: Masked RoI Classification with Language Clues
About 15% of RoIs are selected for masking. The pixels inside a selected region are zeroed before Fast R-CNN extracts features, so the model cannot recover the answer from leaked visual features. In Figure 1, the cat region is masked; the caption about a kitten drinking from a bottle helps predict the detector-provided category, cat.
How is the pretrained backbone used? Original Figure 2 shows the fine-tuning input and output formats for VCR, VQA and referring-expression comprehension, not a pre-training flow. The backbone is shared, while task heads differ.
Discussion
Comparison with Other Models
The dataset used is VQA v2.0, based on COCO images, with training, validation, and test splits comprising 83k, 41k, and 81k images, respectively, and 444k, 214k, and 448k questions.
On VQA test-dev, VL-BERT-BASE rises from 69.58% without multimodal pre-training to 71.16% with it, a gain of 1.58 percentage points. Against the task-specific BUTD at 65.32%, that BASE score is 5.84 points higher. VL-BERT-LARGE reaches 71.79%, above ViLBERT and VisualBERT but below LXMERT's 72.42%. LXMERT uses additional image-QA data during pre-training, so these scores do not isolate the effect of fusion architecture.
This experiment highlights the importance of pre-training, especially for tasks like visual question answering. Despite training on a smaller dataset than LXMERT, VL-BERT achieves comparable performance to state-of-the-art models.
Can the Model Understand Natural Language?
To investigate this, the authors use the RefCOCO+ dataset.
RefCOCO+ is a referential object retrieval dataset focusing on visual grounding tasks where a system receives an image and a natural language description and must locate or identify the specific object mentioned in the description.
In the detected-region validation column, VL-BERT-BASE rises from 66.03% without multimodal pre-training to 71.60% with it. The table also reports results with ground-truth regions; those are a different condition and should not be mixed with the detected-region scores.
Compared with MAttNet's 65.33% on detected-region validation, VL-BERT performs well without extra task-specific modules. VL-BERT-LARGE and ViLBERT are close on the detected-region validation and testA splits (72.59% versus 72.34%, and 78.57% versus 78.52%); VL-BERT-LARGE is slightly lower on testB (62.30% versus 62.61%).
Ablation Study
Table 4 tests several design choices. For efficiency, its fine-tuning schedule uses half the epochs of the main experiments, so comparisons should stay within this table.
-
Importance of Pre-training
Multimodal pre-training improves all three downstream tasks. The “w/o pre-training” comparison still starts from pretrained BERT and visual-detector weights; it is not an entirely random initialization.
-
Task-Specific Benefits
Different pre-training tasks help different downstream tasks. From setting (a) to (b), adding Masked RoI Classification with language cues raises RefCOCO+ from 69.1% to 70.7%, while VCR and VQA remain roughly level.
-
Sentence-Image Relation Prediction
From setting (b) to (c), adding sentence-image relation prediction lowers the scores on all three tasks. The authors suspect unmatched image–caption pairs interfere with the other objectives; this is an observation for this ablation, not a rule for every model.
-
Addition of Pure Text Corpus
From setting (b) to (d), adding text-only data raises VCR Q→A from 73.0 to 73.4 and QA→R from 73.1 to 73.8. VQA stays at 71.1 and RefCOCO+ at 70.7 at the table's reported precision. The authors suggest longer, more complex VCR sentences explain the larger effect; the displayed numbers directly support a VCR gain, not a measured gain in every task.
-
End-to-End Training
Fine-tuning the entire network, including the Fast R-CNN portion generating visual features, further improves performance across all downstream tasks. This emphasizes the importance of integrating and aligning the visual and language components.
The results confirm that VL-BERT’s pre-training strategy is crucial, not only enhancing task-specific performance but also improving its generalization across multiple downstream tasks. The model design also considers how different pre-training tasks affect downstream performance, optimizing results through end-to-end training.
Conclusion
VL-BERT’s major strength is its Transformer-based architecture, which avoids task-specific modules, achieving simplicity and efficiency. Pre-training on both the Conceptual Captions dataset and pure text corpus reinforces its ability to align visual and language cues effectively.
The authors’ exploration of additional pre-training tasks offers valuable insights for future researchers and suggests directions for further optimization.