SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_25158 · AAAI · 2023

TransVCL: Attention-Enhanced Video Copy Localization Network with Flexible Supervision

Lei Yang, Sifeng He, Chen Jiang, Yue He, Xiaobo Zhang, Minlong Lu, Xudong Yang, Feng Qian, Jiandong Zhang

Open in the Atlas

Code that ran

7 of 8 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 2 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/aaai_25158.json · badge: /api/ran/aaai_25158.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
transvcl/TransVCL canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
all_gather Ran
ran; our contract draft was wrong, not the code
transvcl/TransVCL/transvcl/utils/dist.py
code served (permissive licence) · get_code("94eddb8e372ba937")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import pickle
import functools

torch.manual_seed(0)

# Since this function requires distributed training setup which isn't available
# in a single-process environment, we'll set up minimal arguments that would work
# if dist were initialized. However, the function gracefully handles the case
# where dist is not initialized by returning [data] early.

# Simple picklable data object
test_data = {
    'tensor': torch.randn(2, 4),
    'list': [1, 2, 3],
    'string': 'test'
}

# group parameter - None means use default group
test_group = None

ARGS = {
    'data': test_data,
    'group': test_group
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
loguru, torch — 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
bboxes_iou Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
transvcl/TransVCL/transvcl/utils/boxes.py
code served (permissive licence) · get_code("2c2c3354be56c4ce")
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, 2) 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 small bounding boxes in xyxy format (x1, y1, x2, y2)
bboxes_a = torch.tensor([
    [10.0, 10.0, 20.0, 20.0],
    [30.0, 30.0, 50.0, 50.0]
], dtype=torch.float32)

bboxes_b = torch.tensor([
    [15.0, 15.0, 25.0, 25.0],
    [35.0, 35.0, 55.0, 55.0]
], dtype=torch.float32)

ARGS = {
    "bboxes_a": bboxes_a,
    "bboxes_b": bboxes_b,
    "xyxy": 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 Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) 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
elu_feature_map Ran
ran, honoured the contract we drafted
transvcl/TransVCL/transvcl/models/linear_attention.py
code served (permissive licence) · get_code("0d5505bd782b4a89")
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)

# The function takes a single parameter 'x' which is passed to torch.nn.functional.elu
# and then 1 is added to it. This means x should be a tensor.

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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
gather Ran
ran; our contract draft was wrong, not the code
transvcl/TransVCL/transvcl/utils/dist.py
code served (permissive licence) · get_code("d171a9b9dac98af4")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import pickle
import functools
from unittest.mock import MagicMock, patch

torch.manual_seed(0)

# Mock distributed setup to avoid actual distributed initialization
with patch('torch.distributed.is_available', return_value=False):
    with patch('torch.distributed.is_initialized', return_value=False):
        # Create simple test data
        test_data = {
            'tensor': torch.randn(2, 4),
            'list': [1, 2, 3],
            'string': 'hello'
        }
        
        ARGS = {
            'data': test_data,
            'dst': 0,
            'group': None
        }
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
loguru, torch — 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
get_activation Ran
ran; our contract draft was wrong, not the code
transvcl/TransVCL/transvcl/models/network_blocks.py
code served (permissive licence) · get_code("6e3d5f4c3ce305d7")
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 SiLU. 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.nn as nn

torch.manual_seed(0)

