Hard Labels In! Rethinking the Role of Hard Labels in Mitigating Local Semantic Drift

Jiacheng Cui, Bingkui Tong, Xinyue Bi, Xiaohan Zhao, Jiacheng Liu, Zhiqiang Shen

TL;DR

While soft labels from teacher models are essential for high-fidelity dataset distillation, storing them for every image crop creates a massive storage bottleneck. Reducing the number of stored soft labels introduces "local semantic drift," where ambiguous image crops mislead the student model. This paper proposes HALD, a training paradigm that strategically reintroduces hard labels as content-invariant anchors to correct this drift, slashing soft-label storage requirements by 100× while boosting ImageNet-1K accuracy by up to 9.0%.

What Problem Does This Paper Address?

Dataset distillation aims to compress massive datasets (like ImageNet) into a tiny, synthetic set of representative images, making network training incredibly fast and cheap. To pass down fine-grained knowledge, state-of-the-art methods store "soft labels" (probability distributions generated by a powerful teacher model) for various cropped views of these synthetic images.

However, this introduces a critical bottleneck: storage. Storing soft labels for thousands of classes across multiple crops can take up to 38× more space than the synthetic images themselves (e.g., 28.33 GB of labels vs. 750 MB of images for ImageNet-1K).

If you try the obvious fix—reducing the number of stored crops per image—you run into Local-View Semantic Drift (LVSD). Because a small crop only captures a partial region of an image, its soft label can drift toward an entirely wrong category. For example, a close-up crop of a cat's ear might look like a rabbit, causing the teacher's soft label to deviate from the true global semantics.

Figure 1. Illustration of local-view semantic drift: partial crops may change object–label relations, yielding semantics that deviate from the full image.

Methods

The authors introduce HALD (Hard Label for Alleviating Local Semantic Drift), which utilizes a unique Soft $\rightarrow$ Hard $\rightarrow$ Soft stage-wise training schedule:

  1. Stage A (Soft Pretraining): The student model trains on a limited pool of precomputed soft labels to learn coarse, discriminative features.
  2. Stage B (Hard Label Calibration): The training switches to heavily-flattened (label-smoothed) hard labels combined with aggressive data augmentations like CutMix. Because hard labels are tied to the true image identity regardless of the crop, they act as an invariant semantic anchor that suppresses crop-induced variance and corrects semantic drift.
  3. Stage C (Soft Refinement): Training returns to the soft labels to recover the fine-grained, nuanced knowledge from the teacher model.

To eliminate manual tuning, the authors also design an Adaptive Phase-Switching Mechanism that automatically transitions between stages by monitoring validation accuracy plateaus and normalized student entropy.

Datasets

The authors evaluated HALD across several computer vision benchmarks:

  • ImageNet-1K (High-resolution, large-scale classification)
  • Tiny-ImageNet (Low-resolution, 200 classes)
  • CIFAR-100 and ImageWoof (Used to verify generalization across general and fine-grained recognition tasks)

Key Insights and Ideas

  • Hard Labels as Anchors: Hard labels are often discarded in distillation pipelines as being "too coarse." However, their content-invariant nature makes them uniquely qualified to anchor models when visual data is sparse or ambiguous.
  • The Failure of Joint Optimization: Simply adding a hard-label loss to a soft-label loss (a joint objective) degrades performance due to gradient inconsistency early in training.
  • Timing is Everything: The authors mathematically and empirically prove that soft- and hard-label gradients align more closely as training progresses. By waiting to introduce hard labels until Stage B, HALD avoids gradient conflicts and successfully reduces representation variance.
Figure 3. Gradient similarity between hard- and soft-label losses over training, evaluated on real-image crops and optimization-based distilled data, showing a clear upward trend indicative of strengthened alignment.

Key Results

HALD consistently outperforms existing state-of-the-art dataset distillation methods under tight storage budgets:

  • Massive Storage Reduction: On ImageNet-1K (with 50 images per class), HALD achieves 42.7% top-1 accuracy while requiring only 285 MB of soft-label storage—a 100× reduction in storage that beats the previous state-of-the-art (LPLD) by 9.0%.
  • Peak Performance: When paired with the FADRM generation method on ImageNet-1K, HALD achieves up to 53.7% accuracy.
  • Better Generalization: As shown in the loss landscape visualizations, finite soft supervision alone causes severe train-test distribution mismatches (overfitting), whereas HALD aligns the landscapes for superior generalization.
Figure 2. Train and test loss landscapes on an IPC=10 distilled dataset with SLC=50, comparing (i) finite soft-label coverage and (ii) our method.

Limitations and Future Work

The authors note that relying heavily on hard labels carries the potential risk of reinforcing any inherent noise or bias present within those ground-truth labels. When deploying HALD in production, practitioners must carefully check labels and perform ablations regarding label quality and class imbalance. Future work could explore how to dynamically adapt the hard-label smoothing factor based on individual sample difficulty.

Summary updated

BibTeX
@inproceedings{cui2026hard,
  author = {Jiacheng Cui and Bingkui Tong and Xinyue Bi and Xiaohan Zhao and Jiacheng Liu and Zhiqiang Shen},
  title = {{Hard Labels In! Rethinking the Role of Hard Labels in Mitigating Local Semantic Drift}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=FIq3e9ffEZ},
}
Figure