[Paper Review] MAGMA -- Multimodal Augmentation of Generative Models through Adapter-based Finetuning
MAGMA introduces a parameter-efficient method to augment frozen generative language models with vision capabilities using adapter-based finetuning, enabling end-to-end multimodal generation from arbitrary visual and textual inputs. It achieves state-of-the-art performance on OKVQA and competitive results on other benchmarks while training on only ~0.2% of the data used by SimVLM.
Large-scale pretraining is fast becoming the norm in Vision-Language (VL) modeling. However, prevailing VL approaches are limited by the requirement for labeled data and the use of complex multi-step pretraining objectives. We present MAGMA - a simple method for augmenting generative language models with additional modalities using adapter-based finetuning. Building on Frozen, we train a series of VL models that autoregressively generate text from arbitrary combinations of visual and textual input. The pretraining is entirely end-to-end using a single language modeling objective, simplifying optimization compared to previous approaches. Importantly, the language model weights remain unchanged during training, allowing for transfer of encyclopedic knowledge and in-context learning abilities from language pretraining. MAGMA outperforms Frozen on open-ended generative tasks, achieving state of the art results on the OKVQA benchmark and competitive results on a range of other popular VL benchmarks, while pretraining on 0.2% of the number of samples used to train SimVLM.
Motivation & Objective
- To develop a parameter-efficient method for integrating vision into frozen autoregressive language models without fine-tuning the language weights.
- To enable open-ended, generative multimodal tasks using a single, unified language modeling objective.
- To improve upon the Frozen method by introducing adapter layers and a curated pretraining dataset, enhancing performance while maintaining model knowledge and in-context learning.
- To demonstrate that a small fraction of high-quality data can outperform large-scale noisy datasets in multimodal pretraining.
- To explore the effectiveness of different vision encoders and adapter configurations across diverse downstream vision-language tasks.
Proposed method
- MAGMA uses a frozen autoregressive language model (e.g., GPT-J) as the core decoder, with a CLIP-based ResNet visual encoder as the vision backbone.
- Adapter layers are inserted into the language model’s attention and feed-forward sublayers, which are fine-tuned while the main LM weights remain frozen.
- A visual prefix, derived from the CLIP encoder, is concatenated to the input tokens to condition the language model on image features.
- Pretraining is performed using a standard next-token prediction objective on a curated dataset of ~25 million image-text pairs, including downstream task data.
- The method enables zero-shot and few-shot inference on vision-language tasks without task-specific head finetuning.
- Model performance is evaluated via zero-shot inference on benchmarks like VQA, OKVQA, and NoCaps, with additional finetuning on training splits to boost single-task performance.
Experimental results
Research questions
- RQ1Can adapter-based finetuning effectively augment a frozen language model with vision capabilities while preserving its pre-trained knowledge?
- RQ2Does training on a small, curated dataset of high-quality image-text pairs outperform large-scale, noisier datasets in multimodal pretraining?
- RQ3How do different vision encoders (e.g., CLIP-RN50x16 vs. others) and adapter configurations affect downstream performance across diverse vision-language tasks?
- RQ4To what extent can a frozen language model perform complex reasoning and OCR tasks without explicit supervision?
- RQ5Can the model generalize to multi-step reasoning tasks through factored cognition prompting?
Key findings
- MAGMA achieves state-of-the-art accuracy on the OKVQA benchmark, outperforming prior methods including Frozen and competing with SimVLM.
- The model achieves competitive results on NoCaps and other benchmarks, with performance surpassing that of the Frozen baseline despite using only ~0.2% of SimVLM’s pretraining data.
- The CLIP-RN50x16 visual encoder significantly outperforms other vision backbones in ablation studies, particularly on open-ended reasoning tasks.
- Adapter-tuned models consistently outperform visual prefix-only methods, demonstrating the importance of parameter-efficient adaptation in the language model’s internal representations.
- The inclusion of downstream task training data in the pretraining dataset leads to a substantial performance boost, especially on VQA and image captioning tasks.
- MAGMA shows robustness to adversarial typographic attacks that fool CLIP, and exhibits strong few-shot OCR and text imputation capabilities without supervised finetuning.
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.