Ordinal Neural Network Transformation Models: Deep and interpretable regression models for ordinal outcomes

Lucas Kook, Lisa Herzog, Torsten Hothorn, Oliver Dürr, Beate SickarXiv 2020

Abstract

Ordinal outcomes, such as disease stages or survey ratings, are ubiquitous in real-world data. While classical statistical models offer interpretability for such data, they often lack the flexibility to handle high-dimensional, unstructured inputs like images. Conversely, deep learning models excel at processing complex data but typically treat ordinal categories as unordered, sacrificing both structural information and interpretability. This paper introduces Ordinal Neural Network Transformation Models (ONTRAMs), a framework that bridges this gap by reparameterizing standard classification losses to respect the natural order of outcomes. ONTRAMs allow for the integration of deep neural networks with interpretable linear shifts, providing a robust tool for modern data science.

Introduction

In many domains, target variables possess an inherent ordering—for instance, movie ratings (1–5 stars), cancer stages (I–IV), or age groups. Standard deep learning approaches usually address these tasks via multi-class classification (MCC) using a softmax output and cross-entropy loss. However, this "one-hot" encoding ignores the ordinal relationship between classes, treating the distance between "Stage I" and "Stage II" the same as the distance between "Stage I" and "Stage IV."

Classical statistics provides the proportional odds model to handle such data, but these models are generally restricted to tabular predictors. ONTRAMs resolve this "flexibility vs. interpretability" trade-off by embedding deep learning components within a transformation model framework.

Methodology: Ordinal Neural Network Transformation Models (ONTRAMs)

ONTRAMs are built upon the theory of transformation models, which relate the cumulative distribution function (CDF) of an outcome $Y$ to a latent distribution $Z$ (e.g., standard logistic or normal) through a transformation function $h$.

The ONTRAM framework maps discrete ordinal outcomes (A, B) to a latent continuous distribution (C, D) using learned thresholds $h_k$.

The transformation function is decomposed into modular components:

  • Intercept Terms ($\theta_k$): These define the thresholds on the latent scale that separate the ordinal categories. They can be simple (fixed scalars) or complex (functions of the input data).
  • Shift Terms ($\eta(x)$): These represent the influence of predictors on the outcome.
  • Linear Shifts: Modeled as $\beta^T x$, where $\beta$ is a vector of weights directly interpretable as log-odds ratios.
  • Complex Shifts: Modeled using deep neural networks (e.g., CNNs for images) to capture non-linear features.

The model is trained by minimizing the Negative Log-Likelihood (NLL) based on the difference between latent CDF values at the thresholds: $P(Y \le y_k | x) = F_Z(h(y_k | x))$.

Experimental Evaluation

The authors evaluated ONTRAMs using two distinct datasets to demonstrate flexibility and interpretability:

  1. UTKFace: A dataset of over 23,000 face images categorized into seven age groups. To evaluate parameter recovery, the authors augmented the images with simulated tabular predictors with known ground-truth effects.
  2. Wine Quality: A tabular dataset of 1,599 red wine samples with 11 chemical predictors and ordinal quality ratings (3–8).

Key Results and Insights

Performance and Efficiency

ONTRAMs achieved predictive performance (NLL and Ranked Probability Score) comparable to standard multi-class classification baselines. Notably, the authors found that respecting the ordinal structure led to faster convergence; ONTRAMs reached minimum test loss in significantly fewer epochs than MCC models due to more structured gradients.

Interpretability and Parameter Recovery

In simulation experiments, the linear shift components of ONTRAMs accurately recovered the "true" effects of tabular predictors, even when trained simultaneously with a complex CNN. This allows researchers to quantify the impact of specific features while still leveraging deep learning for unstructured data. On the Wine Quality data, the ONTRAM GAM (Generalized Additive Model) version successfully captured non-linear relationships that matched results from established statistical packages like mgcv in R.

Theoretical Equivalence

The paper proves that the most flexible ONTRAM configuration (using complex intercepts) is mathematically equivalent to a standard multi-class deep learning model. This ensures that adopting the ONTRAM framework does not impose a "performance ceiling" compared to traditional black-box models.

Conclusion

ONTRAMs provide a principled way to combine the interpretability of classical regression with the power of deep learning. By treating ordinal outcomes correctly, these models offer faster training, better structural alignment with the data, and the ability to extract clear statistical insights from complex inputs. Future work may extend this framework to survival analysis and count data, further broadening its applicability in scientific research.

Summary updated

BibTeX
@misc{kook2020ordinal,
  author = {Lucas Kook and Lisa Herzog and Torsten Hothorn and Oliver Dürr and Beate Sick},
  title = {{Ordinal Neural Network Transformation Models: Deep and interpretable regression models for ordinal outcomes}},
  year = {2020},
  eprint = {2010.08376},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.08376},
}
Figure