Abstract
In supervised learning, ground truth labels are typically treated as static "one-hot" vectors. However, this approach fails to account for secondary objects in images, visual similarities between classes, and the inconsistencies introduced by aggressive data augmentation. We introduce the Label Refinery, an iterative training procedure that replaces rigid labels with soft, dynamic distributions generated by a neural network. By refining labels at the individual crop level over multiple training passes, we demonstrate significant accuracy gains across various architectures. Notably, the Label Refinery boosts AlexNet’s top-1 accuracy on ImageNet by nearly 8%, effectively closing the generalization gap.
Introduction
Standard supervised learning paradigms often rely on absolute ground truth labels. For instance, an image is labeled as 100% "burrito" regardless of other visible elements. This methodology suffers from three primary flaws:
- Incompleteness: Secondary objects (e.g., a "plate" or "beverage") are ignored.
- Taxonomy Dependency: Visually similar categories, such as different dog breeds, are treated as entirely distinct, ignoring shared features.
- Inconsistency with Data Augmentation: Modern training utilizes random cropping. If a crop of a "persian cat" image contains only a "golf ball" in the background, forcing the model to label it as "cat" introduces noise and hinders generalization.
Methods: The Label Refinery
The Label Refinery addresses these issues through a sequence of training passes where labels for the current model are generated by the predictions of a model from the previous pass.
Iterative Label Progression
The process begins by training an initial model ($C_{\theta_1}$) on standard one-hot ground truth. Subsequent models ($C_{\theta_2}, C_{\theta_3}, \dots$) are trained using the soft probability distributions produced by the preceding model as their targets. This iterative loop allows the labels to evolve and become more representative of the actual visual content.
Dynamic, Crop-Level Labeling
Unlike global label smoothing, the Refinery generates a unique label for every specific crop during training. If a crop captures a secondary object, the refiner model provides a signal reflecting that object, rather than the global image label. The models are trained by minimizing the KL-divergence between the student's output and the refiner's soft labels.
Experimental Results
The primary benchmark for evaluation is ImageNet (ILSVRC 2012), consisting of 1.2 million images across 1,000 classes. The Label Refinery produced substantial Top-1 accuracy improvements across diverse architectures:
| Model | Baseline Top-1 | Refined Top-1 | Gain |
|---|---|---|---|
| AlexNet | 59.3% | 67.2% | +7.9% |
| MobileNet | 70.6% | 73.39% | +2.79% |
| VGG19 | 72.7% | 75.46% | +2.76% |
| Darknet19 | 72.9% | 74.47% | +1.57% |
| ResNet-50 | 75.7% | 76.5% | +0.8% |
The most dramatic gains were observed in smaller or older architectures, suggesting that rigid labeling was a significant bottleneck for these models.
Analysis: Closing the Generalization Gap
A key insight from this work is that labels should be dynamic and generated "on-the-fly" based on the specific pixels the model processes. Interestingly, self-refinement is effective; a model can be improved using labels from a previous version of itself without requiring a larger "teacher" model.
As labels are refined, the gap between training and validation accuracy shrinks. The models move away from "memorizing" noisy one-hot labels and toward learning the underlying visual distribution.
Conclusion and Future Work
While the Label Refinery offers significant performance boosts, it increases computational cost due to the iterative nature of the training. Furthermore, gains eventually plateau after several generations. Future research may explore applying this technique to unlabeled datasets for pseudo-labeling or extending it to tasks with high label ambiguity, such as object detection.
Summary updated