TL;DR
When you train AI models to find specific moments inside long, untrimmed videos, they get surprisingly good at their training benchmark—at the cost of catastrophic forgetting everywhere else, performing worse on new datasets than the out-of-the-box foundation models they were built on. This paper introduces Generalization-Aware Learning (GAL), a two-branch architecture that splits the workload: one branch stays anchored to the broad, generalizable knowledge of CLIP, while the other adapts to learn fine-grained video-segment matching. The result is a system that masters specific video search tasks without suffering from cross-domain amnesia.
What Problem Does This Paper Address?
Standard text-to-video search assumes a short clip matches your entire query. Real life is messier: you want to type "dog steals pizza off the counter" and find the right 10-hour home-video compilation, even if the heist only lasts five seconds. This is Partially Relevant Video Retrieval (PRVR)—retrieving untrimmed videos containing at least one relevant segment.
Almost all existing PRVR methods build temporal layers on top of frozen CLIP features. However, they are typically trained and tested on a single, isolated dataset at a time. When the authors tested existing PRVR models in a realistic scenario—training on a mix of datasets and evaluating on an unseen target benchmark—they uncovered a glaring failure: trained PRVR models generalize terribly, consistently losing to zero-shot CLIP (which wasn't even trained for video segments!). Fine-tuning for segment-level precision actively overwrites and erodes the broad, transferable semantic alignment inherited from CLIP.
Methods
Why not just average a trained PRVR model's scores with frozen CLIP at test time? Because CLIP isn't trained for fine-grained temporal matching, naive mixing creates a tug-of-war: boosting unseen-domain scores hurts in-domain performance.
Instead, the authors propose GAL (Generalization-Aware Learning), which separates preservation and adaptation during training using two parallel branches built atop frozen CLIP features:
- The Anchored Branch (The Generalist): Kept intentionally shallow on the query side (just a skip-connected linear layer over CLIP’s sentence embedding) and regularized with a CLIP Anchoring Loss that penalizes cosine distance from original CLIP features.
- The Adaptive Branch (The Specialist): Uses a deeper Transformer over the full text-token sequence (standard in PRVR) to learn complex, fine-grained segment matching.
Three novel training mechanisms make these branches work as a team rather than duplicates:
- Layer-Scaled Gated Residuals (LSGR): Every residual connection is multiplied by a learnable gate initialized to zero. At step zero of training, both branches act as pure identity mappings of frozen CLIP, ensuring conservative adaptation.
- Per-Sample Branch Specialization (PSBS): Instead of forcing both branches to learn every sample equally, PSBS compares their contrastive losses per sample and routes stronger gradients to whichever branch already explains that sample better. Specialization emerges organically from the data.
- CLIP-Text Relation Distillation (CTRD): Directly locking the adaptive branch to CLIP features would handcuff it. Instead, CTRD uses a hinge loss to ensure that if two text queries are semantic neighbors in CLIP space, their matched video segments don't drift too far apart—preserving semantic neighborhood geometry without restricting feature learning.
At inference, scores from both branches are blended using a fixed weight ($\alpha = 0.6$).
Datasets
Rather than introducing new raw video data, the authors introduce a new leave-one-dataset-out (multi-source-to-unseen-target) evaluation protocol across four standard PRVR benchmarks:
- TVR (TV show clips with dialogue/entity-heavy queries)
- ActivityNet Captions (ACT) (complex human activities)
- Charades-STA (CHA) (short, indoor action-centric phrases)
- QVHighlights (QVH) (diverse vlog and news videos)
In each split, three datasets are concatenated into a single training pool without domain labels, and the model is tested zero-shot on the held-out fourth dataset.
Key Insights and Ideas
- Conservative initialization does the heavy lifting: In ablation studies, simply adding zero-initialized gates (LSGR) caused unseen-target SumR (the sum of Recall@1, 5, 10, and 100) to skyrocket from 126.7 to 178.2, proving that early training dynamics are where catastrophic overwriting of CLIP usually happens.
- Emergent, domain-aware routing: Even though PSBS never sees dataset labels during training, inspecting the branch weights reveals a bimodal split. Short action phrases from Charades automatically route to the adaptive branch, while diverse QVHighlights queries lean on balanced co-training.
- Text is a cleaner teacher than video: For relation distillation (CTRD), the authors distill neighborhoods from CLIP text rather than visual features, noting that visual features are confounded by domain-specific lighting and scene styles, whereas text captures pure semantics.
Key Results
GAL achieves state-of-the-art generalization across every held-out benchmark while remaining highly competitive on the training domains:
- Beating Zero-Shot CLIP & Baselines on Unseen Targets: On TVR as an unseen target, prior PRVR methods collapse to 71.9–89.9 SumR (well below Zero-Shot CLIP's 167.2). GAL reaches 175.4 SumR (and jumps from 6.2% best-baseline R@1 to 17.9% R@1). Across all four unseen targets, GAL beats Zero-Shot CLIP by +8.2 (TVR), +11.2 (ACT), +9.0 (CHA), and +19.7 (QVH) SumR.
- Strong Source Performance: On the seen source datasets, GAL achieves the highest dataset-wise average (212.5 SumR vs. 208.1 for the runner-up MSC-PRVR).
- Fast Online Latency: Despite having more parameters (120.2M) due to preserving CLIP's 768-d width, online search latency is just 0.15 ms per query on a 1,000-video gallery (raw CLIP feature extraction dominates offline costs for all methods anyway).
Limitations and Future Work
GAL doesn't win on every seen source dataset individually. On TVR and Charades-STA, traditional PRVR baselines score slightly higher when evaluated in-domain. Because those benchmarks contain quirky, dataset-specific patterns—like specific TV character names in TVR or terse action phrases in Charades—aggressively overfitting to the source corpus pays off locally, whereas GAL's CLIP-anchoring holds it back slightly. The authors suggest adaptive, per-query score mixing at inference time (dynamically tuning the balance between source-fitting and CLIP preservation) as a promising next step.
Summary updated