Abstract
Partially relevant video retrieval (PRVR) is a practical yet challenging task in text-to-video retrieval, where videos are untrimmed and contain much background content. The pursuit here is of both effective and efficient solutions to capture the partial correspondence between text queries and untrimmed videos. Existing PRVR methods, which typically focus on modeling multi-scale clip representations, however, suffer from content independence and information redundancy, impairing retrieval performance. To overcome these limitations, we propose a simple yet effective approach with active moment discovering (AMDNet). We are committed to discovering video moments that are semantically consistent with their queries. By using learnable span anchors to capture distinct moments and applying masked multi-moment attention to emphasize salient moments while suppressing redundant backgrounds, we achieve more compact and informative video representations. To further enhance moment modeling, we introduce a moment diversity loss to encourage different moments of distinct regions and a moment relevance loss to promote semantically query-relevant moments, which cooperate with a partially relevant retrieval loss for end-to-end optimization. Extensive experiments on two large-scale video datasets (i.e., TVR and ActivityNet Captions) demonstrate the superiority and efficiency of our AMDNet. In particular, AMDNet is about 15.5 times smaller (#parameters) while 6.0 points higher (SumR) than the up-to-date method GMMFormer on TVR.
Introduction
In real-world scenarios, text-to-video retrieval often involves long, untrimmed videos where only a small segment—a "moment"—is relevant to the user's query. This task, known as Partially Relevant Video Retrieval (PRVR), differs from standard retrieval where videos are pre-trimmed to match descriptions.
Existing approaches typically rely on dense clip modeling, which involves sliding windows of various scales across the video to generate numerous candidate clips. As illustrated in Figure 1, this method leads to significant information redundancy due to overlapping windows and high computational costs from processing hundreds of embeddings. Moreover, the prevalence of "background" content in untrimmed videos introduces noise that degrades retrieval accuracy.
The AMDNet Framework
To address these inefficiencies, we introduce AMDNet (Active Moment Discovering Network). Instead of exhaustive searching, AMDNet "actively" discovers a compact set of salient moments that align with the query.
Active Moment Discovering
The core of AMDNet lies in its ability to predict a fixed number ($H$) of video moments using learnable span anchors. Each anchor is defined by a center ($c$) and a width ($w$), which are learned parameters that adapt to the video's temporal structure.
These predicted spans are then utilized in a Masked Multi-moment Attention mechanism. By converting the spans into Gaussian masks, the model can selectively attend to the most relevant frames while suppressing redundant background information. This results in a highly compact video representation that captures the essence of the relevant content without the overhead of dense modeling.
Multi-task Optimization
Since PRVR datasets often lack explicit temporal labels (start/end times), we employ a multi-task loss function to guide the discovery process:
- Partially Relevant Retrieval Loss: Ensures global alignment between the video and the text query.
- Moment Diversity Loss: Encourages the $H$ discovered moments to cover distinct temporal regions, preventing the model from focusing on a single segment.
- Moment Relevance Loss: Forces the discovered moments to be semantically closer to the query than the global video average, effectively filtering out background noise.
Experiments and Results
We evaluated AMDNet on two major benchmarks: ActivityNet Captions and TVR. Our results demonstrate that AMDNet not only achieves superior retrieval performance but does so with unprecedented efficiency.
As shown in Figure 6, AMDNet occupies the top-left quadrant of the performance-efficiency trade-off. On the TVR dataset, it achieved a SumR of 205.1, surpassing the previous state-of-the-art, GMMFormer, by 6.0 points. Remarkably, AMDNet is 15.5 times smaller in terms of trainable parameters (0.89M vs. 12.85M) and significantly faster in inference.
Conclusion
AMDNet represents a significant step toward practical PRVR by replacing redundant dense modeling with an active discovery mechanism. By focusing on a few salient moments, the model achieves state-of-the-art accuracy while remaining lightweight enough for large-scale real-world applications. Future work will explore enhancing robustness against highly ambiguous queries through semantic context augmentation.
Summary updated