Abstract
Partially Relevant Video Retrieval (PRVR) addresses the challenges of text-to-video retrieval in real-world scenarios where untrimmed videos are prevalent. Traditional PRVR methods encode videos at two feature scales: (1) frame-level to capture fine details, and (2) clip-level to recognize broader content. However, these approaches align both scales with a single sentence representation, leading to suboptimal performance. In particular, we point out the level mismatch in aligning frame-level video features with a sentence representation, as the entire meaning of a sentence contains broader and more diverse content than what frame-level features can encode. This misalignment causes frame-level features to capture broader contexts and overlook local fine details. To tackle this issue, we propose a framework that represents a sentence as a set of multiple components, where each component aligns with frame-level semantics. Specifically, we introduce Semantic-Decomposed Matching (SDM) to adjust the granularity of the text description to match them with frame-level video features. In addition to the matching process, we develop the Adaptive Local Aggregator (ALA) to enhance video encoding in capturing finer local details, ensuring precise text-video alignment at the frame level. ALA adaptively integrates multi-scale local details within short temporal spans obtained by enforcing a strict temporal aggregation range. Finally, we reinforce detailed encoding at the frame level with newly designed objectives for both modalities. Extensive experiments integrating our framework with existing clip branches demonstrate its effectiveness and applicability, highlighting significant improvements in PRVR performance.
Introduction: The Semantic Granularity Gap
In Partially Relevant Video Retrieval (PRVR), the goal is to find specific segments within long, untrimmed videos that match a text query. Current state-of-the-art models typically utilize a dual-branch architecture: a clip-level branch for broad context and a frame-level branch for fine-grained details.
However, a critical issue arises: both branches typically attempt to align their features with the entire sentence query. This creates a semantic granularity mismatch. A single frame (e.g., someone reaching for a door) cannot represent the full meaning of a complex sentence (e.g., "A man walks to the door, opens it, and greets a friend"). Forcing this alignment causes frame-level features to become "blurry" as they attempt to capture too much context, ultimately losing the fine-grained detail they were intended to provide.
Methodology
To resolve this mismatch, we propose a framework that decomposes sentences into smaller semantic units and restricts video features to local temporal windows.
Semantic-Decomposed Matching (SDM)
Instead of representing a query as a single vector, SDM uses slot attention to decompose the text into multiple "semantic units." For a sentence like "Sheldon walks in and sits down," the model might generate one unit for "walks in" and another for "sits down." These units are then matched individually against video frames, allowing for a more precise alignment between specific actions and the frames that depict them.
Adaptive Local Aggregator (ALA)
On the video side, we introduce the ALA to prevent frame features from being influenced by distant, irrelevant context. Unlike global attention mechanisms, ALA employs multi-scale window attention. This forces the model to focus on local temporal details of varying lengths, ensuring that frame representations stay grounded in local actions rather than global video context.
Training Objectives
We introduce two new loss functions to reinforce this fine-grained alignment:
- Semantic Diversity Loss: Encourages the decomposed text units to represent distinct semantic concepts.
- Frame-Semantic Alignment Loss: Ensures that frames matched to one semantic unit are distinct from those matched to others, preventing feature entanglement.
Experiments and Results
We evaluated our framework on two major benchmarks for untrimmed video retrieval: TVR (TV Show Retrieval) and ActivityNet Captions. The proposed framework acts as a "plug-and-play" module that significantly enhances existing PRVR models.
Key results include:
- State-of-the-Art Performance: When integrated with the GMMFormer v2 baseline, our method improved the Recall at 1 (R@1) on the TVR dataset by 7.3% (from 15.3 to 17.4).
- Consistency: The method showed consistent improvements across different baselines (MS-SL, GMMFormer) and both datasets.
- Efficiency: Ablation studies indicated that using 5 semantic units provides an optimal balance between retrieval accuracy and computational overhead.
Conclusion
By bridging the semantic granularity gap, our framework allows frame-level branches to finally fulfill their purpose: capturing the fine-grained details necessary for accurate retrieval in long videos. Future work may explore dynamic unit allocation based on sentence complexity and more sophisticated fusion techniques between clip and frame branches.
Summary updated