Abstract
Traditional image classification relies on "hard" labels, where each image is assigned to a single category. However, this approach ignores the inherent ambiguity in many images and the perceptual relationships between classes. We present a method for training deep neural networks on full human label distributions using a new dataset, CIFAR10H. Our results show that models trained on these "soft" labels exhibit significantly improved generalization to out-of-distribution data, better calibration, and increased robustness to adversarial attacks without explicit adversarial training.
Introduction
Standard Convolutional Neural Networks (CNNs) have achieved remarkable performance on benchmarks like CIFAR-10. Yet, these models often lack the nuance of human perception. A model trained on one-hot labels might correctly identify a dog but fail to recognize its visual similarity to a cat, making the model brittle. When faced with distributional shifts or adversarial perturbations, such models often fail catastrophically. This paper addresses this brittleness by incorporating human uncertainty directly into the training objective.
Methods and the CIFAR10H Dataset
The core proposal is to replace traditional hard-label training with a soft-label objective. Instead of minimizing distance to a single category, models minimize the cross-entropy between their predicted distribution and the full distribution of human labels.
To facilitate this, the authors created CIFAR10H. Using Amazon Mechanical Turk, they collected over 511,000 human categorizations for the 10,000 images in the CIFAR10 test set, resulting in roughly 50 judgments per image. This dataset captures the "similarity structure" of human perception—for instance, showing that humans might occasionally confuse a blurry deer for a horse, but never for a ship.
The researchers fine-tuned eight popular CNN architectures (e.g., ResNet, VGG, DenseNet) using these human soft labels and evaluated them against several challenging benchmarks.
Evaluation Benchmarks
To test robustness and generalization, the models were evaluated on:
- CIFAR10.1 (v4 & v6): New test sets designed to check for overfitting to the original CIFAR10.
- CINIC10: A dataset containing images from both CIFAR10 and ImageNet.
- ImageNet-Far: A difficult set of ImageNet images that are semantically related but visually distinct from CIFAR10 categories (e.g., using "zebra" images to test the "horse" category).
Key Results and Insights
Training on human uncertainty acts as a powerful regularizer. Unlike synthetic methods like Label Smoothing or Mixup, human soft labels provide a "gold standard" for perceptual similarity.
Improved Generalization and Calibration
Models trained on CIFAR10H consistently outperformed hard-label models across all out-of-distribution datasets. On the challenging ImageNet-Far set, accuracy improved by approximately 2%. More strikingly, the cross-entropy loss on out-of-distribution data was reduced by 29% to 38%, indicating that the models were much better calibrated and less prone to overconfident errors.
The Importance of the "Second-Best"
The authors introduced Second-Best Accuracy (SBA) to measure how often the model's second-highest prediction matches the human's second-most-likely category. Models trained on human labels showed significantly higher SBA, suggesting they learn a more robust internal representation of category boundaries.
Implicit Adversarial Robustness
Remarkably, these models became more resistant to adversarial attacks (like PGD) without any explicit adversarial training. By learning the "fuzzy" perceptual boundaries defined by humans, the networks became harder to deceive with small pixel perturbations.
Discussion and Future Work
While effective, collecting 50 human judgments per image is expensive. The authors noted that human uncertainty is concentrated in only about 30% of images, suggesting that "uncertainty mining" could make this approach more scalable. Future research could extend these principles to more complex tasks like object detection or autonomous driving, where understanding the "near-miss" is critical for safety.
Summary updated