PUMA: Layer-Pruned Language Model for Efficient Unified Multimodal Retrieval with Modality-Adaptive Learning

Yibo Lyu, Rui Shao, Gongwei Chen, Yijie Zhu, Weili Guan, Liqiang Nie · OpenReview

Introduction

Unified Multimodal Retrieval (UMR) represents the next frontier in search technology, enabling systems to process any combination of text and images as both queries and search results. While Multimodal Large Language Models (MLLMs) like Qwen2-VL have significantly advanced the state-of-the-art in understanding these complex inputs, their deployment remains challenging. The massive parameter counts of these models lead to high training costs and prohibitive inference latency in production environments.

To bridge the gap between high-performance multimodal understanding and practical efficiency, we introduce PUMA (Layer-Pruned Language Model). PUMA optimizes UMR through a dual approach: structural pruning to reduce computational overhead and modality-adaptive learning to enhance retrieval accuracy.

The PUMA Framework

PUMA addresses the efficiency-performance trade-off through two primary innovations: Layer-Pruned Self-Distillation and Modality-Adaptive Contrastive Learning.

1. Layer-Pruned Self-Distillation

Research into the internal mechanics of MLLMs suggests that multimodal fusion—the process of integrating visual and textual information—primarily occurs in the shallow layers of the network. In contrast, the deeper layers are often specialized for next-token prediction and complex linguistic reasoning, which may be redundant for retrieval tasks.

PUMA prunes the model by retaining only the essential shallow layers (e.g., keeping the first 12 layers of a 32-layer model). To ensure that the pruned model does not lose critical semantic knowledge, we employ self-distillation. During this process, the features from the original, deeper model serve as a teacher signal, guiding the "shallow" PUMA model to inherit the complex representational capabilities of its larger predecessor.

2. Modality-Adaptive Contrastive Learning (MAC-Loss)

A common pitfall in training multimodal retrievers is the "modality gap." Standard contrastive learning methods, such as InfoNCE loss, often allow models to "cheat" by simply distinguishing between data types (e.g., identifying an image vs. text) rather than learning the underlying content.

Our proposed MAC-Loss solves this by categorizing in-batch negatives into two groups:

  • Intra-modality negatives: Harder samples where the query and negative are the same type (e.g., an image query vs. a different image).
  • Inter-modality negatives: Easier samples where the query and negative are different types (e.g., an image query vs. a text description).

By adaptively assigning different "temperatures" to these groups, MAC-Loss forces the model to focus on the most challenging semantic distinctions, preventing premature convergence on easy solutions and improving overall retrieval precision.

Experimental Evaluation

Datasets and Benchmarks

We evaluated PUMA using a two-stage training approach. First, the model underwent pre-training on Natural Language Inference (NLI) datasets to establish foundational text-to-text retrieval capabilities. Subsequently, it was fine-tuned on M-BEIR (Multimodal Benchmark for Retrieval), a comprehensive suite featuring 8 tasks across 10 datasets, including VisualNews, MSCOCO, and WebQA. M-BEIR covers a wide spectrum of scenarios, from unimodal retrieval to complex "Multi" tasks where both the query and the target are multimodal.

Performance and Efficiency Results

PUMA demonstrates that significant pruning can be achieved without sacrificing—and in some cases, even improving—retrieval performance:

  • Efficiency Gains: PUMA achieved a 95.8% increase in inference speed and a 52.7% reduction in FLOPs compared to the full-sized MLLM baseline.
  • Resource Optimization: The model required 4x less GPU memory during training, enabling high-performance UMR development on more accessible hardware (e.g., 4x A800 GPUs instead of 16x).
  • Retrieval Accuracy: On the M-BEIR benchmark, PUMA achieved an average Recall of 54.4, outperforming the previous state-of-the-art MLLM retriever, LamRA-Ret (51.8), and significantly surpassing CLIP-based models on complex multimodal tasks.

Conclusion and Future Work

PUMA proves that for retrieval-centric tasks, the "reasoning" depth of a full 7B+ parameter LLM is often overkill. By focusing on the fusion-heavy shallow layers and optimizing the contrastive learning process to account for modality gaps, we can create retrievers that are both faster and more accurate.

While PUMA currently trails specialized CLIP models in simple single-modality tasks, its strength in complex, unified retrieval makes it an ideal candidate for Multimodal Retrieval-Augmented Generation (MM-RAG) systems. Future work will focus on generalizing these pruning strategies across diverse MLLM backbones and further closing the gap in unimodal performance.

Summary updated

BibTeX
@inproceedings{lyu2025puma,
  author = {Yibo Lyu and Rui Shao and Gongwei Chen and Yijie Zhu and Weili Guan and Liqiang Nie},
  title = {{PUMA: Layer-Pruned Language Model for Efficient Unified Multimodal Retrieval with Modality-Adaptive Learning}},
  booktitle = {ACM Multimedia},
  year = {2025},
  doi = {10.1145/3746027.3755029},
}
Figure