Skip to main content
QUICK REVIEW

[Paper Review] What BERT Sees: Cross-Modal Transfer for Visual Question Generation

Thomas Scialom, Patrick Bordes|arXiv (Cornell University)|Feb 25, 2020
Multimodal Machine Learning ApplicationsComputer Science5 citations
TL;DR

This paper proposes BERT-gen, a novel text generation framework that leverages pre-trained BERT for visual question generation without additional pre-training. By applying a simple linear projection to align visual object features with BERT’s input embeddings, the model achieves state-of-the-art performance on VQG benchmarks, demonstrating that BERT’s representations inherently generalize across modalities even with minimal fine-tuning and no explicit multi-modal pre-training.

ABSTRACT

Pre-trained language models have recently contributed to significant advances in NLP tasks. Recently, multi-modal versions of BERT have been developed, using heavy pre-training relying on vast corpora of aligned textual and image data, primarily applied to classification tasks such as VQA. In this paper, we are interested in evaluating the visual capabilities of BERT out-of-the-box, by avoiding pre-training made on supplementary data. We choose to study Visual Question Generation, a task of great interest for grounded dialog, that enables to study the impact of each modality (as input can be visual and/or textual). Moreover, the generation aspect of the task requires an adaptation since BERT is primarily designed as an encoder. We introduce BERT-gen, a BERT-based architecture for text generation, able to leverage on either mono- or multi- modal representations. The results reported under different configurations indicate an innate capacity for BERT-gen to adapt to multi-modal data and text generation, even with few data available, avoiding expensive pre-training. The proposed model obtains substantial improvements over the state-of-the-art on two established VQG datasets.

Motivation & Objective

  • To investigate whether pre-trained BERT models inherently encode cross-modal visual abstractions without explicit multi-modal pre-training.
  • To develop a text generation framework based on BERT that supports both mono- and multi-modal inputs.
  • To evaluate the effectiveness of a minimal adaptation—specifically, a linear projection layer—for grounding BERT in visual data.
  • To demonstrate that BERT can generate contextually relevant questions grounded in images using only fine-tuning on VQG data.
  • To analyze attention mechanisms and cross-modal alignment in BERT-gen to interpret model behavior across modalities.

Proposed method

  • BERT-gen adapts BERT as an auto-regressive decoder by modifying its input representation to include visual object features as sequence tokens.
  • Visual features are extracted via Faster R-CNN and projected into BERT’s embedding space using a learnable linear layer, without additional non-linearities.
  • The model treats images as sequences of object regions (with bounding boxes) and tokens them similarly to words, enabling joint attention over text and visual objects.
  • Cross-attention is analyzed by averaging attention weights across all heads in the final BERT layer to visualize which words and image regions the model attends to.
  • Cross-modal similarity is computed via cosine similarity between [CLS] embeddings of images and their corresponding captions across BERT layers to measure alignment.
  • Extensive ablation studies compare performance across three settings: caption-only, image-only, and image+caption inputs, with controlled use of the visual projection matrix.

Experimental results

Research questions

  • RQ1Can pre-trained BERT generate visually grounded questions without any multi-modal pre-training or fine-tuning on visual data?
  • RQ2Does a simple linear projection layer suffice to align visual object features with BERT’s textual representations for effective cross-modal reasoning?
  • RQ3How does the attention mechanism in BERT-gen distribute between textual words and visual object regions during question generation?
  • RQ4To what extent do the [CLS] token representations of images and captions become semantically aligned during fine-tuning on VQG?
  • RQ5Does the addition of textual captions during training improve cross-modal alignment and generation quality compared to image-only input?

Key findings

  • BERT-gen achieves state-of-the-art performance on two established VQG benchmarks, outperforming existing methods without requiring additional pre-training.
  • The model demonstrates strong zero-shot cross-modal generalization: even without explicit image-text alignment during pre-training, it learns to generate questions relevant to visual content.
  • Cross-modal similarity (X_sim) increases significantly in the final BERT layer, with Image + Caption > Image only > Caption only, indicating effective alignment through fine-tuning.
  • Attention visualization shows that the model correctly attends to relevant visual objects (e.g., clocks, umbrellas) even when these are not mentioned in the caption, confirming visual grounding.
  • The Image-only setup correctly corrects visual misperceptions (e.g., identifying a woman with an umbrella instead of a man), demonstrating robust visual reasoning.
  • The random transformer baseline shows near-zero X_sim, confirming that observed alignment in BERT-gen is due to learned representations, not random correlation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.