Toward Minimal-dimensional Convex Calibrated Surrogate Losses for Classification with Rejection

Yuzhou Cao, Han Bao, Bo AnNeurIPS 2026

TL;DR

When classifying inputs across $K$ categories—even millions of them—how many numbers does a model actually need to output if it is allowed to say "I don't know"? For years, researchers believed the mathematical floor was $\lceil \log_2 K \rceil$ dimensions. This paper shatters that ceiling, proving you can train an optimal, mathematically consistent "classifier with rejection" using a convex loss function that outputs just 2 numbers—regardless of how many classes exist—while simultaneously disproving a major conjecture in loss function design.

What Problem Does This Paper Address?

In high-stakes domains like medical diagnosis or autonomous driving, guessing when uncertain is dangerous. Classification with Rejection (CwR) gives a model an escape hatch: instead of predicting a class and risking a misclassification penalty of $1$, it can abstain ("reject") and pay a smaller, fixed penalty $c \in (0, 1)$. By a classic 1970 result called Chow’s rule, the optimal strategy is intuitive: predict the most likely class, unless its probability is below $1 - c$, in which case, abstain.

Because discrete 0-1 penalties are impossible to optimize directly with gradient descent, we train models using convex calibrated surrogate losses—smooth, bowl-shaped functions whose minimum aligns with the optimal discrete decision.

Normally, $K$-class classification requires a $K$-dimensional output vector (like logits in cross-entropy). In "extreme classification" where $K$ can be in the millions, this becomes a massive computational bottleneck. Previous clever binary-encoding tricks (the BEP loss) squeezed CwR down to $\lceil \log_2 K \rceil$ dimensions for $c \in (0, 0.5]$. Because lower bounds matched this for small $K$, the machine learning theory community widely conjectured that $\lceil \log_2 K \rceil$ was the absolute theoretical limit—the convex calibration dimension. The authors ask: Can we go even lower?

Methods

Instead of treating class labels $\{1, 2, \dots, K\}$ as vertices of a high-dimensional simplex or binary bit-strings, the authors embed them directly onto the 1D real number line: $1, 2, \dots, K \in \mathbb{R}$. They then reframe classification through property elicitation (designing losses whose minimizers extract specific statistical properties, like how squared error extracts the mean, and absolute error extracts the median).

  1. For $c \in (0, 0.5)$ (2D Loss): If a class has probability $> 1 - c > 0.5$, it dominates more than half the probability mass. On a 1D line, the median equals the mode! So, one scalar output ($\theta$) estimates the median label using standard absolute error $|\theta - y|$. A second scalar ($r$) estimates the $(1-c)$-quantile of the error $|\theta - y|$ to act as a rejection detector: if the model's typical error is near zero, accept the rounded $\theta$; if it jumps $\ge 0.5$, reject. Because standard pinball losses become non-convex when nested inside $|\theta - y|$, the authors craft a conic combination of absolute loss and a Conditional Value-at-Risk (CVaR) objective, which stays cleanly convex and polyhedral.
  2. For the boundary $c = 0.5$ (4D Loss): At $c = 0.5$, two classes can tie with probability $0.5$ each, breaking the median-equals-mode trick. The authors prove no 2D convex loss works here. Instead, they estimate two slightly shifted label quantiles ($0.5 + \delta$ and $0.5 - \delta$) alongside two corresponding CVaR error-quantile trackers, yielding a 4-dimensional convex loss.

Datasets

Not discussed in the paper. (This is a purely theoretical work focused on mathematical proofs and constructive loss design.)

