The Devil is in the Spurious Correlation: Boosting Moment Retrieval via Temporal Dynamic Learning

Xinyang Zhou, Fanyue Wei, Lixin Duan, Wen LiarXiv 2025 · DOI

Introduction: The Problem of Spurious Correlations

Video Moment Retrieval (MR) involves localizing a specific segment within a long video based on a natural language query. While Transformer-based models have advanced the field, they often rely on "spurious correlations"—associating queries with static background cues rather than the actual actions. For example, a model might link "cooking" to a specific kitchen background rather than the act of preparing food.

To demonstrate this, the authors conducted a masking experiment where the target moment was blacked out. Baseline models continued to predict the target moment in the masked area with high confidence, indicating they were not truly "watching" the action but guessing based on context.

Figure 1: (a) Masking experiment showing baselines predicting masked target moments. (b) Comparison of Standard mAP vs. Spurious mAP (lower is better).

The TD-DETR Framework

To address these issues, the authors propose TD-DETR (Temporal Dynamics DEtection TRansformer). This framework forces the model to focus on motion and action through three key components:

  1. Video Synthesizer for Dynamic Context: The model creates "spurious pairs" by stitching a target action from one video into the background of another contextually similar video. This breaks the link between specific scenery and specific actions.
  2. Temporal Dynamic Tokenizer: A lightweight module captures motion dynamics by calculating the element-wise difference between adjacent frames, effectively filtering out static background noise.
  3. Text-Dynamics Interaction: Using cross-attention, the model aligns the text query with these motion features, ensuring it looks for the changes in the video that correspond to the verbs in the query.
Figure 5: Overview of the TD-DETR architecture, featuring the Dynamic Video Resampler and Temporal-Text Interaction modules.

Experimental Evaluation

TD-DETR was evaluated on the QVHighlights and Charades-STA benchmarks. The authors also introduced a new metric, Spurious mAP, to measure how much a model relies on background "cheating" (lower is better).

Key Results

  • State-of-the-Art Performance: TD-DETR achieved a record 66.21 mAP on the QVHighlights test split, outperforming previous leaders like BAM-DETR (64.57 mAP).
  • Reduced Bias: In masking experiments, TD-DETR significantly lowered the Spurious mAP. When integrated into the BAM-DETR architecture, it reduced the score from 6.72 to 1.98, proving a much stronger reliance on actual temporal dynamics.

Conclusion and Future Work

TD-DETR demonstrates that while context is helpful, it can become a shortcut that hinders generalization. By emphasizing motion as a regularizer and using dynamic synthesis, the model achieves a more robust understanding of video content. Future work may involve applying these dynamic learning principles to other video tasks like action recognition or summarization, where background bias remains a challenge.

Summary updated

Abstract

Given a textual query along with a corresponding video, the objective of moment retrieval aims to localize the moments relevant to the query within the video. While commendable results have been demonstrated by existing transformer-based approaches, predicting the accurate temporal span of the target moment is still a major challenge. This paper reveals that a crucial reason stems from the spurious correlation between the text query and the moment context. Namely, the model makes predictions by overly associating queries with background frames rather than distinguishing target moments. To address this issue, we propose a dynamic learning approach for moment retrieval, where two strategies are designed to mitigate the spurious correlation. First, we introduce a novel video synthesis approach to construct a dynamic context for the queried moment, enabling the model to attend to the target moment of the corresponding query across dynamic backgrounds. Second, to alleviate the over-association with backgrounds, we enhance representations temporally by incorporating text-dynamics interaction, which encourages the model to align text with target moments through complementary dynamic representations. With the proposed method, our model significantly alleviates the spurious correlation issue in moment retrieval and establishes new state-of-the-art performance on two popular benchmarks, \ie, QVHighlights and Charades-STA. In addition, detailed ablation studies and evaluations across different architectures demonstrate the generalization and effectiveness of the proposed strategies. Our code will be publicly available.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
QVHighlightsTD-DETR (VSDC and TDEM enabled; ablation row d)[email protected]53.67split: val
Source quote
L336: (d) │ \ding{51} │ \ding{51} │ 65.88 │ 53.67 │ 66.43 │ 49.86 │ 49.05 │ 8.26 │ 3.68 │ 7.46 │ 8.15 │ 60.89 │ 40.35 │ 22.13 │ 4.82 B{2.5}
QVHighlightsTD-DETR (VSDC and TDEM enabled; ablation row d)[email protected]49.86split: val
Source quote
L336: (d) │ \ding{51} │ \ding{51} │ 65.88 │ 53.67 │ 66.43 │ 49.86 │ 49.05 │ 8.26 │ 3.68 │ 7.46 │ 8.15 │ 60.89 │ 40.35 │ 22.13 │ 4.82 B{2.5}
Charades-STATD-DETR (VSDC and TDEM enabled; ablation row d)[email protected]60.89split: test
Source quote
L336: (d) │ \ding{51} │ \ding{51} │ 65.88 │ 53.67 │ 66.43 │ 49.86 │ 49.05 │ 8.26 │ 3.68 │ 7.46 │ 8.15 │ 60.89 │ 40.35 │ 22.13 │ 4.82 B{2.5}
Charades-STATD-DETR (VSDC and TDEM enabled; ablation row d)[email protected]40.35split: test
Source quote
L336: (d) │ \ding{51} │ \ding{51} │ 65.88 │ 53.67 │ 66.43 │ 49.86 │ 49.05 │ 8.26 │ 3.68 │ 7.46 │ 8.15 │ 60.89 │ 40.35 │ 22.13 │ 4.82 B{2.5}
QVHighlightsTD-DETR (VSDC and TDEM enabled; ablation row d)Spurious [email protected]3.68split: val
Source quote
L336: (d) │ \ding{51} │ \ding{51} │ 65.88 │ 53.67 │ 66.43 │ 49.86 │ 49.05 │ 8.26 │ 3.68 │ 7.46 │ 8.15 │ 60.89 │ 40.35 │ 22.13 │ 4.82 B{2.5}
QVHighlightsTD-DETR (VSDC and TDEM enabled; ablation row d)Spurious [email protected]7.46split: val
Source quote
L336: (d) │ \ding{51} │ \ding{51} │ 65.88 │ 53.67 │ 66.43 │ 49.86 │ 49.05 │ 8.26 │ 3.68 │ 7.46 │ 8.15 │ 60.89 │ 40.35 │ 22.13 │ 4.82 B{2.5}
BibTeX
@misc{zhou2025devil,
  author = {Xinyang Zhou and Fanyue Wei and Lixin Duan and Wen Li},
  title = {{The Devil is in the Spurious Correlation: Boosting Moment Retrieval via Temporal Dynamic Learning}},
  year = {2025},
  eprint = {2501.07305},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.07305},
}
Figure