SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.14509 · CVPR · 2022

Automated Progressive Learning for Efficient Training of Vision Transformers

Yi Yang, Bohan Zhuang, Xiaojun Chang, Xiaodan Liang, Guangrun Wang, Changlin Li

arXiv · PDF · Open in the Atlas

Code that ran

8 of 13 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 5 have no contract verdict; 2 failures of our instrument; 5 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/2203.14509.json · badge: /api/ran/2203.14509.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
changlin31/autoprog canonical (classifier label)
classifier basis not recorded on the link
7 ran · 3 no recorded run
changlin31/autoprog-zero community
Papers with Code archive
1 ran · 2 no recorded run
FunctionStatusWhere it lives
SmoothMeter Ran
ran on a synthesized input
changlin31/autoprog-zero/train_apz.py
pointer only (licence: NONE) · get_code("c6689f2469faefd0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, changlin31/autoprog-zero 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.

get_block Ran
ran; our contract draft was wrong, not the code
changlin31/autoprog/models/volo.py
code served (permissive licence) · get_code("87a34d0211098d18")
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 ClassBlock. 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
from timm.models.layers import DropPath, to_2tuple, trunc_normal_

torch.manual_seed(0)

ARGS = {
    'block_type': 'ca',
    'dim': 64,
    'num_heads': 4,
    'head_dim': 16,
    'mlp_ratio': 4.0,
    'qkv_bias': False,
    'qk_scale': None,
    'drop': 0.1,
    'attn_drop': 0.1,
    'drop_path': 0.1,
    'act_layer': nn.GELU,
    'norm_layer': nn.LayerNorm,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ClassBlock — a ClassBlock output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ClassBlock 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
get_resume_epoch Ran
ran on a synthesized input
changlin31/autoprog/prog/helpers.py
code served (permissive licence) · get_code("453b65e88ebc0a36")
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 int, ndim 0, dtype family int, 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 tempfile
import os

# Create a temporary directory and checkpoint file
temp_dir = tempfile.mkdtemp()
checkpoint_path = os.path.join(temp_dir, "checkpoint.pt")

# Create a valid checkpoint with epoch and version
checkpoint_data = {
    'epoch': 5,
    'version': 2,
    'model_state': torch.randn(2, 4)
}

torch.save(checkpoint_data, checkpoint_path)

ARGS = {
    'checkpoint_path': checkpoint_path
}
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 int, ndim 0, dtype family int, 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
load_state_dict Ran
ran on a synthesized input
changlin31/autoprog/prog/helpers.py
code served (permissive licence) · get_code("6725eb03753f6554")
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 OrderedDict. 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
from collections import OrderedDict
import tempfile
import os

torch.manual_seed(0)

# Create a temporary checkpoint file with a valid state dict
temp_dir = tempfile.mkdtemp()
checkpoint_path = os.path.join(temp_dir, 'test_checkpoint.pth')

# Create a sample state dict with both regular and module-prefixed keys
state_dict = OrderedDict()
state_dict['weight'] = torch.randn(4, 3)
state_dict['bias'] = torch.randn(3)
state_dict['module.layer.weight'] = torch.randn(2, 4)
state_dict['module.layer.bias'] = torch.randn(2)

# Create checkpoint dict with multiple state dict variants
checkpoint = {
    'state_dict': state_dict,
    'state_dict_ema': OrderedDict([
        ('weight_ema', torch.randn(4, 3)),
        ('bias_ema', torch.randn(3))
    ]),
    'state_dict_ema_1': OrderedDict([
        ('weight_ema_1', torch.randn(5, 2)),
        ('bias_ema_1', torch.randn(2))
    ]),
    'epoch': 10,
    'step': 1000
}

# Save the checkpoint
torch.save(checkpoint, checkpoint_path)

ARGS = {
    'checkpoint_path': checkpoint_path,
    'use_ema': False,
    'ema_idx': None
}
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 OrderedDict — a OrderedDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OrderedDict 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
make_divisible Ran
ran, honoured the contract we drafted
changlin31/autoprog/prog/progressive.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from facebookresearch/depthshrinker, is pointer only (licence: NOASSERTION) · get_code("24400bc088ed228d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from facebookresearch/depthshrinker, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

outlooker_blocks Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
changlin31/autoprog/models/volo.py
code served (permissive licence) · get_code("ba7779c554538760")
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 Sequential. 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)

# Define a minimal block_fn that the function will call
class MinimalOutlookerBlock(nn.Module):
    def __init__(self, dim, kernel_size=3, padding=1, stride=1, num_heads=1, mlp_ratio=3.0, qkv_bias=False, qk_scale=None, attn_drop=0, drop_path=0.0):
        super().__init__()
        self.dim = dim
        self.kernel_size = kernel_size
        self.padding = padding
        self.stride = stride
        self.num_heads = num_heads
        self.mlp_ratio = mlp_ratio
        self.qkv_bias = qkv_bias
        self.qk_scale = qk_scale
        self.attn_drop = attn_drop
        self.drop_path = drop_path
        self.linear = nn.Linear(dim, dim)
    
    def forward(self, x):
        return self.linear(x)

# Define ARGS dictionary with all parameters
ARGS = {
    'block_fn': MinimalOutlookerBlock,
    'index': 0,
    'dim': 64,
    'layers': [2, 3, 4, 2],
    'num_heads': 4,
    'kernel_size': 3,
    'padding': 1,
    'stride': 1,
    'mlp_ratio': 3.0,
    'qkv_bias': False,
    'qk_scale': None,
    'attn_drop': 0.0,
    'drop_path_rate': 0.1,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
progressive_schedule Ran
ran on a synthesized input
changlin31/autoprog/prog/progressive.py
code served (permissive licence) · get_code("ec909a92ce99e3b8")
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 numpy as np

class Args:
    def __init__(self):
        self.num_stages = 3
        self.r_scale = 0.5
        self.h_scale = 0.6
        self.l_scale = 0.7
        self.aa_scale = 0.4
        self.dp_scale = 0.3
        self.re_scale = 0.2
        self.resize_scale = [0.5, 0.6]
        self.aa = 'rand-m10-mstd0.5-inc1'
        self.drop_path = 0.2
        self.reprob = 0.1
        self.scale = [256, 224]
        self.epochs = 300

args = Args()

ARGS = {
    'args': args,
    'r_max': 224,
    'h_max': 12,
    'l_max': 18
}
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 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
resume_checkpoint Ran
ran on a synthesized input
changlin31/autoprog/prog/helpers.py
code served (permissive licence) · get_code("fbde52072d8c3118")
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 int, ndim 0, dtype family int, 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
import tempfile
import os
from collections import OrderedDict

torch.manual_seed(0)

# Create a minimal model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = SimpleModel()

# Create a minimal optimizer
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)

# Create a minimal loss scaler with state_dict_key attribute
class SimpleLossScaler:
    def __init__(self):
        self.state_dict_key = 'loss_scaler'
        self._state = {'scale': 65536.0}
    
    def state_dict(self):
        return self._state
    
    def load_state_dict(self, state_dict):
        self._state = state_dict

loss_scaler = SimpleLossScaler()

# Create a temporary checkpoint file
temp_dir = tempfile.gettempdir()
checkpoint_path = os.path.join(temp_dir, 'test_checkpoint.pt')

# Create checkpoint with all possible fields
checkpoint = {
    'state_dict': model.state_dict(),
    'optimizer': optimizer.state_dict(),
    'loss_scaler': loss_scaler.state_dict(),
    'epoch': 5,
    'version': 2
}

torch.save(checkpoint, checkpoint_path)

# Define arguments for the function
ARGS = {
    'model': model,
    'checkpoint_path': checkpoint_path,
    'optimizer': optimizer,
    'loss_scaler': loss_scaler,
    'log_info': True,
    'use_ema': False,
    'ema_idx': None
}
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 int, ndim 0, dtype family int, 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
auto_grow Not yet run
unverified (harvested, no recorded run)
changlin31/autoprog-zero/train_apz.py
pointer only (licence: NONE) · get_code("c42ac1c1628c699d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, changlin31/autoprog-zero 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. No invocation recorded.

rand_bbox Not yet run
unverified (harvested, no recorded run)
changlin31/autoprog/models/volo.py
code served (permissive licence) · get_code("b66088e90761117d")
How it ran

no invocation recorded.

train_one_epoch_super Not yet run
unverified (harvested, no recorded run)
changlin31/autoprog-zero/train_apz.py
pointer only (licence: NONE) · get_code("a8dddad99b3c4841")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, changlin31/autoprog-zero 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. No invocation recorded.

validate Not yet run
unverified (harvested, no recorded run)
changlin31/autoprog/main_prog.py
code served (permissive licence) · get_code("c3177cb184234e06")
How it ran

no invocation recorded.

validate_trainset Not yet run
unverified (harvested, no recorded run)
changlin31/autoprog/main_prog.py
code served (permissive licence) · get_code("1bb06b1e2166bced")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 4 later) and 9 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
make_divisible 9 other papers
1 dated earlier, 1 the same month, 7 later
2105.01601 (2021-05)
MLP-Mixer: An all-MLP Architecture for Vision
2203.08392 (2022-03)
Patch-Fool: Are Vision Transformers Always Robust Against Adversarial Perturbations?
2206.00843 (2022-06)
DepthShrinker: A New Compression Paradigm Towards Boosting Real-Hardware Efficiency of Compact Neural Networks
and 6 more not named here
rand_bbox 3 other papers
1 dated earlier, 2 later
2106.13112 (2021-06)
VOLO: Vision Outlooker for Visual Recognition
2204.00993 (2022-04)
Improving Vision Transformers by Revisiting High-frequency Components
2207.04978 (2022-07)
Wave-ViT: Unifying Wavelet and Transformers for Visual Representation Learning
get_block 2 other papers
1 dated earlier, 1 later
2106.13112 (2021-06)
VOLO: Vision Outlooker for Visual Recognition
2204.00993 (2022-04)
Improving Vision Transformers by Revisiting High-frequency Components
outlooker_blocks 2 other papers
1 dated earlier, 1 later
2106.13112 (2021-06)
VOLO: Vision Outlooker for Visual Recognition
2204.00993 (2022-04)
Improving Vision Transformers by Revisiting High-frequency Components

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

Recent advances in vision Transformers (ViTs) have come with a voracious appetite for computing power, highlighting the urgent need to develop efficient training methods for ViTs. Progressive learning, a training scheme where the model capacity grows progressively during training, has started showing its ability in efficient training. In this paper, we take a practical step towards efficient training of ViTs by customizing and automating progressive learning. First, we develop a strong manual baseline for progressive learning of ViTs, by introducing momentum growth (MoGrow) to bridge the gap brought by model growth. Then, we propose automated progressive learning (AutoProg), an efficient training scheme that aims to achieve lossless acceleration by automatically increasing the training overload on-the-fly; this is achieved by adaptively deciding whether, where and how much should the model grow during progressive learning. Specifically, we first relax the optimization of the growth schedule to sub-network architecture optimization problem, then propose one-shot estimation of the sub-network performance via an elastic supernet. The searching overhead is reduced to minimal by recycling the parameters of the supernet. Extensive experiments of efficient training on ImageNet with two representative ViT models, DeiT and VOLO, demonstrate that AutoProg can accelerate ViTs training by up to 85.1% with no performance drop.

For agents

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

get_harvested_code_for_paper("2203.14509")
get_code_for_paper("2203.14509")
have("2203.14509")

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

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

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

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

Connect an agent — have() is free.