[Paper Review] A simple squared-error reformulation for ordinal classification
This paper proposes a simple squared-error reformulation for ordinal classification using a fixed vector of class indices and a softmax-activated hidden layer in deep neural networks. By minimizing the squared error between predicted and true ordinal class indices, the method produces calibrated probability distributions and outperforms cross-entropy and direct QWK optimization on the diabetic retinopathy dataset, achieving superior quadratic weighted kappa scores while being more robust to label noise.
In this paper, we explore ordinal classification (in the context of deep neural networks) through a simple modification of the squared error loss which not only allows it to not only be sensitive to class ordering, but also allows the possibility of having a discrete probability distribution over the classes. Our formulation is based on the use of a softmax hidden layer, which has received relatively little attention in the literature. We empirically evaluate its performance on the Kaggle diabetic retinopathy dataset, an ordinal and high-resolution dataset and show that it outperforms all of the baselines employed.
Motivation & Objective
- To address the limitations of standard cross-entropy loss in ordinal classification, where misclassifications are treated equally regardless of class distance.
- To develop a simple, single-model deep learning approach that respects class ordering and produces meaningful probability distributions over ordinal classes.
- To evaluate whether a squared-error loss with fixed class indices can outperform traditional cross-entropy and direct QWK optimization in real-world ordinal medical imaging tasks.
- To explore the trade-off between cross-entropy and quadratic weighted kappa performance when optimizing for different metrics.
Proposed method
- The method uses a deep neural network with a final softmax-activated layer to produce class probabilities, followed by a fixed linear combination of these probabilities using class indices a = [0, 1, ..., k-1] to predict the expected ordinal class.
- The loss function is defined as the squared error (c - a^T f(x))^2, where c is the true class index and f(x) is the output of the softmax layer.
- The fixed vector a is not learned, preserving interpretability and avoiding additional parameters, while the network learns to predict class probabilities that minimize the distance to the true ordinal index.
- The approach is evaluated on the Kaggle diabetic retinopathy dataset, a high-resolution, ordinal classification task with five stages of disease severity.
- The method is compared against standard cross-entropy training and direct optimization of the quadratic weighted kappa (QWK) metric using SGD with Nesterov momentum.
- The probability distributions are analyzed via histograms and boxplots to assess calibration and conservatism of predictions.
Experimental results
Research questions
- RQ1Can a simple squared-error loss with a fixed class index vector improve ordinal classification performance compared to standard cross-entropy in deep neural networks?
- RQ2Does the proposed method produce more calibrated and conservative probability distributions than cross-entropy or direct QWK optimization?
- RQ3How does the trade-off between cross-entropy and quadratic weighted kappa performance manifest when optimizing for different objectives?
- RQ4To what extent does the method remain robust to label noise, given its relaxation of strict probability concentration on the correct class?
Key findings
- The proposed method, named 'fix a', achieved a higher quadratic weighted kappa score than both cross-entropy and direct QWK optimization on the validation set, outperforming all baselines.
- The method produced fewer probability estimates close to zero for the correct class (around 125) compared to QWK (over 300), indicating better calibration and reduced overconfidence in incorrect predictions.
- The predicted probabilities for the correct class were more frequently close to one in the 'fix a' method than in cross-entropy, suggesting improved confidence in correct predictions.
- The 'fix a' method produced more conservative predictions than cross-entropy, with lower median probabilities assigned to incorrect classes (e.g., class 1 and 2), reflecting a more cautious prediction strategy.
- The QWK-optimized model had the highest cross-entropy loss, indicating that its probability distributions were less concentrated on the correct class, yet still achieved the best QWK score due to better handling of class distance penalties.
- The method successfully learned to produce meaningful probability distributions over ordinal classes while respecting class ordering through a simple, differentiable, and parameter-free transformation of the softmax output.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.