SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.06511 · 2023

Self-Supervised Dataset Distillation for Transfer Learning

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 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, 0 violated it and 0 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/2310.06511.json · badge: /api/ran/2310.06511.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
db-lee/selfsup_dd canonical (classifier label)
classifier basis: census
2 ran · 1 no recorded run
FunctionStatusWhere it lives
distillation_loss Ran
ran; our contract draft was wrong, not the code
db-lee/selfsup_dd/algorithms/zeroshot_kd.py
code served (permissive licence) · get_code("9ccc006e0542ef91")
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.functional as F

torch.manual_seed(0)

# Create small logit tensors for student and teacher
# batch_size=2, num_classes=4
student = torch.randn(2, 4)
teacher = torch.randn(2, 4)

# Temperature parameter
T = 1.0

# Reduction method
reduction = 'mean'

ARGS = {
    'student': student,
    'teacher': teacher,
    'T': T,
    'reduction': reduction,
}
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
run Ran
ran; our contract draft was wrong, not the code
db-lee/selfsup_dd/algorithms/distill.py
code served (permissive licence) · get_code("a3699ee192f9cdc8")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np

torch.manual_seed(0)
np.random.seed(0)

# Device
device = 'cpu'

# Args
class Args:
    def __init__(self):
        self.num_models = 2
        self.outer_grad_norm = 1.0

args = Args()

# Target model - needs embed method and forward
class SimpleModel(nn.Module):
    def __init__(self, input_dim=4, embed_dim=3, output_dim=2):
        super().__init__()
        self.embed_layer = nn.Linear(input_dim, embed_dim)
        self.output_layer = nn.Linear(embed_dim, output_dim)
    
    def embed(self, x):
        return self.embed_layer(x)
    
    def forward(self, x):
        return self.output_layer(self.embed(x))

target_model = SimpleModel(input_dim=4, embed_dim=3, output_dim=2).to(device)

# Model pool - needs models list and update method
class ModelPool:
    def __init__(self, models):
        self.models = models
    
    def update(self, idx, x_syn, y_syn):
        pass

model1 = SimpleModel(input_dim=4, embed_dim=3, output_dim=2).to(device)
model2 = SimpleModel(input_dim=4, embed_dim=3, output_dim=2).to(device)
model_pool = ModelPool([model1, model2])

# Outer optimizer
x_syn = torch.randn(2, 4, requires_grad=True)
y_syn = torch.randn(2, 2, requires_grad=True)
outer_opt = optim.SGD([x_syn, y_syn], lr=0.01)

# Data iterator
class SimpleIterator:
    def __init__(self):
        self.data = [(torch.randn(2, 4), torch.randn(2, 2))]
        self.idx = 0
    
    def __next__(self):
        result = self.data[self.idx % len(self.data)]
        self.idx += 1
        return result

iter_tr = SimpleIterator()

# Augmentation function
def aug(x):
    return x

# Create ARGS dictionary
ARGS = {
    'args': args,
    'device': device,
    'target_model': target_model,
    'model_pool': model_pool,
    'outer_opt': outer_opt,
    'iter_tr': iter_tr,
    'aug': aug,
    'x_syn': x_syn,
    'y_syn': y_syn
}
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 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_algorithm Not yet run
unverified (harvested, no recorded run)
db-lee/selfsup_dd/algorithms/wrapper.py
code served (permissive licence) · get_code("257e01c7021610f0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

Dataset distillation methods have achieved remarkable success in distilling a large dataset into a small set of representative samples. However, they are not designed to produce a distilled dataset that can be effectively used for facilitating self-supervised pre-training. To this end, we propose a novel problem of distilling an unlabeled dataset into a set of small synthetic samples for efficient self-supervised learning (SSL). We first prove that a gradient of synthetic samples with respect to a SSL objective in naive bilevel optimization is \textit{biased} due to the randomness originating from data augmentations or masking. To address this issue, we propose to minimize the mean squared error (MSE) between a model's representations of the synthetic examples and their corresponding learnable target feature representations for the inner objective, which does not introduce any randomness. Our primary motivation is that the model obtained by the proposed inner optimization can mimic the \textit{self-supervised target model}. To achieve this, we also introduce the MSE between representations of the inner model and the self-supervised target model on the original full dataset for outer optimization. Lastly, assuming that a feature extractor is fixed, we only optimize a linear head on top of the feature extractor, which allows us to reduce the computational cost and obtain a closed-form solution of the head with kernel ridge regression. We empirically validate the effectiveness of our method on various applications involving transfer learning.

For agents

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

get_harvested_code_for_paper("2310.06511")
get_code_for_paper("2310.06511")
have("2310.06511")

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

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

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

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

Connect an agent — have() is free.