SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.15138 · 2024

D$^4$M: Dataset Distillation via Disentangled Diffusion Model

arXiv · PDF · Open in the Atlas

Code that ran

13 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 7 have no contract verdict; 5 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/2407.15138.json · badge: /api/ran/2407.15138.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
richards94/D4M community (classifier label)
classifier basis not recorded on the link
13 ran · 0 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
richards94/D4M/validate/utils.py
pointer only (licence: BSD-2-Clause); the stored copy get_code serves, from shuyao95/HNAS, is pointer only (licence: NONE) · get_code("eab4f74c38cc3c8f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-2-Clause), but get_code serves the stored copy, first harvested from shuyao95/HNAS, 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.

cutmix Ran
ran; our contract draft was wrong, not the code
richards94/D4M/matching/utils_fkd.py
code served (permissive licence) · get_code("3762ba29552f4adc")
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. 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 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)
np.random.seed(0)

class Args:
    def __init__(self, mode, cutmix_alpha):
        self.mode = mode
        self.cutmix = cutmix_alpha

# Test case 1: fkd_save mode
images_save = torch.randn(2, 4, 8, 8)
args_save = Args(mode='fkd_save', cutmix_alpha=1.0)

ARGS = {
    'images': images_save,
    'args': args_save,
    'rand_index': None,
    'lam': None,
    'bbox': None,
}

# Alternative test case 2: fkd_load mode with pre-computed values
images_load = torch.randn(2, 4, 8, 8)
args_load = Args(mode='fkd_load', cutmix_alpha=1.0)
rand_index_precomputed = torch.randperm(2)
lam_precomputed = 0.5
bbox_precomputed = [2, 2, 6, 6]

ARGS_LOAD = {
    'images': images_load,
    'args': args_load,
    'rand_index': rand_index_precomputed,
    'lam': lam_precomputed,
    'bbox': bbox_precomputed,
}

# Use the fkd_save variant as primary test
ARGS = {
    'images': images_save,
    'args': args_save,
    'rand_index': None,
    'lam': None,
    'bbox': None,
}
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 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
gen_label_list Ran
ran on a synthesized input
richards94/D4M/distillation/dataset_utils.py
code served (permissive licence) · get_code("9f8d584ac43e6fcd")
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 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 tempfile
import os

# Create a temporary label file
temp_dir = tempfile.mkdtemp()
label_file_path = os.path.join(temp_dir, "labels.txt")

# Write sample label data to the file
with open(label_file_path, 'w') as f:
    f.write("label1\textra_info1\n")
    f.write("label2\textra_info2\n")
    f.write("label3\textra_info3\n")

# Create a simple args object with the label_file_path attribute
class Args:
    def __init__(self, label_file_path):
        self.label_file_path = label_file_path

ARGS = {
    'args': Args(label_file_path)
}
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, ndim 1, 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
gen_prototype Ran
ran on a synthesized input
richards94/D4M/distillation/gen_prototype.py
code served (permissive licence) · get_code("dee581eabe52bcdb")
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 dict. 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 math
import numpy as np

class MockKMeansModel:
    def __init__(self, n_clusters, feature_dim):
        self.n_clusters = n_clusters
        self.feature_dim = feature_dim
        # cluster_centers_ shape: (n_clusters, feature_dim)
        # For the function to work: feature_dim must be divisible by 4
        # and sqrt(feature_dim / 4) must be an integer
        # feature_dim = 4 * N^2, so if N=2, feature_dim=16
        self.cluster_centers_ = np.random.randn(n_clusters, feature_dim).astype(np.float32)

# Create km_models dict with MiniBatchKMeans models for different prompts
label_list = ['cat', 'dog']
km_models = {}

for prompt in label_list:
    model_name = f'MiniBatchKMeans_{prompt}'
    # Using feature_dim=16 so that N = sqrt(16/4) = sqrt(4) = 2
    # This means each cluster center will be reshaped to (4, 2, 2)
    km_models[model_name] = MockKMeansModel(n_clusters=3, feature_dim=16)

