Papers › TR-DETR: Task-Reciprocal Transformer for Joint Moment Retrieval and Highlight Detection

TR-DETR: Task-Reciprocal Transformer for Joint Moment Retrieval and Highlight Detection

4 Jan 2024arXiv:2401.02309archive 2025-07-28

Hao Sun, Mingyao Zhou, Wenjing Chen, Wei Xie

Video moment retrieval (MR) and highlight detection (HD) based on natural language queries are two highly related tasks, which aim to obtain relevant moments within videos and highlight scores of each video clip. Recently, several methods have been devoted to building DETR-based networks to solve both MR and HD jointly. These methods simply add two separate task heads after multi-modal feature extraction and feature interaction, achieving good performance. Nevertheless, these approaches underutilize the reciprocal relationship between two tasks. In this paper, we propose a task-reciprocal transformer based on DETR (TR-DETR) that focuses on exploring the inherent reciprocity between MR and HD. Specifically, a local-global multi-modal alignment module is first built to align features from diverse modalities into a shared latent space. Subsequently, a visual feature refinement is designed to eliminate query-irrelevant information from visual features for modal interaction. Finally, a task cooperation module is constructed to refine the retrieval pipeline and the highlight score prediction process by utilizing the reciprocity between MR and HD. Comprehensive experiments on QVHighlights, Charades-STA and TVSum datasets demonstrate that TR-DETR outperforms existing state-of-the-art methods. Codes are available at \url{https://github.com/mingyao1120/TR-DETR}.

PaperPDFCodeCode 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="2401.02309")

Code

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

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

mingyao1120/tr-detr officialmentioned in papermentioned on GitHubpytorchNOASSERTION 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

17 samples harvested; 11 ran; 1 honoured the contract we drafted; 6 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 · honoured contract
1ran · violated contract
1ran · our draft was wrong
8ran
6unverified

Licence: 17 of the 17 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 mingyao1120/TR-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.

CQAttention mingyao1120/TR-DETR/tr_detr/model.py official repository ran · metamorphic tier: deterministic licence not identified · pointer only · 07c665a133219e9a · report
CQConcatenate mingyao1120/TR-DETR/tr_detr/model.py official repository ran · metamorphic tier: deterministic licence not identified · pointer only · e5976903cd2d055b · report
Conv1D mingyao1120/TR-DETR/tr_detr/model.py official repository ran · metamorphic tier: deterministic licence not identified · pointer only · 9ede126dc91c3fb3 · report
GRUFeatureExtractor mingyao1120/TR-DETR/tr_detr/model.py official repository ran licence not identified · pointer only · 2b35f8edda8e24ff · report
LinearLayer mingyao1120/TR-DETR/tr_detr/model.py official repository ran · metamorphic tier: deterministic fingerprinted licence not identified · pointer only · 4abf288345162e2d · report
WeightedPool mingyao1120/TR-DETR/tr_detr/model.py official repository ran · metamorphic tier: deterministic licence not identified · pointer only · 0b3ec8602f06002c · report
build_position_encoding mingyao1120/tr-detr/tr_detr/position_encoding.py official repository ran no licence file found · pointer only · d6ca656c20df137a · report
inverse_sigmoid mingyao1120/tr-detr/tr_detr/model.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 6897880b6ce14c94 · report
mask_logits mingyao1120/TR-DETR/tr_detr/model.py official repository ran · honoured contract fingerprinted licence not identified · pointer only · 60df4d5a1eee1b92 · report
prepare_batch_inputs mingyao1120/tr-detr/tr_detr/start_end_dataset.py official repository ran licence not identified · pointer only · ca2b2a4eafc4128b · report
span_cxw_to_xx mingyao1120/TR-DETR/tr_detr/model.py official repository ran · violated contract fingerprinted licence not identified · pointer only · b7639c2e8b83837b · report
TRDETR mingyao1120/TR-DETR/tr_detr/model.py official repository unverified licence not identified · pointer only · aae412c1aa042138 · report
VSLFuser mingyao1120/TR-DETR/tr_detr/model.py official repository unverified licence not identified · pointer only · 30ea9d77ca415e66 · report
accuracy mingyao1120/tr-detr/tr_detr/misc.py official repository unverified no licence file found · pointer only · 081c8abd57d082fd · report
multi_head_attention_forward mingyao1120/tr-detr/tr_detr/attention.py official repository unverified no licence file found · pointer only · a82091666b9db8cf · report
span_xx_to_cxw mingyao1120/tr-detr/tr_detr/span_utils.py official repository unverified no licence file found · pointer only · 7114f025044af9b4 · report
temporal_iou mingyao1120/tr-detr/tr_detr/span_utils.py official repository unverified no licence file found · pointer only · e4ae5582a2533cdb · report

Tasks

Highlight DetectionMoment RetrievalNatural Language QueriesRetrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGNAbsolute Position EncodingsAdamAttentionBPEConvolutionDense ConnectionsDetrDropoutFeedforward NetworkLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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