SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2007.15829 · 2020

Adversarial Bipartite Graph Learning for Video Domain Adaptation

arXiv · PDF · Open in the Atlas

Code that ran

4 of 9 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 1 has no contract verdict; 3 failures of our instrument; 5 no recorded run), measured 2026-11-21; 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/2007.15829.json · badge: /api/ran/2007.15829.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
Luoyadan/MM2020_ABG canonical (classifier label)
classifier basis: census
4 ran · 5 no recorded run
FunctionStatusWhere it lives
attentive_entropy Ran
ran; our contract draft was wrong, not the code
Luoyadan/MM2020_ABG/loss.py
code served (permissive licence) · get_code("5dafc748f41191f5")
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 0, dtype family float, shape () 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 as nn

torch.manual_seed(0)

# The function expects two logit tensors
# pred: logits for the main task (used to compute entropy)
# pred_domain: logits for domain prediction (used to compute entropy weights)
# Both are passed through softmax and logsoftmax, so they should be 2D tensors
# with shape (batch_size, num_classes)

batch_size = 2
num_classes = 4

pred = torch.randn(batch_size, num_classes)
pred_domain = torch.randn(batch_size, num_classes)

ARGS = {
    "pred": pred,
    "pred_domain": pred_domain,
}
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 0, dtype family float, shape () — shape () 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
cross_entropy_soft Ran
ran; our contract draft was wrong, not the code
Luoyadan/MM2020_ABG/loss.py
code served (permissive licence) · get_code("b1e8dce608f3f658")
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 0, dtype family float, shape () 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 as nn

torch.manual_seed(0)

# The function takes a single parameter 'pred' which is used as:
# - Input to softmax and logsoftmax (both expect dim=1)
# - The result is summed along dim=1
# So pred should be a 2D tensor with shape (batch_size, num_classes)

pred = torch.randn(2, 4)

ARGS = {
    "pred": pred
}
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 0, dtype family float, shape () — shape () 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
dis_MCD Ran
ran; our contract draft was wrong, not the code
Luoyadan/MM2020_ABG/loss.py
code served (permissive licence) · get_code("0c3c2aa9cf2ac2f0")
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 0, dtype family float, shape () 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)

# Create two output tensors with shape (batch_size=2, num_classes=4)
# These represent logits from a model
out1 = torch.randn(2, 4)
out2 = torch.randn(2, 4)

ARGS = {
    "out1": out1,
    "out2": out2,
}
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 0, dtype family float, shape () — shape () 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
loss_adaptive_weight Ran
ran on a synthesized input
Luoyadan/MM2020_ABG/main_G.py
code served (permissive licence) · get_code("5756c9cae54bd813")
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 0, dtype family float, shape () 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 tensors for the function parameters
# loss: a scalar tensor representing loss value
loss = torch.tensor(0.5, dtype=torch.float32)

# pred: a tensor with variance and std methods
# The function calls pred.var().log() and pred.std().log()
# So pred needs to be a tensor with at least 2 elements to have meaningful variance
pred = torch.randn(2, 4, dtype=torch.float32)

ARGS = {
    "loss": loss,
    "pred": pred,
}
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 0, dtype family float, shape () — shape () 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
convert_c3d_tensor_batch Not yet run
unverified (harvested, no recorded run)
Luoyadan/MM2020_ABG/dataset_preparation/video2feature.py
code served (permissive licence) · get_code("b92a3f112f0c080c")
How it ran

no invocation recorded.

extract_frame_feature_batch Not yet run
unverified (harvested, no recorded run)
Luoyadan/MM2020_ABG/dataset_preparation/video2feature.py
code served (permissive licence) · get_code("468842eca7cd59de")
How it ran

no invocation recorded.

im2tensor Not yet run
unverified (harvested, no recorded run)
Luoyadan/MM2020_ABG/dataset_preparation/video2feature.py
code served (permissive licence) · get_code("8376f17deba65583")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
Luoyadan/MM2020_ABG/main_G.py
code served (permissive licence) · get_code("93d1e6f74e435e53")
How it ran

