Recurrence Meets Transformers for Universal Multimodal Retrieval

Davide Caffagni, Sara Sarto, Marcella Cornia, Lorenzo Baraldi, Rita CucchiaraarXiv 2025 · DOI

Abstract

We present ReT-2, a unified retrieval model designed for complex multimodal search scenarios where both queries and documents contain interleaved text and images. ReT-2 employs a recurrent feature fusion mechanism inspired by LSTMs to integrate multi-layer features from vision-language backbones into a compact, single-token representation. By strategically pruning layers and reducing token redundancy, ReT-2 achieves state-of-the-art performance on the M2KR benchmark while delivering a 500x speedup over existing late-interaction models. Our results demonstrate that capturing fine-grained multi-layer information through recurrence significantly enhances retrieval accuracy for knowledge-intensive visual tasks.

1. Introduction

As Multimodal Large Language Models (MLLMs) proliferate, the demand for robust Retrieval-Augmented Generation (RAG) systems has increased. Effective RAG requires retrievers that can handle "universal" modalities—where queries and documents may consist of text, images, or both. Traditional models often struggle with this flexibility or rely solely on the final layer of backbones like CLIP, which discards the fine-grained visual details (e.g., textures, specific shapes) necessary for precise retrieval. While "late-interaction" models attempt to solve this by keeping more tokens, they suffer from high computational latency and memory bloat. ReT-2 addresses these challenges by fusing multi-layer information into a highly efficient single-token representation.

2. Methodology: ReT-2 Architecture

ReT-2 (Recurrence-enhanced Transformer) introduces several architectural innovations to balance representational richness with inference speed:

  • Recurrent Feature Fusion: At the core of ReT-2 is a Transformer-based cell with LSTM-inspired gating (forget and input gates). This cell processes a sequence of network layers rather than words, dynamically determining which low-level and high-level features to retain.
  • Layer Pruning & Token Reduction: To optimize efficiency, ReT-2 samples three representative layers (early, middle, and late) from the backbones instead of processing all layers. Furthermore, it compresses the representation into a single token per modality, avoiding the "rank collapse" observed in multi-token models and drastically simplifying similarity calculations.
  • Global Feature Injection: The model explicitly re-injects global pooler tokens (e.g., [CLS]) into the final embedding to maintain high-level semantic context.
  • Shared Weights: ReT-2 utilizes shared weights for both query and document encoders, reducing complexity and improving generalization.
The ReT-2 architecture featuring token reduction, layer pruning, and recurrent feature fusion.

3. Experimental Results

ReT-2 was evaluated on the M2KR and M-BEIR benchmarks, which include diverse retrieval tasks ranging from text-to-image to complex multimodal-to-multimodal searches.

3.1 Accuracy and Efficiency

On the M2KR benchmark, ReT-2 achieved an average score of 67.9, significantly outperforming the previous state-of-the-art PreFLMR (57.4) and the original ReT (61.5). The model's efficiency is particularly noteworthy: by moving away from late-interaction matrices to a single-token dot product, ReT-2 achieves an inference time of 0.8ms, representing a ~500x speedup over PreFLMR (406.1ms).

Performance comparison of ReT-2 against baselines across eight multimodal retrieval tasks.

3.2 Downstream RAG Impact

When integrated with an off-the-shelf MLLM like Qwen2.5-VL, ReT-2's superior retrieval capabilities directly translated to better answer accuracy. On the InfoSeek dataset, the RAG pipeline reached 26.4% accuracy, a substantial improvement over the 16.8% achieved using PreFLMR as the retriever.

4. Key Insights and Conclusion

The development of ReT-2 yielded several critical insights for multimodal retrieval. First, increasing token counts can lead to redundancy; a single, well-fused token is often more effective and efficient. Second, strategically sampling a few layers across the backbone provides a sufficient balance of low-level and high-level features.

While ReT-2 sets a new standard for efficient universal retrieval, future work remains in scaling these techniques to even larger foundation models. Currently, scaling visual backbones (e.g., to ViT-H) requires unfreezing the weights during training to see consistent gains. Nonetheless, ReT-2 demonstrates that recurrence is a powerful tool for bridging the gap between deep transformer features and efficient retrieval.

Summary updated

BibTeX
@misc{caffagni2025recurrence,
  author = {Davide Caffagni and Sara Sarto and Marcella Cornia and Lorenzo Baraldi and Rita Cucchiara},
  title = {{Recurrence Meets Transformers for Universal Multimodal Retrieval}},
  year = {2025},
  eprint = {2509.08897},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.08897},
}
Figure