TL;DR
This paper introduces PUMA, a novel framework that makes large multimodal language models (MLLMs) more efficient for unified multimodal retrieval (UMR). PUMA achieves this through layer-pruning with self-distillation to reduce model size and a modality-adaptive contrastive learning loss to improve training efficiency and performance, especially in complex multimodal scenarios.
What Problem Does This Paper Address?
The demand for unified multimodal retrieval (UMR) – finding relevant information across various data types like images and text – is growing rapidly. While MLLMs show great promise for UMR due to their strong understanding capabilities, their massive size leads to high computational costs for both training and inference, hindering real-world deployment. Existing methods often struggle with efficiency or fail to effectively handle the diverse combinations of modalities in UMR. This paper aims to bridge this gap by developing an efficient UMR approach that retains the performance of large MLLMs while significantly reducing their resource footprint.
Methods
PUMA tackles the efficiency challenge from two main angles:
- Layer-Pruned Self-Distillation (Model Structure): The authors observe that for retrieval tasks, the shallow layers of MLLMs are most crucial for capturing multimodal information. They propose pruning away the deeper layers, significantly reducing the model's parameter count. To mitigate the performance degradation caused by pruning, they employ self-distillation. The original, unpruned model acts as a "teacher," providing its rich feature representations to guide the "student" (the pruned model). This allows the shallow layers of the pruned model to inherit the representational capacity of the deeper layers, resulting in a more compact yet capable model.
- Modality-Adaptive Contrastive Learning Loss (MAC-Loss) (Model Learning): Multimodal contrastive learning, a standard technique for training retrieval models, can suffer from rapid convergence and degraded representations when dealing with the inherent "gap" between different modalities. This leads to easy negative samples. PUMA introduces MAC-Loss, which adaptively partitions in-batch negative samples into "intra-modality" (harder) and "inter-modality" (simpler) groups based on the query's target modality. By applying different temperature coefficients to these groups, the model is encouraged to focus on the more challenging intra-modality negatives, leading to more effective learning and improved retrieval performance without requiring larger batch sizes or explicit hard negative sampling.
Datasets
The paper primarily uses the M-BEIR benchmark for training and evaluation. M-BEIR is a comprehensive benchmark for UMR, encompassing eight retrieval tasks across ten datasets and millions of candidate instances, covering various combinations of text and image inputs and outputs. They also mention using the Natural Language Inference (NLI) dataset for an initial text-to-text retrieval task.
Key Insights and Ideas
- Shallow Layers are Key for Retrieval: The research confirms that for UMR, the shallow layers of MLLMs are disproportionately important for aggregating multimodal information, while deeper layers are more focused on generative tasks. This insight is crucial for effective layer pruning.
- Self-Distillation Bridges the Pruning Gap: Simply pruning layers degrades performance. Self-distillation, by leveraging the original model's features, effectively transfers knowledge to the pruned shallow layers, preserving representational capacity.
- Modality Gaps Create Easy Negatives: The inherent differences between modalities (image vs. text) create challenges in contrastive learning, leading to "easy" negative samples that hinder effective learning.
- Adaptive Negative Sampling is Crucial: MAC-Loss demonstrates that intelligently separating and weighting negative samples based on their modality relative to the query is a powerful way to improve contrastive learning efficiency and effectiveness.
Key Results
- Efficiency Gains: PUMA achieves significant efficiency improvements. For example, compared to a fully fine-tuned Qwen2VL-7B model, PUMA reduces FLOPs by 57.3% and improves inference speed by 95.8%, effectively doubling throughput.
- Performance Preservation: Despite the substantial reduction in model size and computational cost, PUMA maintains comparable performance to the original MLLMs. It outperforms the CLIP-based model by 3.6 points and the LamRA-Ret-2B baseline by 2.3 points on the M-BEIR benchmark.
- Ablation Studies: Both layer-pruning with self-distillation and MAC-Loss contribute positively to performance. MAC-Loss shows particular effectiveness in multi-modal sub-tasks.
- Dynamic Pretraining Ratio: A dynamic weighting strategy for contrastive and self-distillation losses during pretraining yields better results than fixed ratios.
Limitations and Future Work
- Single-Modal Performance: The authors acknowledge that current MLLM-based UMR models, including PUMA, do not show a clear advantage over CLIP-based models on single-modal tasks.
- Future Directions: Future work could focus on improving performance on single-modal tasks and exploring the relationship between modality separation and modality gap for further advancements in UMR. The paper also highlights UMR's potential as an upstream task for Retrieval-Augmented Generation (RAG), suggesting future work in multimodal RAG.
Summary updated