Calibrated Dataset Condensation for Faster Hyperparameter Search

Mucong Ding, Yuancheng Xu, Tahseen Rabbani, Xiaoyu Liu, Brian Gravelle, Teresa Ranadive, tai-ching tuan, Furong Huang · Submission to ICLR 2024 · Rejected

TL;DR

Existing dataset condensation methods compress large datasets into tiny synthetic sets for training a single model, but they fail dramatically when used for hyperparameter or neural architecture search (NAS)—often ranking good architectures poorly. This paper introduces Hyperparameter-Calibrated Dataset Condensation (HCDC), which learns a synthetic validation dataset by aligning hyperparameter gradients via implicit differentiation. This preserves model performance rankings and accelerates architecture search by up to an order of magnitude on image and graph benchmarks.

What Problem Does This Paper Address?

Training dozens or hundreds of neural network candidates to find the best hyperparameter configuration or architecture is computationally expensive. While dataset condensation/distillation can compress training sets into a handful of synthetic images, these synthetic sets severely overfit the single, pre-specified architecture used during condensation.

When evaluating multiple candidate architectures on these condensed sets, the relative performance ranking collapses: models that achieve high validation accuracy on the real dataset frequently score poorly on the condensed dataset, exhibiting zero or even negative Spearman rank correlation. Consequently, standard dataset condensation has been unusable as a reliable proxy for Hyperparameter Optimization (HPO) and NAS.

Methods

Instead of merely matching parameter gradients for a single fixed model, HCDC reformulates dataset condensation specifically around HPO:

  • Hyperparameter Calibration via Hypergradient Alignment: Preserving performance rankings between hyperparameter pairs $\lambda_1, \lambda_2$ (i.e., maintaining identical signs of loss differences) is theoretically equivalent to aligning the gradients of the validation loss with respect to the hyperparameters—the hypergradients ($\nabla_\lambda \mathcal{L}^*$).
  • Synthetic Validation Learning: HCDC keeps the synthetic training set ($S^{\text{train}}$) pre-computed using standard condensation methods and optimizes a new synthetic validation set ($S^{\text{val}}$) from scratch by minimizing the cosine distance between the hypergradients computed on the real vs. synthetic sets.
  • Efficient Hypergradient Computation: Hypergradients are calculated via the Implicit Function Theorem (IFT) and the Neumann series approximation for the inverse Hessian, avoiding expensive nested-loop backpropagation while keeping memory overhead constant.
  • Continuous Search Space Extension: For discrete spaces (e.g., categorical NAS operations), the authors build continuous trajectories connecting candidate hyperparameters to a common local optimum, creating a connected space $\tilde{\Lambda}$ where hypergradient matching can be sampled efficiently.

Datasets

The authors evaluate HCDC across computer vision and graph learning tasks:

  • Vision Benchmarks: CIFAR-10 and CIFAR-100, evaluated using a 100-network subset sampled from the NAS-Bench-201 benchmark space (compressed to 50 images per class).
  • Graph Benchmarks: Two small graphs (Cora, Citeseer) and two large graphs (Ogbn-arxiv, Reddit with >100k nodes) across node classification tasks, condensing training nodes to ratios between 0.1% and 5.2%.

Key Insights and Ideas

  • Validation data is the missing link: Prior condensation methods focused exclusively on producing synthetic training data. For hyperparameter search, validation metrics dictate the search path; learning an explicit synthetic validation set is crucial to preserve model rankings.
  • Ranking preservation equals vector alignment: The authors prove that preserving ranking order between configurations over a compact, connected hyperparameter space is equivalent to pointing hypergradients in the same direction ($\nabla_\lambda \mathcal{L}_T^* \parallel \nabla_\lambda \mathcal{L}_S^*$).
  • Orthogonal speedups for search algorithms: Because the calibrated dataset acts as a faithful drop-in proxy, efficiency gains are orthogonal to the search algorithm itself—benefiting both parameter-sharing methods (e.g., DARTS) and black-box searchers (e.g., REINFORCE or random search).

Key Results

  • High Ranking Correlation on Vision: On CIFAR-10, existing coreset and condensation baselines show negative or near-zero Spearman correlations (ranging from $-0.33$ to $+0.19$). HCDC achieves a $+0.74$ correlation. On CIFAR-100, HCDC achieves $+0.63$ (baselines range from $-0.28$ to $+0.08$).
  • Top Architecture Performance: Selecting the top architecture based on HCDC yields test accuracy close to the true oracle best model:
  • CIFAR-10: 92.9% test accuracy (Oracle optimal: 93.5%; nearest condensation baseline: 92.2%).
  • CIFAR-100: 72.4% test accuracy (Oracle optimal: 72.9%; nearest condensation baseline: 70.1%).
  • NAS Speedups: On CIFAR-10, running DARTS-PT on the HCDC proxy reduces search time from 229s to 35.5s (reaching 91.9% accuracy vs. 92.7% on the full set). REINFORCE drops search time from 1,492s to 119s (reaching 92.3% accuracy vs. 93.0%).
  • Graph Filters: Across Cora, Citeseer, Ogbn-arxiv, and Reddit, HCDC consistently achieves the highest rank correlations (up to 0.90) and near-oracle accuracy when searching for GNN convolution filters and attention/aggregation mechanisms.

Limitations and Future Work

  • Generalization to Unseen Spaces: Performance depends on how well the differentiable supernet/model family used during condensation transfers to broader, out-of-distribution network architectures.
  • Two-Stage Generation: HCDC currently fixes the synthetic training data $S^{\text{train}}$ from a standard condensation method and only learns $S^{\text{val}}$. Jointly optimizing both sets could yield better calibration.
  • Sampling Trajectories: The quality of the extended continuous space $\tilde{\Lambda}$ depends on the chosen hyperparameter optimization trajectories. Further work is needed to explore optimal sampling strategies in high-dimensional discrete spaces.

Summary updated

BibTeX
@misc{ding2024calibrated,
  author = {Mucong Ding and Yuancheng Xu and Tahseen Rabbani and Xiaoyu Liu and Brian Gravelle and Teresa Ranadive and tai-ching tuan and Furong Huang},
  title = {{Calibrated Dataset Condensation for Faster Hyperparameter Search}},
  year = {2024},
  eprint = {2405.17535},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.17535},
}

Loading related content...

Figure