no invocation recorded.

validate Not yet run
unverified (harvested, no recorded run)
Luoyadan/MM2020_ABG/main_G.py
code served (permissive licence) · get_code("0b81ad55dd1ead9f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 6 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
cross_entropy_soft 5 other papers
3 dated earlier, 2 later
1907.12743 (2019-07)
Temporal Attentive Alignment for Large-Scale Video Domain Adaptation
2003.02824 (2020-03)
Action Segmentation with Joint Self-Supervised Temporal Domain Adaptation
2006.13256 (2020-06)
Rescaling Egocentric Vision
and 2 more not named here
attentive_entropy 4 other papers
2 dated earlier, 2 later
1907.12743 (2019-07)
Temporal Attentive Alignment for Large-Scale Video Domain Adaptation
2006.13256 (2020-06)
Rescaling Egocentric Vision
2109.00522 (2021-09)
Conditional Extreme Value Theory for Open Set Video Domain Adaptation
and 1 more not named here
dis_MCD 4 other papers
2 dated earlier, 2 later
1907.12743 (2019-07)
Temporal Attentive Alignment for Large-Scale Video Domain Adaptation
2006.13256 (2020-06)
Rescaling Egocentric Vision
2109.00522 (2021-09)
Conditional Extreme Value Theory for Open Set Video Domain Adaptation
and 1 more not named here
convert_c3d_tensor_batch 2 other papers
1 dated earlier, 1 later
1907.12743 (2019-07)
Temporal Attentive Alignment for Large-Scale Video Domain Adaptation
2109.00522 (2021-09)
Conditional Extreme Value Theory for Open Set Video Domain Adaptation
extract_frame_feature_batch 2 other papers
1 dated earlier, 1 later
1907.12743 (2019-07)
Temporal Attentive Alignment for Large-Scale Video Domain Adaptation
2109.00522 (2021-09)
Conditional Extreme Value Theory for Open Set Video Domain Adaptation
im2tensor 2 other papers
1 dated earlier, 1 later
1907.12743 (2019-07)
Temporal Attentive Alignment for Large-Scale Video Domain Adaptation
2109.00522 (2021-09)
Conditional Extreme Value Theory for Open Set Video Domain Adaptation

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

Repositories linked to this paper

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

Abstract

Domain adaptation techniques, which focus on adapting models between distributionally different domains, are rarely explored in the video recognition area due to the significant spatial and temporal shifts across the source (i.e. training) and target (i.e. test) domains. As such, recent works on visual domain adaptation which leverage adversarial learning to unify the source and target video representations and strengthen the feature transferability are not highly effective on the videos. To overcome this limitation, in this paper, we learn a domain-agnostic video classifier instead of learning domain-invariant representations, and propose an Adversarial Bipartite Graph (ABG) learning framework which directly models the source-target interactions with a network topology of the bipartite graph. Specifically, the source and target frames are sampled as heterogeneous vertexes while the edges connecting two types of nodes measure the affinity among them. Through message-passing, each vertex aggregates the features from its heterogeneous neighbors, forcing the features coming from the same class to be mixed evenly. Explicitly exposing the video classifier to such cross-domain representations at the training and test stages makes our model less biased to the labeled source data, which in-turn results in achieving a better generalization on the target domain. To further enhance the model capacity and testify the robustness of the proposed architecture on difficult transfer tasks, we extend our model to work in a semi-supervised setting using an additional video-level bipartite graph. Extensive experiments conducted on four benchmarks evidence the effectiveness of the proposed approach over the SOTA methods on the task of video recognition.

For agents

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

get_harvested_code_for_paper("2007.15829")
get_code_for_paper("2007.15829")
have("2007.15829")

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

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

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

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

Connect an agent — have() is free.