Introduction
Dataset distillation aims to condense massive datasets, such as ImageNet, into tiny, synthetic versions that can still train high-performing models. To maximize the information extracted from these synthetic images, researchers typically rely on soft labels—probability distributions generated by a powerful "teacher" model. Soft labels contain richer, fine-grained inter-class relationships than simple one-hot "hard" labels.
However, storing massive amounts of soft labels creates a prohibitive storage bottleneck. When researchers limit the number of soft labels stored per image to save space, a new problem emerges: Local Semantic Drift (LVSD). This paper introduces HALD (Hard Label for Alleviating Local Semantic Drift), a training paradigm that reintroduces hard labels as a "semantic anchor" to correct errors caused by ambiguous image crops. By strategically alternating between soft and hard labels, HALD achieves a 100x reduction in storage while significantly boosting accuracy over previous state-of-the-art methods.
The Problem: Local Semantic Drift
In standard dataset distillation pipelines, limiting the number of pre-computed soft labels per image means that random crops of a synthetic image during training might not align with the stored label. For example, a random crop might only capture a patch of fur, prompting the teacher model's soft label to point toward an incorrect class (e.g., "rabbit" instead of "cat").
The authors identify this phenomenon as Local Semantic Drift. If a student model is trained on a sparse set of these "drifting" crops, it learns incorrect features. This leads to persistent errors, poor generalization, and a severe mismatch between the training and testing distributions.
The Solution: HALD (Hard Label for Alleviating Local Semantic Drift)
To combat LVSD, the authors propose a three-stage Soft–Hard–Soft training schedule that leverages the stability of hard labels:
- Stage A (Soft Pretraining): The model begins training on the limited pool of pre-computed soft labels to learn initial discriminative features and capture basic inter-class relationships.
- Stage B (Hard Calibration): The model switches to heavily-flattened hard labels (ground truth labels with high label smoothing). Unlike soft labels, hard labels are "content-invariant"—they remain constant regardless of which part of the image is cropped. This acts as a semantic anchor, suppressing the variance introduced by ambiguous crops and realigning the model with the global class identity.
- Stage C (Soft Refinement): Finally, the model returns to soft labels to polish its decision boundaries and recapture the fine-grained details that only teacher models can provide.
To eliminate the need for manual hyperparameter tuning, HALD incorporates an adaptive switching mechanism that uses validation accuracy plateaus and student entropy to determine the optimal time to transition between stages.
Key Insights & Theoretical Grounding
- Hard Labels as Anchors: Often dismissed as too coarse for distillation, hard labels are actually superior for stability. They provide a constant "ground truth" signal that prevents the model from wandering into semantic noise when faced with visually ambiguous crops.
- Effective Sample Size: The authors mathematically prove that incorporating hard labels effectively increases the perceived "sample size" during training. By reducing the variance of the supervision signal, the model learns as if it had access to many more image crops.
- Gradient Alignment: Theoretical analysis demonstrates that as a model trains, the gradients from soft labels and hard labels naturally begin to align. This justifies the Soft-Hard-Soft sequence: soft labels are necessary to initialize feature learning, but hard labels become highly effective once the model has a basic grasp of the visual features.
Experimental Results
The researchers evaluated HALD across several benchmarks, including ImageNet-1K, Tiny-ImageNet, CIFAR-100, and ImageWoof, testing it on synthetic data produced by distillation algorithms like SRe²L, LPLD, RDED, and FADRM.
- Massive Storage Efficiency: On the primary ImageNet-1K benchmark, HALD achieved 42.7% accuracy using only 285MB of soft-label storage. Standard methods would require nearly 30GB to achieve similar results, representing a 100x reduction in storage.
- Performance Leap: Under the same storage constraints, HALD outperformed the previous state-of-the-art method (LPLD) by 9.0% on ImageNet-1K.
- Architecture Agnostic: The performance benefits were consistent across various model backbones, including ResNet, MobileNetV2, ShuffleNetV2, and Vision Transformers (ViT).
- Feature Space Alignment: UMAP visualizations of the feature space confirmed that while "Soft-Only" training results in entangled feature representations, HALD produces clean, well-separated clusters.
Limitations and Future Work
While highly effective, HALD relies heavily on the accuracy of the underlying hard labels. If the original dataset contains significant label noise, the hard label "anchor" could lead the model astray. Additionally, while the method was tested on balanced datasets, future work should investigate how HALD handles extreme class imbalances during the calibration phase. Finally, although the adaptive switching mechanism reduces manual tuning, the heavily-flattened smoothing rate ($\alpha=0.8$) was chosen empirically, suggesting room for dynamic optimization in future iterations.
Summary updated