SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.02901 · EMNLP · 2024

Lighthouse: A User-Friendly Library for Reproducible Video Moment Retrieval and Highlight Detection

Taichi Nishimura, Shota Nakada, Hokuto Munakata, Tatsuya Komatsu

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2408.02901.json · badge: /api/ran/2408.02901.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
line/lighthouse canonical (classifier label)
classifier basis: census
8 ran · 3 no recorded run
FunctionStatusWhere it lives
BMRW Ran
ran; our contract draft was wrong, not the code
line/lighthouse/lighthouse/common/CIM.py
code served (permissive licence) · get_code("55061d5f6c78072b")
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, 5) 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)

# Analyzing the function BMRW(x, y, w):
# - x: tensor used in einsum 'nkd,ntd->nkt' with y_norm, so shape (batch, n_points, dim)
# - y: tensor used in einsum 'nkt,nkd->ntd' with latent_z, so shape (batch, n_keys, dim)
# - w: scalar weight parameter used in multiplication and power
# - x.size(1) is used to create identity matrix, so dimension 1 is n_points
# - y.size(1) is inferred from einsum operations to be n_keys

# Create small tensors with distinct sizes for clarity
batch_size = 2
n_keys = 3
n_points = 4
feature_dim = 5

x = torch.randn(batch_size, n_points, feature_dim)
y = torch.randn(batch_size, n_keys, feature_dim)
w = 0.5  # scalar weight parameter

ARGS = {
    'x': x,
    'y': y,
    'w': w
}
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, 5) — shape (2, 4, 5) 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
EM_RBF Ran
ran; our contract draft was wrong, not the code
line/lighthouse/lighthouse/common/CIM.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
calculate_l1_norm Ran
ran, honoured the contract we drafted
line/lighthouse/lighthouse/common/CIM.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
element_wise_list_equal Ran
ran, violated the contract we drafted
line/lighthouse/lighthouse/common/cg_detr.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Zhuo-Cao/QV-M2, is pointer only (licence: NONE) · get_code("6d07870656ce939e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), 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. A run is recorded.

find_nth Ran
ran, honoured the contract we drafted
line/lighthouse/lighthouse/common/cg_detr.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Zhuo-Cao/QV-M2, is pointer only (licence: NONE) · get_code("f2157348a4ae2f51")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), 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. A run is recorded.

gen_sineembed_for_position Ran
ran; our contract draft was wrong, not the code
line/lighthouse/lighthouse/common/cg_detr_transformer.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zhuo-cao/flashvtg, is pointer only (licence: NONE) · get_code("84a83d94394b10af")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zhuo-cao/flashvtg, 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.

gen_sineembed_for_position Ran
ran; our contract draft was wrong, not the code
line/lighthouse/lighthouse/common/eatr_transformer.py
code served (permissive licence) · get_code("65ed3cfb70bc04bd")
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, 8) 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)

# Analyze the function:
# - pos_tensor: indexed as pos_tensor[:, :, 0] and pos_tensor[:, :, 1]
#   so it needs shape (batch, seq, 2) where last dim has at least 2 elements
# - d_model: used as an integer for arange and arithmetic

# Create pos_tensor with shape (batch=2, seq=3, 2)
pos_tensor = torch.randn(2, 3, 2)

# d_model should be even (based on how 0::2 and 1::2 slicing is used)
d_model = 4

ARGS = {
    "pos_tensor": pos_tensor,
    "d_model": d_model,
}
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, 8) — shape (2, 3, 8) 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
line/lighthouse/lighthouse/common/cg_detr.py
pointer only (licence: Apache-2.0); 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 (Apache-2.0), 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.

accuracy Not yet run
unverified (harvested, no recorded run)
line/lighthouse/lighthouse/common/misc.py
pointer only (licence: Apache-2.0); 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 (Apache-2.0), 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)
line/lighthouse/lighthouse/common/attention.py
pointer only (licence: Apache-2.0); 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 (Apache-2.0), 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.

multi_head_attention_forward Not yet run
unverified (harvested, no recorded run)
line/lighthouse/lighthouse/common/crossattention.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Zhuo-Cao/QV-M2, is pointer only (licence: NONE) · get_code("5d7fc668e3b608cf")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), 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.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 9 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 7 later) and 2 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 28 other papers
23 dated earlier, 3 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
18 dated earlier, 4 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
10 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 11 more not named here
element_wise_list_equal 4 other papers
2 dated earlier, 2 later
2311.08835 (2023-11)
Correlation-Guided Query-Dependency Calibration for Video Temporal Grounding
2407.15051 (2024-07)
Prior Knowledge Integration via LLM Encoding and Pseudo Event Regulation for Video Moment Retrieval
2412.13441 (2024-12)
FlashVTG: Feature Layering and Adaptive Score Handling Network for Video Temporal Grounding
and 1 more not named here
find_nth 4 other papers
2 dated earlier, 2 later
2311.08835 (2023-11)
Correlation-Guided Query-Dependency Calibration for Video Temporal Grounding
2407.15051 (2024-07)
Prior Knowledge Integration via LLM Encoding and Pseudo Event Regulation for Video Moment Retrieval
2412.13441 (2024-12)
FlashVTG: Feature Layering and Adaptive Score Handling Network for Video Temporal Grounding
and 1 more not named here
multi_head_attention_forward 4 other papers
2 dated earlier, 2 later
2311.08835 (2023-11)
Correlation-Guided Query-Dependency Calibration for Video Temporal Grounding
2407.15051 (2024-07)
Prior Knowledge Integration via LLM Encoding and Pseudo Event Regulation for Video Moment Retrieval
2412.13441 (2024-12)
FlashVTG: Feature Layering and Adaptive Score Handling Network for Video Temporal Grounding
and 1 more not named here
calculate_l1_norm 3 other papers
2 dated earlier, 1 same year, order not determinable
2203.02925 (2022-03)
Weakly Supervised Temporal Action Localization via Representative Snippet Knowledge Propagation
2311.16464 (2023-11)
Bridging the Gap: A Unified Video Comprehension Framework for Moment Retrieval and Highlight Detection
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
1 dated earlier, 1 same year, order not determinable
2311.16464 (2023-11)
Bridging the Gap: A Unified Video Comprehension Framework for Moment Retrieval and Highlight Detection
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
gen_sineembed_for_position 1 other paper
1 later
2412.13441 (2024-12)
FlashVTG: Feature Layering and Adaptive Score Handling Network for Video Temporal Grounding

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

We propose Lighthouse, a user-friendly library for reproducible video moment retrieval and highlight detection (MR-HD). Although researchers proposed various MR-HD approaches, the research community holds two main issues. The first is a lack of comprehensive and reproducible experiments across various methods, datasets, and video-text features. This is because no unified training and evaluation codebase covers multiple settings. The second is user-unfriendly design. Because previous works use different libraries, researchers set up individual environments. In addition, most works release only the training codes, requiring users to implement the whole inference process of MR-HD. Lighthouse addresses these issues by implementing a unified reproducible codebase that includes six models, three features, and five datasets. In addition, it provides an inference API and web demo to make these methods easily accessible for researchers and developers. Our experiments demonstrate that Lighthouse generally reproduces the reported scores in the reference papers. The code is available at https://github.com/line/lighthouse.

For agents

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

get_harvested_code_for_paper("2408.02901")
get_code_for_paper("2408.02901")
have("2408.02901")

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

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

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

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

Connect an agent — have() is free.