SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.16464 · 2023

Bridging the Gap: A Unified Video Comprehension Framework for Moment Retrieval and Highlight Detection

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2311.16464.json · badge: /api/ran/2311.16464.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
easonxiao-888/uvcom canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
EM_RBF Ran
ran; our contract draft was wrong, not the code
easonxiao-888/uvcom/uvcom/addition.py
code served (permissive licence) · get_code("4557aa0c781bc84a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Parameters for EM_RBF:
# mu [b,k,d] - batch size 2, k=3 clusters, d=4 dimensions
# x [b,l,d] - batch size 2, l=5 points, d=4 dimensions
# iter - number of iterations (int)

mu = torch.randn(2, 3, 4)  # [batch=2, clusters=3, dim=4]
x = torch.randn(2, 5, 4)   # [batch=2, points=5, dim=4]
iter_count = 2             # number of EM iterations

ARGS = {
    "mu": mu,
    "x": x,
    "iter": iter_count
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
all_gather Ran
ran; our contract draft was wrong, not the code
easonxiao-888/uvcom/uvcom/misc_ddp.py
pointer only (licence: MIT); the stored copy get_code serves, from kellyiss/situformer, is pointer only (licence: NONE) · get_code("aa6da43d05cfaf65")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kellyiss/situformer, and GitHub detected no licence in that repository 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.

build_position_encoding Ran
ran; our contract draft was wrong, not the code
easonxiao-888/uvcom/uvcom/position_encoding.py
pointer only (licence: MIT); 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: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zxccade/SHINE, and GitHub could not classify the licence of that repository (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.

calculate_l1_norm Ran
ran, honoured the contract we drafted
easonxiao-888/uvcom/uvcom/addition.py
code served (permissive licence) · get_code("eb592047bcf7242f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with shape (batch=2, features=4)
# The function uses torch.norm with p=2, dim=-1, keepdim=True
# and then divides f by the norm, so f should be a 2D or higher tensor
f = torch.randn(2, 4)

ARGS = {
    "f": f
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gen_sineembed_for_position Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
easonxiao-888/uvcom/uvcom/CIM.py
code served (permissive licence) · get_code("ef58ba4fdac7256e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 4, 256) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math

torch.manual_seed(0)

# The function expects pos_tensor with shape (batch, sequence, 2)
# where the last dimension contains [center, span] values
# Based on the function body:
# - pos_tensor is indexed as pos_tensor[:, :, 0] and pos_tensor[:, :, 1]
# - This produces tensors of shape (batch, sequence)
# - These are then expanded with [:, :, None] to (batch, sequence, 1)
# - And divided by dim_t which has shape (128,), broadcasting to (batch, sequence, 128)

batch_size = 2
sequence_length = 4
pos_tensor = torch.randn(batch_size, sequence_length, 2, dtype=torch.float32)

ARGS = {
    "pos_tensor": pos_tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 4, 256) — shape (2, 4, 256) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
inverse_sigmoid Ran
ran; our contract draft was wrong, not the code
easonxiao-888/uvcom/uvcom/model.py
pointer only (licence: MIT); 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: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from wjun0830/qd-detr, and GitHub could not classify the licence of that repository (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.

nested_tensor_from_tensor_list Ran
ran; our contract draft was wrong, not the code
easonxiao-888/uvcom/uvcom/misc_ddp.py
code served (permissive licence) · get_code("afb6efd87349dd80")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned NestedTensor. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a list of image tensors with different sizes
# Each tensor has shape (C, H, W) where C=channels, H=height, W=width
tensor1 = torch.randn(3, 4, 5)  # 3 channels, 4 height, 5 width
tensor2 = torch.randn(3, 6, 7)  # 3 channels, 6 height, 7 width
tensor_list = [tensor1, tensor2]

ARGS = {
    "tensor_list": tensor_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NestedTensor — a NestedTensor output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NestedTensor output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reduce_dict Ran
ran; our contract draft was wrong, not the code
easonxiao-888/uvcom/uvcom/misc_ddp.py
pointer only (licence: MIT); the stored copy get_code serves, from kellyiss/situformer, is pointer only (licence: NONE) · get_code("05992505df9ef0cd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kellyiss/situformer, and GitHub detected no licence in that repository 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.

sampling Ran
ran on a synthesized input
easonxiao-888/uvcom/uvcom/model.py
code served (permissive licence) · get_code("396d6e03b0c5d9a7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# B = batch size = 2
# L = sequence length = 3
# d = embedding dimension = 4

B = 2
L = 3
d = 4

# sim_intra: [B, B] similarity matrix between videos and texts
sim_intra = torch.randn(B, B)

# src_txt: [B, L, d] text embeddings
src_txt = torch.randn(B, L, d)

# src_txt_mask: [B, L] text mask
src_txt_mask = torch.randint(0, 2, (B, L))

# epoch: integer
epoch = 1

ARGS = {
    "sim_intra": sim_intra,
    "src_txt": src_txt,
    "src_txt_mask": src_txt_mask,
    "epoch": epoch,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
BMRW Not yet run
unverified (harvested, no recorded run)
easonxiao-888/uvcom/uvcom/addition.py
code served (permissive licence) · get_code("9e3fc74dc421fbbe")
How it ran

no invocation recorded.

accuracy Not yet run
unverified (harvested, no recorded run)
easonxiao-888/uvcom/uvcom/misc.py
pointer only (licence: MIT); 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: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Zhuo-Cao/QV-M2, and GitHub detected no licence in that repository 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)
easonxiao-888/uvcom/uvcom/attention.py
pointer only (licence: MIT); 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: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from wjj1wjj/Nodule-DETR, and GitHub detected no licence in that repository 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 12 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 4 the same month, 12 later) and 0 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
reduce_dict 33 other papers
22 dated earlier, 1 the same month, 10 later
1811.07628 (2018-11)
ATOM: Accurate Tracking by Overlap Maximization
1811.10200 (2018-11)
IDD: A Dataset for Exploring Problems of Autonomous Navigation in Unconstrained Environments
2007.02419 (2020-07)
Attention-based Joint Detection of Object and Semantic Part
and 30 more not named here
all_gather 30 other papers
18 dated earlier, 12 later
1811.07628 (2018-11)
ATOM: Accurate Tracking by Overlap Maximization
1811.10200 (2018-11)
IDD: A Dataset for Exploring Problems of Autonomous Navigation in Unconstrained Environments
2007.02419 (2020-07)
Attention-based Joint Detection of Object and Semantic Part
and 27 more not named here
inverse_sigmoid 28 other papers
9 dated earlier, 1 the same month, 17 later, 1 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
8 dated earlier, 1 the same month, 15 later
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
3 dated earlier, 1 the same month, 10 later
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
build_position_encoding 9 other papers
3 dated earlier, 6 later
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
calculate_l1_norm 3 other papers
1 dated earlier, 2 later
2203.02925 (2022-03)
Weakly Supervised Temporal Action Localization via Representative Snippet Knowledge Propagation
Xiao_Bridging_the_Gap_A_Unified_Video_Comprehension_Framework_for_Moment_CVPR_2024_paper (2024 (year only))
Bridging the Gap: A Unified Video Comprehension Framework for Moment Retrieval and Highlight Detection
2408.02901 (2024-08)
Lighthouse: A User-Friendly Library for Reproducible Video Moment Retrieval and Highlight Detection
nested_tensor_from_tensor_list 3 other papers
2 dated earlier, 1 later
2111.14821 (2021-11)
End-to-End Referring Video Object Segmentation with Multimodal Transformers
2309.09709 (2023-09)
CATR: Combinatorial-Dependence Audio-Queried Transformer for Audio-Visual Video Segmentation
Xiao_Bridging_the_Gap_A_Unified_Video_Comprehension_Framework_for_Moment_CVPR_2024_paper (2024 (year only))
Bridging the Gap: A Unified Video Comprehension Framework for Moment Retrieval and Highlight Detection
EM_RBF 2 other papers
2 later
Xiao_Bridging_the_Gap_A_Unified_Video_Comprehension_Framework_for_Moment_CVPR_2024_paper (2024 (year only))
Bridging the Gap: A Unified Video Comprehension Framework for Moment Retrieval and Highlight Detection
2408.02901 (2024-08)
Lighthouse: A User-Friendly Library for Reproducible Video Moment Retrieval and Highlight Detection
gen_sineembed_for_position 2 other papers
2 later
Xiao_Bridging_the_Gap_A_Unified_Video_Comprehension_Framework_for_Moment_CVPR_2024_paper (2024 (year only))
Bridging the Gap: A Unified Video Comprehension Framework for Moment Retrieval and Highlight Detection
2501.07305 (2025-01)
The Devil is in the Spurious Correlations: Boosting Moment Retrieval with Dynamic Learning
BMRW 1 other paper
1 later
Xiao_Bridging_the_Gap_A_Unified_Video_Comprehension_Framework_for_Moment_CVPR_2024_paper (2024 (year only))
Bridging the Gap: A Unified Video Comprehension Framework for Moment Retrieval and Highlight Detection
sampling 1 other paper
1 later
Xiao_Bridging_the_Gap_A_Unified_Video_Comprehension_Framework_for_Moment_CVPR_2024_paper (2024 (year only))
Bridging the Gap: A Unified Video Comprehension Framework for Moment Retrieval and Highlight Detection

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-23.

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) have attracted significant attention due to the growing demand for video analysis. Recent approaches treat MR and HD as similar video grounding problems and address them together with transformer-based architecture. However, we observe that the emphasis of MR and HD differs, with one necessitating the perception of local relationships and the other prioritizing the understanding of global contexts. Consequently, the lack of task-specific design will inevitably lead to limitations in associating the intrinsic specialty of two tasks. To tackle the issue, we propose a Unified Video COMprehension framework (UVCOM) to bridge the gap and jointly solve MR and HD effectively. By performing progressive integration on intra and inter-modality across multi-granularity, UVCOM achieves the comprehensive understanding in processing a video. Moreover, we present multi-aspect contrastive learning to consolidate the local relation modeling and global knowledge accumulation via well aligned multi-modal space. Extensive experiments on QVHighlights, Charades-STA, TACoS , YouTube Highlights and TVSum datasets demonstrate the effectiveness and rationality of UVCOM which outperforms the state-of-the-art methods by a remarkable margin.

For agents

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

get_harvested_code_for_paper("2311.16464")
get_code_for_paper("2311.16464")
have("2311.16464")

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

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

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

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

Connect an agent — have() is free.