SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.00998 · 2019

A Multigrid Method for Efficiently Training Video Models

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 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 4 have no contract verdict; 1 failure of our instrument; 4 no recorded run), measured 2026-11-24; 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.00998.json · badge: /api/ran/1912.00998.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
alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates community (classifier label)
classifier basis not recorded on the link
4 ran · 3 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 1 no recorded run
FunctionStatusWhere it lives
autofill Ran
ran on a synthesized input
alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates/train_kinetics.py
code served (permissive licence) · get_code("be3c993685952552")
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 Namespace. 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 os
import socket
from argparse import Namespace

# Create a minimal args object with all required attributes
args = Namespace(
    task_name='',  # Will be autofilled from current directory name
    log_file='',   # Will be autofilled based on task_name
    variant='v1',  # String variant identifier
    network='resnet50',  # Network name
    model_dir='./models/'  # Base model directory
)

ARGS = {
    'args': args
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
autofill Ran
ran on a synthesized input
alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates/train_diving48.py
code served (permissive licence) · get_code("8062365931ddd386")
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 Args. 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 os
import socket

class Args:
    def __init__(self):
        self.task_name = ""
        self.log_file = ""
        self.model_dir = "./models"
        self.network = "resnet50"

ARGS = {
    "args": Args()
}
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 Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
conv1x1x1 Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from kkahatapitiya/X3D-Multigrid
pointer only · get_code("0a3fae1570b6c8c7")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

get_inplanes Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from kkahatapitiya/X3D-Multigrid
pointer only · get_code("acfa08610335818d")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

soft_nnc Ran
ran on a synthesized input
alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates/network/MTnet.py
code served (permissive licence) · get_code("dd0b6b6788c4a14f")
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 1, dtype family float, shape (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
import torch.nn.functional as F

torch.manual_seed(0)

# Analyze the function:
# - Takes two embeddings tensors
# - Uses shape attribute (len, indexing with [-1], [-2])
# - Uses permute, unsqueeze, repeat, squeeze operations
# - Uses torch operations like abs, pow, exp, sum, min
# - Uses scatter_ method
# - The function expects tensors with at least 3 dimensions based on permute(2, 0, 1)
# - embeddings2 is indexed with size()[-1] so it needs to be a proper tensor

# Based on the code logic:
# - embeddings1 needs to be permutable as (2, 0, 1) so at least 3D
# - embeddings2 needs similar structure
# - The function checks len(dims) > 3 for 4D+ tensors
# - After processing, emb1 = embeddings1.permute(2, 0, 1).unsqueeze(-1) should work
# - emb2 needs to be repeatable

# Let's create small 3D tensors to avoid the 4D pooling path:
# Shape: (batch=2, channels=4, sequence=3)
embeddings1 = torch.randn(2, 4, 3)
embeddings2 = torch.randn(2, 4, 3)

ARGS = {
    "embeddings1": embeddings1,
    "embeddings2": embeddings2,
}
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 1, dtype family float, shape (2,) — shape (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
temporal_cossim_pool Ran
ran on a synthesized input
alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates/network/MTnet.py
code served (permissive licence) · get_code("b9f85596f07ec1b4")
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 5, dtype family float, shape (2, 4, 3, 3, 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 math

torch.manual_seed(0)

# The function expects a 5D tensor: (batch, channels, time, height, width)
# Let's create a small tensor with distinct dimensions
# batch=2, channels=4, time=6, height=3, width=5
x = torch.randn(2, 4, 6, 3, 5)

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 5, dtype family float, shape (2, 4, 3, 3, 5) — shape (2, 4, 3, 3, 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
conv3x3x3 Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from kkahatapitiya/X3D-Multigrid
pointer only · get_code("624693b57e7dcd4a")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

srtg_wide_r3d50_2 Not yet run
unverified (harvested, no recorded run)
alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates/network/srtg_resnet.py
code served (permissive licence) · get_code("0cab0d5b1c28cbc8")
How it ran

no invocation recorded.

wide_r3d101_2 Not yet run
unverified (harvested, no recorded run)
alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates/network/srtg_resnet.py
code served (permissive licence) · get_code("38853274c3cd2d74")
How it ran

no invocation recorded.

wide_r3d50_2 Not yet run
unverified (harvested, no recorded run)
alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates/network/srtg_resnet.py
code served (permissive licence) · get_code("1fac1586476472cb")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 7 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
get_inplanes 2 other papers
2 later
2004.04730 (2020-04)
X3D: Expanding Architectures for Efficient Video Recognition
2111.13675 (2021-11)
Weakly-guided Self-supervised Pretraining for Temporal Activity Detection
conv1x1x1 1 other paper
1 later
2004.04730 (2020-04)
X3D: Expanding Architectures for Efficient Video Recognition
conv3x3x3 1 other paper
1 later
2004.04730 (2020-04)
X3D: Expanding Architectures for Efficient Video Recognition

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

Training competitive deep video models is an order of magnitude slower than training their counterpart image models. Slow training causes long research cycles, which hinders progress in video understanding research. Following standard practice for training image models, video model training assumes a fixed mini-batch shape: a specific number of clips, frames, and spatial size. However, what is the optimal shape? High resolution models perform well, but train slowly. Low resolution models train faster, but they are inaccurate. Inspired by multigrid methods in numerical optimization, we propose to use variable mini-batch shapes with different spatial-temporal resolutions that are varied according to a schedule. The different shapes arise from resampling the training data on multiple sampling grids. Training is accelerated by scaling up the mini-batch size and learning rate when shrinking the other dimensions. We empirically demonstrate a general and robust grid schedule that yields a significant out-of-the-box training speedup without a loss in accuracy for different models (I3D, non-local, SlowFast), datasets (Kinetics, Something-Something, Charades), and training settings (with and without pre-training, 128 GPUs or 1 GPU). As an illustrative example, the proposed multigrid method trains a ResNet-50 SlowFast network 4.5x faster (wall-clock time, same hardware) while also improving accuracy (+0.8% absolute) on Kinetics-400 compared to the baseline training method. Code is available online.

For agents

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

get_harvested_code_for_paper("1912.00998")
get_code_for_paper("1912.00998")
have("1912.00998")

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

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

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

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

Connect an agent — have() is free.