{"notes":[{"id":"multimodality/simvlm","category":"multimodality","legacyPath":"multimodality/2108-simvlm","legacySlug":"2108-simvlm","legacyPaths":[],"title":"SimVLM","subtitle":"Simplifying Things","author":"Z. Yuan","paperDate":"2021-08-24","publishedOn":"2024-06-04","paperTitle":"SimVLM: Simple Visual Language Model Pretraining with Weak Supervision","paperUrl":"https://arxiv.org/abs/2108.10904","bibliography":{"title":"SimVLM: Simple Visual Language Model Pretraining with Weak Supervision","authors":["Zirui Wang","Jiahui Yu","Adams Wei Yu","Zihang Dai","Yulia Tsvetkov","Yuan Cao"],"url":"https://arxiv.org/abs/2108.10904","pdfUrl":"https://arxiv.org/pdf/2108.10904","codeUrl":null,"preprint":{"id":"2108.10904","submittedOn":"2021-08-24","url":"https://arxiv.org/abs/2108.10904"},"publication":{"venue":"ICLR","year":2022,"kind":"conference","url":"https://openreview.net/pdf?id=GUrhfTuf_3"},"citation":"@misc{multimodalitysimvlm2021,\n  title = {{SimVLM: Simple Visual Language Model Pretraining with Weak Supervision}},\n  author = {Zirui Wang and Jiahui Yu and Adams Wei Yu and Zihang Dai and Yulia Tsvetkov and Yuan Cao},\n  year = {2021},\n  eprint = {2108.10904},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2108.10904}\n}\n","citationPath":"/content/papers/citations/multimodality/simvlm.3f1debdaa343.bib"},"thumbnail":{"src":"/content/papers/assets/3b0abd9539f567530912cf12033a3707473305523048b725fdac2b67934909fd.jpg","width":1224,"height":704},"locale":"en","path":"/content/papers/en/multimodality/simvlm.d1fc3a0c4d0c.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"simvlm-model-design","text":"SimVLM Model Design","depth":3},{"id":"pretraining-strategy","text":"Pretraining Strategy","depth":3},{"id":"datasets","text":"Datasets","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"how-does-the-model-perform","text":"How Does the Model Perform?","depth":3},{"id":"how-is-the-zero-shot-performance","text":"How Is the Zero-shot Performance?","depth":3},{"id":"what-contributes-to-the-models-success","text":"What Contributes to the Model’s Success?","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"defining-the-problem":"problem-definition","one-image-half-a-sentence":"simvlm-model-design","doesnt-this-look-like-vl-t5":"simvlm-model-design","image-text-and-data":"datasets","experimental-results-and-discussion":"discussion","main-benchmarks-check-the-model-and-metric":"how-does-the-model-perform","what-happens-without-target-task-fine-tuning":"how-is-the-zero-shot-performance","which-part-earns-its-keep":"what-contributes-to-the-models-success"},"guide":null,"relatedReading":[{"id":"multimodality/pixelbert","relation":"comparison","topic":"Learning image-text features from pixels"},{"id":"multimodality/vilt","relation":"comparison","topic":"Learning image-text features from pixels"}]},{"id":"multimodality/pixelbert","category":"multimodality","legacyPath":"multimodality/2004-pixelbert","legacySlug":"2004-pixelbert","legacyPaths":[],"title":"Pixel-BERT","subtitle":"The Language of Pixels","author":"Z. Yuan","paperDate":"2020-04-02","publishedOn":"2024-06-04","paperTitle":"Pixel-BERT: Aligning Image Pixels with Text by Deep Multi-Modal Transformers","paperUrl":"https://arxiv.org/abs/2004.00849","bibliography":{"title":"Pixel-BERT: Aligning Image Pixels with Text by Deep Multi-Modal Transformers","authors":["Zhicheng Huang","Zhaoyang Zeng","Bei Liu","Dongmei Fu","Jianlong Fu"],"url":"https://arxiv.org/abs/2004.00849","pdfUrl":"https://arxiv.org/pdf/2004.00849","codeUrl":null,"preprint":{"id":"2004.00849","submittedOn":"2020-04-02","url":"https://arxiv.org/abs/2004.00849"},"publication":null,"citation":"@misc{multimodalitypixelbert2020,\n  title = {{Pixel-BERT: Aligning Image Pixels with Text by Deep Multi-Modal Transformers}},\n  author = {Zhicheng Huang and Zhaoyang Zeng and Bei Liu and Dongmei Fu and Jianlong Fu},\n  year = {2020},\n  eprint = {2004.00849},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2004.00849}\n}\n","citationPath":"/content/papers/citations/multimodality/pixelbert.c08c8ff05b89.bib"},"thumbnail":{"src":"/content/papers/assets/6bef1a64980cdb97551b5daaf2d3ff21f4bdb4b5bc852b778a2b24b84959a78e.jpg","width":1224,"height":628},"locale":"en","path":"/content/papers/en/multimodality/pixelbert.d7f7b2a07b45.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"pixel-bert-model-design","text":"Pixel-BERT Model Design","depth":3},{"id":"pixel-feature-encoding","text":"Pixel Feature Encoding","depth":3},{"id":"sentence-feature-encoding","text":"Sentence Feature Encoding","depth":3},{"id":"cross-modal-learning","text":"Cross-Modal Learning","depth":3},{"id":"pre-training-methods","text":"Pre-Training Methods","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"vqa-performance","text":"VQA Performance","depth":3},{"id":"nlvr2-performance","text":"NLVR2 Performance","depth":3},{"id":"image-text-retrieval","text":"Image-Text Retrieval","depth":3},{"id":"key-design-elements","text":"Key Design Elements","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"multimodality/vilt","relation":"comparison","topic":"Learning image-text features from pixels"},{"id":"multimodality/simvlm","relation":"comparison","topic":"Learning image-text features from pixels"}]},{"id":"multimodality/vilt","category":"multimodality","legacyPath":"multimodality/2102-vilt","legacySlug":"2102-vilt","legacyPaths":[],"title":"ViLT","subtitle":"Enter the Scene","author":"Z. Yuan","paperDate":"2021-02-05","publishedOn":"2024-04-05","paperTitle":"ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision","paperUrl":"https://arxiv.org/abs/2102.03334","bibliography":{"title":"ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision","authors":["Wonjae Kim","Bokyung Son","Ildoo Kim"],"url":"https://arxiv.org/abs/2102.03334","pdfUrl":"https://arxiv.org/pdf/2102.03334","codeUrl":"https://github.com/dandelin/vilt","preprint":{"id":"2102.03334","submittedOn":"2021-02-05","url":"https://arxiv.org/abs/2102.03334"},"publication":{"venue":"ICML","year":2021,"kind":"conference","url":"https://proceedings.mlr.press/v139/kim21k.html"},"citation":"@misc{multimodalityvilt2021,\n  title = {{ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision}},\n  author = {Wonjae Kim and Bokyung Son and Ildoo Kim},\n  year = {2021},\n  eprint = {2102.03334},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2102.03334}\n}\n","citationPath":"/content/papers/citations/multimodality/vilt.1555ccf87693.bib"},"thumbnail":{"src":"/content/papers/assets/9365d24c758fb8098d2dee6d761d9398a0800b712acb97926f5aac408eea2cce.jpg","width":1224,"height":456},"locale":"en","path":"/content/papers/en/multimodality/vilt.55290e45b2d7.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"vilt-design-philosophy","text":"ViLT Design Philosophy","depth":3},{"id":"vilt-design-details","text":"ViLT Design Details","depth":3},{"id":"pretraining-strategies","text":"Pretraining Strategies","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-analysis","text":"Performance Analysis","depth":3},{"id":"key-contributions","text":"Key Contributions","depth":3},{"id":"complexity-analysis","text":"Complexity Analysis","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"replace-the-visual-front-end-with-patch-projection":"vilt-design-details","three-training-signals-with-no-word-to-box-labels":"pretraining-strategies","experimental-results-and-discussion":"discussion","read-the-tasks-and-inputs-before-the-scores":"performance-analysis","ablations-duration-masking-and-a-failed-extra-objective":"key-contributions","treat-15-ms-as-a-benchmark-condition":"complexity-analysis"},"guide":null,"relatedReading":[{"id":"multimodality/visualbert","relation":"comparison","topic":"Joint image-text Transformer encoders"},{"id":"multimodality/vlbert","relation":"comparison","topic":"Joint image-text Transformer encoders"},{"id":"multimodality/pixelbert","relation":"comparison","topic":"Learning image-text features from pixels"}]}],"text":"When things get too complicated, they can become daunting:\n\nDo we really need to make it this complicated?\n\nAt this point, GPT-3 had already been released and achieved quite impressive results without complicating things too much.\n\nThe authors of this paper, based on this idea, thought it might be time to move away from the traditional encoder architecture.\n\nPerhaps, we can simplify things?\n\n## Problem Definition\n\nThe authors identified several key issues:\n\n1. **Drawbacks of the Pretraining-Finetuning Paradigm**\n\n   - 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.\n\n2. **Challenges in Multimodal Alignment**\n\n   - 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.\n   - 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.\n\n3. **Lack of Zero-Shot Capability**\n\n   - Current methods based on pretraining and finetuning perform poorly in zero-shot settings, where the model’s generalization ability to unseen tasks is limited.\n   - 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.\n\n## Solution\n\n### SimVLM Model Design\n\n![model_arch](/content/papers/assets/3b0abd9539f567530912cf12033a3707473305523048b725fdac2b67934909fd.jpg)\n\n1. **PrefixLM**\n\n   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:\n\n   - **Bidirectional Attention Within the Prefix Sequence**:\n\n     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.\n\n   - **Autoregressive Decomposition After the Prefix**:\n\n     It performs autoregressive decomposition only after the prefix, attempting to predict the subsequent sequence.\n\n   - **Image as the Prefix of Text**:\n\n     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.\n\n\n> [!TIP]\n> \n> Suppose we have an image showing a dog playing with a ball in the park. The task of PrefixLM would be to generate a description of this image. The process might look like this:\n> \n> 1. **Image as Prefix**: The raw image passes through the first three ResNet convolutional blocks to produce patch features, which become part of the prefix.\n> 2. **Partial Text Description**: With this image as the prefix, a brief description might be added, such as \"A dog...\".\n> 3. **Generate from the Decoder**: The encoder can attend bidirectionally within the image and given-text prefix. While generating, the decoder sees that prefix and its own output so far, but not words yet to be generated.\n> 4. **Continued Description Generation**: Considering the above context, the model might generate \"playing with a ball in the park\".\n> \n> Combining the image prefix and the generated text, we get the full description: \"A dog playing with a ball in the park.\"\n\n\n2. **Architecture Design**\n\n   Using Transformer as the core architecture, they combine a sequence-to-sequence language model with both visual and textual modules:\n\n   - **Visual Module**\n\n     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.\n\n   - **Text Module**\n\n     Text is split into subword tokens using SentencePiece. The paper does not specify that the particular subword algorithm must be Byte-Pair Encoding (BPE).\n\n\n> [!TIP]\n> \n> Wait a minute! This architecture looks a lot like VL-T5!\n> \n> Let's take a look at the VL-T5 architecture:\n> \n> ![VL-T5 architecture from the separate VL-T5 paper](/content/papers/assets/95b75d44ac94924daf37cc4da698dafbb37b5968f7ec81cce39a47ef577c5c9b.jpg)\n> \n> This comparison figure comes from [Cho et al., VL-T5, Figure 2](https://proceedings.mlr.press/v139/cho21a/cho21a.pdf), not the SimVLM paper.\n> \n> - Both have an Encoder-Decoder structure.\n> - Both incorporate image and text information into the Encoder.\n> - But they are indeed different!\n> \n> At first glance, they seem similar, but they are quite different in practice.\n> \n> In VL-T5, **object-detector RoI features** are supplied rather than raw cropped image fragments. It also includes two kinds of text:\n> \n> - The first segment: the prefix that tells the model the type of task.\n> - The second segment: the actual question.\n> \n> That design gives the Encoder a lot to work with. Could we remove the Decoder, attach a classification head to the Encoder and still answer questions? That is our conjecture; VL-T5 did not test this ablation, and the change would no longer be its unified text-generation setup.\n> \n> In contrast, SimVLM does not leave all the tasks to the Encoder. It creates a \"crime scene\" scenario where the Decoder, acting as a detective, must infer the results from the clues left by the Encoder.\n> \n> According to the authors, the \"prefix\" can even be a text description of the image rather than the image itself.\n> \n> In Table 1, SimVLM-Base scores 78.14 on VQA test-std versus VL-T5's 70.30, a gap of about 7.8 percentage points. Pretraining data, visual input and model settings differ, so we cannot assign that gap to Decoder design alone.\n\n\n### Pretraining Strategy\n\nThere’s no MLM, ITM, or any other techniques you might expect.\n\nThe 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.\n\nWow! This simplicity caught us off guard...\n\n### Datasets\n\n- **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.\n- **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.\n\n## Discussion\n\n### How Does the Model Perform?\n\n![result](/content/papers/assets/3cdcc56ee02e0a97088a032ca69bcd434a01102a26834486d675ed5268fc1e40.png)\n\nSimVLM 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:\n\n1. **Model Comparison**\n\n   - 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.\n   - 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**.\n   - This supports the competitiveness of generative pretraining, though the compared papers use different data and setups; score gaps alone cannot isolate PrefixLM.\n\n2. **Performance on Specific Tasks**\n\n   - **Discriminative Tasks**\n\n     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.\n\n   - **Complex Visual Language Reasoning**\n\n     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.\n\n   - **Generative Tasks**\n\n     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**.\n\n   - **Image Translation**\n\n     SimVLM also demonstrates effectiveness in the Multi30k English-to-German image translation task.\n\n### How Is the Zero-shot Performance?\n\nThe authors explored three main zero-shot application scenarios:\n\n1. **Zero-shot/Few-shot Image Captioning**\n\n   ![result1](/content/papers/assets/52a706f57cc491dc7970a4d9b714f385d59f1734163cda3d4e0928b9dd44a0ad.png)\n\n   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.\n\n2. **Zero-shot Cross-modal Transfer**\n\n   ![result2](/content/papers/assets/0953a59ff465db05a416d2ac3924bea28a0cd4fdf601082312ade38080cda122.png)\n\n   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.\n\n   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.\n\n   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.\n\n3. **Open-domain Visual Question Answering (VQA)**\n\n   ![result3](/content/papers/assets/df4de4a18dc0cbe40c50fe14c77a1e7e120929bd7c9c911419d8d5f7518783e9.png)\n\n   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.\n\n   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.\n\n### What Contributes to the Model’s Success?\n\n![ablation](/content/papers/assets/38549433c6962dcabc4de2c7b07ef00656a6a4e14648c559a43a64ba1ced2966.png)\n\nFirst, 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.\n\nNext, 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.\n\nAlso, 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.\n\nLastly, 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.\n\n## Conclusion\n\nAchieving such results with such a simple architecture is indeed impressive.\n\nThis 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.\n\nOften, 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.\n\nWe 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.\n","imageSizes":{"/content/papers/assets/3b0abd9539f567530912cf12033a3707473305523048b725fdac2b67934909fd.jpg":{"width":1224,"height":704},"/content/papers/assets/95b75d44ac94924daf37cc4da698dafbb37b5968f7ec81cce39a47ef577c5c9b.jpg":{"width":1224,"height":296},"/content/papers/assets/3cdcc56ee02e0a97088a032ca69bcd434a01102a26834486d675ed5268fc1e40.png":{"width":1024,"height":407},"/content/papers/assets/52a706f57cc491dc7970a4d9b714f385d59f1734163cda3d4e0928b9dd44a0ad.png":{"width":1024,"height":492},"/content/papers/assets/0953a59ff465db05a416d2ac3924bea28a0cd4fdf601082312ade38080cda122.png":{"width":1024,"height":506},"/content/papers/assets/df4de4a18dc0cbe40c50fe14c77a1e7e120929bd7c9c911419d8d5f7518783e9.png":{"width":1024,"height":487},"/content/papers/assets/38549433c6962dcabc4de2c7b07ef00656a6a4e14648c559a43a64ba1ced2966.png":{"width":1002,"height":824}}}