ARGS = {
    'label_list': label_list,
    'km_models': km_models,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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_FKD_info Ran
ran, honoured the contract we drafted
richards94/D4M/matching/utils_fkd.py
code served (permissive licence) · get_code("370445b84099fd37")
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 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 torch
import os
import tempfile
import shutil

torch.manual_seed(0)

# Create a temporary directory structure matching what get_FKD_info expects
temp_dir = tempfile.mkdtemp()

# Create epoch directories
for epoch in range(2):
    epoch_dir = os.path.join(temp_dir, f'epoch_{epoch}')
    os.makedirs(epoch_dir, exist_ok=True)
    
    # Create batch files with torch tensors
    # batch_list is sorted by numeric part in filename
    for batch_idx in range(3):
        batch_path = os.path.join(epoch_dir, f'batch_{batch_idx}.tar')
        # Each file contains a tuple where [1] is the tensor we care about
        # First two batches have size 4, last batch has size 2
        if batch_idx < 2:
            tensor = torch.randn(4, 3)  # batch_size=4, feature_dim=3
        else:
            tensor = torch.randn(2, 3)  # last_batch_size=2, feature_dim=3
        torch.save((None, tensor), batch_path)

fkd_path = temp_dir

ARGS = {
    'fkd_path': fkd_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 tuple, ndim 1, dtype family int — 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
get_parameters Ran
ran; our contract draft was wrong, not the code
richards94/D4M/validate/utils.py
pointer only (licence: BSD-2-Clause); the stored copy get_code serves, from vila-lab/delt, is pointer only (licence: NONE) · get_code("9a700a3b149f4952")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-2-Clause), but get_code serves the stored copy, first harvested from vila-lab/delt, 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.

initialize_km_models Ran
ran on a synthesized input
richards94/D4M/distillation/gen_prototype.py
code served (permissive licence) · get_code("98dda32767bfeb9d")
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 dict. 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.

from sklearn.cluster import MiniBatchKMeans

class Args:
    def __init__(self):
        self.ipc = 5
        self.km_expand = 2

label_list = ['prompt_1', 'prompt_2', 'prompt_3']

ARGS = {
    'label_list': label_list,
    'args': Args()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
keep_top_k Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
richards94/D4M/validate/utils.py
code served (permissive licence) · get_code("975334e17a616dce")
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 2, dtype family float, shape (2, 1000) 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 numpy as np

torch.manual_seed(0)

# Create a probability tensor
# Shape: (batch_size=2, n_classes=1000)
# Values should sum to 1 along dim=1 for each sample
p = torch.rand(2, 1000)
p = p / p.sum(dim=1, keepdim=True)  # Normalize to make valid probabilities

k = 10
n_classes = 1000

ARGS = {
    "p": p,
    "k": k,
    "n_classes": n_classes,
}
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 2, dtype family float, shape (2, 1000) — shape (2, 1000) 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_dataset Ran
ran on a synthesized input
richards94/D4M/distillation/dataset_utils.py
code served (permissive licence) · get_code("59cdf1119408f945")
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 torch
import torchvision.transforms as transforms
from unittest.mock import Mock, MagicMock
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory for data_dir
temp_dir = tempfile.mkdtemp()

# Create mock dataset classes that don't require actual data
class MockCIFAR10:
    def __init__(self, root, train, download, transform):
        self.root = root
        self.train = train
        self.download = download
        self.transform = transform
        self.data = torch.randn(2, 3, 32, 32)
        self.targets = [0, 1]
    
    def __len__(self):
        return 2
    
    def __getitem__(self, idx):
        img = self.data[idx]
        target = self.targets[idx]
        if self.transform:
            img = self.transform(img)
        return img, target

class MockCIFAR100:
    def __init__(self, root, train, download, transform):
        self.root = root
        self.train = train
        self.download = download
        self.transform = transform
        self.data = torch.randn(2, 3, 32, 32)
        self.targets = [0, 1]
    
    def __len__(self):
        return 2
    
    def __getitem__(self, idx):
        img = self.data[idx]
        target = self.targets[idx]
        if self.transform:
            img = self.transform(img)
        return img, target

class MockImageFolder:
    def __init__(self, root, transform):
        self.root = root
        self.transform = transform
        self.samples = [(f"img_{i}", i % 10) for i in range(2)]
    
    def __len__(self):
        return 2
    
    def __getitem__(self, idx):
        img = torch.randn(3, 32, 32)
        target = self.samples[idx][1]
        if self.transform:
            img = self.transform(img)
        return img, target

# Mock the datasets module
import torchvision.datasets as datasets_module
original_cifar10 = datasets_module.CIFAR10
original_cifar100 = datasets_module.CIFAR100
original_imagefolder = datasets_module.ImageFolder

datasets_module.CIFAR10 = MockCIFAR10
datasets_module.CIFAR100 = MockCIFAR100
datasets_module.ImageFolder = MockImageFolder

# Create args object
class Args:
    def __init__(self, dataset, size, batch_size, num_workers, data_dir):
        self.dataset = dataset
        self.size = size
        self.batch_size = batch_size
        self.num_workers = num_workers
        self.data_dir = data_dir

ARGS = {
    'args': Args(
        dataset='cifar10',
        size=32,
        batch_size=2,
        num_workers=0,
        data_dir=temp_dir
    )
}
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 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
load_prototype Ran
ran on a synthesized input
richards94/D4M/distillation/gen_syn_image.py
code served (permissive licence) · get_code("fe5f75ed450404ee")
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 dict. 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 json
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory and prototype file
temp_dir = tempfile.mkdtemp()
prototype_file_path = os.path.join(temp_dir, 'prototype.json')

# Create a valid prototype JSON file with sample data
prototype_data = {
    "prompt_1": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]],
    "prompt_2": [[0.1, 0.2, 0.3, 0.4], [0.5, 0.6, 0.7, 0.8]]
}

