Papers › The Devil is in the Spurious Correlation: Boosting Moment Retrieval via Temporal...

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

13 Jan 2025arXiv:2501.07305archive 2025-07-28

Xinyang Zhou, Fanyue Wei, Lixin Duan, Wen Li

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 currently still a major challenge. In this paper, we reveal that a crucial reason stems from the spurious correlation between the text queries and the moment context. Namely, the model may associate the textual query with the background frames rather than the target moment. To address this issue, we propose a temporal 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 relevant moment. With separate yet similar videos mixed up, the synthesis approach empowers our model to attend to the target moment of the corresponding query under various dynamic contexts. Second, we enhance the representation by learning temporal dynamics. Besides the visual representation, text queries are aligned with temporal dynamic representations, which enables our model to establish a non-spurious correlation between the query-related moment and context. With the aforementioned proposed method, the spurious correlation issue in moment retrieval can be largely alleviated. Our method establishes a new state-of-the-art performance on two popular benchmarks of moment retrieval, \ie, QVHighlights and Charades-STA. In addition, the detailed ablation analyses demonstrate the effectiveness of the proposed strategies. Our code will be publicly available.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2501.07305")

Code

Syntology Ran 4 of 11 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · violated contract; 1 ran · our draft was wrong; 2 ran with no contract checked.

By repository: found in paper text by Syntology: 11 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

xyangzhou/TD-DETR found in paper text by SyntologyMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 4 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
1ran · our draft was wrong
2ran
7unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from xyangzhou/TD-DETR. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_position_encoding xyangzhou/TD-DETR/td_detr/position_encoding.py found in paper text by Syntology ran MIT (permissive) · d6ca656c20df137a · report
gen_sineembed_for_position xyangzhou/TD-DETR/td_detr/transformer.py found in paper text by Syntology ran fingerprinted MIT (permissive) · ef58ba4fdac7256e · report
inverse_sigmoid xyangzhou/TD-DETR/td_detr/model.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 6897880b6ce14c94 · report
span_cxw_to_xx xyangzhou/TD-DETR/td_detr/span_utils.py found in paper text by Syntology ran · violated contract fingerprinted MIT (permissive) · b7639c2e8b83837b · report
accuracy xyangzhou/TD-DETR/td_detr/misc.py found in paper text by Syntology unverified MIT (permissive) · 081c8abd57d082fd · report
build_transformer xyangzhou/TD-DETR/td_detr/transformer.py found in paper text by Syntology unverified MIT (permissive) · 595b7178ce4c0616 · report
count_parameters xyangzhou/TD-DETR/utils/model_utils.py found in paper text by Syntology unverified MIT (permissive) · edb929dece68582e · report
multi_head_attention_forward xyangzhou/TD-DETR/td_detr/attention.py found in paper text by Syntology unverified MIT (permissive) · a82091666b9db8cf · report
prepare_batch_inputs xyangzhou/TD-DETR/td_detr/start_end_dataset.py found in paper text by Syntology unverified MIT (permissive) · ba9fbbf6b2237b8d · report
span_xx_to_cxw xyangzhou/TD-DETR/td_detr/span_utils.py found in paper text by Syntology unverified MIT (permissive) · 7114f025044af9b4 · report
temporal_iou xyangzhou/TD-DETR/td_detr/span_utils.py found in paper text by Syntology unverified MIT (permissive) · e4ae5582a2533cdb · report

Tasks

Moment RetrievalRetrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections