Introduction
In cross-modal retrieval—such as searching for a specific video using a text prompt—researchers typically face a trade-off between accuracy and efficiency. Traditional approaches fall into two categories: Single-Tower Models, which offer high accuracy through fine-grained interactions but are computationally prohibitive for large-scale use, and Dual-Tower Models (like CLIP), which are fast but often suffer from a "modal gap" that limits alignment quality.
ACE (Cross-modal Autoregressive Retrieval Transformer) introduces a third paradigm: Generative Retrieval. Instead of calculating similarity scores across a massive database, ACE treats retrieval as a sequence-to-sequence task, training the model to directly "generate" the unique identifier (ID) of the relevant item. This approach aims to combine the deep semantic understanding of single-tower models with the inference speed required for real-time applications.
Methodology
The ACE framework addresses the challenge of discretizing continuous multi-modal data (images, audio, video) into predictable "names" through three primary innovations:
Coarse-to-Fine Semantic Identifiers
To convert continuous embeddings into discrete tokens, ACE employs a hierarchical structure. It first uses K-Means clustering to assign a "coarse" category token representing the general semantic neighborhood. Subsequently, a Residual Quantization Variational AutoEncoder (RQ-VAE) captures subtle details as "fine" tokens. A unique counter token is appended to ensure every item has a distinct, searchable identifier.
Caption Enhancement and Feature Fusion
To bridge the gap between natural language queries and abstract IDs, ACE utilizes pre-trained models to generate descriptive captions for all candidates, providing high-quality training signals. Furthermore, the model's decoder utilizes a Coarse-to-Fine Feature Fusion strategy, pulling information from all encoder layers rather than just the final output. This allows the model to maintain awareness of both broad regional context and fine-grained details during the generation process.
Experimental Setup
ACE was evaluated across six diverse benchmarks spanning three modalities:
- Image: Flickr30K and MS-COCO.
- Audio: Clotho and AudioCaps.
- Video: MSR-VTT and MSVD.
These benchmarks allow for direct comparison against established state-of-the-art models like CLIP, BLIP-2, and InternVL-G.
Key Results and Insights
- Superior Efficiency: ACE achieved a throughput of 105.8 queries per second, significantly outperforming single-tower models like BLIP-2 (1.68/s) and InternVL-G (2.03/s). Crucially, generative retrieval latency remains stable regardless of dataset size, as the model always generates a fixed-length ID sequence.
- High Accuracy: On the Flickr30K dataset, ACE reached an 81.8% Recall@1, vastly outperforming the CLIP dual-tower model (55.9%) and rivaling the performance of much larger single-tower architectures.
- Cross-Modal Robustness: The framework demonstrated consistent state-of-the-art or near-SOTA performance across text-to-image, text-to-audio, and text-to-video tasks, validating the effectiveness of the hierarchical discretization scheme.
Conclusion and Future Work
ACE demonstrates that retrieval can be effectively framed as a language generation task, bypassing the need for a perfectly aligned unified embedding space. However, challenges remain regarding dynamic corpora, as adding new items currently requires model fine-tuning. Future research will focus on continuous learning techniques to handle evolving datasets and expanding the framework to support multi-modal queries (e.g., image-to-video retrieval).
Summary updated