ARGS = {
    'name': 'silu',
    'inplace': 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 SiLU — a SiLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SiLU 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
postprocess Ran
ran on a synthesized input
transvcl/TransVCL/transvcl/utils/boxes.py
code served (permissive licence) · get_code("8c4b1f699dc71097")
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. 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 torchvision

torch.manual_seed(0)

# Create a prediction tensor
# Shape: (batch_size, num_detections, 5 + num_classes)
# where 5 = [center_x, center_y, width, height, objectness]
batch_size = 2
num_detections = 4
num_classes = 3

# prediction[:, :, :4] = center_x, center_y, width, height
# prediction[:, :, 4] = objectness score
# prediction[:, :, 5:5+num_classes] = class scores
prediction = torch.randn(batch_size, num_detections, 5 + num_classes)

# Ensure objectness scores and class scores are in reasonable range [0, 1]
prediction[:, :, 4] = torch.sigmoid(prediction[:, :, 4])
prediction[:, :, 5:5+num_classes] = torch.sigmoid(prediction[:, :, 5:5+num_classes])

# Ensure boxes have positive width/height
prediction[:, :, 2:4] = torch.abs(prediction[:, :, 2:4]) + 0.1

# Create some detections with high confidence to test filtering
prediction[0, 0, 4] = 0.9  # high objectness
prediction[0, 0, 5] = 0.8  # high class score
prediction[0, 1, 4] = 0.85
prediction[0, 1, 6] = 0.75

ARGS = {
    "prediction": prediction,
    "num_classes": num_classes,
    "conf_thre": 0.7,
    "nms_thre": 0.45,
    "class_agnostic": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
process_conf Ran
ran on a synthesized input
transvcl/TransVCL/evaluation.py
code served (permissive licence) · get_code("9f9c874b20254e2a")
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 numpy as np

def process_conf(eval):
    key, gt, pred_box = (eval['name'], eval['gt'], np.array(eval['pred']))
    conf = 0.5  # conf threshold used in the function
    try:
        return {'name': key, 'gt': gt, 'pred': pred_box[pred_box[:, -1] > conf][:, :4].astype(int).tolist()}
    except:
        return {'name': key, 'gt': gt, 'pred': []}

# Construct minimal valid input for process_conf
eval_dict = {
    'name': 'test_sample',
    'gt': np.array([[10, 20, 30, 40], [50, 60, 70, 80]]),
    'pred': np.array([[15, 25, 35, 45, 0.9], [55, 65, 75, 85, 0.3], [100, 110, 120, 130, 0.8]])
}

ARGS = {
    'eval': eval_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
eval Not yet run
unverified (harvested, no recorded run)
transvcl/TransVCL/evaluation.py
code served (permissive licence) · get_code("293632c19438754c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 4 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 16 other papers
2 dated earlier, 4 later, 10 same year, order not determinable
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
136730727 (2022 (year only))
Self-Supervised Sparse Representation for Video Anomaly Detection
2023.findings-emnlp.644 (2023 (year only))
VIP5: Towards Multimodal Foundation Models for Recommendation
and 13 more not named here
elu_feature_map 14 other papers
5 dated earlier, 6 later, 3 same year, order not determinable · 2 only as an assembly brick
2104.00680 (2021-04)
LoFTR: Detector-Free Local Feature Matching with Transformers
2203.09645 (2022-03)
MatchFormer: Interleaving Attention in Transformers for Feature Matching
2203.10981 (2022-03)
MonoDTR: Monocular 3D Object Detection with Depth-Aware Transformer
and 11 more not named here
gather 14 other papers
2 dated earlier, 4 later, 8 same year, order not determinable
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
136730727 (2022 (year only))
Self-Supervised Sparse Representation for Video Anomaly Detection
2023.findings-emnlp.644 (2023 (year only))
VIP5: Towards Multimodal Foundation Models for Recommendation
and 11 more not named here
get_activation 10 other papers
6 dated earlier, 3 later, 1 same year, order not determinable
1803.11365 (2018-03)
Cross-Domain Weakly-Supervised Object Detection through Progressive Domain Adaptation
2107.08430 (2021-07)
YOLOX: Exceeding YOLO Series in 2021
2108.04230 (2021-08)
Workshop on Autonomous Driving at CVPR 2021: Technical Report for Streaming Perception Challenge
and 7 more not named here
bboxes_iou 2 other papers
2 dated earlier
aaai_20099 (2022 (year only))
Less is More: Pay Less Attention in Vision Transformers
2205.13213 (2022-05)
Fast Vision Transformers with HiLo Attention

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

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 copy localization aims to precisely localize all the copied segments within a pair of untrimmed videos in video retrieval applications. Previous methods typically start from frame-to-frame similarity matrix generated by cosine similarity between frame-level features of the input video pair, and then detect and refine the boundaries of copied segments on similarity matrix under temporal constraints. In this paper, we propose TransVCL: an attention-enhanced video copy localization network, which is optimized directly from initial frame-level features and trained end-to-end with three main components: a customized Transformer for feature enhancement, a correlation and softmax layer for similarity matrix generation, and a temporal alignment module for copied segments localization. In contrast to previous methods demanding the handcrafted similarity matrix, TransVCL incorporates long-range temporal information between feature sequence pair using self-and cross-attention layers. With the joint design and optimization of three components, the similarity matrix can be learned to present more discriminative copied patterns, leading to significant improvements over previous methods on segment-level labeled datasets (VCSL and VCDB). Besides the state-of-the-art performance in fully supervised setting, the attention architecture facilitates TransVCL to further exploit unlabeled or simply video-level labeled data. Additional experiments of supplementing videolevel labeled datasets including SVD and FIVR reveal the high flexibility of TransVCL from full supervision to semisupervision (with or without video-level annotation). Code is publicly available at https://github.com/transvcl/TransVCL.

For agents

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

get_harvested_code_for_paper("aaai_25158")
get_code_for_paper("aaai_25158")
have("aaai_25158")

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

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

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

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

Connect an agent — have() is free.