When class labels have a natural distance between them (star ratings, age bins, disease stages, nodes in a label taxonomy), practitioners increasingly replace cross-entropy with losses that punish far-off mistakes more than near misses. The best-known example is Ordinal Log-Loss. These losses are reported to help, but nobody has said what they actually estimate. That gap matters because a much simpler recipe already has a guarantee. Train with ordinary cross-entropy, then at test time pick the class with the lowest expected distance under the predicted probabilities. This "plug-in decoding" is provably consistent for any distance. If distance-aware training only rediscovers what decoding already gives, the extra losses buy nothing. If it buys something, we should know when and why.
This note proposes to settle the question for distances defined on a label graph. The graph can be a chain for ordinal labels, a tree for taxonomies, or shortest paths in a preference graph. A short calculation, given below, suggests that Ordinal Log-Loss does not estimate class probabilities at all. Its population minimizer is an affine, decreasing function of each class's expected distance-cost. So the loss is consistent for distance-weighted error but miscalibrated as a probability model by construction. We would prove this for general graph metrics, derive and compare regret-transfer bounds for "cost-eliciting" training versus "probability-eliciting" training with plug-in decoding, and test empirically where the two differ. We expect them to differ under restricted model classes, at long label chains, and in calibration.
Core Claim
Let $p$ be the true conditional distribution over $K$ labels at an input, $d(y,i)$ a graph distance between labels, and $w_i = \sum_y p_y\, d(y,i)^\alpha$ the expected cost of predicting label $i$. Ordinal Log-Loss, introduced in A Simple Log-based Loss Function for Ordinal Text Classification, minimizes $-\sum_i \log(1-q_i)\, d(y,i)^\alpha$ over predicted probabilities $q$. Minimizing its expectation subject to $q$ lying on the simplex gives, by the stationarity conditions,
$$q_i^\star = \max\left(0,\; 1 - \frac{w_i}{\lambda}\right),$$
where $\lambda$ is the single constant that makes $q^\star$ sum to one. Two consequences follow, and both hold for any nonnegative cost matrix with zero diagonal, not only integer ranks.
First, $\arg\max_i q_i^\star = \arg\min_i w_i$. Ordinal Log-Loss with argmax decoding is therefore Fisher consistent (its population optimum makes the Bayes-optimal decision) for the cost $d^\alpha$. It is not consistent for the metric usually reported. Training with the empirically preferred $\alpha=1.5$ targets the minimizer of expected $d^{1.5}$, which lies between the median and the mean, while evaluation uses mean absolute error ($\alpha=1$).
Second, $q^\star$ is not $p$. The loss is not proper, which means its optimum does not equal the true probabilities. Its probabilities are therefore systematically miscalibrated. This gives a mechanistic reason for the miscalibration concerns raised in Reducing Supervision Uncertainty Induces Model Miscalibration.
The competing recipe trains a strictly proper loss such as cross-entropy and decodes $\hat k = \arg\min_k \sum_y q_y d(y,k)$. Its regret in distance-weighted error is bounded by
$$\mathcal{R}_d(f) - \mathcal{R}_d^\star \;\le\; D_{\max}\sqrt{2\left(\mathcal{R}_{CE}(f) - \mathcal{R}_{CE}^\star\right)},$$
where $D_{\max}$ is the graph diameter and $\mathcal{R}$ denotes expected risk. The derivation has three steps. Decision regret is at most twice the worst gap between true and estimated expected costs. That gap is at most $(D_{\max}/2)\lVert p-q\rVert_1$. Pinsker's inequality then turns the $\ell_1$ gap into a square root of the cross-entropy regret.
The open theoretical question is whether cost-eliciting losses get a transfer function that does not grow with $D_{\max}$. If they do, they should matter most on long chains and large graphs, which is exactly where plug-in decoding's guarantee weakens.
What is known, and what this changes
Several papers motivate the question. Consistent Multilabel Ranking through Univariate Losses proved that popular pairwise ranking surrogates are inconsistent while univariate ones are consistent, with a square-root regret bound. That bound covers only unweighted rank loss on relevant-versus-irrelevant graphs. Bipartite Ranking through Minimization of Univariate Loss and Surrogate Regret Bounds for the Area Under the ROC Curve via Strongly Proper Losses supply the method we reuse: strongly proper losses give square-root transfer through probability estimation error. They work only in the two-class case; we carry the argument to graph metrics and set it against cost-eliciting losses.
The closest prior work is on ordinal chains. On the Consistency of Ordinal Regression Methods characterized consistency of threshold surrogates and proposed the Generalized All-Threshold loss, which is consistent for symmetric V-shaped costs on chains. Adversarial Surrogate Losses for Ordinal Regression built surrogates consistent for absolute error. Both are restricted to one-dimensional chains and specific costs. Neither analyzes the distance-weighted multiclass losses practitioners actually use. Consistency Conditions for Differentiable Surrogate Losses gives the geometric tool we would use to check calibration of smooth surrogates (strong indirect elicitation). Its compactness requirement constrains us: the clipping in $q^\star$ above creates boundary minimizers, which must be handled explicitly.
The "unified ranking" view enters as the source of the metric. Log-Linear Models for Label Ranking and Supervised learning as preference optimization encode multiclass, multilabel and hierarchical tasks as directed preference graphs. We take shortest-path distance on such a graph as $d$. The ordinal chain is the path graph and a taxonomy is a tree.
The ordinal-consistency regularizers play a different role. These include monotone cumulative probabilities as in RainPro-8 and order constraints as in Towards a Pairwise Ranking Model with Orderliness and Monotonicity for Label Enhancement. Under plug-in decoding with absolute error, the decision is the median of $q$, which unimodality does not change at the population level. So these regularizers can only help as finite-sample inductive bias or for calibration. That is a testable prediction, not an assumption.
Research Program
The theory part has three pieces.
The first is to formalize the minimizer calculation above for arbitrary graph costs. It must cover the clipped boundary and the softmax parameterization. We would then extend the analysis to the distance-weighted repulsion loss of Learning-to-Rank Meets Language. We do not yet know whether it elicits costs, probabilities, or neither.
The second is to derive a regret-transfer function for the Ordinal Log-Loss family in terms of the curvature of its conditional risk in $w$. We would compare its dependence on $D_{\max}$, $K$, and $\alpha$ with the plug-in bound.
The third addresses restricted model classes. Calibration and Consistency of Adversarial Surrogate Losses and Enhanced H-Consistency Bounds show that calibration over all functions need not survive restriction to linear models or networks. We would ask whether cost-eliciting losses have better bounds for a restricted class $\mathcal{H}$. The intuition is that they spend capacity only on the ordering of expected costs, whereas a proper loss must fit the whole distribution.
The constructive output follows from the theory. If cost-eliciting transfer is better but calibration is lost, the natural design is a two-head model. One head is trained with cross-entropy and is used for probabilities. The other is trained with a cost-eliciting loss whose $\alpha$ is matched to the evaluation metric, and is used for decisions. If the theory shows no advantage, the output is a negative result: decode cross-entropy correctly and stop tuning distance-aware losses.
Baselines
The naive reference is cross-entropy with argmax decoding. This is the comparison point the Ordinal Log-Loss paper itself used. It ignores distance at both training and test time.
The baseline that matters most is cross-entropy with plug-in graph-metric decoding. It is the strongest competitor because it is already consistent for every distance and costs nothing beyond a $K\times K$ matrix product at test time. No paper in the file reports it, so no reported result was found on Lacuna for cross-entropy with expected-cost decoding on any of these benchmarks.
The strongest published distance-aware methods are three. The first is Ordinal Log-Loss with $\alpha=1.5$; on Amazon Reviews it reaches off-by-one accuracy 92.5% versus 90.9% for cross-entropy (A Simple Log-based Loss Function for Ordinal Text Classification). The second is the Generalized All-Threshold surrogate, which beat least squares on 7 of 9 datasets (On the Consistency of Ordinal Regression Methods). The third is the adversarial ordinal loss, which was best or tied on 7 of 8 UCI datasets (Adversarial Surrogate Losses for Ordinal Regression). On MORPH II the reference number is L2RCLIP's mean absolute error of 2.13 (Learning-to-Rank Meets Language). Rather than claiming to beat that full vision-language system, we would apply each loss on top of the same backbone.
Fairness rules apply to all comparisons. Every method uses the same encoder, the same data splits, and the same number of hyperparameter trials per method. Each method also gets its own best decoding rule, so that losses are compared as losses and not through their decoders.
Two ablations isolate the key ingredient. The first is Ordinal Log-Loss with $\alpha$ set equal to the evaluation exponent versus $\alpha=1.5$. The second is Ordinal Log-Loss followed by plug-in decoding of its own (miscalibrated) $q$.
Success is defined in advance. A distance-aware loss "beats" plug-in decoding only if it improves mean absolute error or off-by-one accuracy beyond seed variance in a regime predicted by the theory. If it fails to do so in the other regimes, the theory's predictions about where it should not help are confirmed.
Why not just…?
Why not just use cross-entropy with plug-in decoding and skip all of this? This is the real threat, and the proposal is organized around it. If it matches every distance-aware loss across model capacities, data sizes and chain lengths, that is the headline result. The capacity and label-granularity sweeps below are designed to find the regime where it loses, if one exists.
Why not just regress the label index with squared or absolute error? Regression imposes equal spacing between labels and cannot represent trees or general graphs. On chains it was beaten by an all-threshold surrogate on 7 of 9 datasets (On the Consistency of Ordinal Regression Methods). We still include it on the chain benchmarks as a cheap reference.
Why not just use the all-threshold surrogate, which is already proven consistent? It is proven only for symmetric V-shaped costs on chains and has no natural form for a taxonomy. On chains it is a serious competitor and is run as such. On tree-structured labels it cannot be applied, which is where the graph-metric analysis is needed.
Why not just tune $\alpha$ and move on? Our calculation predicts that tuning $\alpha$ secretly selects which Bayes decision rule the model learns. Choosing $\alpha=1.5$ for an absolute-error metric is therefore a finite-sample effect, not an asymptotic optimum. The $\alpha$-matching ablation tests exactly this. If $\alpha=1.5$ keeps winning at large data, that is evidence against our account.
Decisive Experiments
The text benchmarks are Amazon Reviews, Yelp, SST-5 and SNLI, using the setup of the Ordinal Log-Loss paper. Vision uses MORPH II and Adience. Tabular coverage comes from the UCI ordinal collections used by the threshold and adversarial papers, plus Cardiotocography. Metrics are accuracy, off-by-one accuracy, mean absolute error, Kendall tau, and expected calibration error.
The first check is the population claim. On synthetic data with known $p$, the learned Ordinal Log-Loss outputs should track $1 - w_i/\lambda$ rather than $p_i$. Their argmax should coincide with the expected-cost minimizer for $d^\alpha$.
The second is a capacity sweep: linear probe versus full fine-tuning, and 1% to 100% of the training data. We predict that cost-eliciting losses beat plug-in decoding only at low capacity or low data, with the gap closing as either grows.
The third is a chain-length sweep. MORPH II ages are binned at 5, 10, 20 and the full set of age classes, which varies the graph diameter $D_{\max}$. This tests whether the advantage grows with diameter, as a diameter-free transfer bound would imply.
The fourth tests ordinal regularizers. Adding a monotone-cumulative or unimodality penalty to cross-entropy should change plug-in-decoded mean absolute error only at small data, while improving calibration.
The fifth concerns graphs. We would like to evaluate a hierarchical label tree with tree distance. The file lists no taxonomy benchmark with reported numbers. The nearest available graph case is SNLI's three-node structure, with neutral placed between entailment and contradiction. A larger hierarchy would be added as an extension, without a reported reference figure.
Any of three outcomes would be a clear result. Plug-in decoding may tie everywhere. Cost-eliciting losses may win exactly where the transfer bound predicts. Or the $\alpha$-mismatch account may fail. Each outcome tells practitioners whether distance awareness belongs in the loss or in the decoder.
References
- A Simple Log-based Loss Function for Ordinal Text Classification
- Reducing Supervision Uncertainty Induces Model Miscalibration
- Consistent Multilabel Ranking through Univariate Losses
- Bipartite Ranking through Minimization of Univariate Loss
- Surrogate Regret Bounds for the Area Under the ROC Curve via Strongly Proper Losses
- On the Consistency of Ordinal Regression Methods
- Adversarial Surrogate Losses for Ordinal Regression
- Consistency Conditions for Differentiable Surrogate Losses
- Log-Linear Models for Label Ranking
- Supervised learning as preference optimization
- RainPro-8: An Efficient Deep Learning Model to Estimate Rainfall Probabilities Over 8 Hours
- Towards a Pairwise Ranking Model with Orderliness and Monotonicity for Label Enhancement
- Learning-to-Rank Meets Language: Boosting Language-Driven Ordering Alignment for Ordinal Classification
- Calibration and Consistency of Adversarial Surrogate Losses
- Enhanced H-Consistency Bounds