Rank consistent ordinal regression for neural networks with application to age estimation

Wenzhi Cao, Vahid Mirjalili, Sebastian Raschka

TL;DR

This paper introduces CORAL, a novel framework for ordinal regression in neural networks that guarantees consistent predictions across binary classifiers. By ensuring these classifiers maintain a consistent ranking, CORAL significantly improves age estimation accuracy compared to existing methods, while remaining computationally efficient and architecture-agnostic.

What Problem Does This Paper Address?

Many real-world prediction tasks involve labels with inherent order, such as age groups or severity levels. Traditional classification methods ignore this ordering, while standard ordinal regression approaches often break down into multiple binary classification tasks. A key challenge with these binary breakdowns is that the individual classifiers can produce inconsistent predictions (e.g., predicting an age greater than 30 but also less than 20), leading to suboptimal overall performance. Existing methods struggle to guarantee consistency without significantly increasing computational complexity. This paper tackles this inconsistency problem, aiming to provide a theoretically sound and practically efficient solution for ordinal regression in neural networks.

Methods

The core of the proposed method is the Consistent RAnk Logits (CORAL) framework. It adapts existing neural network architectures for ordinal regression by transforming the ordinal target labels into a series of binary classification tasks. Specifically, for an ordinal problem with K ranks, CORAL creates K-1 binary tasks. Each task predicts whether an input's true rank exceeds a specific threshold rank.

What's novel about CORAL is its approach to ensuring rank consistency. This is achieved by sharing weights across the intermediate layers of the neural network for all K-1 binary tasks and using independent bias units for each task's output layer. This specific architectural choice, coupled with a weighted cross-entropy loss function, theoretically guarantees that the predicted probabilities from these binary classifiers will be monotonically decreasing. This monotonicity directly translates to consistent predictions, meaning if a classifier predicts an age greater than 30, it will also predict an age greater than 20, and so on. The paper provides a formal theorem (Theorem 1) proving this rank consistency property.

Datasets

The paper evaluates CORAL on three publicly available face image datasets for age estimation:

  • MORPH-2: Contains 55,608 face images with age labels ranging from 16-70 years.
  • CACD: A larger dataset with 159,449 images, covering ages from 14-62 years.
  • Asian Face Database (AFAD): Includes 165,501 faces with ages between 15-40 years.

The authors also mention that their preprocessing code and dataset splits are publicly available.

Key Insights and Ideas

  • The cost of inconsistency: The paper empirically demonstrates that inconsistent predictions from individual binary classifiers in ordinal regression frameworks lead to worse performance. This is a crucial insight, highlighting that simply breaking down an ordinal problem into binary tasks isn't enough; the relationships between these tasks matter.
  • Theoretical guarantee for consistency: CORAL's strength lies in its theoretical guarantee of rank consistency. This is not just an empirical observation but a provable property derived from the network architecture and loss function.
  • Architecture and training efficiency: CORAL is designed to be architecture-agnostic, meaning it can be applied to various state-of-the-art deep neural networks (like ResNet-34, used in their experiments). Furthermore, it avoids the need for complex, example-specific weighting schemes, which significantly simplifies training and reduces computational overhead compared to prior methods.
  • Ordinal regression is more than just classification: The results clearly show that explicitly modeling the ordinal nature of the labels (as CORAL does) yields better results than treating it as a standard classification problem (CE-CNN).

Key Results

The CORAL framework, implemented as CORAL-CNN, consistently outperformed the baseline CE-CNN (standard classification) and the existing ordinal regression approach OR-CNN (Niu et al., 2016) across all three datasets.

  • Reduced Error: CORAL-CNN achieved lower Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) compared to OR-CNN. For example, on the MORPH-2 dataset, CORAL-CNN achieved an average MAE of 2.64 ± 0.02, while OR-CNN achieved 2.83 ± 0.03. This improvement is statistically significant.
  • Zero Inconsistencies: Empirically, CORAL-CNN exhibited zero rank inconsistencies on all test datasets, as confirmed by their analysis in Table 2. In contrast, OR-CNN showed a notable number of inconsistencies, particularly when making incorrect predictions.
  • Qualitative Improvement: Figure 3 visually demonstrates the difference, showing how OR-CNN's predicted probability curves can exhibit inconsistencies (indicated by arrows), while CORAL-CNN's curves remain smoothly decreasing and consistent.

Limitations and Future Work

  • Focus on Age Estimation: While the paper demonstrates CORAL's efficacy on age estimation, the authors suggest it can be readily generalized to other ordinal regression problems (e.g., crowd-counting, depth estimation, customer satisfaction).
  • Generalization to other architectures: The experiments primarily used ResNet-34. While CORAL is architecture-agnostic, further exploration with other CNN architectures, as well as other neural network types like MLPs and RNNs, would be beneficial.
  • Hyperparameter tuning: The paper mentions hyperparameter tuning for learning rates, but a more extensive study on the impact of other hyperparameters on CORAL's performance could be valuable.
  • Task Weighting: While uniform task weighting was used for simplicity, the framework allows for non-uniform weighting. Investigating optimal weighting schemes for specific tasks or datasets could further enhance performance.

Summary updated

BibTeX
@article{cao2020rank,
  author = {Wenzhi Cao and Vahid Mirjalili and Sebastian Raschka},
  title = {{Rank consistent ordinal regression for neural networks with application to age estimation}},
  journal = {Pattern Recognition Letters},
  year = {2020},
  doi = {10.1016/j.patrec.2020.11.008},
}
Figure