SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.01531 · CVPR · 2022

CAFE: Learning to Condense Dataset by Aligning Features

Shuo Wang, Xinchao Wang, Kai Wang, Shuo Yang, Yang You, Zheng Zhu, Bo Zhao, Hakan Bilen, Xiangyu Peng, Guan Huang, Phigent Robotics

arXiv · PDF · Open in the Atlas

Code that ran

27 of 33 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (8 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 18 failures of our instrument; 6 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2203.01531.json · badge: /api/ran/2203.01531.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
kaiwang960112/cafe marked official in Papers with Code
Papers with Code archive
27 ran · 6 no recorded run
FunctionStatusWhere it lives
AlexNet Ran
ran on a synthesized input · constructed an object; no result was computed
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("931c859769faecd5")
How it ran

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

ConvNet Ran
ran on a synthesized input · constructed an object; no result was computed
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("1a326419c73ee5da")
How it ran

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

DiffAugment Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("de12e346f3744454")
How it ran

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

LeNet Ran
ran on a synthesized input · constructed an object; no result was computed
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("47a58a8eff474d1c")
How it ran

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

MLP Ran
ran on a synthesized input · constructed an object; no result was computed
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("0935dbd6d06c3d0a")
How it ran

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

ParamDiffAug Ran
ran on a synthesized input · constructed an object; no result was computed
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("3a7e1b5c7abb8046")
How it ran

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

ResNet Ran
ran on a synthesized input · constructed an object; no result was computed
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("820bb01f1d2a3735")
How it ran

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

ResNet18 Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("aa9bc50ea3b078f6")
How it ran

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

ResNet18BN_AP Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("63d307fe8ed31e64")
How it ran

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

ResNet_AP Ran
ran on a synthesized input · constructed an object; no result was computed
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("d63549dbc5535241")
How it ran

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

VGG Ran
ran on a synthesized input · constructed an object; no result was computed
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("1bd08e0189b116b5")
How it ran

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

VGG11 Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("955fe26af93adacd")
How it ran

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

VGG11BN Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("988edc744dcd7cc3")
How it ran

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

augment Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("8335c250c64e41f3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiwang960112/cafe 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_logger Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("45800818f22dfa10")
How it ran

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

criterion_middle Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("68cbb3fefaa24eb8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiwang960112/cafe 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_daparam Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("b447e8791b4d9091")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiwang960112/cafe 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_eval_pool Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("ed8ab232870c1ce9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiwang960112/cafe 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_loops Ran
ran, honoured the contract we drafted
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("ae1b026d05c0c014")
How it ran

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

rand_brightness Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("2381e0ea15f245ea")
How it ran

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

rand_contrast Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("22b1451f3070f9e5")
How it ran

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

rand_crop Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("8ef6746e0ade200d")
How it ran

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

rand_cutout Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("b3fdd0e504dba6d1")
How it ran

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

rand_flip Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("a52fd828a62130d2")
How it ran

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

rand_rotate Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("6c89a7b5fe0611fa")
How it ran

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

rand_saturation Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("7f5ed98fe0143f9c")
How it ran

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

rand_scale Ran
ran; our contract draft was wrong, not the code
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("d2492574e9a83673")
How it ran

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

adjust_learning_rate Not yet run
unverified (harvested, no recorded run)
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("a9589f68cbcd06ab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiwang960112/cafe when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

epoch Not yet run
unverified (harvested, no recorded run)
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("6fa52b79ca3583aa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiwang960112/cafe when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

evaluate_synset Not yet run
unverified (harvested, no recorded run)
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("c7e7ef42dd736d9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiwang960112/cafe when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_dataset Not yet run
unverified (harvested, no recorded run)
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("af2d19355b2e2b4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiwang960112/cafe when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_network Not yet run
unverified (harvested, no recorded run)
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("d8f2e9a5be7af8ca")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiwang960112/cafe when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

main Not yet run
unverified (harvested, no recorded run)
kaiwang960112/cafe/distill.py
pointer only (licence: NONE) · get_code("7b2a4be6c55f2514")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiwang960112/cafe when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 33 samples lifted from this paper's linked repositories, 33 carry a function identity and 0 do not. Of the 33 distinct functions with an identity, 9 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 9 later) and 24 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
VGG11BN
brick of this paper's assembly: helper
28 other papers
28 later
2204.07513 (2022-04)
Synthesizing Informative Training Samples with GAN
2210.16774 (2022-10)
Dataset Distillation via Factorization
2211.04446 (2022-11)
Private Set Generation with Discriminative Information
and 25 more not named here
VGG11
brick of this paper's assembly: helper
27 other papers
27 later
2204.07513 (2022-04)
Synthesizing Informative Training Samples with GAN
2210.16774 (2022-10)
Dataset Distillation via Factorization
2211.04446 (2022-11)
Private Set Generation with Discriminative Information
and 24 more not named here
ResNet18BN_AP
brick of this paper's assembly: helper
4 other papers
4 later · 1 only as an assembly brick
2310.00093 (2023-10)
DataDAM: Efficient Dataset Distillation with Attention Matching
2406.04284 (2024-06)
What is Dataset Distillation Learning?
2406.18561 (2024-06)
SelMatch: Effectively Scaling Up Dataset Distillation via Selection-Based Initialization and Partial Updates by Trajectory Matching
and 1 more not named here
ResNet18
brick of this paper's assembly: helper
3 other papers
3 later
2207.09639 (2022-07)
DC-BENCH: Dataset Condensation Benchmark
2310.00093 (2023-10)
DataDAM: Efficient Dataset Distillation with Attention Matching
2406.18561 (2024-06)
SelMatch: Effectively Scaling Up Dataset Distillation via Selection-Based Initialization and Partial Updates by Trajectory Matching
DiffAugment
brick of this paper's assembly: helper
2 other papers
2 later
2307.14959 (2023-07)
Federated Model Aggregation via Self-Supervised Priors for Highly Imbalanced Medical Image Classification
2605.13475 (2026-05)
FedHPro: Federated Hyper-Prototype Learning via Gradient Matching
augment
brick of this paper's assembly: helper
2 other papers
2 later
2211.04446 (2022-11)
Private Set Generation with Discriminative Information
2302.01068 (2023-02)
FedLAP-DP: Federated Learning by Sharing Differentially Private Loss Approximations
get_loops
brick of this paper's assembly: helper
1 other paper
1 later
2403.07245 (2024-03)
Dataset Condensation for Time Series Classification via Dual Domain Matching
get_network
brick of this paper's assembly: helper
1 other paper
1 later
2605.00185 (2026-05)
Fair Dataset Distillation via Cross-Group Barycenter Alignment
rand_scale
brick of this paper's assembly: helper
1 other paper
1 later
2307.14959 (2023-07)
Federated Model Aggregation via Self-Supervised Priors for Highly Imbalanced Medical Image Classification

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-22.

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 condensation aims at reducing the network training effort through condensing a cumbersome training set into a compact synthetic one. State-of-the-art approaches largely rely on learning the synthetic data by matching the gradients between the real and synthetic data batches. Despite the intuitive motivation and promising results, such gradient-based methods, by nature, easily overft to a biased set of samples that produce dominant gradients, and thus lack a global supervision of data distribution. In this paper, we propose a novel scheme to Condense dataset by Aligning FEatures (CAFE), which explicitly attempts to preserve the real-feature distribution as well as the discriminant power of the resulting synthetic set, lending itself to strong generalization capability to various architectures. At the heart of our approach is an effective strategy to align features from the real and synthetic data across various scales, while accounting for the classifcation of real samples. Our scheme is further backed up by a novel dynamic bi-level optimization, which adaptively adjusts parameter updates to prevent over-/under-ftting. We validate the proposed CAFE across various datasets, and demonstrate that it generally outperforms the state of the art: on the SVHN dataset, for example, the performance gain is up to 11%. Extensive experiments and analysis verify the effectiveness and necessity of proposed designs.

For agents

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

get_harvested_code_for_paper("2203.01531")
get_code_for_paper("2203.01531")
have("2203.01531")

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

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

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

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

Connect an agent — have() is free.