SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.12791 · 2024

Implicit Location-Caption Alignment via Complementary Masking for Weakly-Supervised Dense Video Captioning

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 6 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/2412.12791.json · badge: /api/ran/2412.12791.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
ShipingGe/ILCACM canonical (classifier label)
classifier basis: census
6 ran · 6 no recorded run
FunctionStatusWhere it lives
collate_fn Ran
ran; our contract draft was wrong, not the code
ShipingGe/ILCACM/src/util/dataloader.py
code served (permissive licence) · get_code("d3a2efceb5304d00")
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
import numpy as np

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self):
        self.pad_token_id = 0

# Create mock batch data
# Each batch item is a tuple of:
# [0] video_id, [1] duration, [2] visual_feats, [3] num_sents, [4] input_tokens, [5] feature_mask, [6] dense_input_tokens, [7] timestamps

batch_item_1 = (
    "video_1",  # video_id [0]
    10.5,  # duration [1]
    torch.randn(4),  # visual_feats [2]
    2,  # num_sents [3]
    torch.randint(1, 100, (2, 5)),  # input_tokens [4] - shape (num_sents, seq_len)
    torch.ones(4),  # feature_mask [5]
    torch.tensor([1, 2, 3]),  # dense_input_tokens [6]
    torch.tensor([[0.0, 1.0], [2.0, 3.0]])  # timestamps [7]
)

batch_item_2 = (
    "video_2",  # video_id [0]
    15.2,  # duration [1]
    torch.randn(4),  # visual_feats [2]
    3,  # num_sents [3]
    torch.randint(1, 100, (3, 6)),  # input_tokens [4] - shape (num_sents, seq_len)
    torch.ones(4),  # feature_mask [5]
    torch.tensor([4, 5]),  # dense_input_tokens [6]
    torch.tensor([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])  # timestamps [7]
)

batch = [batch_item_1, batch_item_2]
tokenizer = MockTokenizer()

ARGS = {
    "batch": batch,
    "tokenizer": tokenizer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
parse_para Ran
ran; our contract draft was wrong, not the code
ShipingGe/ILCACM/src/dvc_eval/eval_pc.py
code served (permissive licence) · get_code("4b6ebfb6c53af660")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 re

def parse_sent(sent):
    res = re.sub('[^a-zA-Z]', ' ', sent)
    res = res.strip().lower().split()
    return res

def parse_para(para):
    para = para.replace('..', '.')
    para = para.replace('.', ' endofsent')
    return parse_sent(para)

ARGS = {
    'para': 'Hello world.. This is a test. Another sentence.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
parse_sent Ran
ran; our contract draft was wrong, not the code
ShipingGe/ILCACM/src/dvc_eval/eval_pc.py
code served (permissive licence) · get_code("36a9ad5fe7008b51")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 re

def parse_sent(sent):
    res = re.sub('[^a-zA-Z]', ' ', sent)
    res = res.strip().lower().split()
    return res

ARGS = {
    'sent': "Hello, World! 123 This is a test."
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
random_string Ran
ran; our contract draft was wrong, not the code
ShipingGe/ILCACM/src/dvc_eval/eval_dvc.py
code served (permissive licence) · get_code("cfb0aa2342a41918")
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 str. 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 random
import string

def random_string(string_length):
    letters = string.ascii_lowercase
    return ''.join((random.choice(letters) for i in range(string_length)))

ARGS = {
    'string_length': 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
ShipingGe/ILCACM/src/util/dist.py
code served (permissive licence) · get_code("a38ed1aa8d59134e")
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 dict. 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
import torch.distributed as dist

torch.manual_seed(0)

# Create a simple input dictionary with tensor values
input_dict = {
    "loss": torch.tensor(2.5),
    "accuracy": torch.tensor(0.95),
    "metric_a": torch.tensor([1.0, 2.0, 3.0, 4.0]),
}

ARGS = {
    "input_dict": input_dict,
    "average": True,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
remove_nonascii Ran
ran; our contract draft was wrong, not the code
ShipingGe/ILCACM/src/dvc_eval/eval_dvc.py
code served (permissive licence) · get_code("a45f62024eb3d2c5")
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 str. 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)

# The function remove_nonascii takes a text parameter (string)
# and filters out non-ASCII characters, replacing them with spaces
# It iterates through each character and checks if ord(i) < 128

ARGS = {
    "text": "Hello World! Café naïve 你好 Москва"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
all_gather Not yet run
unverified (harvested, no recorded run)
ShipingGe/ILCACM/src/util/dist.py
code served (permissive licence) · get_code("2b95e75e05ea5abf")
How it ran

no invocation recorded.

all_gather_with_grad Not yet run
unverified (harvested, no recorded run)
ShipingGe/ILCACM/src/util/dist.py
code served (permissive licence) · get_code("0ec9fc2025c16f65")
How it ran

no invocation recorded.

eval_soda Not yet run
unverified (harvested, no recorded run)
ShipingGe/ILCACM/src/dvc_eval/eval_soda.py
code served (permissive licence) · get_code("4f25251c868cedb9")
How it ran

no invocation recorded.

eval_tool Not yet run
unverified (harvested, no recorded run)
ShipingGe/ILCACM/src/dvc_eval/eval_soda.py
code served (permissive licence) · get_code("02cf5c2eb41e68fa")
How it ran

no invocation recorded.

get_train_loader Not yet run
unverified (harvested, no recorded run)
ShipingGe/ILCACM/src/util/dataloader.py
code served (permissive licence) · get_code("602593121cc1851f")
How it ran

no invocation recorded.

get_val_loader Not yet run
unverified (harvested, no recorded run)
ShipingGe/ILCACM/src/util/dataloader.py
code served (permissive licence) · get_code("3040bc1bea082137")
How it ran

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, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 1 the same month, 2 later) and 3 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
all_gather_with_grad 91 other papers
74 dated earlier, 1 the same month, 12 later, 4 same year, order not determinable · 2 only as an assembly brick
2206.02967 (2022-06)
Masked Unsupervised Self-training for Label-free Image Classification
2210.08773 (2022-10)
Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Training
2302.06605 (2023-02)
UniAdapter: Unified Parameter-Efficient Transfer Learning for Cross-modal Modeling
and 88 more not named here
reduce_dict 33 other papers
30 dated earlier, 2 later, 1 same year, order not determinable
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
remove_nonascii 4 other papers
4 dated earlier
2001.09099 (2020-01)
TVR: A Large-Scale Dataset for Video-Subtitle Moment Retrieval
2303.06378 (2023-03)
Learning Grounded Vision-Language Representation for Versatile Understanding in Untrimmed Videos
2403.17935 (2024-03)
OmniViD: A Generative Framework for Universal Video Understanding
and 1 more not named here
all_gather 2 other papers
2 dated earlier
2205.11502 (2022-05)
On the Paradox of Learning to Reason from Data
2308.09363 (2023-08)
Open-Vocabulary Video Question Answering: A New Benchmark for Evaluating the Generalizability of Video Question Answering Models
random_string 2 other papers
2 dated earlier
2403.17935 (2024-03)
OmniViD: A Generative Framework for Universal Video Understanding
2405.13382 (2024-05)
VTG-LLM: Integrating Timestamp Knowledge into Video LLMs for Enhanced Video Temporal Grounding
eval_soda 1 other paper
1 dated earlier
2403.17935 (2024-03)
OmniViD: A Generative Framework for Universal Video Understanding
eval_tool 1 other paper
1 dated earlier
2403.17935 (2024-03)
OmniViD: A Generative Framework for Universal Video Understanding
parse_para 1 other paper
1 dated earlier
2403.17935 (2024-03)
OmniViD: A Generative Framework for Universal Video Understanding
parse_sent 1 other paper
1 dated earlier
2403.17935 (2024-03)
OmniViD: A Generative Framework for Universal Video Understanding

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

Weakly-Supervised Dense Video Captioning (WSDVC) aims to localize and describe all events of interest in a video without requiring annotations of event boundaries. This setting poses a great challenge in accurately locating the temporal location of event, as the relevant supervision is unavailable. Existing methods rely on explicit alignment constraints between event locations and captions, which involve complex event proposal procedures during both training and inference. To tackle this problem, we propose a novel implicit location-caption alignment paradigm by complementary masking, which simplifies the complex event proposal and localization process while maintaining effectiveness. Specifically, our model comprises two components: a dual-mode video captioning module and a mask generation module. The dual-mode video captioning module captures global event information and generates descriptive captions, while the mask generation module generates differentiable positive and negative masks for localizing the events. These masks enable the implicit alignment of event locations and captions by ensuring that captions generated from positively and negatively masked videos are complementary, thereby forming a complete video description. In this way, even under weak supervision, the event location and event caption can be aligned implicitly. Extensive experiments on the public datasets demonstrate that our method outperforms existing weakly-supervised methods and achieves competitive results compared to fully-supervised methods.

For agents

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

get_harvested_code_for_paper("2412.12791")
get_code_for_paper("2412.12791")
have("2412.12791")

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

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

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

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

Connect an agent — have() is free.