Back to paper library
arXiv 2021ICLR 2022Multimodal learningPaper notes

SimVLM

Simplifying Things

Original paper

SimVLM: Simple Visual Language Model Pretraining with Weak Supervision

Paper authors

Zirui Wang · Jiahui Yu · Adams Wei Yu · Zihang Dai · Yulia Tsvetkov · Yuan Cao

Publication
ICLR 2022Conference
First submitted to arXiv
arXiv:2108.10904
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{multimodalitysimvlm2021,
  title = {{SimVLM: Simple Visual Language Model Pretraining with Weak Supervision}},
  author = {Zirui Wang and Jiahui Yu and Adams Wei Yu and Zihang Dai and Yulia Tsvetkov and Yuan Cao},
  year = {2021},
  eprint = {2108.10904},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.10904}
}
On this page

When things get too complicated, they can become daunting:

Do we really need to make it this complicated?

At this point, GPT-3 had already been released and achieved quite impressive results without complicating things too much.

The authors of this paper, based on this idea, thought it might be time to move away from the traditional encoder architecture.

Perhaps, we can simplify things?

Problem Definition

The authors identified several key issues:

  1. Drawbacks of the Pretraining-Finetuning Paradigm

    • While pretraining models like BERT on large-scale unlabeled text corpora using Masked Language Modeling (MLM) followed by finetuning has become mainstream, recent autoregressive language models such as GPT-3 have shown strong performance with few-shot learning, without the need for finetuning.
  2. Challenges in Multimodal Alignment

    • Establishing a correspondence between vision and language is challenging. Early approaches relied on manually annotated datasets for object detection and MLM-based pretraining for fusion models.
    • Due to the limited scale of human-annotated data, previous methods not only required complex pretraining schemes but also introduced task-specific auxiliary losses, complicating the entire Visual Language Pretraining (VLP) protocol.
  3. Lack of Zero-Shot Capability

    • Current methods based on pretraining and finetuning perform poorly in zero-shot settings, where the model’s generalization ability to unseen tasks is limited.
    • Some methods focus only on specific tasks, making them unsuitable as general-purpose pretrained representations. For instance, certain approaches focus solely on image classification or image-text retrieval tasks.

Solution

SimVLM Model Design

  1. PrefixLM

    Inspired by the zero-shot capabilities of autoregressive language models, the authors propose a new approach called "Prefix Language Modeling" or "PrefixLM". Unlike traditional autoregressive language models, PrefixLM has several key features:

    • Bidirectional Attention Within the Prefix Sequence:

      Tokens in the supplied prefix can attend to one another in both directions. Generated tokens may see the whole prefix and the continuation produced so far, but not future output tokens.

    • Autoregressive Decomposition After the Prefix:

      It performs autoregressive decomposition only after the prefix, attempting to predict the subsequent sequence.

    • Image as the Prefix of Text:

      In vision-language tasks, image patches come before the text. The randomly selected prefix contains all image patches plus some supplied text, and the prediction loss applies only to the remaining text suffix.

  1. Architecture Design

    Using Transformer as the core architecture, they combine a sequence-to-sequence language model with both visual and textual modules:

    • Visual Module

      SimVLM borrows the image-patch sequence idea from ViT, but passes the raw image through a convolutional stage made of the first three ResNet blocks before forming patch features, rather than using only ViT's linear projection. The patch and text tokens then enter the Transformer. This is not a separately pretrained object detector.

    • Text Module

      Text is split into subword tokens using SentencePiece. The paper does not specify that the particular subword algorithm must be Byte-Pair Encoding (BPE).

Pretraining Strategy

There’s no MLM, ITM, or any other techniques you might expect.

The authors use only PrefixLM for pretraining. For image-text pairs, image patches and supplied words form the bidirectionally visible prefix, then the model predicts the remaining words autoregressively. Text-only examples use the same objective. It resembles a GPT text-completion game, but the given prefix has bidirectional information.

Wow! This simplicity caught us off guard...

Datasets

  • ALIGN Training Dataset: About 1.8 billion weakly aligned web image-text pairs, often containing "a lot of noise"; the accompanying text need not perfectly describe its image.
  • Colossal Clean Crawled Corpus (C4): A large text dataset used for pretraining language models, compiled and cleaned from web texts, designed for efficient and large-scale pretraining.

Discussion

How Does the Model Perform?

