SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1811.10959 · 2018

Dataset Distillation

arXiv · PDF · Open in the Atlas

Code that ran

16 of 17 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, 1 violated it and 13 have no contract verdict; 2 failures of our instrument; 1 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/1811.10959.json · badge: /api/ran/1811.10959.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
SsnL/dataset-distillation canonical (classifier label)
classifier basis: census
13 ran · 1 no recorded run
nus-hpc-ai-lab/dd-ranking extension (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
average_train Ran
ran on a synthesized input
SsnL/dataset-distillation/utils/baselines.py
code served (permissive licence) · get_code("945f208c66022b60")
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
from torch.utils.data import DataLoader

torch.manual_seed(0)

class State:
    def __init__(self):
        self.num_classes = 3
        self.nc = 2  # number of channels
        self.input_size = 4
        self.device = 'cpu'
        self.mode = 'distill_attack'
        self.attack_class = 0
        self.target_class = 2
        self.distilled_images_per_class_per_step = 2
        self.distill_epochs = 1
        self.distill_steps = 1
        
        # Create a simple train loader with 2 samples
        # Each sample: (image tensor, label)
        images = torch.randn(2, self.nc, self.input_size, self.input_size)
        labels = torch.tensor([0, 1])
        self.train_loader = [(images, labels)]

state = State()

ARGS = {
    "state": state
}
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
clone_tuple Ran
ran on a synthesized input
SsnL/dataset-distillation/networks/utils.py
code served (permissive licence) · get_code("9ff25651ae35371b")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a tuple of tensors with different requires_grad settings
tensor1 = torch.randn(2, 4, requires_grad=True)
tensor2 = torch.randn(2, 4, requires_grad=False)
tensor3 = torch.randn(2, 4, requires_grad=True)

tensors = (tensor1, tensor2, tensor3)

ARGS = {
    "tensors": tensors,
    "requires_grad": 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 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
configure Ran
ran on a synthesized input
SsnL/dataset-distillation/utils/logging.py
code served (permissive licence) · get_code("2e1c63c03170fa89")
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 RootLogger. 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 logging
import tempfile
import os

ARGS = {
    'log_file': None,
    'log_level': logging.INFO,
    'prefix': '[TEST] ',
    'write_to_stdout': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RootLogger — a RootLogger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RootLogger 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
default_augmentation Ran
ran, violated the contract we drafted
nus-hpc-ai-lab/dd-ranking/ddranking/utils/train_and_eval.py
pointer only (licence: NOASSERTION) · get_code("c11329993135a3d9")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, nus-hpc-ai-lab/dd-ranking (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.

final_objective_loss Ran
ran on a synthesized input
SsnL/dataset-distillation/basics.py
code served (permissive licence) · get_code("6ab4b45dcd11c1b3")
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)

class State:
    def __init__(self, num_classes, mode, attack_class=None, target_class=None):
        self.num_classes = num_classes
        self.mode = mode
        self.attack_class = attack_class
        self.target_class = target_class

# Test case 1: binary classification with distill_basic mode
state_binary = State(num_classes=2, mode='distill_basic')
output_binary = torch.randn(2, 1)
label_binary = torch.randint(0, 2, (2, 1)).float()

# Test case 2: multiclass with distill_adapt mode
state_multiclass = State(num_classes=4, mode='distill_adapt')
output_multiclass = torch.randn(2, 4)
label_multiclass = torch.randint(0, 4, (2,))

# Test case 3: distill_attack mode
state_attack = State(num_classes=3, mode='distill_attack', attack_class=1, target_class=2)
output_attack = torch.randn(2, 3)
label_attack = torch.tensor([0, 1])

ARGS = {
    'state': state_multiclass,
    'output': output_multiclass,
    'label': label_multiclass
}
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
get_baseline_label_for_one_step Ran
ran on a synthesized input
SsnL/dataset-distillation/utils/baselines.py
code served (permissive licence) · get_code("23ecd1ce493055e3")
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 int, shape (12,) 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)

class State:
    def __init__(self):
        self.num_classes = 4
        self.device = 'cpu'
        self.mode = 'distill_attack'
        self.attack_class = 1
        self.target_class = 2
        self.distilled_images_per_class_per_step = 3

state = State()

ARGS = {
    'state': state
}
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 int, shape (12,) — shape (12,) 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_lr_scheduler Ran
ran; our contract draft was wrong, not the code
nus-hpc-ai-lab/dd-ranking/ddranking/utils/train_and_eval.py
pointer only (licence: NOASSERTION) · get_code("5a60461e9e2f12d7")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, nus-hpc-ai-lab/dd-ranking (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.

get_optimizer Ran
ran; our contract draft was wrong, not the code
nus-hpc-ai-lab/dd-ranking/ddranking/utils/train_and_eval.py
pointer only (licence: NOASSERTION) · get_code("bacadd1761bd191c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, nus-hpc-ai-lab/dd-ranking (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.

init_weights Ran
ran on a synthesized input
SsnL/dataset-distillation/networks/utils.py
code served (permissive licence) · get_code("93fe1d69e4aca089")
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 SimpleNet. 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.nn import init

torch.manual_seed(0)

# Create a minimal state object with init and init_param attributes
class State:
    def __init__(self, init_type, init_param):
        self.init = init_type
        self.init_param = init_param

# Create a simple neural network with Conv, Linear, and Norm layers
class SimpleNet(nn.Module):
    def __init__(self):
        super(SimpleNet, self).__init__()
        self.conv1 = nn.Conv2d(3, 4, kernel_size=3)
        self.bn1 = nn.BatchNorm2d(4)
        self.linear1 = nn.Linear(4, 2)
        self.bn2 = nn.BatchNorm1d(2)
    
    def forward(self, x):
        x = self.conv1(x)
        x = self.bn1(x)
        x = x.view(x.size(0), -1)
        x = self.linear1(x)
        x = self.bn2(x)
        return x

# Create a minimal AlexNet-like model for testing imagenet_pretrained path
class AlexNet(nn.Module):
    def __init__(self):
        super(AlexNet, self).__init__()
        self.features = nn.Sequential(
            nn.Conv2d(3, 4, kernel_size=3),
            nn.ReLU(inplace=True),
        )
        self.avgpool = nn.AdaptiveAvgPool2d((1, 1))
        self.classifier = nn.Sequential(
            nn.Linear(4, 8),
            nn.ReLU(inplace=True),
            nn.Linear(8, 8),
            nn.ReLU(inplace=True),
            nn.Linear(8, 4),
            nn.ReLU(inplace=True),
            nn.Linear(4, 2),
        )
    
    def forward(self, x):
        x = self.features(x)
        x = self.avgpool(x)
        x = torch.flatten(x, 1)
        x = self.classifier(x)
        return x

# Test with different init types
net = SimpleNet()
state = State(init_type='normal', init_param=0.02)

ARGS = {
    'net': net,
    'state': state,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleNet — a SimpleNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNet 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
permute_list Ran
ran on a synthesized input
SsnL/dataset-distillation/train_distilled_image.py
code served (permissive licence) · get_code("12b94db554dfecb4")
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 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 numpy as np

# The function permute_list takes a list parameter and uses:
# - len(list) to get the length
# - list[i] indexing to access elements
# So we just need a regular Python list with some elements

test_list = [10, 20, 30, 40, 50]

ARGS = {
    "list": test_list
}
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 list, ndim 1, 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
random_train Ran
ran on a synthesized input
SsnL/dataset-distillation/utils/baselines.py
code served (permissive licence) · get_code("2103f67a4508d2cd")
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 numpy as np

torch.manual_seed(0)

class State:
    def __init__(self):
        self.num_classes = 3
        self.device = 'cpu'
        self.mode = 'distill_attack'
        self.attack_class = 0
        self.target_class = 2
        self.distilled_images_per_class_per_step = 2
        self.distill_steps = 2
        self.distill_epochs = 1
        # Create a simple train_loader: list of (images, labels) batches
        self.train_loader = [
            (
                torch.randn(4, 3, 8, 8),  # 4 images, 3 channels, 8x8
                torch.tensor([0, 1, 2, 0])  # 4 labels
            ),
            (
                torch.randn(4, 3, 8, 8),
                torch.tensor([1, 2, 0, 1])
            ),
        ]

state = State()

ARGS = {
    "state": state
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
read_bndbox Ran
ran on a synthesized input
SsnL/dataset-distillation/datasets/pascal_voc.py
code served (permissive licence) · get_code("fdee81a9e734615a")
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 os
import os.path
import tempfile
import xml.etree.ElementTree as ET

# Create a temporary directory structure mimicking VOC dataset
temp_root = tempfile.mkdtemp()
voc_dir = os.path.join(temp_root, 'VOCdevkit', 'VOC2012', 'Annotations')
os.makedirs(voc_dir, exist_ok=True)

# Create sample XML annotation files
def create_xml_file(filepath, image_name, objects):
    root = ET.Element('annotation')
    
    filename_elem = ET.SubElement(root, 'filename')
    filename_elem.text = image_name
    
    for obj_name, xmin, ymin, xmax, ymax in objects:
        obj_elem = ET.SubElement(root, 'object')
        
        name_elem = ET.SubElement(obj_elem, 'name')
        name_elem.text = obj_name
        
        bndbox_elem = ET.SubElement(obj_elem, 'bndbox')
        
        xmin_elem = ET.SubElement(bndbox_elem, 'xmin')
        xmin_elem.text = str(xmin)
        
        ymin_elem = ET.SubElement(bndbox_elem, 'ymin')
        ymin_elem.text = str(ymin)
        
        xmax_elem = ET.SubElement(bndbox_elem, 'xmax')
        xmax_elem.text = str(xmax)
        
        ymax_elem = ET.SubElement(bndbox_elem, 'ymax')
        ymax_elem.text = str(ymax)
    
    tree = ET.ElementTree(root)
    tree.write(filepath)

# Create first XML file
create_xml_file(
    os.path.join(voc_dir, '000001.xml'),
    '000001.jpg',
    [('cat', 10, 20, 100, 150), ('dog', 50, 60, 120, 180)]
)

# Create second XML file
create_xml_file(
    os.path.join(voc_dir, '000002.xml'),
    '000002.jpg',
    [('person', 5, 10, 200, 300)]
)

ARGS = {
    'root': temp_root,
    'dataset': 'VOC2012',
    'paths': ['000001', '000002']
}
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 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
read_split Ran
ran on a synthesized input
SsnL/dataset-distillation/datasets/pascal_voc.py
code served (permissive licence) · get_code("26cdf3966b9542d6")
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. 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
import shutil

# Create a temporary directory structure that mimics VOC dataset layout
temp_dir = tempfile.mkdtemp()
voc_root = os.path.join(temp_dir, 'VOCdevkit', 'VOC2012', 'ImageSets', 'Main')
os.makedirs(voc_root, exist_ok=True)

# Create a sample split file for the aeroplane category
split_file = os.path.join(voc_root, 'aeroplane_train.txt')
with open(split_file, 'w') as f:
    f.write('000001 1\n')
    f.write('000002 -1\n')
    f.write('000003 1\n')

ARGS = {
    'root': temp_dir,
    'dataset': 'VOC2012',
    'split': 'train'
}
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 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
task_loss Ran
ran on a synthesized input
SsnL/dataset-distillation/basics.py
code served (permissive licence) · get_code("2a1340040e1606e7")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Stand-in class for state object that has num_classes attribute
class State:
    def __init__(self, num_classes):
        self.num_classes = num_classes

# Test case 1: Binary classification (num_classes == 2)
state_binary = State(num_classes=2)
output_binary = torch.randn(2, 1)  # batch_size=2, single output for binary
label_binary = torch.randint(0, 2, (2, 1)).float()  # binary labels

# Test case 2: Multi-class classification (num_classes > 2)
state_multiclass = State(num_classes=4)
output_multiclass = torch.randn(2, 4)  # batch_size=2, 4 classes
label_multiclass = torch.randint(0, 4, (2,))  # class indices for each sample

# Create ARGS dictionary for binary classification case
ARGS = {
    'state': state_binary,
    'output': output_binary,
    'label': label_binary
}
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
to_np Ran
ran on a synthesized input
SsnL/dataset-distillation/utils/io.py
code served (permissive licence) · get_code("0250946399ff305f")
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 numpy as np

torch.manual_seed(0)

# Create sample steps with torch tensors
# Each step is a tuple of (data, label, lr)
# data: 4D tensor (batch, channels, height, width)
# label: 1D or 2D tensor
# lr: scalar tensor or None

data1 = torch.randn(2, 3, 4, 5)  # batch=2, channels=3, height=4, width=5
label1 = torch.randint(0, 10, (2,))
lr1 = torch.tensor(0.001)

data2 = torch.randn(2, 3, 4, 5)
label2 = torch.randint(0, 10, (2,))
lr2 = None

steps = [
    (data1, label1, lr1),
    (data2, label2, lr2)
]

ARGS = {
    "steps": steps
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
to_torch Ran
ran on a synthesized input
SsnL/dataset-distillation/utils/io.py
code served (permissive licence) · get_code("63eebd9902e8150b")
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 3, 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 numpy as np

torch.manual_seed(0)

# The function expects np_steps to be a list of tuples
# Each tuple contains tensor-like objects that can be converted to torch tensors
# The function checks the first element of the first step to determine if conversion is needed

# Create sample steps: list of tuples containing numpy arrays and torch tensors
np_steps = [
    (np.array([1.0, 2.0, 3.0, 4.0]), np.array([5.0, 6.0, 7.0, 8.0])),
    (np.array([9.0, 10.0, 11.0, 12.0]), np.array([13.0, 14.0, 15.0, 16.0])),
]

device = torch.device('cpu')

ARGS = {
    'np_steps': np_steps,
    'device': device,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, 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
load_results Not yet run
unverified (harvested, no recorded run)
SsnL/dataset-distillation/utils/io.py
code served (permissive licence) · get_code("062128c654a29276")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 11 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 11 later) and 6 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
clone_tuple 2 other papers
2 later
1910.02551 (2019-10)
Soft-Label Dataset Distillation and Text Dataset Distillation
2301.01197 (2023-01)
Backdoor Attacks Against Dataset Distillation
read_bndbox 2 other papers
2 later
1910.02551 (2019-10)
Soft-Label Dataset Distillation and Text Dataset Distillation
2301.01197 (2023-01)
Backdoor Attacks Against Dataset Distillation
default_augmentation 1 other paper
1 later
2505.13300 (2025-05)
DD-Ranking: Rethinking the Evaluation of Dataset Distillation
get_lr_scheduler 1 other paper
1 later
2505.13300 (2025-05)
DD-Ranking: Rethinking the Evaluation of Dataset Distillation
get_optimizer 1 other paper
1 later
2505.13300 (2025-05)
DD-Ranking: Rethinking the Evaluation of Dataset Distillation
load_results 1 other paper
1 later
1910.02551 (2019-10)
Soft-Label Dataset Distillation and Text Dataset Distillation
permute_list 1 other paper
1 later
2301.01197 (2023-01)
Backdoor Attacks Against Dataset Distillation
read_split 1 other paper
1 later
2301.01197 (2023-01)
Backdoor Attacks Against Dataset Distillation
task_loss 1 other paper
1 later
2301.01197 (2023-01)
Backdoor Attacks Against Dataset Distillation
to_np 1 other paper
1 later
1910.02551 (2019-10)
Soft-Label Dataset Distillation and Text Dataset Distillation
to_torch 1 other paper
1 later
1910.02551 (2019-10)
Soft-Label Dataset Distillation and Text Dataset Distillation

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

Model distillation aims to distill the knowledge of a complex model into a simpler one. In this paper, we consider an alternative formulation called dataset distillation: we keep the model fixed and instead attempt to distill the knowledge from a large training dataset into a small one. The idea is to synthesize a small number of data points that do not need to come from the correct data distribution, but will, when given to the learning algorithm as training data, approximate the model trained on the original data. For example, we show that it is possible to compress 60,000 MNIST training images into just 10 synthetic distilled images (one per class) and achieve close to original performance with only a few gradient descent steps, given a fixed network initialization. We evaluate our method in various initialization settings and with different learning objectives. Experiments on multiple datasets show the advantage of our approach compared to alternative methods.

For agents

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

get_harvested_code_for_paper("1811.10959")
get_code_for_paper("1811.10959")
have("1811.10959")

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

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

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

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

Connect an agent — have() is free.