Full Kullback-Leibler-Divergence Loss for Hyperparameter-free Label Distribution Learning

Maurice Günder, Nico Piatkowski, Christian BauckhagearXiv 2022 · DOI

Abstract

Deep Label Distribution Learning (DLDL) typically relies on joint loss functions that require manual tuning of hyperparameters to balance disparate mathematical scales. We present a "Holistic KL Loss" framework that reformulates distribution similarity, expectation value, and smoothness components as Kullback-Leibler (KL) divergences. This approach eliminates the need for manual hyperparameter tuning, providing a scale-invariant objective function. Evaluated on the ChaLearn16 age estimation dataset, our method achieves performance parity with state-of-the-art tuned models while offering improved convergence and robustness against overfitting on distribution uncertainty.

Introduction

In many computer vision tasks, labels are inherently "fuzzy." For instance, in human age estimation, a single image may elicit varying age guesses from different observers. Label Distribution Learning (LDL) addresses this by predicting a probability distribution over a range of values rather than a single point estimate.

Example of a face image from the ChaLearn16 dataset used for age estimation.

The current standard, Deep LDL (DLDL), uses a joint loss function combining a KL-divergence loss (for distribution shape) and an $L_1$ loss (for mean value accuracy). However, these components operate on different scales, necessitating a balancing hyperparameter ($\lambda$). Finding the optimal $\lambda$ is computationally expensive and often fails to generalize across multi-dimensional tasks with varying units.

Methodology: The Holistic KL Loss

We propose a unified loss function, the Holistic KL Loss ($L^*$), where every component is expressed as a KL divergence. This ensures all parts of the loss are naturally on the same scale.

The loss consists of three primary terms:

  1. Distribution Loss ($L_{ldl}$): The standard KL divergence between the ground truth and predicted label distributions.
  2. Expectation Loss ($L^*_{exp}$): Instead of $L_1$ distance, we treat the true and predicted means and variances as parameters of two normal distributions. We then calculate the KL divergence between these distributions, forcing the predicted "center" toward the ground truth within the same mathematical framework.
  3. Smoothness Penalty ($L^*_{smooth}$): To prevent "jittery" predictions, we introduce a symmetrized KL divergence between the predicted distribution and a version of itself shifted by one position, encouraging smooth, natural curves.
Another example from the dataset illustrating the variety of facial features and lighting conditions.

Experimental Setup

The method was evaluated using the ChaLearn16 dataset, which contains aligned face images with age annotations. Each image is associated with a normal distribution of age guesses (mean and standard deviation) derived from multiple human annotations. We utilized the ThinAgeNet architecture, pre-trained on MS-Celeb-1M and fine-tuned on ages 0-100.

Results and Discussion

Scale Invariance and Hyperparameter-free Tuning

By utilizing KL-based components, the loss becomes invariant to label scale. Whether predicting age (0-100) or head-pose angles (-90 to 90), the components balance themselves automatically, removing the need for manual $\lambda$ tuning.

Convergence and Overfitting

The Holistic KL loss demonstrated slightly faster convergence compared to traditional DLDL. Interestingly, while Mean Absolute Error (MAE) remained stable, the validation loss began to rise after 15 epochs. This suggests the model was starting to overfit on the uncertainty (variance/shape) of the distribution—a nuance that traditional $L_1$ losses typically overlook.

Performance

On the ChaLearn16 dataset, the proposed method achieved an MAE of approximately 4.5 years. This matches the performance of models explicitly optimized for $L_1$ distance, proving that hyperparameter-free optimization does not come at the cost of accuracy.

Conclusion and Future Work

The Holistic KL Loss provides a robust, scale-invariant framework for DLDL. While this study focused on 1D age estimation, the mathematical foundation is designed for multi-dimensional regression. Future work will explore applying this approach to multi-modal data and higher-dimensional label spaces, where the benefits of automatic component balancing are expected to be even more significant.

Summary updated

BibTeX
@misc{gunder2022full,
  author = {Maurice Günder and Nico Piatkowski and Christian Bauckhage},
  title = {{Full Kullback-Leibler-Divergence Loss for Hyperparameter-free Label Distribution Learning}},
  year = {2022},
  eprint = {2209.02055},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.02055},
}
Figure