Abstract
Dataset distillation has recently attracted significant attention for its ability to distill massive datasets into fractions of their original size while preserving their essential properties. To realize lossless performance, recent efforts like trajectory matching have attempted to mitigate effectiveness decay in high images-per-class (IPC) settings. However, we observe that such trajectory matching-based methods either fail to capture hard patterns within expert trajectory generation, or neglect the differentiation of samples during trajectory matching, leading to suboptimal results. To remedy these issues, we propose a novel framework Nested Difficulty Matching (NDM) featuring two key innovations: (1) Difficulty-Weighted Sampling (DWS), which enhances the capture of hard patterns in expert trajectories by assigning higher weights to misclassified samples, and (2) Nested Sliding Matching (NSM), which prevents distortion of existing patterns and enables precise alignment by incrementally introducing blocks and dynamically adjusting the trajectory matching range. Experimental results demonstrate that NDM achieves a 12.4% average accuracy improvement over the baseline method on three widely used datasets. Notably, our proposed NDM outperforms SOTA methods in high IPC settings, attaining nearlossless distillation on Tiny-ImageNet with a 20% compression ratio. The source code of this work is publicly available at: https://github.com/aether-hang/NDM.
Funding Information
  • Natural Science Foundation of Sichuan Province (2025ZNSFSC1464)
  • China Postdoctoral Science Foundation (2024M760357)