T2VIndexer: A Generative Video Indexer for Efficient Text-Video Retrieval
Yili Li, Jing Yu, Keke Gai, Bang Liu, Gang Xiong, Qi Wu
TL;DR
Text–video retrieval is often hampered by linear-time candidate evaluation over large video sets. This work introduces T2VIndexer, a sequence-to-sequence generative video indexer that directly generates video identifiers through a semantic Vi-SemTree, producing fast, constant-time pre-selection of candidates. It couples a multi-view query expansion pipeline using a Multimodal Large Language Model with a Prefix-Aware Weight-Adaptor decoder to map queries to SemIDs, and employs a two-stage retrieval: generative pre-selection followed by a conventional high-accuracy re-ranker on a small candidate set. The approach achieves substantial efficiency gains (30–50% faster) while maintaining or improving recall across MSR-VTT, MSVD, DiDeMo, and ActivityNet, and scales to large datasets. With easy integration into existing pipelines and strong empirical results, it offers a practical, scalable solution for real-time multimodal search.
Abstract
Current text-video retrieval methods mainly rely on cross-modal matching between queries and videos to calculate their similarity scores, which are then sorted to obtain retrieval results. This method considers the matching between each candidate video and the query, but it incurs a significant time cost and will increase notably with the increase of candidates. Generative models are common in natural language processing and computer vision, and have been successfully applied in document retrieval, but their application in multimodal retrieval remains unexplored. To enhance retrieval efficiency, in this paper, we introduce a model-based video indexer named T2VIndexer, which is a sequence-to-sequence generative model directly generating video identifiers and retrieving candidate videos with constant time complexity. T2VIndexer aims to reduce retrieval time while maintaining high accuracy. To achieve this goal, we propose video identifier encoding and query-identifier augmentation approaches to represent videos as short sequences while preserving their semantic information. Our method consistently enhances the retrieval efficiency of current state-of-the-art models on four standard datasets. It enables baselines with only 30\%-50\% of the original retrieval time to achieve better retrieval performance on MSR-VTT (+1.0%), MSVD (+1.8%), ActivityNet (+1.5%), and DiDeMo (+0.2%). The code is available at https://github.com/Lilidamowang/T2VIndexer-generativeSearch.
