A Case for Soft Loss Functions

Alexandra Uma, Tommaso Fornaciari, Dirk Hovy, Silviu Paun, Barbara Plank, Massimo Poesio

Abstract

Traditional supervised learning often treats crowd-sourced label disagreement as noise to be filtered out via aggregation. This research demonstrates that training models on the full distribution of human judgments—"soft labels"—significantly improves performance and uncertainty calibration. By evaluating across computer vision and natural language processing tasks, the authors show that "soft loss" functions allow models to capture inherent task ambiguity, leading to better generalization than standard "hard" label approaches.

Introduction

In supervised learning, crowd-sourced labels are typically aggregated into a single "gold" label via majority voting or statistical models. Any variance in annotator judgment is usually dismissed as noise. However, recent findings suggest that disagreement often signals inherent ambiguity in the data—for instance, a blurry image that could plausibly be labeled as either a "dog" or a "deer."

Visual ambiguity in low-resolution imagery often leads to structured human disagreement.

Building on work by Peterson et al. (2019), this paper investigates whether training on "soft" probability distributions of human labels improves performance across diverse domains like Natural Language Processing (NLP) and how it compares to specialized methods for learning from crowds.

Methodology

The core approach replaces traditional "hard" labels with Soft Labels derived from the distribution of crowd judgments.

Soft Loss Function

The model minimizes the cross-entropy between its predicted distribution and the human label distribution ($p_{hum}$), rather than minimizing error against a single categorical label.

Normalization Strategies

The authors explored two methods for converting raw crowd counts into probabilities:

  1. Standard Normalization: Dividing the count for each class by the total votes. This works best for high-density datasets.
  2. Softmax Normalization: Applying a softmax function to counts. This ensures classes with zero votes receive a tiny non-zero probability, which helps "smooth" distributions in sparse datasets by reducing the impact of outlier votes.

Experimental Setup

The study evaluated three distinct tasks to ensure robustness:

  • POS (Part-of-Speech Tagging): A Twitter-based NLP dataset with a high coder-to-label ratio (many tags, few votes per item).
  • LabelMe: An image classification dataset with roughly 2.5 annotations per image.
  • IC-CIFAR10H: A high-density image dataset where each image has over 50 human judgments.

Baselines included standard aggregation (Majority Voting, Dawid & Skene), expert "Gold" labels, and Deep Learning from Crowds (DLC), a state-of-the-art model that learns annotator biases.

Results and Discussion

The "soft-loss" approach consistently outperformed traditional methods across multiple metrics and domains.

Performance comparison of Soft-loss against standard aggregation and expert gold labels across three datasets.

Accuracy and Calibration

On POS and LabelMe, Soft-loss achieved the highest accuracy (80.03% and 84.85%), surpassing even the specialized DLC model. Furthermore, soft-loss models achieved significantly lower cross-entropy, indicating better probability estimates. In the high-density CIFAR-10H task, training on soft crowd labels actually resulted in higher accuracy (66.64%) than training on expert "gold" labels (65.22%), suggesting that collective uncertainty is more informative than a single binary choice.

Uncertainty Correlation

The authors found that models trained with soft loss produce predictions whose entropy correlates much more strongly with human uncertainty. This suggests that the models are learning to be uncertain in the same contexts where humans struggle, effectively capturing task difficulty.

Conclusion

Human uncertainty is structured, not random. By treating disagreement as a signal rather than noise, soft loss functions provide a robust framework for training more accurate and better-calibrated AI models. While the optimal normalization strategy depends on dataset density, the overall benefits of soft labels hold across both vision and language domains.

Summary updated

BibTeX
@inproceedings{uma2020case,
  author = {Alexandra Uma and Tommaso Fornaciari and Dirk Hovy and Silviu Paun and Barbara Plank and Massimo Poesio},
  title = {{A Case for Soft Loss Functions}},
  booktitle = {HCOMP},
  year = {2020},
  doi = {10.1609/hcomp.v8i1.7478},
}
Figure