SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.02309 · AAAI · 2024

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

Hao Sun, Wenjing Chen, Wei Xie, Mingyao Zhou

arXiv · PDF · Open in the Atlas

Code that ran

13 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 6 have no contract verdict; 5 failures of our instrument; 4 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2401.02309.json · badge: /api/ran/2401.02309.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
mingyao1120/tr-detr canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
mingyao1120/TR-DETR community
Papers with Code archive
8 ran · 2 no recorded run
FunctionStatusWhere it lives
CQAttention Ran
ran on a synthesized input · constructed an object; no result was computed
mingyao1120/TR-DETR/tr_detr/model.py
pointer only (licence: NOASSERTION) · get_code("07c665a133219e9a")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/TR-DETR (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

CQConcatenate Ran
ran on a synthesized input · constructed an object; no result was computed
mingyao1120/TR-DETR/tr_detr/model.py
pointer only (licence: NOASSERTION) · get_code("e5976903cd2d055b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/TR-DETR (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Conv1D Ran
ran on a synthesized input · constructed an object; no result was computed
mingyao1120/TR-DETR/tr_detr/model.py
pointer only (licence: NOASSERTION) · get_code("9ede126dc91c3fb3")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/TR-DETR (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GRUFeatureExtractor Ran
ran on a synthesized input
mingyao1120/TR-DETR/tr_detr/model.py
pointer only (licence: NOASSERTION) · get_code("2b35f8edda8e24ff")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/TR-DETR (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

LinearLayer Ran
ran on a synthesized input · constructed an object; no result was computed
mingyao1120/TR-DETR/tr_detr/model.py
pointer only (licence: NOASSERTION) · get_code("4abf288345162e2d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/TR-DETR (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

WeightedPool Ran
ran on a synthesized input · constructed an object; no result was computed
mingyao1120/TR-DETR/tr_detr/model.py
pointer only (licence: NOASSERTION) · get_code("0b3ec8602f06002c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/TR-DETR (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_position_encoding Ran
ran; our contract draft was wrong, not the code
mingyao1120/tr-detr/tr_detr/position_encoding.py
pointer only (licence: NONE); the stored copy get_code serves, from zxccade/SHINE, is pointer only (licence: NOASSERTION) · get_code("d6ca656c20df137a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mingyao1120/tr-detr when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

inverse_sigmoid Ran
ran; our contract draft was wrong, not the code
mingyao1120/tr-detr/tr_detr/model.py
pointer only (licence: NONE); the stored copy get_code serves, from wjun0830/qd-detr, is pointer only (licence: NOASSERTION) · get_code("6897880b6ce14c94")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mingyao1120/tr-detr when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mask_logits Ran
ran, honoured the contract we drafted
mingyao1120/TR-DETR/tr_detr/model.py
pointer only (licence: NOASSERTION) · get_code("60df4d5a1eee1b92")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/TR-DETR (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_batch_inputs Ran
ran; our contract draft was wrong, not the code
mingyao1120/tr-detr/tr_detr/start_end_dataset.py
pointer only (licence: NOASSERTION) · get_code("ca2b2a4eafc4128b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/tr-detr (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

span_cxw_to_xx Ran
ran, violated the contract we drafted
mingyao1120/TR-DETR/tr_detr/model.py
pointer only (licence: NOASSERTION) · get_code("b7639c2e8b83837b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/TR-DETR (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

span_xx_to_cxw Ran
ran; our contract draft was wrong, not the code
mingyao1120/tr-detr/tr_detr/span_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from Zhuo-Cao/QV-M2, is pointer only (licence: NONE) · get_code("7114f025044af9b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mingyao1120/tr-detr when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

temporal_iou Ran
ran; our contract draft was wrong, not the code
mingyao1120/tr-detr/tr_detr/span_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from Zhuo-Cao/QV-M2, is pointer only (licence: NONE) · get_code("e4ae5582a2533cdb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mingyao1120/tr-detr when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

TRDETR Not yet run
unverified (harvested, no recorded run)
mingyao1120/TR-DETR/tr_detr/model.py
pointer only (licence: NOASSERTION) · get_code("aae412c1aa042138")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/TR-DETR (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

VSLFuser Not yet run
unverified (harvested, no recorded run)
mingyao1120/TR-DETR/tr_detr/model.py
pointer only (licence: NOASSERTION) · get_code("30ea9d77ca415e66")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mingyao1120/TR-DETR (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

accuracy Not yet run
unverified (harvested, no recorded run)
mingyao1120/tr-detr/tr_detr/misc.py
pointer only (licence: NONE); the stored copy get_code serves, from Zhuo-Cao/QV-M2, is pointer only (licence: NONE) · get_code("081c8abd57d082fd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mingyao1120/tr-detr when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

multi_head_attention_forward Not yet run
unverified (harvested, no recorded run)
mingyao1120/tr-detr/tr_detr/attention.py
pointer only (licence: NONE); the stored copy get_code serves, from wjj1wjj/Nodule-DETR, is pointer only (licence: NONE) · get_code("a82091666b9db8cf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mingyao1120/tr-detr when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 4 the same month, 10 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
inverse_sigmoid
brick of this paper's assembly: helper
28 other papers
15 dated earlier, 1 the same month, 10 later, 2 same year, order not determinable · 10 only as an assembly brick
2201.12329 (2022-01)
DAB-DETR: Dynamic Anchor Boxes are Better Queries for DETR
2203.01305 (2022-03)
DN-DETR: Accelerate DETR Training by Introducing Query DeNoising
2209.13306 (2022-09)
Embracing Consistency: A One-Stage Approach for Spatio-Temporal Video Grounding
and 25 more not named here
multi_head_attention_forward 24 other papers
12 dated earlier, 10 later, 2 same year, order not determinable
2203.01305 (2022-03)
DN-DETR: Accelerate DETR Training by Introducing Query DeNoising
2203.03605 (2022-03)
DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
2206.02777 (2022-06)
Mask DINO: Towards A Unified Transformer-based Framework for Object Detection and Segmentation
and 21 more not named here
accuracy 14 other papers
6 dated earlier, 7 later, 1 same year, order not determinable
2307.02869 (2023-07)
MomentDiff: Generative Video Moment Retrieval from Random to Real
2307.16715 (2023-07)
UniVTG: Towards Unified Video-Language Temporal Grounding
2308.06947 (2023-08)
Knowing Where to Focus: Event-aware Transformer for Video Grounding
and 11 more not named here
span_cxw_to_xx
brick of this paper's assembly: helper
10 other papers
3 dated earlier, 1 the same month, 6 later · 2 only as an assembly brick
2107.09609 (2021-07)
QVHIGHLIGHTS: Detecting Moments and Highlights in Videos via Natural Language Queries
2307.02869 (2023-07)
MomentDiff: Generative Video Moment Retrieval from Random to Real
2311.08835 (2023-11)
Correlation-Guided Query-Dependency Calibration for Video Temporal Grounding
and 7 more not named here
build_position_encoding 9 other papers
5 dated earlier, 3 later, 1 same year, order not determinable
2307.02869 (2023-07)
MomentDiff: Generative Video Moment Retrieval from Random to Real
2307.16715 (2023-07)
UniVTG: Towards Unified Video-Language Temporal Grounding
2308.06947 (2023-08)
Knowing Where to Focus: Event-aware Transformer for Video Grounding
and 6 more not named here
span_xx_to_cxw 9 other papers
3 dated earlier, 1 the same month, 5 later
2307.02869 (2023-07)
MomentDiff: Generative Video Moment Retrieval from Random to Real
2311.08835 (2023-11)
Correlation-Guided Query-Dependency Calibration for Video Temporal Grounding
2312.00083 (2023-12)
BAM-DETR: Boundary-Aligned Moment Detection Transformer for Temporal Sentence Grounding in Videos
and 6 more not named here
LinearLayer
brick of this paper's assembly: helper
8 other papers
6 dated earlier, 2 later · 7 only as an assembly brick
2107.09609 (2021-07)
QVHIGHLIGHTS: Detecting Moments and Highlights in Videos via Natural Language Queries
2108.00061 (2021-08)
MTVR: Multilingual Moment Retrieval in Videos
2203.15125 (2022-03)
Text2Pos: Text-to-Point-Cloud Cross-Modal Localization
and 5 more not named here
temporal_iou 8 other papers
2 dated earlier, 1 the same month, 5 later
2307.02869 (2023-07)
MomentDiff: Generative Video Moment Retrieval from Random to Real
2311.08835 (2023-11)
Correlation-Guided Query-Dependency Calibration for Video Temporal Grounding
2401.01529 (2024-01)
Glance and Focus: Memory Prompting for Multi-Event Video Question Answering
and 5 more not named here
mask_logits
brick of this paper's assembly: helper
5 other papers
4 dated earlier, 1 later · 1 only as an assembly brick
2004.13931 (2020-04)
Span-based Localizing Network for Natural Language Video Localization
2207.00383 (2022-07)
ReLER@ZJU-Alibaba Submission to the Ego4D Natural Language Queries Challenge 2022
2301.00746 (2023-01)
NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory
and 2 more not named here
WeightedPool
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later · 2 only as an assembly brick
2307.16715 (2023-07)
UniVTG: Towards Unified Video-Language Temporal Grounding
2508.15439 (2025-08)
Aligning Moments in Time using Video Queries

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 TV-Sum datasets demonstrate that TR-DETR outperforms existing state-of-the-art methods. Codes are available at https: //github.com/mingyao1120/TR-DETR.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.02309")
get_code_for_paper("2401.02309")
have("2401.02309")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2401.02309.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2401.02309.svg)](https://syntology.ai/paper/2401.02309)

Connect an agent — have() is free.