with open(prototype_file_path, 'w') as f:
    json.dump(prototype_data, f)

# Create a simple args object with required attributes
class Args:
    def __init__(self, prototype_path, device):
        self.prototype_path = prototype_path
        self.device = device

ARGS = {
    'args': Args(
        prototype_path=prototype_file_path,
        device='cpu'
    )
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_syn_dataset Ran
ran on a synthesized input
richards94/D4M/distillation/dataset_utils.py
code served (permissive licence) · get_code("cf77f8fbab6646fb")
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 DataLoader. 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 torchvision.transforms as transforms
from torch.utils.data import DataLoader, Dataset
import tempfile
import os
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a minimal stand-in ImageFolder dataset
class MinimalImageDataset(Dataset):
    def __init__(self, root, transform=None):
        self.transform = transform
        self.samples = []
        # Create dummy image data
        if os.path.exists(root):
            for class_dir in os.listdir(root):
                class_path = os.path.join(root, class_dir)
                if os.path.isdir(class_path):
                    for img_file in os.listdir(class_path):
                        img_path = os.path.join(class_path, img_file)
                        self.samples.append((img_path, int(class_dir)))
        # Fallback: create dummy samples
        if not self.samples:
            self.samples = [("dummy_path", 0) for _ in range(2)]
    
    def __len__(self):
        return len(self.samples)
    
    def __getitem__(self, idx):
        # Create a dummy RGB image tensor
        img = Image.new('RGB', (32, 32), color=(73, 109, 137))
        label = 0
        if self.transform:
            img = self.transform(img)
        return img, label

# Create temporary directory with dummy image structure
temp_dir = tempfile.mkdtemp()
class_dir = os.path.join(temp_dir, '0')
os.makedirs(class_dir, exist_ok=True)
# Create a dummy image file
dummy_img = Image.new('RGB', (32, 32), color=(73, 109, 137))
dummy_img.save(os.path.join(class_dir, 'dummy.png'))

# Monkey-patch ImageFolder to use our minimal dataset
import torchvision.datasets as datasets
original_imagefolder = datasets.ImageFolder
datasets.ImageFolder = MinimalImageDataset

# Create args object as a simple namespace
class Args:
    def __init__(self):
        self.dataset = 'syn_cifar10'
        self.data_dir = temp_dir
        self.batch_size = 2
        self.num_workers = 0

ARGS = {
    'args': Args()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
prototype_kmeans Ran
ran on a synthesized input
richards94/D4M/distillation/gen_prototype.py
code served (permissive licence) · get_code("2acc8620fafefcb1")
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 dict. 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 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
from sklearn.cluster import MiniBatchKMeans

torch.manual_seed(0)

# Mock pipe (diffusion pipeline)
class MockPipe:
    def __call__(self, prompt, image, strength, guidance_scale):
        # Returns (init_latents, _)
        # init_latents should be a tensor of shape (batch_size, latent_dim, h, w)
        batch_size = len(prompt)
        latents = torch.randn(batch_size, 8, 4, 4)  # (batch, channels, h, w)
        return latents, None

# Mock data loader - list of (images, labels) tuples
data_loader = [
    (torch.randn(2, 3, 32, 32), torch.tensor([0, 1])),  # batch of 2 images, labels
    (torch.randn(2, 3, 32, 32), torch.tensor([0, 1])),
]

# Label list mapping label indices to prompt strings
label_list = ["cat", "dog"]

# KMeans models dict
km_models = {
    "MiniBatchKMeans_cat": MiniBatchKMeans(n_clusters=2, random_state=0),
    "MiniBatchKMeans_dog": MiniBatchKMeans(n_clusters=2, random_state=0),
}

# Args object/dict with required attributes
class Args:
    def __init__(self):
        self.km_expand = 1
        self.ipc = 2

args = Args()

ARGS = {
    "pipe": MockPipe(),
    "data_loader": data_loader,
    "label_list": label_list,
    "km_models": km_models,
    "args": args,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
rand_bbox Ran
ran; our contract draft was wrong, not the code
richards94/D4M/matching/utils_fkd.py
pointer only (licence: BSD-2-Clause); the stored copy get_code serves, from psandovalsegura/learn-from-unlearnable, is pointer only (licence: NONE) · get_code("0756a99508caf42c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-2-Clause), but get_code serves the stored copy, first harvested from psandovalsegura/learn-from-unlearnable, 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 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, 6 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 6 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
accuracy 19 other papers
14 dated earlier, 5 later
1805.08318 (2018-05)
Self-Attention Generative Adversarial Networks
2105.14148 (2021-05)
OpenMatch: Open-set Consistency Regularization for Semi-supervised Learning with Outliers
2110.03006 (2021-10)
Unsupervised Selective Labeling for More Effective Semi-Supervised Learning
and 16 more not named here
rand_bbox 8 other papers
4 dated earlier, 4 later
2112.00412 (2021-12)
The Majority Can Help The Minority: Context-rich Minority Oversampling for Long-tailed Classification
2305.19254 (2023-05)
What Can We Learn from Unlearnable Datasets?
2312.08939 (2023-12)
EAT: Towards Long-Tailed Out-of-Distribution Detection
and 5 more not named here
get_parameters 6 other papers
4 dated earlier, 2 later
1807.11164 (2018-07)
ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design
1903.10979 (2019-03)
DetNAS: Backbone Search for Object Detection
1904.00420 (2019-04)
Single Path One-Shot Neural Architecture Search with Uniform Sampling
and 3 more not named here
cutmix 3 other papers
3 later
2501.07575 (2025-01)
Dataset Distillation via Committee Voting
2506.24125 (2025-06)
FADRM: Fast and Accurate Data Residual Matching for Dataset Distillation
2606.18209 (2026-06)
Rethinking Dataset Distillation for Classification: Do Distilled Sets Outperform Coresets?
get_FKD_info 3 other papers
3 later
2501.07575 (2025-01)
Dataset Distillation via Committee Voting
2506.24125 (2025-06)
FADRM: Fast and Accurate Data Residual Matching for Dataset Distillation
2606.18209 (2026-06)
Rethinking Dataset Distillation for Classification: Do Distilled Sets Outperform Coresets?
keep_top_k 3 other papers
1 dated earlier, 2 later
2312.03526 (2023-12)
On the Diversity and Realism of Distilled Dataset: An Efficient Dataset Distillation Paradigm
2411.19946 (2024-11)
DELT: A Simple Diversity-driven EarlyLate Training for Dataset Distillation
2412.21197 (2024-12)
A Large-Scale Study on Video Action Dataset Condensation

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 offers a lightweight synthetic dataset for fast network training with promising test accuracy. To imitate the performance of the original dataset, most approaches employ bi-level optimization and the distillation space relies on the matching architecture. Nevertheless, these approaches either suffer significant computational costs on large-scale datasets or experience performance decline on cross-architectures. We advocate for designing an economical dataset distillation framework that is independent of the matching architectures. With empirical observations, we argue that constraining the consistency of the real and synthetic image spaces will enhance the cross-architecture generalization. Motivated by this, we introduce Dataset Distillation via Disentangled Diffusion Model (D$^4$M), an efficient framework for dataset distillation. Compared to architecture-dependent methods, D$^4$M employs latent diffusion model to guarantee consistency and incorporates label information into category prototypes. The distilled datasets are versatile, eliminating the need for repeated generation of distinct datasets for various architectures. Through comprehensive experiments, D$^4$M demonstrates superior performance and robust generalization, surpassing the SOTA methods across most aspects.

For agents

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

get_harvested_code_for_paper("2407.15138")
get_code_for_paper("2407.15138")
have("2407.15138")

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

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

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

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

Connect an agent — have() is free.