MAPL: Parameter-Efficient Adaptation of Unimodal Pre-Trained Models for Vision-Language Few-Shot Prompting

Oscar Mañas, Pau Rodríguez, Saba Ahmadi, Aida Nematzadeh, Yash Goyal, Aishwarya Agrawal

Abstract

Large pre-trained models have proved to be remarkable zero- and (prompt-based) few-shot learners in unimodal vision and language tasks. We propose MAPL, a simple and parameter-efficient method that reuses frozen pre-trained unimodal models and leverages their strong generalization capabilities in multimodal vision-language (VL) settings. MAPL learns a lightweight mapping between the representation spaces of unimodal models using aligned image-text data, and can generalize to unseen VL tasks from just a few in-context examples. The small number of trainable parameters makes MAPL effective at low-data and in-domain learning. Moreover, MAPL's modularity enables easy extension to other pre-trained models. Extensive experiments on several visual question answering and image captioning benchmarks show that MAPL achieves superior or competitive performance compared to similar methods while training orders of magnitude fewer parameters. MAPL can be trained in just a few hours using modest computational resources and public datasets.

Introduction

In the current landscape of Large Language Models (LLMs), the prevailing trend has been "bigger is better." However, as we move toward multimodal systems that can "see" and "reason" about visual data, the computational cost of training billions of new parameters becomes a significant barrier. The researchers behind MAPL (Multimodal Adaptation of Pre-trained vision and Language models) propose an alternative: instead of training massive new architectures, we can bridge existing, frozen unimodal models using a surprisingly small, lightweight interface.

MAPL addresses the need for a modular and data-efficient way to connect vision and language without compromising the pre-trained knowledge stored in foundation models. By reusing frozen unimodal components, MAPL achieves competitive performance on vision-language (VL) tasks while training orders of magnitude fewer parameters than existing state-of-the-art models.

The MAPL Architecture

The core of MAPL is a Mapping Network that acts as a translator between two distinct worlds: a frozen vision encoder (CLIP ViT-L/14) and a frozen language model (GPT-J 6B).

The Transformer Bridge

Rather than using a simple linear projection, MAPL employs a 4-layer Transformer encoder. This bridge takes visual features and converts them into "visual tokens" that the language model can interpret as part of its text prompt. To maintain extreme parameter efficiency, the architecture utilizes a dimensionality bottleneck, projecting visual features (1024-dim) down to 256-dim before expanding them to the language model's embedding space (4096-dim).

Learned Constant Embeddings

Inspired by the DETR (Detection Transformer) architecture, MAPL uses a fixed set of "learned queries." This mechanism decouples the number of output visual tokens from the input image resolution, ensuring that the model remains efficient during inference regardless of image complexity. Crucially, both the vision and language foundations remain 100% frozen; only the 3.4 million parameters within the mapping network are updated during training.

Experimental Setup and Data

Training on "Clean" Data

MAPL was pre-trained using the Conceptual Captions (CC) dataset. A key finding of the study was that quality outweighs quantity for small mapping networks. The researchers discovered that training on a filtered subset of 398,000 highly aligned image-text pairs (dubbed CC-clean) yielded superior results compared to using the full, noisier dataset of 3.3 million pairs. This suggests that lightweight adapters are particularly sensitive to data noise.

Evaluation Benchmarks

The model was evaluated across several diverse benchmarks:

  • Visual Question Answering (VQA): VQAv2, OK-VQA, TextVQA, and VizWiz-VQA.
  • Image Captioning: COCO Captions, TextCaps, and VizWiz-Captions.
  • Low-Data Scenarios: The team tested the model's robustness by training on tiny 1% subsets of data to simulate data-scarce environments.

Key Insights

  1. Modularity as a Superpower: Because the mapping network is external, the architecture is future-proof. Upgrading the vision encoder or the language model is straightforward, and improvements in unimodal models translate directly to better multimodal performance.
  2. In-Context Learning: MAPL successfully inherits the few-shot capabilities of the underlying GPT-J model. By providing a few examples of (Image + Question + Answer) in the prompt, the model can adapt to new tasks without further weight updates.
  3. Continuous Embeddings vs. Textual Descriptions: The study compared MAPL to methods like PICa, which convert images into text captions before processing. MAPL outperformed these approaches, proving that language models can extract more nuanced information from continuous visual embeddings than from discrete text descriptions.

Results and Performance

MAPL demonstrates remarkable efficiency across several metrics:

  • Parameter Efficiency: MAPL utilizes approximately 12x fewer trainable parameters than the "Frozen" model (3.4M vs 40M) and 57x fewer than Flamingo-9B (194M).
  • Task Performance: On VQAv2, MAPL achieved a 4-shot accuracy of 45.13%, significantly outperforming the Frozen baseline (38.20%).
  • Training Speed: The model can be fully trained in just 4 hours using 4 A100 GPUs, making multimodal research accessible to smaller laboratories and individual researchers.
  • Low-Data Dominance: In 1% data settings, MAPL remained effective, outperforming much larger models trained on the same limited data slices.

Limitations and Future Directions

Despite its efficiency, MAPL faces a "few-shot plateau," where performance gains diminish after approximately four examples. This is likely because the model is trained on single image-caption pairs, making it less adept at processing long sequences of multiple images. Additionally, the mapping network shows sensitivity to random initialization, suggesting that performance can vary based on the initial seed.

Future work may involve exploring different "pretext" tasks, such as training on sequences of images, or extending the architecture to work with masked language models like BERT or RoBERTa.

Conclusion

MAPL proves that building powerful multimodal systems does not always require massive computational budgets. By focusing on efficient, modular bridges between existing unimodal models, MAPL provides a blueprint for high-performance, accessible AI that leverages the best of both vision and language pre-training.

Summary updated

BibTeX
@inproceedings{manas2023mapl,
  author = {Oscar Mañas and Pau Rodríguez and Saba Ahmadi and Aida Nematzadeh and Yash Goyal and Aishwarya Agrawal},
  title = {{MAPL: Parameter-Efficient Adaptation of Unimodal Pre-Trained Models for Vision-Language Few-Shot Prompting}},
  booktitle = {EACL},
  year = {2023},
  url = {https://openreview.net/forum?id=U5B_dgSkhum},
}
Figure