Skip to main content
QUICK REVIEW

[Paper Review] CAFE: Learning to Condense Dataset by Aligning Features

Kai Wang, Bo Zhao|arXiv (Cornell University)|Mar 3, 2022
Domain Adaptation and Few-Shot LearningComputer Science8 citations
TL;DR

CAFE proposes a novel dataset condensation method that improves generalization by aligning feature distributions between real and synthetic data across multiple network layers, while incorporating a discrimination loss and dynamic bi-level optimization. It achieves state-of-the-art performance, outperforming prior methods by up to 11% on SVHN and showing strong generalization across diverse architectures like ResNet18 and MLP.

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

Motivation & Objective

  • To address the generalization limitations of gradient-based dataset condensation methods that overfit to hard or noisy samples.
  • To preserve the full data distribution and discriminative structure of real datasets in synthetic training sets.
  • To improve generalization to unseen neural network architectures through distribution-level supervision.
  • To mitigate overfitting and underfitting in synthetic data optimization via a dynamic bi-level optimization scheme.

Proposed method

  • CAFE employs a layer-wise feature alignment (LFA) module to match feature distributions between real and synthetic data across multiple intermediate layers of a neural network.
  • It introduces a discrimination loss that classifies real samples based on their affinity to synthetic clusters, injecting discriminative power into the synthetic set.
  • A dynamic bi-level optimization framework adaptively adjusts the number of SGD steps for network and synthetic data updates, preventing overfitting and underfitting.
  • The method jointly optimizes synthetic data and model parameters using a bilevel objective that balances distribution alignment and classification performance.
  • The framework is trained end-to-end with a combined loss function that combines feature distribution alignment and classification-based discrimination.
  • Initialization is done from random noise, and optimization proceeds via gradient descent on both synthetic data and model weights in a coordinated manner.

Experimental results

Research questions

  • RQ1Can feature distribution alignment across multiple layers improve the generalization of synthetic datasets beyond gradient-based methods?
  • RQ2How does aligning features at multiple scales affect the quality and representativeness of condensed data?
  • RQ3To what extent does incorporating a discrimination loss enhance the discriminative capability of synthetic data?
  • RQ4Can a dynamic bi-level optimization strategy effectively prevent overfitting and underfitting during dataset condensation?
  • RQ5How well do CAFE-generated synthetic datasets generalize to unseen neural network architectures?

Key findings

  • On the SVHN dataset, CAFE achieves a performance gain of up to 11% compared to state-of-the-art methods.
  • On CIFAR-10, CAFE outperforms the prior state-of-the-art method (DC) by 5.25%, 1.79%, 4.42%, and 7.96% when tested on AlexNet, VGG11, ResNet18, and a 3-layer MLP, respectively.
  • Visualizations show that CAFE-generated synthetic images are more semantically accurate and visually similar to real images than those from DC.
  • t-SNE visualizations confirm that CAFE better captures the full distribution of real data, while DC's synthetic features cluster tightly around decision boundaries.
  • The dynamic bi-level optimization in CAFE effectively balances training steps, reducing overfitting and underfitting compared to fixed-step baselines.
  • CAFE generalizes significantly better than gradient-based methods, especially on deeper and different architectures, demonstrating robustness to architectural shifts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.