Papers › CAFE: Learning to Condense Dataset by Aligning Features

CAFE: Learning to Condense Dataset by Aligning Features

3 Mar 2022CVPR 2022 1arXiv:2203.01531archive 2025-07-28

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

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 overfit to a biased set of samples that produce dominant gradients, and thus lack 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 classification 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-fitting. 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 analyses verify the effectiveness and necessity of proposed designs.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2203.01531")

Code

Syntology Ran 27 of 33 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · honoured contract; 16 ran · our draft was wrong; 2 ran · fixture could not drive it; 8 ran with no contract checked.

By repository: official repository: 33 samples from 1 repository, 27 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kaiwang960112/cafe officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

33 samples harvested; 27 ran; 1 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
16ran · our draft was wrong
2ran · fixture could not drive it
8ran
6unverified

Licence: 33 of the 33 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from kaiwang960112/cafe. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AlexNet kaiwang960112/cafe/distill.py official repository ran no licence file found · pointer only · 931c859769faecd5 · report
ConvNet kaiwang960112/cafe/distill.py official repository ran no licence file found · pointer only · 1a326419c73ee5da · report
DiffAugment kaiwang960112/cafe/distill.py official repository ran · fixture could not drive it no licence file found · pointer only · de12e346f3744454 · report
LeNet kaiwang960112/cafe/distill.py official repository ran no licence file found · pointer only · 47a58a8eff474d1c · report
MLP kaiwang960112/cafe/distill.py official repository ran no licence file found · pointer only · 0935dbd6d06c3d0a · report
ParamDiffAug kaiwang960112/cafe/distill.py official repository ran no licence file found · pointer only · 3a7e1b5c7abb8046 · report
ResNet kaiwang960112/cafe/distill.py official repository ran no licence file found · pointer only · 820bb01f1d2a3735 · report
ResNet18 kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · aa9bc50ea3b078f6 · report
ResNet18BN_AP kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · 63d307fe8ed31e64 · report
ResNet_AP kaiwang960112/cafe/distill.py official repository ran no licence file found · pointer only · d63549dbc5535241 · report
VGG kaiwang960112/cafe/distill.py official repository ran no licence file found · pointer only · 1bd08e0189b116b5 · report
VGG11 kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · 955fe26af93adacd · report
VGG11BN kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · 988edc744dcd7cc3 · report
augment kaiwang960112/cafe/distill.py official repository ran · fixture could not drive it no licence file found · pointer only · 8335c250c64e41f3 · report
build_logger kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · 45800818f22dfa10 · report
criterion_middle kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · 68cbb3fefaa24eb8 · report
get_daparam kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · b447e8791b4d9091 · report
get_eval_pool kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · ed8ab232870c1ce9 · report
get_loops kaiwang960112/cafe/distill.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · ae1b026d05c0c014 · report
rand_brightness kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · 2381e0ea15f245ea · report
rand_contrast kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · 22b1451f3070f9e5 · report
rand_crop kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · 8ef6746e0ade200d · report
rand_cutout kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · b3fdd0e504dba6d1 · report
rand_flip kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · a52fd828a62130d2 · report
rand_rotate kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · 6c89a7b5fe0611fa · report
rand_saturation kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · 7f5ed98fe0143f9c · report
rand_scale kaiwang960112/cafe/distill.py official repository ran · our draft was wrong no licence file found · pointer only · d2492574e9a83673 · report
adjust_learning_rate kaiwang960112/cafe/distill.py official repository unverified no licence file found · pointer only · a9589f68cbcd06ab · report
epoch kaiwang960112/cafe/distill.py official repository unverified no licence file found · pointer only · 6fa52b79ca3583aa · report
evaluate_synset kaiwang960112/cafe/distill.py official repository unverified no licence file found · pointer only · c7e7ef42dd736d9d · report
get_dataset kaiwang960112/cafe/distill.py official repository unverified no licence file found · pointer only · af2d19355b2e2b4b · report
get_network kaiwang960112/cafe/distill.py official repository unverified no licence file found · pointer only · d8f2e9a5be7af8ca · report
main kaiwang960112/cafe/distill.py official repository unverified no licence file found · pointer only · 7b2a4be6c55f2514 · report

Tasks

Dataset Condensation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections