SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.05534 · 2019

Why Can't I Dance in the Mall? Learning to Mitigate Scene Bias in Action Recognition

arXiv · PDF · Open in the Atlas

Code that ran

10 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; 2 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 4 failures of our instrument; 2 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/1912.05534.json · badge: /api/ran/1912.05534.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
vt-vl-lab/SDN canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
FunctionStatusWhere it lives
conv3x3x3 Ran
ran; our contract draft was wrong, not the code
vt-vl-lab/SDN/models/pre_act_resnet.py
code served (permissive licence) · get_code("c3b215555357b9d1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Conv3d. 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)

# The function conv3x3x3 creates a 3D convolution layer
# Parameters:
# - in_planes: number of input channels
# - out_planes: number of output channels  
# - stride: stride for the convolution (default=1)

# We need to provide distinct values for in_planes and out_planes
in_planes = 3
out_planes = 5
stride = 2

ARGS = {
    'in_planes': in_planes,
    'out_planes': out_planes,
    'stride': stride
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv3d — a Conv3d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv3d 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
downsample_basic_block Ran
ran; our contract draft was wrong, not the code
vt-vl-lab/SDN/models/pre_act_resnet.py
code served (permissive licence) · get_code("43c0211ff8dbca5f")
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) and returned Tensor, ndim 5, dtype family float, shape (2, 8, 2, 2, 2) as a later run recorded it. 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, 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
from torch.autograd import Variable

torch.manual_seed(0)

# Create a small 5D tensor (batch_size=2, channels=4, depth=3, height=3, width=3)
# This matches the expected input for a 3D convolution operation
x = torch.randn(2, 4, 3, 3, 3)

# planes should be greater than the number of input channels (4)
# so that zero padding can be added
planes = 8

# stride for the pooling operation
stride = 2

ARGS = {
    "x": x,
    "planes": planes,
    "stride": stride
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 5, dtype family float, shape (2, 8, 2, 2, 2) — shape (2, 8, 2, 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
get_adv_fine_tuning_parameters Ran
ran on a synthesized input
vt-vl-lab/SDN/models/vgg.py
code served (permissive licence) · get_code("95d9eef25c0060ed")
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 torch.nn as nn

torch.manual_seed(0)

class SimpleVGG(nn.Module):
    def __init__(self):
        super().__init__()
        self.vgg = nn.Sequential(
            nn.Conv2d(3, 4, 3),
            nn.ReLU()
        )
        self.mlp = nn.Sequential(
            nn.Linear(4, 8),
            nn.ReLU()
        )
        self.place_mlp = nn.Sequential(
            nn.Linear(8, 4),
            nn.ReLU()
        )
        self.hm_mlp = nn.Sequential(
            nn.Linear(4, 2),
            nn.ReLU()
        )
        self.fc = nn.Linear(2, 10)
    
    def forward(self, x):
        return x

model = SimpleVGG()

ARGS = {
    'model': model,
    'ft_begin_index': 0,
    'new_layer_lr': 0.001,
    'not_replace_last_fc': False,
    'is_human_mask_adv': True,
    'slower_place_mlp': False,
    'slower_hm_mlp': False
}
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 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
get_fine_tuning_parameters Ran
ran; our contract draft was wrong, not the code
vt-vl-lab/SDN/models/pre_act_resnet.py
code served (permissive licence) · get_code("93801ecf3026ab06")
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) 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal model that has layer0, layer1, layer2, layer3, layer4, and fc
# The function iterates through named_parameters() and checks if module names
# like 'layer0', 'layer1', etc. are in the parameter names
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.layer0 = nn.Linear(4, 3)
        self.layer1 = nn.Linear(3, 3)
        self.layer2 = nn.Linear(3, 3)
        self.layer3 = nn.Linear(3, 3)
        self.layer4 = nn.Linear(3, 2)
        self.fc = nn.Linear(2, 1)
    
    def forward(self, x):
        x = self.layer0(x)
        x = self.layer1(x)
        x = self.layer2(x)
        x = self.layer3(x)
        x = self.layer4(x)
        x = self.fc(x)
        return x

model = SimpleModel()

# Test with ft_begin_index = 0 (should return all parameters)
ft_begin_index_0 = 0

# Test with ft_begin_index = 2 (should fine-tune layer2, layer3, layer4, fc)
ft_begin_index_2 = 2

ARGS = {
    "model": model,
    "ft_begin_index": ft_begin_index_2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
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_fine_tuning_parameters Ran
ran on a synthesized input
vt-vl-lab/SDN/models/densenet.py
code served (permissive licence) · get_code("b934dfd4a7bd8467")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal model that mimics DenseNet structure
class MiniDenseNet(nn.Module):
    def __init__(self):
        super().__init__()
        # Create denseblock and transition modules
        self.denseblock1 = nn.Linear(4, 4)
        self.transition1 = nn.Linear(4, 4)
        self.denseblock2 = nn.Linear(4, 4)
        self.transition2 = nn.Linear(4, 4)
        self.denseblock3 = nn.Linear(4, 4)
        self.transition3 = nn.Linear(4, 4)
        self.denseblock4 = nn.Linear(4, 4)
        self.transition4 = nn.Linear(4, 4)
        self.norm5 = nn.BatchNorm1d(4)
        self.classifier = nn.Linear(4, 10)

model = MiniDenseNet()

ARGS = {
    'model': model,
    'ft_begin_index': 2
}
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 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_fine_tuning_parameters Ran
ran on a synthesized input
vt-vl-lab/SDN/models/vgg.py
code served (permissive licence) · get_code("b7aa932088b177a2")
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 torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        # Create layers with names that will be matched by the function
        self.vgg = nn.Sequential(
            nn.Linear(4, 3),
            nn.ReLU()
        )
        self.mlp = nn.Sequential(
            nn.Linear(3, 2),
            nn.ReLU()
        )
        self.fc = nn.Linear(2, 1)
    
    def forward(self, x):
        x = self.vgg(x)
        x = self.mlp(x)
        x = self.fc(x)
        return x

model = SimpleModel()
ft_begin_index = 0

ARGS = {
    'model': model,
    'ft_begin_index': ft_begin_index
}
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 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
pil_loader Ran
ran, honoured the contract we drafted
vt-vl-lab/SDN/datasets/activitynet.py
pointer only (licence: MIT); the stored copy get_code serves, from YuemingJin/MTRCNet-CL, is pointer only (licence: NONE) · get_code("1df9a5ffd9b38c34")
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 YuemingJin/MTRCNet-CL, 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.

pil_loader Ran
ran, honoured the contract we drafted
vt-vl-lab/SDN/datasets/kinetics.py
code served (permissive licence) · get_code("4b0838a32c3a88a2")
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 Image. 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 tempfile
import os
from PIL import Image

# Create a temporary image file for testing
temp_dir = tempfile.mkdtemp()
temp_image_path = os.path.join(temp_dir, "test_image.jpg")

# Create a simple RGB image and save it
test_image = Image.new('RGB', (4, 3), color=(255, 0, 0))
test_image.save(temp_image_path)

ARGS = {
    'path': temp_image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
vgg Ran
ran; our contract draft was wrong, not the code
vt-vl-lab/SDN/models/vgg.py
code served (permissive licence) · get_code("6921f7ed00595a4f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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 torch
import torch.nn as nn

torch.manual_seed(0)

# The function expects:
# - cfg: a list/tuple containing integers (number of channels) and strings 'M' or 'C' for pooling
# - i: integer representing input channels
# - batch_norm: boolean flag

# Looking at the function body, cfg is iterated over and can contain:
# - 'M' or 'C' for MaxPool2d layers
# - integers for Conv2d output channels
# The function builds a VGG-style network

# Create a simple configuration
cfg = [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'C', 512, 512, 512, 'M', 512, 512, 512]

# Input channels (typically 3 for RGB images)
i = 3

# Batch normalization flag
batch_norm = False

ARGS = {
    'cfg': cfg,
    'i': i,
    'batch_norm': batch_norm
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
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
video_loader Ran
ran on a synthesized input
vt-vl-lab/SDN/datasets/activitynet.py
code served (permissive licence) · get_code("969914385b6159ef")
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 4, dtype family int; 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 os
import tempfile
from PIL import Image
import numpy as np

# Create a temporary directory with test images
temp_dir = tempfile.mkdtemp()

# Create a few test images
for i in range(0, 3):
    img_array = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
    img = Image.fromarray(img_array.transpose(1, 2, 0), 'RGB')
    img_path = os.path.join(temp_dir, f'image_{i:05d}.jpg')
    img.save(img_path)

# Define a simple image loader function
def simple_image_loader(image_path):
    img = Image.open(image_path)
    return np.array(img)

# Define arguments
ARGS = {
    'video_dir_path': temp_dir,
    'frame_indices': [0, 1, 2],
    'image_loader': simple_image_loader
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — 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
accimage_loader Not yet run
unverified (harvested, no recorded run)
vt-vl-lab/SDN/datasets/activitynet.py
code served (permissive licence) · get_code("aae0a4f3535e8f26")
How it ran

no invocation recorded.

accimage_loader Not yet run
unverified (harvested, no recorded run)
vt-vl-lab/SDN/datasets/kinetics.py
code served (permissive licence) · get_code("73ac7114d33b3e4f")
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 10 distinct functions with an identity, 8 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 4 the same month, 8 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
pil_loader 28 other papers
8 dated earlier, 20 later
1702.00758 (2017-02)
HashNet: Deep Learning to Hash by Continuation
1805.07932 (2018-05)
Bilinear Attention Networks
1807.06587 (2018-07)
Deep Exemplar-based Colorization
and 25 more not named here
conv3x3x3 19 other papers
4 dated earlier, 1 the same month, 14 later
1711.08580 (2017-11)
3D Anisotropic Hybrid Network: Transferring Convolutional Features from 2D Images to 3D Anisotropic Volumes
1711.09577 (2017-11)
Can Spatiotemporal 3D CNNs Retrace the History of 2D CNNs and ImageNet?
1908.01373 (2019-08)
Unsupervised Microvascular Image Segmentation Using an Active Contours Mimicking Neural Network
and 16 more not named here
downsample_basic_block 15 other papers
4 dated earlier, 1 the same month, 10 later
1705.07750 (2017-05)
Quo Vadis, Action Recognition? A New Model and the Kinetics Dataset
1711.09577 (2017-11)
Can Spatiotemporal 3D CNNs Retrace the History of 2D CNNs and ImageNet?
1908.01373 (2019-08)
Unsupervised Microvascular Image Segmentation Using an Active Contours Mimicking Neural Network
and 12 more not named here
vgg 11 other papers
7 dated earlier, 1 the same month, 3 later
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
1611.08563 (2016-11)
Online Real-time Multiple Spatiotemporal Action Localisation and Prediction
and 8 more not named here
get_fine_tuning_parameters 5 other papers
2 dated earlier, 1 the same month, 2 later
1711.09577 (2017-11)
Can Spatiotemporal 3D CNNs Retrace the History of 2D CNNs and ImageNet?
1908.01373 (2019-08)
Unsupervised Microvascular Image Segmentation Using an Active Contours Mimicking Neural Network
1912.09930 (2019-12)
Something-Else: Compositional Action Recognition with Spatial-Temporal Interaction Networks
and 2 more not named here
accimage_loader 3 other papers
3 later
2009.09805 (2020-09)
Active Contrastive Learning of Audio-Visual Video Representations
2111.13675 (2021-11)
Weakly-guided Self-supervised Pretraining for Temporal Activity Detection
aaai_25362 (2023 (year only))
Global-Local Characteristic Excited Cross-Modal Attacks from Images to Videos
video_loader 2 other papers
2 later
2009.09805 (2020-09)
Active Contrastive Learning of Audio-Visual Video Representations
aaai_25362 (2023 (year only))
Global-Local Characteristic Excited Cross-Modal Attacks from Images to Videos
get_fine_tuning_parameters 1 other paper
1 later
2009.09805 (2020-09)
Active Contrastive Learning of Audio-Visual Video Representations

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

Human activities often occur in specific scene contexts, e.g., playing basketball on a basketball court. Training a model using existing video datasets thus inevitably captures and leverages such bias (instead of using the actual discriminative cues). The learned representation may not generalize well to new action classes or different tasks. In this paper, we propose to mitigate scene bias for video representation learning. Specifically, we augment the standard cross-entropy loss for action classification with 1) an adversarial loss for scene types and 2) a human mask confusion loss for videos where the human actors are masked out. These two losses encourage learning representations that are unable to predict the scene types and the correct actions when there is no evidence. We validate the effectiveness of our method by transferring our pre-trained model to three different tasks, including action classification, temporal localization, and spatio-temporal action detection. Our results show consistent improvement over the baseline model without debiasing.

For agents

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

get_harvested_code_for_paper("1912.05534")
get_code_for_paper("1912.05534")
have("1912.05534")

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

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

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

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

Connect an agent — have() is free.