SimVLM can achieve strong results with its simpler pretraining objective and still fit the familiar pretraining–fine-tuning workflow. Table 1 mixes VQA scores, accuracies, BLEU, CIDEr and SPICE, so we need to read each column in its own units:

  1. Model Comparison

    • SimVLM is compared with several state-of-the-art Vision Language Pretraining (VLP) methods, including: LXMERT, VL-T5, UNITER, OSCAR, Villa, SOHO, UNIMO, and VinVL.
    • SimVLM-Huge scores highly on the listed VQA, NLVR2, SNLI-VE, NoCaps and Multi30K metrics, but does not win every column: its COCO captioning BLEU@4 is 40.6 versus OSCAR's 41.7.
    • This supports the competitiveness of generative pretraining, though the compared papers use different data and setups; score gaps alone cannot isolate PrefixLM.
  2. Performance on Specific Tasks

    • Discriminative Tasks

      SimVLM-Base scores 78.14 on VQA test-std, above VinVL's 76.60, but its SNLI-VE test score 84.15 trails SOHO's 84.95. SimVLM-Huge reaches 80.34 on VQA, 3.74 percentage points above VinVL and over 80 for a single model.

    • Complex Visual Language Reasoning

      SimVLM-Huge scores 85.15 on NLVR2 test-P and 86.32 on SNLI-VE test, above the earlier methods listed in the table. These remain cross-paper comparisons.

    • Generative Tasks

      On the COCO Caption Karpathy 5k split, SimVLM-Huge's METEOR, CIDEr and SPICE exceed the listed CIDEr-optimized models, while its BLEU@4 40.6 trails OSCAR's 41.7. On NoCaps, its CIDEr/SPICE 110.3/14.5 exceed VinVL's 92.5/13.1.

    • Image Translation

      SimVLM also demonstrates effectiveness in the Multi30k English-to-German image translation task.

How Is the Zero-shot Performance?

The authors explored three main zero-shot application scenarios:

  1. Zero-shot/Few-shot Image Captioning

    SimVLM's pretraining resembles caption learning from noisy web images. Table 2 separates direct zero-shot generation, few-shot fine-tuning on 1% of training data for five epochs, and full fine-tuning. SimVLM-Huge's zero-shot COCO CIDEr is only 32.2, compared with 143.3 after full fine-tuning; the few-shot COCO result is 131.3. Its zero-shot NoCaps overall CIDEr is 101.4, above the fully fine-tuned VinVL row's 94.3. The prompt “A picture of” improves some captions, as the authors' examples show. These are different datasets and supervision conditions, not one uniform zero-shot result.

  2. Zero-shot Cross-modal Transfer

    SimVLM, a VLP model, is used in this study. Since text training data typically costs less than visual data, the model is finetuned on pure text data and then evaluated on joint vision-language tasks. This method is validated on the SNLI-VE and Multi30k datasets.

    On SNLI-VE, SimVLM-Huge reaches 73.86 test accuracy after text-only SNLI fine-tuning and image-text evaluation, below fully supervised UNITER's 78.28. Text-only MNLI fine-tuning yields 66.97. Multi30K cross-language/cross-modality transfer scores 18.2 BLEU@4 / 32.6 METEOR, below LIUM's 23.8 / 35.1. The transfer works, but these scores do not match all fully supervised baselines.

    When the image is masked and only the hypothesis is supplied, accuracy is about 34%, near three-class chance; this supports the claim that the image matters in this tested setting. The model also transfers from text translation to image-conditioned translation, though the metric gap above remains.

  3. Open-domain Visual Question Answering (VQA)

    In VQA tasks, traditional methods typically frame the question as multi-label classification over a set of 3,129 predefined candidate answers. However, this approach is limited in real-world applications, as a fixed answer set cannot cover all possible scenarios, making open-domain VQA challenging.

    On Karpathy-test questions whose best answer lies outside the 3,129-candidate set, generative SimVLM-Huge scores 30.3, versus 17.5 for its discriminative version. When fine-tuned on only 2,085 of those answer candidates, it scores 28.8 on the held-out-answer subset. Both are VQA-fine-tuned tests. With no VQA fine-tuning, the authors found that real questions often failed to elicit useful answers; a few prompted examples cannot erase that limitation.

What Contributes to the Model’s Success?

First, this SimVLM-small ablation starts at 67.43 VQA, not the Huge model's 80.34. The decoder-only variant scores 65.23, supporting the Encoder-Decoder choice under the tested setup.

Next, a decoder-only unidirectional LM scores 64.48, and span corruption in the full small model scores 66.23, both below PrefixLM's 67.43. This supports PrefixLM over these tested alternatives, not a claim that every unified objective is better.

Also, removing image-text data drops VQA from 67.43 to 49.23; removing text-only data drops it to 65.25. Both data sources help in this experiment.

Lastly, without the convolutional stage VQA is 63.11. With two, three and four ResNet convolutional blocks it is 65.57, 67.43 and 66.55; three is best in these tests.

Conclusion

Achieving such results with such a simple architecture is indeed impressive.

This paper not only showcases an effective technical strategy but also emphasizes that in today’s seemingly complex technical world, it is still possible to find simple and straightforward solutions.

Often, people tend to believe that complex problems require complex solutions. SimVLM, with its straightforward "PrefixLM" strategy, breaks this stereotype and provides a clear direction for future research.

We can envision that, based on SimVLM’s excellent performance, future researchers might try optimizing from the perspective of ViT, given its numerous evolutionary forms; or deepening the strategy from GPT’s perspective, both of which could further advance the field of visual language pretraining.