THOR: Threshold-Based Ranking Loss for Ordinal Regression

Tzeviya Sylvia Fuchs, Joseph KeshetarXiv 2022 · OpenReview

TL;DR

This paper introduces THOR, a novel ordinal regression algorithm that frames the problem as regression with pre-defined category boundaries. By employing a threshold-based pairwise loss function, THOR effectively minimizes Mean Absolute Error (MAE), outperforming existing state-of-the-art methods on several real-world benchmarks.

What Problem Does This Paper Address?

Ordinal Regression (OR) deals with predicting variables where the order of categories matters, such as medical diagnoses or age estimation. Traditional classification methods often ignore this inherent ordering, while standard regression methods struggle to define the boundaries between these ordered categories. This paper tackles the challenge of effectively modeling ordinal relationships by proposing a method that leverages pre-defined category boundaries and learns a mapping function to assign instances to their correct ordinal scores.

Methods

The core of THOR lies in its novel threshold-based pairwise loss function. Instead of learning category boundaries, THOR assumes they are fixed and known in advance. The algorithm then learns a mapping function (e.g., a CNN) that projects input instances onto a continuous scale. The loss function is designed to minimize the regression error by ensuring that instances from consecutive ordinal classes are mapped to distinct, non-overlapping intervals defined by these pre-set boundaries. Specifically, it aims to maximize the probability that an instance from class i is mapped to an interval [b<sub>i-1</sub>, b<sub>i</sub>] and an instance from class i+1 is mapped to [b<sub>i</sub>, b<sub>i+1</sub>]. This is achieved by minimizing an upper bound on the error, incorporating a margin γ to create a clearer separation between classes. The method is architecture-agnostic, meaning it can be integrated with various deep learning models for feature extraction.

Datasets

The paper evaluates THOR on five real-world benchmarks:

  • Historical Color Images Dataset: Used for classifying images by decade.
  • Diabetic Retinopathy Detection Dataset: For predicting the severity of diabetic retinopathy.
  • Aesthetic Visual Analysis (AVA) Dataset: For aesthetic visual analysis.
  • UTKFace Dataset: Used for age estimation, with variations for specific age ranges and the full age range.
  • TIDIGITS Dataset: For speech-based age estimation, with variations for specific age groups and the full age range.

Key Insights and Ideas

  • Pre-defined boundaries simplify the problem: By fixing category boundaries, THOR avoids the complexity of learning them, focusing solely on learning the mapping function. This is a key departure from many existing OR methods.
  • MAE as the primary optimization goal: The paper strongly advocates for minimizing MAE in OR tasks, especially with a large number of classes where accuracy can be misleading. THOR's loss function is directly designed to achieve this.
  • Architecture Agnosticism is a strength: The ability to plug THOR into different CNN architectures (VGG19, ResNet18, ResNet34) demonstrates its flexibility and broad applicability.
  • The margin γ plays a crucial role: The margin helps to create a more robust separation between ordinal classes, leading to better performance, particularly in minimizing MAE.

Key Results

THOR consistently achieved the best Mean Absolute Error (MAE) results across multiple datasets and architectures, outperforming state-of-the-art ordinal regression algorithms. While its accuracy was often second-best, the paper argues that MAE is a more meaningful metric for OR tasks, especially with many classes. For instance, on the Historical Color Images dataset with the VGG19* architecture, THOR achieved an MAE of 0.768, significantly lower than its competitors. Similar MAE improvements were observed across other datasets and architectures.

Limitations and Future Work

  • Accuracy vs. MAE: While THOR excels at minimizing MAE, its accuracy is not always the highest. The authors suggest that future work could focus on improving accuracy results.
  • Learned vs. Fixed Boundaries: Preliminary experiments indicated that learned boundaries did not perform as well as fixed ones. This is an interesting observation that warrants further research to understand why and how to potentially improve learned boundary approaches.

Summary updated

Abstract

In this work, we present a regression-based ordinal regression algorithm for supervised classification of instances into ordinal categories. In contrast to previous methods, in this work the decision boundaries between categories are predefined, and the algorithm learns to project the input examples onto their appropriate scores according to these predefined boundaries. This is achieved by adding a novel threshold-based pairwise loss function that aims at minimizing the regression error, which in turn minimizes the Mean Absolute Error (MAE) measure. We implemented our proposed architecture-agnostic method using the CNN-framework for feature extraction. Experimental results on five real-world benchmarks demonstrate that the proposed algorithm achieves the best MAE results compared to state-of-the-art ordinal regression algorithms.
BibTeX
@misc{fuchs2022thor,
  author = {Tzeviya Sylvia Fuchs and Joseph Keshet},
  title = {{THOR: Threshold-Based Ranking Loss for Ordinal Regression}},
  year = {2022},
  eprint = {2205.04864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.04864},
}
Figure