TL;DR
Text-to-video retrieval at scale suffers from massive storage and computational bottlenecks when using traditional dense embedding models. This paper introduces GRDR (Generative Recall, Dense Reranking), a framework that replaces heavy video embeddings with compact, multi-view discrete "semantic IDs" for ultra-fast candidate recall, followed by a dense model for precise reranking. The result matches state-of-the-art accuracy while slashing index storage by up to 500$\times$ and accelerating retrieval by up to 300$\times$.
What Problem Does This Paper Address?
As video platforms scale to billions of clips, Text-to-Video Retrieval (TVR) faces a harsh trade-off between accuracy and efficiency. The current gold standard, Dense Retrieval, encodes videos and text queries into high-dimensional continuous vectors and ranks them via exhaustive pairwise similarity searches. While highly accurate, this approach scales poorly: loading massive embedding databases into memory creates a severe throughput bottleneck, and storage costs grow linearly with the corpus size.
An emerging alternative is Generative Retrieval (GR), which treats retrieval as a sequence-to-sequence problem. GR quantizes videos into discrete tokens called "semantic IDs" and trains a generative language model to auto-regressively decode these IDs directly from a text query. This offers near-constant inference and tiny storage footprints. However, standard GR fails as a standalone recall mechanism due to two fundamental flaws:
- Semantic Ambiguity: Videos are inherently polysemous (e.g., a cooking video features a dish, a technique, and specific utensils). Standard GR forces a rigid one-to-one mapping between a video and a single semantic ID, causing recall to fail if a user's query targets a different facet of the video.
- Cross-Modal Misalignment: Traditional GR tokenizers are trained purely on visual features via offline clustering, completely isolated from the text-based retrieval objective.
Methods
GRDR addresses these challenges by formalizing a two-stage Generative Recall + Dense Reranking paradigm.
The framework introduces three core technical innovations:
- Query-Guided Multi-View Video Tokenizer: To resolve semantic ambiguity, the tokenizer projects video features into $N_v$ distinct latent representations (views), allowing one video to map to multiple semantic IDs. To ground these views in real-world search patterns, the authors use an LLM to generate diverse pseudo-queries for each video, clustering them to guide each view encoder via cross-modal contrastive learning ($\mathcal{L}_{CL}$).
- Shared Codebook & Unified Co-Training: To fix cross-modal misalignment, the tokenizer and the generative retriever (a T5 model) share the exact same codebook embeddings. Crucially, the tokenizer switches from traditional $L_2$ distance quantization to cosine similarity matching. This aligns the geometric spaces of vector quantization and language model decoding, enabling bidirectional gradient flow and end-to-end optimization.
- Progressive Training Strategy: Training deep hierarchical quantization layers simultaneously can cause optimization instability. GRDR trains the architecture progressively—one codebook layer at a time—using a Hierarchical Consistency ($\mathcal{L}_{HC}$) loss to prevent earlier layers from drifting.
During inference, the generative retriever uses trie-constrained beam search to decode a compact candidate pool of videos, which are then deduplicated and passed to an off-the-shelf dense retriever (like X-Pool) for fine-grained reranking.
Datasets
The authors evaluated GRDR across four standard TVR benchmarks:
- MSR-VTT: 10,000 video clips with 20 captions each.
- ActivityNet: ~19,000 YouTube videos across 200 activity categories.
- LSMDC: 118,000 short clips derived from 202 movies.
- DiDeMo: 10,000 videos with detailed moment descriptions.
Experiments were conducted under two settings: the standard Inductive Setting (searching only across unseen test videos) and a more realistic Full-Corpus Setting (searching across the union of all training and test videos).
Key Insights and Ideas
- Polysemy as Parallel Paths: Instead of making semantic IDs longer (which increases error accumulation during auto-regressive decoding), GRDR creates parallel semantic paths. Matching even a single path is enough to successfully recall the video.
- Bridging the Geometric Gap: The realization that standard vector quantization ($L_2$ distance) and language model generation (dot-product/softmax) use incompatible geometries is key. Shifting the tokenizer to cosine similarity allows true end-to-end co-training without training collapse.
Key Results
GRDR achieves an optimal balance between effectiveness and efficiency, outperforming existing generative retrieval baselines and approaching the accuracy ceiling of pure dense retrieval models.
- Massive Speedup: In the full-corpus setting on the LSMDC dataset (0.1 million videos), GRDR achieves up to a 300$\times$ speedup over dense retrieval baselines, maintaining near-constant recall latency while dense methods slow down linearly.
- Order-of-Magnitude Storage Reduction: GRDR requires 42$\times$ less storage than video-level embeddings (CLIP4Clip) and 500$\times$ less storage than frame-level embeddings (X-Pool). For a 1-million video corpus, GRDR needs only 46MB to store its index.
- Competitive Accuracy: On MSR-VTT (Inductive), GRDR achieves a 46.0 R@1, drastically outperforming standard GR methods like TIGER (36.0) and nearly matching the standalone dense reranker ceiling (46.9).
Limitations and Future Work
- Code Collisions at Scale: In the full-corpus setting, different videos occasionally generate identical semantic IDs. While the deduplication step preserves accuracy, these collisions result in larger candidate pools, causing a slight latency increase during the reranking stage.
- Dependency on Pseudo-Queries: The multi-view tokenizer relies heavily on LLM-generated pseudo-queries during training to simulate diverse user intents. Exploring self-supervised visual decomposition methods that do not rely on external text generation models remains an open direction.
Summary updated