TL;DR
CART (Cross-modal Autoregressive Retrieval Transformer) is the first generative cross-modal retrieval framework that comprehensively supports text-to-image, text-to-audio, and text-to-video search. By discretizing multimodal data into hierarchical, coarse-to-fine semantic identifiers, CART redefines retrieval as a sequence-to-sequence generation task, achieving state-of-the-art accuracy while maintaining stable, high-throughput inference independent of dataset size.
What Problem Does This Paper Address?
Traditional cross-modal retrieval relies on either single-tower or dual-tower architectures. Single-tower models excel at capturing fine-grained interactions between queries and candidates but suffer from extreme latency because they must compute scores for every candidate at inference time. Dual-tower models (like CLIP) pre-compute candidate embeddings to improve speed, but they often struggle to perfectly align different modalities within a joint embedding space, leading to a drop in accuracy.
Generative retrieval has emerged as a powerful alternative in text document search. Instead of scoring candidates, a sequence-to-sequence model directly generates a unique "docID" for the target document. However, applying this to multimodal data introduces major hurdles: images, audio, and video lack natural text identifiers (like titles or keywords), and low-level sensory features have a massive semantic gap when paired with high-level natural language queries.
Methods
The authors introduce CART, which solves these challenges through three core components:
- Coarse-to-Fine Identifier Generation: To turn continuous multimodal data into discrete tokens, CART uses a two-step discretization pipeline. First, it extracts embeddings using a pre-trained model (ImageBind). It applies K-Means clustering to generate a "coarse token" representing the high-level category. It then subtracts the cluster centroid and passes the residual embedding through a Residual Quantization Variational Autoencoder (RQ-VAE) to produce "fine tokens" capturing subtle details. Finally, a "unique token" from a prefix database is appended to prevent identifier collisions.
- Caption Enhancement: To teach the model the relationship between the generated identifiers and natural language, the authors use pre-trained multimodal models to generate descriptive captions for each candidate, using them as training queries.
- Coarse-to-Fine Feature Fusion: Within the standard encoder-decoder architecture, CART implements a two-branch fusion strategy. The Coarse Fusion branch concatenates outputs from all encoder layers to capture multi-level query semantics globally. The Fine Fusion branch treats each encoder layer as an "expert" and dynamically weights their contributions using a memory-augmented mechanism.
During inference, CART utilizes a constrained beam search guided by a prefix tree of valid identifiers, ensuring the model never generates a non-existent candidate ID.
Datasets
The framework was validated across six widely recognized benchmarks spanning three modalities:
- Text-to-Image: Flickr30K and MS-COCO
- Text-to-Audio: Clotho and AudioCaps
- Text-to-Video: MSR-VTT and MSVD
Key Insights and Ideas
- Multimodal Discretization is Viable: Continuous visual and auditory embeddings can be successfully compressed into discrete token sequences that retain hierarchical semantic meaning.
- The Power of Residuals: Relying solely on hierarchical K-Means loses semantic information between different clusters. Combining K-Means with RQ-VAE allows the model to capture both broad categories and fine-grained nuances effectively.
- Visualizing Structure: t-SNE visualizations of the generated identifiers show tight intra-cluster distributions and distinct inter-cluster separations, confirming that the generated IDs truly reflect the underlying semantics of the candidates.
Key Results
- Performance Superiority: CART consistently outperformed state-of-the-art dual-tower models (including CLIP, OpenCLIP, MobileCLIP, and LanguageBind) across all three retrieval tasks. For instance, on Flickr30K (Text-to-Image), CART achieved an R@1 of 81.8% compared to ImageBind's 74.9%. On MSVD (Text-to-Video), CART reached an R@1 of 63.6%, beating LanguageBind by over 10%.
- Massive Efficiency Gains: When evaluated against single-tower models on a simulated 1-million candidate corpus, CART maintained a stable throughput of 105.8 queries per second, while single-tower models like BLIP-2 choked at fewer than 2 queries per second.
Limitations and Future Work
The authors point out two main limitations of the current framework:
- Static Corpora Assumption: Generative retrieval models encode candidate information directly into their parameters. If the database changes dynamically (e.g., adding new images or videos), the model requires continuous learning strategies to update its memory without full retraining.
- Query Modality Constraints: The current version of CART only supports natural language queries. Future work will focus on developing a unified embedding space to accommodate multimodal queries (e.g., image-to-image or audio-to-video retrieval).
Summary updated