Prototypes are Balanced Units for Efficient and Effective Partially Relevant Video Retrieval

WonJun Moon, Cheol-Ho Cho, Woojin Jun, Minho Shim, Taeoh Kim, Inwoong Lee, Dongyoon Wee, Jae-Pil Heo

Abstract

In a retrieval system, simultaneously achieving search accuracy and efficiency is inherently challenging. This challenge is particularly pronounced in partially relevant video retrieval (PRVR), where incorporating more diverse context representations at varying temporal scales for each video enhances accuracy but increases computational and memory costs. To address this dichotomy, we propose a prototypical PRVR framework that encodes diverse contexts within a video into a fixed number of prototypes. We then introduce several strategies to enhance text association and video understanding within the prototypes, along with an orthogonal objective to ensure that the prototypes capture a diverse range of content. To keep the prototypes searchable via text queries while accurately encoding video contexts, we implement cross- and uni-modal reconstruction tasks. The cross-modal reconstruction task aligns the prototypes with textual features within a shared space, while the uni-modal reconstruction task preserves all video contexts during encoding. Additionally, we employ a video mixing technique to provide weak guidance to further align prototypes and associated textual representations. Extensive evaluations on TVR, ActivityNet-Captions, and QVHighlights validate the effectiveness of our approach without sacrificing efficiency.

1. Introduction

Video search often requires finding specific moments—such as "a person opening a car door"—within long, untrimmed videos. This task, known as Partially Relevant Video Retrieval (PRVR), currently faces a significant dichotomy between accuracy and efficiency.

Comparison of PRVR modeling approaches and their performance-memory trade-offs.

Exhaustive methods like MS-SL model every possible clip length and window, which is highly accurate but results in a massive memory footprint and slow search speeds. Conversely, efficient methods like GMMFormer use mathematical constraints to reduce data but often focus too narrowly on local clips, missing broader temporal context. This paper introduces a prototypical framework that compresses diverse video contexts into a fixed number of learnable "prototypes," achieving state-of-the-art accuracy while reducing memory consumption by up to 90%.

2. Methodology

The proposed framework encodes a video's rich, multi-scale temporal information into a compact set of representative units.

The Prototypical PRVR Framework architecture.

2.1 Prototype Construction

Instead of storing thousands of clip features, the model learns a small, fixed set of prototypes (typically 30) per video. A "Prototype Generator" based on cross-attention allows globally shared learnable placeholders to attend to the video's raw features. This aggregates diverse temporal scales—from short actions to long scenes—into a few representative units.

2.2 Dual Reconstruction Tasks

To ensure these prototypes are searchable and preserve critical information, the authors introduce two training tasks:

  • Cross-modal Mask Reconstruction: The model predicts "masked out" words in a text query using only the retrieved visual prototype. This forces the prototype to capture the semantic essence of the language.
  • Uni-modal Reconstruction: The model reconstructs the original video features from the prototypes, ensuring that no critical visual information is lost during the compression process.

2.3 Diversification and Guidance

An Orthogonal Loss is applied to force prototypes to be distinct from one another, preventing representation collapse. Additionally, a Video Mixing technique provides weak guidance by training the model to focus on the relevant video within a mixture, aiding alignment without expensive frame-by-frame labels.

3. Experiments and Results

The researchers evaluated their method on three major benchmarks: TVR (Television Recall), ActivityNet-Captions, and QVHighlights.

3.1 Performance and Efficiency

On the TVR dataset using CLIP-L/14 backbones, the model achieved a Recall@1 of 34.7, significantly outperforming the previous best (MS-SL at 30.8). This gain in accuracy is accompanied by a massive win in efficiency: the method uses approximately 0.09 MB per video compared to MS-SL’s 1.01 MB.

3.2 Scalability

In inference tests, as the video database size increased from 1,000 to 4,000 videos, the proposed method maintained a much flatter growth curve in FLOPs and processing time compared to traditional exhaustive approaches, proving its suitability for large-scale applications.

4. Conclusion

By treating prototypes as "balanced units" that act as a semantic index for video content, this framework proves that it is possible to increase retrieval accuracy while drastically decreasing memory usage. While the model is highly effective at retrieval, future work may focus on explicit moment localization and adaptive prototype counts for varying video lengths.

Summary updated

BibTeX
@inproceedings{moon2025prototypes,
  author = {WonJun Moon and Cheol-Ho Cho and Woojin Jun and Minho Shim and Taeoh Kim and Inwoong Lee and Dongyoon Wee and Jae-Pil Heo},
  title = {{Prototypes are Balanced Units for Efficient and Effective Partially Relevant Video Retrieval}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure