CREM: Compression-Driven Representation Enhancement for Multimodal Retrieval and Comprehension

Lihao Liu, Biao Yang, Yan Wang, Da Li, Jiangxia Cao, Yuxiao Luo, Xiang Chen, Xiangyu Wu, Wei Yuan, Fan Yang, Guiguang Ding, Tingting Gao, Guorui Zhou

TL;DR

Multimodal Large Language Models (MLLMs) usually lose their text-generation capabilities when fine-tuned to perform image-text retrieval. CREM (Compression-driven Representation Enhanced Model) eliminates this trade-off by using learnable "chorus tokens" to compress multimodal inputs into a compact representation. This unified framework achieves state-of-the-art retrieval performance on MMEB while fully preserving the model's original generative capabilities.

What Problem Does This Paper Address?

While MLLMs excel at generative tasks like visual question answering and image description, they struggle to produce high-quality embeddings for downstream tasks like retrieval. To fix this, previous approaches applied contrastive fine-tuning to turn MLLMs into embedding models. However, this adaptation comes at a steep cost: the models lose their ability to generate coherent text, creating a strict trade-off between embedding and generation capabilities.

The authors argue that this trade-off is artificial. Both generation and retrieval fundamentally rely on the same core cognitive mechanisms: cross-modal alignment and contextual reasoning. The true challenge lies in the mismatch between output formats and optimization objectives. CREM bridges this gap by treating embedding learning as a form of extreme token compression.

Figure 1. Comparison of Different Paradigms. (a) Embedding models fall short on generation tasks. (b) Generative models lack retrieval capability. (c) Our proposed model CREM enables both in a single model.

Methods

CREM introduces a unified, compression-driven architecture featuring three key innovations:

  1. Compression-Based Prompt Design & Chorus Tokens: The authors introduce a small set of learnable <chorus> tokens inserted into the prompt template between the embedding instructions and generation instructions. These tokens act as a universal semantic bridge.
  2. Compression-Aware Attention Mask: To force these chorus tokens to aggregate information, CREM modifies the standard causal attention mask. Raw vision and text tokens are only visible to the chorus tokens. Subsequent question-and-answer tokens are completely blocked from seeing the raw inputs and can only attend to the chorus tokens. This creates an information bottleneck.
  3. Joint Optimization Strategy: The model is trained using a multi-task objective that combines an InfoNCE contrastive loss (for retrieval) and an autoregressive language modeling loss (for generation). To ensure robustness, a stochastic training mechanism randomly determines whether the generation task conditions on the full context or solely on the compressed chorus tokens.
Figure 2. Compression-Driven Training Framework of CREM. (a) The training pipeline integrates chorus tokens with contrastive and generative objectives under a unified prompt design equipped with compression-aware attention. Generation instructions and answers originate from diverse data sources. (b) Compression-aware attention mask enforcing token-level visibility constraints, where “+” indicates visible tokens and “–” indicates masked ones. (c) Two mixing strategies for generation training using different data sources. Homogeneous data are pseudo-labeled by an MLLM from retrieval pairs, whereas heterogeneous data are collected from open-source datasets.

Datasets

The model was trained and evaluated using a mix of retrieval and generation datasets:

  • Retrieval Training: The training split of the Massive Multimodal Embedding Benchmark (MMEB), covering classification, VQA, retrieval, and visual grounding.
  • Generation Training: ShareGPT-4V (heterogeneous open-source QA data) and a custom homogeneous dataset synthesized by Qwen2.5-VL-7B to provide QA-style pairs for every MMEB retrieval sample.
  • Evaluation: MMEB (for retrieval performance across 36 datasets) and six standard comprehension benchmarks: MMB, MMVet, AI2D, HallusionBench, MMMU, and MMStar.

Key Insights and Ideas

  • Embedding as Compression: The core "aha moment" is that embedding learning and token compression are two sides of the same coin. Both tasks require distilling dense, redundant visual features into high-level semantic primitives.
  • Generative Supervision Enhances Embeddings: Naively mixing retrieval and generation objectives usually degrades performance. However, under CREM's compression bottleneck, generative supervision actually improves retrieval embeddings by forcing the chorus tokens to retain fine-grained, structured semantic details.
  • Massive KV Cache Savings: Because the chorus tokens successfully compress visual information, the model can perform generation using only the 16 chorus tokens instead of the original ~1280 vision tokens. This represents an 80× token reduction while retaining 83% of the native generation quality, offering a massive reduction in memory usage for long-context deployment.

Key Results

CREM was evaluated across both 2B and 7B parameter scales, outperforming specialized baselines in both domains:

  • Multimodal Retrieval: On the MMEB benchmark, the CREM (7B) model achieved a state-of-the-art overall score of 72.1%, outperforming previous top embedding models like VLM2Vec (65.8%), mmE5 (69.8%), and CAFe (69.8%).
  • Multimodal Comprehension: While standard retrieval-tuned models (CREM_R) saw their comprehension scores tank to 58.0%, CREM (7B) maintained an average score of 63.2% across the six generation benchmarks—nearly matching the un-tuned native Qwen2-VL baseline (64.2%).

Limitations and Future Work

The authors note a distinct trade-off regarding the density of the representation space. Increasing the number of chorus tokens beyond 16 provided moderate gains in generation fidelity but eventually led to a degradation in retrieval accuracy. Finding the mathematical sweet spot for this bottleneck remains an open area of study.

Additionally, while this paper focuses on images and text, extending this compression-driven paradigm to video and long-document retrieval—where token counts explode exponentially—is a promising direction for future work.

Summary updated

BibTeX
@inproceedings{liu2026crem,
  author = {Lihao Liu and Biao Yang and Yan Wang and Da Li and Jiangxia Cao and Yuxiao Luo and Xiang Chen and Xiangyu Wu and Wei Yuan and Fan Yang and Guiguang Ding and Tingting Gao and Guorui Zhou},
  title = {{CREM: Compression-Driven Representation Enhancement for Multimodal Retrieval and Comprehension}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=Vk3fZ9br2S},
}
Figure