A Unimodal, Uncertainty-Aware Deep Learning Approach for Ordinal Regression

Jonathan Svirsky, Igal Zaidman, Uri ShahamOpenReview 2022

TL;DR

This paper introduces a novel deep learning approach for ordinal regression that guarantees unimodal output probabilities, uses optimal transport loss to better capture class order, and incorporates an uncertainty-aware regularizer. The method achieves state-of-the-art performance across several benchmarks, offering improved accuracy and better handling of prediction uncertainty.

What Problem Does This Paper Address?

Ordinal regression deals with predicting a discrete variable where the possible outcomes have a natural order (e.g., predicting movie ratings from 1 to 5 stars, or tumor grades). While classification and regression are well-studied, ordinal regression presents unique challenges. Traditional approaches often treat these problems as simple classification or regression, ignoring the inherent order. Even specialized ordinal regression models, like the Proportional Odds Model (POM), can suffer from issues like producing non-unimodal probability distributions (where the probability of a middle class is lower than its neighbors, which is often counter-intuitive) and being suboptimal in their training objectives. Furthermore, many existing methods don't adequately capture the model's confidence in its predictions, especially for incorrect ones. This paper aims to address these limitations by proposing a deep learning framework that enforces unimodality, uses a more appropriate loss function, and explicitly models uncertainty.

Methods

The proposed approach builds upon the Proportional Odds Model but introduces several key innovations:

  • Architectural Unimodality: Instead of relying on soft targets (which only encourage unimodality), the model guarantees unimodal output probabilities through its architecture. It maps input features to the parameters of a normal distribution (mean $\mu$ and standard deviation $\sigma$). These parameters then define bins of equal length across a fixed range (e.g., [-1, 1]), and the probability for each class is the mass of the normal distribution falling within its corresponding bin. This design inherently produces unimodal distributions.
  • Optimal Transport Loss: The authors argue that standard maximum likelihood is suboptimal for ordinal regression because it treats all misclassifications equally. They propose using Optimal Transport (OT) loss, specifically the 1-Wasserstein distance (or Earth Mover's Distance). OT loss naturally incorporates the order of classes by measuring the "cost" of moving probability mass between them. For the case of a one-hot target, this simplifies to a differentiable loss term.
  • Uncertainty-Aware Regularizer: A novel regularization term is introduced to make the model more "uncertainty-aware." This regularizer penalizes the model if the average entropy of incorrect predictions is not sufficiently higher than the average entropy of correct predictions. This encourages the model to be more confident when it's right and less confident (higher entropy) when it's wrong, providing a better measure of prediction reliability.

Datasets

The paper evaluates its method on eight real-world benchmark datasets covering various ordinal regression tasks:

  • Age Estimation: Adience, FG-Net, AFAD-LITE, AAF, WIKI
  • Image Dating: HCI
  • Biomedical Image Classification: RetinaMNIST
  • Image Aesthetics Estimation: EVA

The paper provides detailed descriptions of these datasets, including their characteristics, number of classes, and augmentation strategies.

Key Insights and Ideas

  • Unimodality by Design: Enforcing unimodality through architectural design, rather than just soft targets, provides a strong guarantee that is crucial for many real-world applications where counter-intuitive probability distributions are undesirable.
  • Optimal Transport's Advantage: The optimal transport loss is a more principled way to train ordinal regression models because it directly accounts for the ordered nature of the labels, unlike cross-entropy which treats all classes equally.
  • Quantifying Uncertainty: The proposed uncertainty-awareness regularizer and the "Entropy Ratio" metric offer a valuable way to assess how well a model distinguishes between confident correct predictions and less confident incorrect ones, going beyond simple accuracy.
  • Flexibility in Distribution Choice: While the paper focuses on a normal distribution for generating unimodal outputs, the authors note that other symmetric distributions (like Logistic or Cauchy) could also be used, suggesting potential for further exploration.

Key Results

The proposed approach consistently performs on par with or better than several state-of-the-art deep ordinal regression methods across the eight benchmark datasets. Specifically:

  • Accuracy: The method achieves competitive or superior results in terms of Mean Absolute Error (MAE), One-Off Accuracy (OOA), Spearman correlation, and Quadratic Weighted Kappa (QWK). For instance, on the Adience dataset, the proposed method achieves the highest OOA (95%) and QWK (0.92) among the compared methods.
  • Unimodality: The proposed method, along with Beckham & Pal (2017), is one of the few that guarantees unimodal output probabilities. The paper shows that other methods trained with soft targets do not always produce unimodal outputs.
  • Uncertainty Awareness: The proposed method consistently outperforms baselines in terms of the "Entropy Ratio," indicating better uncertainty awareness and less overconfidence in incorrect predictions. For example, on the WIKI dataset, the proposed method achieves an Entropy Ratio of 1.27, significantly higher than most others.

Limitations and Future Work

  • Cost Matrix Sensitivity: The optimal transport loss requires a cost matrix, which needs to be specified beforehand and can be sensitive to transformations. While the paper uses a simple $|i-j|^m$ cost, exploring other cost matrices could be beneficial.
  • Expressiveness of Truncated Gaussian: The paper acknowledges that the truncated Gaussian distribution used for generating unimodal outputs has limited expressiveness. While changing the distribution did not yield major differences in experiments, further investigation into more flexible distributions could be a future direction.
  • Generalization to Other Distributions: The authors suggest that their framework for unimodal output generation could be extended to other symmetric distributions, which might offer different trade-offs in terms of uncertainty representation.

Summary updated

Abstract

Ordinal regression is an important area in machine learning, and many algorithms were proposed to approach it. In this work, we propose an ordinal regression prediction algorithm, based on deep learning machinery and inspired by the well-known Proportional Odds model. Our proposed approach has three key components: first, it is designed to guarantee unimodal output probabilities, which is a desired element in many real world applications. Second, we argue that the standard maximum likelihood is sub-optimal for ordinal regression problems and train our model using optimal transport loss, as it naturally captures the order of the classes. Third, we design a novel regularizer aiming to make the model uncertainty-aware, in the sense of making the model more confident about correct predictions, comparing to wrong predictions. In addition, we propose a novel uncertainty-awareness evaluation measure. Experimental results on eight real-world datasets demonstrate that our proposed approach consistently performs on par with and often better than several recently proposed deep learning approaches for ordinal regression, in terms of both accuracy and uncertainty-awareness, while having a guarantee on the output unimodality.
BibTeX
@misc{svirsky2022unimodal,
  author = {Jonathan Svirsky and Igal Zaidman and Uri Shaham},
  title = {{A Unimodal, Uncertainty-Aware Deep Learning Approach for Ordinal Regression}},
  year = {2022},
  url = {https://openreview.net/forum?id=yyTNV4CcIR9},
  howpublished = {OpenReview},
}
Figure