VisualBERT: A Simple and Performant Baseline for Vision and Language
Written for the Research library (claude-opus-5-5) from the paper text, in our own words: the license "arXiv — non-exclusive licence to distribute" does not allow redistributing the text itself. Original — arxiv.org/pdf/1908.03557
Summary
VisualBERT is a single general-purpose model for tasks that combine images and text. It is meant to replace the separate, task-specific architectures that were common for problems like visual question answering and visual reasoning. The design is simple. Region features from a pre-trained object detector (Faster-RCNN) go into a BERT-style Transformer as extra unordered tokens, alongside the word tokens. Self-attention then learns on its own which words go with which image regions. Before being adapted to a target task, the model is pre-trained on COCO image captions with two objectives. In the first, it predicts masked words using both the image and the remaining text. In the second, it decides whether a caption actually describes the image. On VQA 2.0, VCR, NLVR2 and Flickr30K, VisualBERT matches or beats the state-of-the-art systems of the time while being considerably simpler. Analysis of its attention heads shows that it links phrases to the right image regions without any grounding labels. Some heads also follow syntactic relations, for example connecting a verb to the region of its argument. Together these results made it a strong, easy-to-reuse baseline for vision-and-language research.
Key points
- Each image input embedding adds up three parts: CNN region features, a segment embedding marking the input as visual, and an optional position embedding. The position embedding is used when word–region alignments are supplied, as in VCR.
- Training has three stages: task-agnostic pre-training on COCO, then task-specific pre-training with masked language modeling on the target dataset, then fine-tuning.
- Pre-training uses the Karpathy train split of COCO, about 100k images with 5 captions each. In the caption–image matching objective, the second caption is randomly drawn half of the time.
- Evaluation covers four tasks: VQA 2.0, VCR (Q→A and QA→R), NLVR2 and Flickr30K region-to-phrase grounding.
- Compared with the concurrent ViLBERT, VisualBERT uses a single shared Transformer for both modalities. ViLBERT uses two separate streams and has twice as many parameters.
Cited by
- Unified Pre-training for Program Understanding and Generation
- Do As I Can, Not As I Say: Grounding Language in Robotic Affordances
- Experience Grounds Language
- UNITER: UNiversal Image-TExt Representation Learning
- WebVoyager: Building an End-to-End Web Agent with Large Multimodal Models
- The Hateful Memes Challenge: Detecting Hate Speech in Multimodal Memes
- ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision
- Oscar: Object-Semantics Aligned Pre-training for Vision-Language Tasks
- Mitigating Hallucination in Large Multi-Modal Models via Robust Instruction Tuning
- Chameleon: Plug-and-Play Compositional Reasoning with Large Language Models
- Kosmos-2: Grounding Multimodal Large Language Models to the World
- Pre-trained Models for Natural Language Processing: A Survey
- VL-BERT: Pre-training of Generic Visual-Linguistic Representations
- LXMERT: Learning Cross-Modality Encoder Representations from Transformers
- Training data-efficient image transformers & distillation through attention
- SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
- OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Framework
- The Dawn of LMMs: Preliminary Explorations with GPT-4V(ision)
- LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attention
- Multimodal Chain-of-Thought Reasoning in Language Models
Cite
@misc{li2019visualbert,
title = {{VisualBERT: A Simple and Performant Baseline for Vision and Language}},
author = {Li, Liunian Harold and Yatskar, Mark and Yin, Da and Hsieh, Cho-Jui and Chang, Kai-Wei},
year = {2019},
doi = {10.48550/arxiv.1908.03557},
eprint = {1908.03557},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1908.03557}
}References
- Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. Bottom-up and top-down attention for image captioning and visual question answering. In CVPR, 2018. find
- Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. VQA: Visual question answering. In ICCV, 2015. find
- Remi Cadene, Hedi Ben-Younes, Matthieu Cord, and Nicolas Thome. MUREL: Multimodal relational reasoning for visual question answering. In CVPR, 2019. find
- Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollár, and C Lawrence Zitnick. Microsoft COCO captions: Data collection and evaluation server. arXiv preprint arXiv:1504.00325, 2015. find our card
- Kevin Clark, Urvashi Khandelwal, Omer Levy, and Christopher D Manning. What does BERT look at? an analysis of BERT’s attention. BlackboxNLP, 2019. find
- Marie-Catherine De Marneffe and Christopher D Manning. Stanford typed dependencies manual. Technical report, 2008. find
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019. find
- Timothy Dozat and Christopher D Manning. Deep biaffine attention for neural dependency parsing. ICLR, 2017. find our card
- Matt Gardner, Joel Grus, Mark Neumann, Oyvind Tafjord, Pradeep Dasigi, Nelson F Liu, Matthew Peters, Michael Schmitz, and Luke Zettlemoyer. AllenNLP: A deep semantic natural language processing platform. In Proceedings of Workshop for NLP Open Source Software (NLP-OSS), 2018. find our card
- Ross Girshick, Ilija Radosavovic, Georgia Gkioxari, Piotr Dollár, and Kaiming He. Detectron. https://github.com/facebookresearch/detectron, 2018. ↗
- Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Making the V in VQA matter: Elevating the role of image understanding in Visual Question Answering. In CVPR, 2017. find our card
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. find
- Yu Jiang, Vivek Natarajan, Xinlei Chen, Marcus Rohrbach, Dhruv Batra, and Devi Parikh. Pythia v0. 1: the winning entry to the VQA challenge 2018. arXiv preprint arXiv:1807.09956, 2018. — [arXiv:1807.09956](https://arxiv.org/abs/1807.09956) find
- Lu Jiasen, Batra Dhruv, Parikh Devi, and Lee Lee. ViLBERT: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. arXiv preprint arXiv:1908.02265, 2019. find our card
- Justin Johnson, Ranjay Krishna, Michael Stark, Li-Jia Li, David Shamma, Michael Bernstein, and Li Fei-Fei. Image retrieval using scene graphs. In CVPR, 2015. find
- Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In CVPR, 2015. find our card
- Sahar Kazemzadeh, Vicente Ordonez, Mark Matten, and Tamara Berg. ReferItGame: Referring to objects in photographs of natural scenes. In EMNLP, 2014. find
- Jin-Hwa Kim, Jaehyun Jun, and Byoung-Tak Zhang. Bilinear attention networks. In NeurIPS, 2018. find
- Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015. find
- Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual Genome: Connecting language and vision using crowdsourced dense image annotations. International Journal of Computer Vision, 123(1):32–73, 2… find our card
- Linjie Li, Zhe Gan, Yu Cheng, and Jingjing Liu. Relation-aware graph attention network for visual question answering. ArXiv, abs/1903.12314, 2019. — [arXiv:1903.12314](https://arxiv.org/abs/1903.12314) find
- Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft COCO: Common objects in context. In ECCV, 2014. find our card
- Will Norcliffe-Brown, Stathis Vafeias, and Sarah Parisot. Learning conditioned graph structures for interpretable visual question answering. In NeurIPS, 2018. find
- Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. In NAACL-HLT, 2018. find
- Bryan A Plummer, Liwei Wang, Chris M Cervantes, Juan C Caicedo, Julia Hockenmaier, and Svetlana Lazebnik. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In ICCV, 2015. find
- Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. OpenAI, 2018. find
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI, 2019. find
- Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NeurIPS, 2015. find our card
- Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 2015. find our card
- Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy Lillicrap. A simple neural network module for relational reasoning. In NeurIPS, 2017. find our card
- Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual Captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In ACL, 2018. find our card
- Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, and Marcus Rohrbach. Towards VQA models that can read. In CVPR, 2019. find
- Alane Suhr, Stephanie Zhou, Iris Zhang, Huajun Bai, and Yoav Artzi. A corpus for reasoning about natural language grounded in photographs. ACL, 2019. find our card
- Chen Sun, Austin Myers, Carl Vondrick, Kevin Murphy, and Cordelia Schmid. VideoBert: A joint model for video and language representation learning. arXiv preprint arXiv:1904.01766, 2019. find our card
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. find
- Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned. ACL, 2019. find our card
- Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. find
- Zichao Yang, Xiaodong He, Jianfeng Gao, Li Deng, and Alex Smola. Stacked attention networks for image question answering. In CVPR, 2016. find
- Jun Yu, Jing Li, Zhou Yu, and Qingming Huang. Multimodal transformer with multi-view visual representation for image captioning. arXiv preprint arXiv:1905.07841, 2019a. — [arXiv:1905.07841](https://arxiv.org/abs/1905.07841) find
- Zhou Yu, Jun Yu, Yuhao Cui, Dacheng Tao, and Qi Tian. Deep modular co-attention networks for visual question answering. In CVPR, 2019b. find
- Rowan Zellers, Yonatan Bisk, Ali Farhadi, and Yejin Choi. From recognition to cognition: Visual commonsense reasoning. In CVPR, 2019. find