SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.05175 · 2023

Large-scale Dataset Pruning with Dynamic Uncertainty

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 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, 1 violated it and 2 have no contract verdict; 7 failures of our instrument; 0 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/2306.05175.json · badge: /api/ran/2306.05175.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
baai-dcai/dataset-pruning canonical (classifier label)
classifier basis: census
10 ran · 0 no recorded run
prasangadhungel/Data-Pruning-with-Extrapolated-Scores extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
auto_resume_helper Ran
ran; our contract draft was wrong, not the code
baai-dcai/dataset-pruning/ImageNet/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from leaplabthu/inline, is pointer only (licence: NONE) · get_code("0c32459bef92ff8c")
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 leaplabthu/inline, 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.

build_optimizer Ran
ran; our contract draft was wrong, not the code
baai-dcai/dataset-pruning/ImageNet/optimizer.py
code served (permissive licence) · get_code("22089fe7254c16b7")
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 AdamW. 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 torch import optim
from functools import partial

torch.manual_seed(0)

# Build a minimal model with the required attributes and methods
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
        self.norm = nn.BatchNorm1d(3)
        self.bias_param = nn.Parameter(torch.randn(2))
        
    def forward(self, x):
        return x
    
    def no_weight_decay(self):
        return set()
    
    def no_weight_decay_keywords(self):
        return ()

# Build a minimal config object
class MinimalConfig:
    def __init__(self):
        self.TRAIN = type('obj', (object,), {
            'OPTIMIZER': type('obj', (object,), {
                'NAME': 'adamw',
                'MOMENTUM': 0.9,
                'EPS': 1e-8,
                'BETAS': (0.9, 0.999)
            })(),
            'BASE_LR': 0.001,
            'WEIGHT_DECAY': 0.05,
            'LAYER_DECAY': 0.9
        })()
        self.MODEL = type('obj', (object,), {
            'TYPE': 'swin',
            'SWIN': type('obj', (object,), {
                'DEPTHS': [2, 2, 6, 2]
            })(),
            'SWINV2': type('obj', (object,), {
                'DEPTHS': [2, 2, 6, 2]
            })()
        })()

# Create instances
model = MinimalModel()
config = MinimalConfig()

# Build ARGS dictionary with all parameters for build_optimizer
ARGS = {
    'config': config,
    'model': model,
    'simmim': False,
    'is_pretrain': 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 AdamW — a AdamW output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a AdamW 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
build_scheduler Ran
ran on a synthesized input
baai-dcai/dataset-pruning/ImageNet/lr_scheduler.py
code served (permissive licence) · get_code("7474e608a870c61a")
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 LinearLRScheduler. 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
import torch.optim as optim

torch.manual_seed(0)

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

class ConfigDict:
    def __init__(self):
        self.TRAIN = TrainConfig()

class TrainConfig:
    def __init__(self):
        self.EPOCHS = 10
        self.WARMUP_EPOCHS = 1
        self.WARMUP_LR = 0.0001
        self.MIN_LR = 1e-6
        self.LR_SCHEDULER = LRSchedulerConfig()

class LRSchedulerConfig:
    def __init__(self):
        self.NAME = 'linear'
        self.WARMUP_PREFIX = False
        self.DECAY_EPOCHS = 8
        self.DECAY_RATE = 0.1
        self.MULTISTEPS = [5, 8]
        self.GAMMA = 0.1

model = SimpleModel()
optimizer = optim.SGD(model.parameters(), lr=0.1)
config = ConfigDict()
n_iter_per_epoch = 100

ARGS = {
    'config': config,
    'optimizer': optimizer,
    'n_iter_per_epoch': n_iter_per_epoch
}
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 LinearLRScheduler — a LinearLRScheduler output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LinearLRScheduler 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
check_keywords_in_name Ran
ran, violated the contract we drafted
baai-dcai/dataset-pruning/ImageNet/optimizer.py
pointer only (licence: MIT); the stored copy get_code serves, from leaplabthu/inline, is pointer only (licence: NONE) · get_code("b0a5beb34716d5a6")
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 leaplabthu/inline, 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.

conv1x1 Ran
ran; our contract draft was wrong, not the code
baai-dcai/dataset-pruning/ImageNet/models/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from medaitech/scrd4ad, is pointer only (licence: NONE) · get_code("2a80220dabcb742a")
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 medaitech/scrd4ad, 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.

conv3x3 Ran
ran; our contract draft was wrong, not the code
baai-dcai/dataset-pruning/ImageNet/models/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from medaitech/scrd4ad, is pointer only (licence: NONE) · get_code("600ff2c45e0de056")
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 medaitech/scrd4ad, 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.

create_logger Ran
ran; our contract draft was wrong, not the code
baai-dcai/dataset-pruning/ImageNet/logger.py
pointer only (licence: MIT); the stored copy get_code serves, from ghrua/seqpe, is pointer only (licence: NONE) · get_code("80450600f7f09b0a")
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 ghrua/seqpe, 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.

evaluate Ran
ran; our contract draft was wrong, not the code
prasangadhungel/Data-Pruning-with-Extrapolated-Scores/src/extrapolate/gnn_extrapolate.py
pointer only (licence: NONE) · get_code("cea7a9f36bb84d97")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, prasangadhungel/Data-Pruning-with-Extrapolated-Scores 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_grad_norm Ran
ran, honoured the contract we drafted
baai-dcai/dataset-pruning/ImageNet/utils.py
code served (permissive licence) · get_code("eec1e7cba51d5e8e")
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 float, 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)

