Visually-Augmented Language Modeling

Weizhi Wang, Li Dong, Hao Cheng, Haoyu Song, Xiaodong Liu +3 more
5/20/2022
cs.CL

Official code: Victorwz/VaLM (56 stars, Python, last commit 2023-03-06).

Abstract

Human language is grounded on multimodal knowledge including visual knowledge like colors, sizes, and shapes. However, current large-scale pre-trained language models rely on text-only self-supervised training with massive text data, which precludes them from utilizing relevant visual information when necessary.

Show full abstract

To address this, we propose a novel pre-training framework, named VaLM, to Visually-augment text tokens with retrieved relevant images for Language Modeling. Specifically, VaLM builds on a novel latent text-image alignment method via an image retrieval module to fetch corresponding images given a textual context. With the visually-augmented context, VaLM uses a visual knowledge fusion layer to enable multimodal grounded language modeling by attending to both text context and visual knowledge in images. We evaluate VaLM on various visual knowledge-intensive commonsense reasoning tasks, which require visual information to excel. The experimental results illustrate that VaLM outperforms all strong language-only and vision-language baselines with substantial gains in reasoning object commonsense including color, size, and shape. Our code is available at https://github.com/Victorwz/VaLM.

View on arXivView PDF

Code Implementations(1)

Victorwz/VaLMOfficial100%

VaLM: Visually-augmented Language Modeling. ICLR 2023.

563Python, Jupyter NotebookMay 20, 20223 years ago
deep-learningpre-trained-language-modelsvision-languagevisually-grounded-language-learning

Similar Papers

Cite this paper

@article{wang2022visuallyaugmented,
  title  = {Visually-Augmented Language Modeling},
  author = {Weizhi Wang and Li Dong and Hao Cheng and Haoyu Song and Xiaodong Liu and Xifeng Yan and Jianfeng Gao and Furu Wei},
  year   = {2022},
  eprint = {2205.10178},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.10178}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.10178.svg)](https://codeofpaper.com/paper/2205.10178)

Discussion