[Paper Review] Grounding Language Models to Images for Multimodal Inputs and Outputs
FROMAGe grounds a frozen text-only LLM to the visual domain using linear mappings and a retrieval token, enabling interleaved image-text inputs and outputs with strong zero-shot multimodal capabilities.
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.
Motivation & Objective
- Leverage large text-only LLMs for multimodal understanding without full model fine-tuning.
- Enable processing of arbitrarily interleaved image and text inputs.
- Allow generation of free-form text interleaved with retrieved images.
- Achieve strong zero-shot performance on grounding tasks and multimodal dialogue.
- Provide a model-agnostic approach that scales with larger future LLMs.
Proposed method
- Keep the language model and visual encoder frozen during training.
- Learn lightweight translation layers to map between image and text embedding spaces.
- Introduce a [RET] token and train its embedding to support text-to-image retrieval.
- Train with a multi-task objective: image captioning and image-text retrieval using contrastive learning.
- Use linear mappings to project visual embeddings to text space (and vice versa) for cross-modality interactions.
- Train on Conceptual Captions (CC3M) with a single 6.7B OPT backbone and CLIP-based visual backbone.
Experimental results
Research questions
- RQ1Can a frozen language model be effectively grounded to vision to process interleaved image-text data?
- RQ2Does adding a dedicated [RET] token improve text-to-image retrieval within an autoregressive LLM?
- RQ3How does multimodal context (multiple captions and images) affect retrieval and generation performance?
- RQ4To what extent can a lightweight, model-agnostic grounding approach retain LLM in-context learning while enabling multimodal outputs?
Key findings
- FROMAGe achieves strong zero-shot performance on contextual image retrieval and multimodal dialogue.
- The model is trained efficiently (about 1 GPU day) with 97% of parameters frozen, updating only linear mappings and the [RET] token.
- Adding a [RET] token substantially improves retrieval performance (notably R@1 on VIST).
- Multimodal context (captions plus images) significantly improves retrieval over text-only context, demonstrating sensitivity to interleaved inputs.
- FROMAGe outperforms CLIP in many multimodal-context scenarios and enables interleaved image-text outputs not supported by some prior models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.