# Create a simple model with parameters that have gradients
model = nn.Linear(4, 3)

# Forward pass to create some gradients
x = torch.randn(2, 4)
y = model(x)
loss = y.sum()
loss.backward()

# Now model.parameters() have gradients attached
parameters = list(model.parameters())

ARGS = {
    "parameters": parameters,
    "norm_type": 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 float, 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
load_checkpoint Ran
ran on a synthesized input
baai-dcai/dataset-pruning/ImageNet/utils.py
code served (permissive licence) · get_code("ea98019c31648879")
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, 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 torch.nn as nn
from unittest.mock import Mock, MagicMock

torch.manual_seed(0)

# Create a minimal config object with the required attributes
class Config:
    def __init__(self):
        self.MODEL = Mock()
        self.MODEL.RESUME = "checkpoint.pt"
        self.EVAL_MODE = False
        self.TRAIN = Mock()
        self.TRAIN.START_EPOCH = 0
        self._frozen = False
    
    def defrost(self):
        self._frozen = False
    
    def freeze(self):
        self._frozen = True

config = Config()

# 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 optimizer
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)

# Create lr_scheduler
lr_scheduler = torch.optim.lr_scheduler.StepLR(optimizer, step_size=10)

# Create loss_scaler (mock)
loss_scaler = Mock()
loss_scaler.load_state_dict = Mock()

# Create logger
logger = Mock()
logger.info = Mock()

# Create a checkpoint dict for torch.load to return
checkpoint = {
    'model': model.state_dict(),
    'optimizer': optimizer.state_dict(),
    'lr_scheduler': lr_scheduler.state_dict(),
    'epoch': 5,
    'scaler': loss_scaler.state_dict() if hasattr(loss_scaler, 'state_dict') else {},
    'max_accuracy': 0.95,
    'real_max_accuracy': 0.93,
}

# Mock torch.load to return our checkpoint
original_torch_load = torch.load
def mock_torch_load(path, map_location=None):
    return checkpoint
torch.load = mock_torch_load

ARGS = {
    'config': config,
    'model': model,
    'optimizer': optimizer,
    'lr_scheduler': lr_scheduler,
    'loss_scaler': loss_scaler,
    'logger': logger,
}
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 tuple, ndim 1, dtype family float — a tuple 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
set_weight_decay Ran
ran; our contract draft was wrong, not the code
baai-dcai/dataset-pruning/ImageNet/optimizer.py
pointer only (licence: MIT); the stored copy get_code serves, from ztx-100/efficient_vit_with_dw, is pointer only (licence: NONE) · get_code("b33222a09fc93bec")
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 ztx-100/efficient_vit_with_dw, 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.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 8 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 2 the same month, 8 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
conv1x1 112 other papers
40 dated earlier, 4 the same month, 66 later, 2 same year, order not determinable · 6 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.01531 (2018-06)
Deep Mixture of Experts via Shallow Embedding
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 109 more not named here
conv3x3 111 other papers
41 dated earlier, 4 the same month, 64 later, 2 same year, order not determinable · 6 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.01531 (2018-06)
Deep Mixture of Experts via Shallow Embedding
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 108 more not named here
create_logger 35 other papers
14 dated earlier, 19 later, 2 same year, order not determinable
2104.13840 (2021-04)
Twins: Revisiting the Design of Spatial Attention in Vision Transformers
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 32 more not named here
check_keywords_in_name 31 other papers
11 dated earlier, 19 later, 1 same year, order not determinable
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 28 more not named here
get_grad_norm 23 other papers
7 dated earlier, 16 later
1910.13616 (2019-10)
Multimodal Model-Agnostic Meta-Learning via Task-Aware Modulation
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
and 20 more not named here
auto_resume_helper 20 other papers
8 dated earlier, 12 later
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.04263 (2021-06)
On the Connection between Local Attention and Dynamic Depth-wise Convolution
and 17 more not named here
set_weight_decay 14 other papers
7 dated earlier, 7 later
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 11 more not named here
build_optimizer 3 other papers
3 later
2406.08773 (2024-06)
DenoiseRep: Denoising Model for Representation Learning
2407.19394 (2024-07)
Depth-Wise Convolutions in Vision Transformers for Efficient Training on Small Datasets
ijcai2025_0271 (2025 (year only))
Efficient Visual Representation Learning with Heat Conduction Equation

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

The state of the art of many learning tasks, e.g., image classification, is advanced by collecting larger datasets and then training larger models on them. As the outcome, the increasing computational cost is becoming unaffordable. In this paper, we investigate how to prune the large-scale datasets, and thus produce an informative subset for training sophisticated deep models with negligible performance drop. We propose a simple yet effective dataset pruning method by exploring both the prediction uncertainty and training dynamics. We study dataset pruning by measuring the variation of predictions during the whole training process on large-scale datasets, i.e., ImageNet-1K and ImageNet-21K, and advanced models, i.e., Swin Transformer and ConvNeXt. Extensive experimental results indicate that our method outperforms the state of the art and achieves 25% lossless pruning ratio on both ImageNet-1K and ImageNet-21K. The code and pruned datasets are available at https://github.com/BAAI-DCAI/Dataset-Pruning.

For agents

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

get_harvested_code_for_paper("2306.05175")
get_code_for_paper("2306.05175")
have("2306.05175")

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

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

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

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

Connect an agent — have() is free.