Grounding Language Models to Images for Multimodal Inputs and Outputs

Jing Yu Koh, R. Salakhutdinov, Daniel Fried
2/12/2026

No official code found. Best implementation: kohjingyu/fromage (485 stars, Apache-2.0, last commit 2023-10-30).

Abstract

We propose an efficient method to ground pretrained text-only language models to the visual domain, enabling them to process arbitrarily interleaved image-and-text data, and generate text interleaved with retrieved images. Our method leverages the abilities of language models learnt from large scale text-only pretraining, such as in-context learning and free-form text generation. We keep the language model frozen, and finetune input and output linear layers to enable cross-modality interactions. This allows our model to process arbitrarily interleaved image-and-text inputs, and generate free-form text interleaved with retrieved images. We achieve strong zero-shot performance on grounded tasks such as contextual image retrieval and multimodal dialogue, and showcase compelling interactive abilities. Our approach works with any off-the-shelf language model and paves the way towards an effective, general solution for leveraging pretrained language models in visually grounded settings.

View on arXivView PDF

Code Implementations(1)

kohjingyu/fromageCommunity100%
Apache-2.0

🧀 Code and models for the ICML 2023 paper "Grounding Language Models to Images for Multimodal Inputs and Outputs".

48537Python, Jupyter NotebookJan 27, 20232 years agoApache-2.0
computer-visionlarge-language-modelsmachine-learningnatural-language-processing

Similar Papers

Cite this paper

@article{koh2026grounding,
  title  = {Grounding Language Models to Images for Multimodal Inputs and Outputs},
  author = {Jing Yu Koh and R. Salakhutdinov and Daniel Fried},
  year   = {2026},
  eprint = {2301.13823},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2301.13823},
  journal = {ICML 2023 2023}
}

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/2301.13823.svg)](https://codeofpaper.com/paper/2301.13823)

Discussion