{"notes":[{"id":"multimodality/vilbert","category":"multimodality","legacyPath":"multimodality/1908-vilbert","legacySlug":"1908-vilbert","legacyPaths":[],"title":"ViLBERT","subtitle":"Interwoven Layers in the Beginning","author":"Z. Yuan","paperDate":"2019-08-06","publishedOn":"2024-06-04","paperTitle":"ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks","paperUrl":"https://arxiv.org/abs/1908.02265","bibliography":{"title":"ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks","authors":["Jiasen Lu","Dhruv Batra","Devi Parikh","Stefan Lee"],"url":"https://arxiv.org/abs/1908.02265","pdfUrl":"https://arxiv.org/pdf/1908.02265","codeUrl":null,"preprint":{"id":"1908.02265","submittedOn":"2019-08-06","url":"https://arxiv.org/abs/1908.02265"},"publication":{"venue":"NeurIPS","year":2019,"kind":"conference","url":"https://papers.nips.cc/paper_files/paper/2019/hash/c74d97b01eae257e44aa9d5bade97baf-Abstract.html"},"citation":"@misc{multimodalityvilbert2019,\n  title = {{ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks}},\n  author = {Jiasen Lu and Dhruv Batra and Devi Parikh and Stefan Lee},\n  year = {2019},\n  eprint = {1908.02265},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1908.02265}\n}\n","citationPath":"/content/papers/citations/multimodality/vilbert.86fae62edbca.bib"},"thumbnail":{"src":"/content/papers/assets/ea83dc4933aa28e1dfed328770285281323328ef76bc1e9fede2130dd9c86cf5.jpg","width":1596,"height":328},"locale":"en","path":"/content/papers/en/multimodality/vilbert.925cb036a151.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"approach","text":"Approach","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"pre-training-tasks","text":"Pre-training Tasks","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"how-effective-is-vilbert","text":"How Effective is ViLBERT?","depth":3},{"id":"impact-of-model-depth-on-performance","text":"Impact of Model Depth on Performance","depth":3},{"id":"effect-of-pre-training-data","text":"Effect of Pre-training Data","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"multimodality/lxmert","relation":"comparison","topic":"Region features in vision-language pretraining"},{"id":"multimodality/uniter","relation":"comparison","topic":"Region features in vision-language pretraining"}]},{"id":"multimodality/lxmert","category":"multimodality","legacyPath":"multimodality/1908-lxmert","legacySlug":"1908-lxmert","legacyPaths":[],"title":"LXMERT","subtitle":"Pre-training Matters","author":"Z. Yuan","paperDate":"2019-08-20","publishedOn":"2024-06-04","paperTitle":"LXMERT: Learning Cross-Modality Encoder Representations from Transformers","paperUrl":"https://arxiv.org/abs/1908.07490","bibliography":{"title":"LXMERT: Learning Cross-Modality Encoder Representations from Transformers","authors":["Hao Tan","Mohit Bansal"],"url":"https://arxiv.org/abs/1908.07490","pdfUrl":"https://arxiv.org/pdf/1908.07490","codeUrl":null,"preprint":{"id":"1908.07490","submittedOn":"2019-08-20","url":"https://arxiv.org/abs/1908.07490"},"publication":{"venue":"EMNLP","year":2019,"kind":"conference","url":"https://arxiv.org/abs/1908.07490"},"citation":"@misc{multimodalitylxmert2019,\n  title = {{LXMERT: Learning Cross-Modality Encoder Representations from Transformers}},\n  author = {Hao Tan and Mohit Bansal},\n  year = {2019},\n  eprint = {1908.07490},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1908.07490}\n}\n","citationPath":"/content/papers/citations/multimodality/lxmert.47814670c229.bib"},"thumbnail":{"src":"/content/papers/assets/0e45137e5df15d7a9e2ae46beadc426dc27aff867daf126d283da3c675178f70.jpg","width":1024,"height":325},"locale":"en","path":"/content/papers/en/multimodality/lxmert.e69a6afe7d80.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"approach","text":"Approach","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"pre-training-strategy","text":"Pre-training Strategy","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-other-models","text":"Comparison with Other Models","depth":3},{"id":"importance-of-pre-training","text":"Importance of Pre-training","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"multimodality/vilbert","relation":"comparison","topic":"Region features in vision-language pretraining"},{"id":"multimodality/uniter","relation":"comparison","topic":"Region features in vision-language pretraining"}]},{"id":"multimodality/uniter","category":"multimodality","legacyPath":"multimodality/1909-uniter","legacySlug":"1909-uniter","legacyPaths":[],"title":"UNITER","subtitle":"The Song of the Unifiers","author":"Z. Yuan","paperDate":"2019-09-25","publishedOn":"2024-06-04","paperTitle":"UNITER: UNiversal Image-TExt Representation Learning","paperUrl":"https://arxiv.org/abs/1909.11740","bibliography":{"title":"UNITER: UNiversal Image-TExt Representation Learning","authors":["Yen-Chun Chen","Linjie Li","Licheng Yu","Ahmed El Kholy","Faisal Ahmed","Zhe Gan","Yu Cheng","Jingjing Liu"],"url":"https://arxiv.org/abs/1909.11740","pdfUrl":"https://arxiv.org/pdf/1909.11740","codeUrl":null,"preprint":{"id":"1909.11740","submittedOn":"2019-09-25","url":"https://arxiv.org/abs/1909.11740"},"publication":{"venue":"ECCV","year":2020,"kind":"conference","url":"https://arxiv.org/abs/1909.11740"},"citation":"@misc{multimodalityuniter2019,\n  title = {{UNITER: UNiversal Image-TExt Representation Learning}},\n  author = {Yen-Chun Chen and Linjie Li and Licheng Yu and Ahmed El Kholy and Faisal Ahmed and Zhe Gan and Yu Cheng and Jingjing Liu},\n  year = {2019},\n  eprint = {1909.11740},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1909.11740}\n}\n","citationPath":"/content/papers/citations/multimodality/uniter.4f2cee580d03.bib"},"thumbnail":{"src":"/content/papers/assets/9be0d2a008d474713ee083cc7a8f379f76889ff1ade6f34dcb6ec6fad5fe22f2.jpg","width":1224,"height":492},"locale":"en","path":"/content/papers/en/multimodality/uniter.53e85332b8f2.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"uniter-model-design","text":"UNITER Model Design","depth":3},{"id":"pre-training-strategy","text":"Pre-Training Strategy","depth":3},{"id":"pre-training-datasets","text":"Pre-Training Datasets","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-on-pre-training-tasks","text":"Performance on Pre-Training Tasks","depth":3},{"id":"performance-on-downstream-tasks","text":"Performance on Downstream Tasks","depth":3},{"id":"what-did-the-model-learn","text":"What Did the Model Learn?","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"multimodality/vilbert","relation":"comparison","topic":"Region features in vision-language pretraining"},{"id":"multimodality/lxmert","relation":"comparison","topic":"Region features in vision-language pretraining"}]}],"text":"Each year in academia brings numerous developments, and 2019 was especially eventful, with the wave of advancements still unfolding.\n\n## Defining the Problem\n\nCurrent methods primarily train visual and language models separately before attempting to combine them.\n\nThis approach often leads to suboptimal results, as models struggle to generalize well when visual and language data are limited or biased. While models may be capable of recognizing objects in images or understanding language independently, creating meaningful connections between these two modalities remains a significant challenge.\n\nThe authors aim to depart from traditional learning approaches, designing a method to help the model simultaneously learn from both images and text, thus fostering a closer association between them.\n\n## Approach\n\n### Model Architecture\n\n\n\n![Visual and linguistic streams with co-attention links; original paper Figure 1](/content/papers/assets/ea83dc4933aa28e1dfed328770285281323328ef76bc1e9fede2130dd9c86cf5.jpg \"Lu et al., ViLBERT, Figure 1, arXiv:1908.02265v1\")\n\n\n\nInspired by BERT, the authors sought to develop a similar model that could learn joint representations of language and visual content from paired data.\n\nBERT handles text. ViLBERT adds a separate visual stream so region features and words can attend to each other, rather than simply replacing text tokens with images.\n\nAs shown above, the authors propose a dual-stream architecture: one stream is dedicated to visual processing, and the other to language. These streams interact through cross-attention mechanisms, allowing variable network depth for each modality and enabling cross-modal connections at different layers.\n\nThe image input is derived from bounding boxes and visual features extracted by a pre-trained object detector, which are then combined with visual position encodings.\n\n### Pre-training Tasks\n\n\n\n![Masked multimodal modeling and image-text alignment pretraining; original paper Figure 3](/content/papers/assets/4a3f3d988ec17aab9516519684c49bf9a5ae580406b36f2b8ebc050dd5deeab3.jpg \"Lu et al., Figure 3, arXiv:1908.02265v1\")\n\n\n\nAs illustrated above, the authors propose two main pre-training tasks: masked multimodal modeling and multimodal alignment prediction.\n\n- **Masked multimodal modeling**: Predict masked text tokens; for vision, match the detector’s class distribution with KL divergence rather than reconstructing pixels or regressing region features.\n- **Multimodal Alignment Prediction**: This task requires the model to determine whether the image and text are aligned—whether the text accurately describes the image.\n\nThe Conceptual Captions dataset contains about **3.3 million** image-caption pairs automatically collected from the web. With some image links broken at download time, the paper actually trains on about **3.1 million** pairs. The captions can be noisy or short on detail, but cover varied visual content.\n\nThe experimental setup includes:\n\n- Language model initialization using BERT-BASE, which was pre-trained on BookCorpus and English Wikipedia.\n- Visual features derived from a pre-trained Faster R-CNN.\n- Visual-stream Transformer and co-attentional blocks with a **1,024-dimensional hidden state** and **8 attention heads**.\n- Training on 8 TitanX GPUs for 10 epochs.\n\n## Discussion\n\n### How Effective is ViLBERT?\n\n![ViLBERT and single-stream results on VQA, VCR, RefCOCO+ and image retrieval; original paper Table 1](/content/papers/assets/72cb743ce55cb8dbac3bf61d62073fd8f1e04e9310090abe8f31a3927aa3b092.jpg \"Lu et al., Table 1, arXiv:1908.02265v1; dagger omits multimodal pretraining\")\n\nAs shown above, the ViLBERT model achieves impressive performance across various vision-language tasks.\n\nBoth dual-stream ViLBERT and the single-stream baseline are compared with and without Conceptual Captions pretraining. The dagger omits that multimodal stage while retaining the pretrained BERT and detector backbones.\n\nComparing ViLBERT with ViLBERT†, VQA test-dev rises from **68.93 to 70.55**, RefCOCO+ val from **68.61 to 72.34**, and image retrieval R@1 from **45.50 to 58.20**. Those are gains of **1.62**, **3.73**, and **12.70 percentage points**, respectively; the gain depends on the task and metric. The single-stream model also has its own before-and-after pretraining comparison in the table.\n\nAfter fine-tuning, ViLBERT is competitive across all four established tasks shown. Selected VCR, RefCOCO+, and image-retrieval metrics lead the listed prior methods by roughly **7 to 11 percentage points**, depending on the metric and baseline. Extending ViLBERT to these tasks is relatively straightforward: usually, the authors add a classifier and fine-tune the whole model.\n\n### Impact of Model Depth on Performance\n\n![Visual-stream depth ablation across ViLBERT tasks; original paper Table 2](/content/papers/assets/0e3897070ae52cd7e31ea83120d1a908b2a15bca36dee7cc3f6275f6f885b9fa.jpg \"Lu et al., Table 2, arXiv:1908.02265v1; depth counts repeated CO-TRM→TRM blocks\")\n\nAs shown above, the authors examine how model depth affects ViLBERT’s performance.\n\n- **VQA and image retrieval**: VQA test-dev peaks at six layers (**70.55**) before dipping to **70.47** at eight; fine-tuned retrieval R@1 peaks at eight (**58.78**). Neither rises monotonically across every depth or peaks at the same depth.\n- **Zero-shot image retrieval**: R@1 rises from **26.14** at two layers to **32.80** at eight, although R@5 and R@10 dip at four layers. Eight layers perform best among those tested here.\n- **VCR and RefCOCO+**: The best depth varies by metric. For RefCOCO+, val peaks at six layers (**72.34**), testA at two (**78.61**), and testB at four (**63.14**). The VCR columns also have different peaks.\n\n\n> [!TIP]\n> \n> Of course, next to a 96-layer model (yes, GPT-3, I’m looking at you!), two to eight layers sound small. Here, though, the count refers to repeated blocks in ViLBERT’s visual stream, not its entire model.\n\n\n### Effect of Pre-training Data\n\n![Effect of Conceptual Captions pretraining fraction on downstream tasks; original paper Table 3](/content/papers/assets/0fc67401aca31863b7fb386857c686d99f38bc31545fe7c8099ae655b115ed82.jpg \"Lu et al., Table 3, arXiv:1908.02265v1; compare 0/25/50/100% of one source\")\n\nAcross the table’s **0%, 25%, 50%, and 100%** Conceptual Captions pretraining comparisons, the reported task metrics improve monotonically with the amount of data.\n\nThis ablation supports a narrower point: with the same model and data source, using more of that pretraining set helps on these tasks.\n\nAdditionally, this suggests that ViLBERT could potentially benefit from even larger datasets during pre-training, making it a promising direction for future research and applications to further optimize model performance.\n\n## Conclusion\n\nIn the early days of multimodal research, the development of dual-stream architecture marked a major breakthrough, offering a more nuanced perspective on understanding and capturing relationships between images and text.\n\nViLBERT can be called a milestone for this field. It tries to connect image content and words more closely, and it achieves strong results across several vision-language tasks.\n","imageSizes":{"/content/papers/assets/ea83dc4933aa28e1dfed328770285281323328ef76bc1e9fede2130dd9c86cf5.jpg":{"width":1596,"height":328},"/content/papers/assets/4a3f3d988ec17aab9516519684c49bf9a5ae580406b36f2b8ebc050dd5deeab3.jpg":{"width":1024,"height":813},"/content/papers/assets/72cb743ce55cb8dbac3bf61d62073fd8f1e04e9310090abe8f31a3927aa3b092.jpg":{"width":1024,"height":264},"/content/papers/assets/0e3897070ae52cd7e31ea83120d1a908b2a15bca36dee7cc3f6275f6f885b9fa.jpg":{"width":1024,"height":194},"/content/papers/assets/0fc67401aca31863b7fb386857c686d99f38bc31545fe7c8099ae655b115ed82.jpg":{"width":1024,"height":196}}}