Key Insights and Ideas

  • Rejection unlocks extreme compression: Standard $K$-class classification strictly requires $K-1$ dimensions for convex calibration. Simply adding a rejection option with cost $c < 0.5$ collapses the required output dimension from $K-1$ all the way down to a constant 2, whether you have 10 classes or 10 billion.
  • Median-as-Mode on the real line: Mapping categorical labels to integers $1 \dots K$ is usually a rookie mistake in ML because it imposes a fake ordering. Here, it works brilliantly because rejection filters out high-uncertainty distributions; whenever a label is confident enough to be accepted ($p > 0.5$), the fake ordering doesn't corrupt the median!
  • Breaking the "Embedding" Conjecture: Most polyhedral surrogate losses are built by embedding discrete actions as points in $\mathbb{R}^d$. Finocchiaro et al. (2020) conjectured that the minimum embedding dimension of any discrete task equals its convex calibration dimension. By proving that embedding CwR at $c = 0.5$ strictly requires $\lceil \log_2 K \rceil$ dimensions while their non-embedding loss needs only $4$, the authors definitively refute this conjecture.

Key Results

Dimensionality of convex calibrated CwR losses compared to prior art.

Figure 1: The dimensionality for convex calibrated CwR losses. Compared with the dimensionality of BEP, our results improve the dimensionality for both c ∈(0, 0.5) and c = 0.5, respectively in Corollary 14 and Theorem 19.
  • Exact optimality for $c \in (0, 0.5)$: Constructed an explicit 2-dimensional polyhedral convex calibrated loss $L^c$. Since 1D convex losses were previously proven impossible for $K \ge 3$, this nails down the exact convex calibration dimension of CwR as $2$.
  • Constant dimension at $c = 0.5$: Constructed a 4-dimensional convex calibrated loss $\widehat{L}$, beating the state-of-the-art $\lceil \log_2 K \rceil$ BEP loss whenever $K > 16$.
  • Exact embedding lower bound: Proved that any convex loss embedding the zero-one-$c$ loss at $c = 0.5$ requires at least $\lceil \log_2 K \rceil$ dimensions, establishing a strict mathematical separation between embedding dimension and calibration dimension for $K > 16$.
  • Statistical transfer: Because both proposed losses are polyhedral, they automatically guarantee linear surrogate regret bounds, meaning excess surrogate risk translates linearly to target discrete risk.

Limitations and Future Work

  • The $c = 0.5$ gap: While $4$ dimensions beats $\lceil \log_2 K \rceil$ for $K > 16$, the authors do not yet know if $4$ is the absolute minimum for $c = 0.5$, leaving the exact convex calibration dimension (somewhere between $2$ and $4$) an open question.
  • High rejection costs ($c > 0.5$): The median/quantile dominance tricks rely fundamentally on $1 - c \ge 0.5$. The regime where rejection is expensive ($c \in (0.5, 1)$) is not addressed by these constant-dimension constructions.
  • Empirical optimization: While theoretically calibrated with linear regret transfer, the paper leaves empirical testing—such as how easily neural networks optimize these piecewise-linear CVaR combinations over millions of classes on a 1D line—for future work.

Summary updated

Abstract

Classification with rejection (CwR) generalizes the standard classification task by providing an extra option of rejection with a cost $c$ smaller than misclassification costs, and the design of its convex calibrated surrogate loss is our central topic. While typical surrogate losses for $K$-class classification operates on $K$-dimensional scoring functions, it has been proved that this dimensionality can be reduced to $\lceil\log_2K\rceil$ for CwR with $c\in(0,0.5]$, rendering more efficient computation. This logarithmic dependency is commonly conjectured to be the lowest possible among any convex calibrated surrogate losses for CwR. Through the lens of property elicitation, we explore even lower-dimensional structures for CwR, by constructing a $2$-dimensional convex calibrated surrogate loss under $c\in(0,0.5)$. This loss dimension is provably optimal among all convex calibrated surrogate losses. The boundary cost $c=0.5$ is more nuanced---we construct a $4$-dimensional convex calibrated loss, improving over the $\lceil\log_2 K\rceil$-dimension when $K>16$. Notably, this breaks the optimal logarithmic dimensionality attainable by the *embedding framework* [Finocchiaro et al., 2024], a widely used loss design principle for polyhedral losses, negatively resolving their conjecture on the dimension optimality.
BibTeX
@inproceedings{cao2026toward,
  author = {Yuzhou Cao and Han Bao and Bo An},
  title = {{Toward Minimal-dimensional Convex Calibrated Surrogate Losses for Classification with Rejection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ivLVYsPFHN},
}
Figure