Overview
Researchers have developed COPOC (Conformal Predictions for Ordinal Classification), a novel framework that generates small, contiguous sets of predicted labels with a mathematical guarantee of containing the true answer. By forcing a neural network to output a unimodal distribution, COPOC ensures that prediction sets—such as "shoe sizes 7, 8, and 9"—are always a single, logical range rather than a confusing, non-contiguous list like "sizes 4, 8, and 9."
The Challenge of Ordinal Classification
In many real-world machine learning tasks, labels have a natural order. Examples include disease severity (Stage 1 to 4), age ranges, or apparel sizes. This is known as Ordinal Classification (OC).
Standard models typically output a single "best guess." However, in high-stakes or recommendation scenarios, it is often more useful to provide a Prediction Set (PS): a small group of likely classes guaranteed to contain the ground truth with a high probability (e.g., 90% confidence). This is the primary goal of Conformal Prediction (CP).
The problem arises because existing CP methods treat labels as independent, unordered categories. For ordinal data, this frequently results in "non-contiguous" sets. For instance, a model might predict a customer's shoe size is either a 4, an 8, or a 9, skipping the sizes in between. This is physically unlikely—real-world distributions are usually unimodal, peaking at one value—and creates a poor user experience. Simply "filling in the gaps" to force contiguity ruins the mathematical coverage guarantees of the prediction.
The COPOC Framework
To address this, the authors introduce COPOC, which solves the contiguity problem through two main innovations:
- A Unimodal DNN Architecture: Instead of relying on a standard Softmax layer, the researchers designed a novel, non-parametric neural network construction. It uses a series of transformations—including non-negative constraints and cumulative sums—to ensure the model's output distribution is always unimodal (featuring a single peak that falls off on either side). This provides a strong inductive bias, helping the model learn more effectively from limited data.
- Contiguous Conformal Mapping: The authors mathematically prove that if a model is constrained to be unimodal, standard CP algorithms like Adaptive Prediction Sets (APS) will naturally produce contiguous intervals. Furthermore, these sets are "minimal," meaning they are the smallest possible ranges that still meet the required statistical confidence level.
Key Insights and Results
The authors evaluated COPOC on synthetic datasets (varying complexities like Gaussian, Poisson, and Double-Exponential distributions) and diverse real-world image datasets, including historical image dating (HCI), age estimation (Adience), aesthetic scoring, and diabetic retinopathy grading (Retina-MNIST).
- Inductive Bias as a Superpower: Forcing the model to recognize that the world is unimodal acts as a powerful regularizer. It prevents the model from making nonsensical, "jumpy" predictions and allows it to reach optimal performance with far fewer training samples.
- Contiguity Without Compromise: Typically, making a prediction set contiguous requires expanding it, which dilutes the confidence guarantee. COPOC achieves contiguity as a natural property of the model's shape, keeping the sets small and the guarantees mathematically sound.
- Superior Performance: COPOC outperformed state-of-the-art baselines by roughly 4% on Accuracy@K (the probability that the true label is in the top K predictions).
- Smaller, Reliable Sets: It reduced the average size of the prediction sets by 8% compared to the next best method. While vanilla models produced non-contiguous sets up to 24% of the time on some datasets, COPOC achieved 0% contiguity violations by design.
Limitations and Future Directions
The core strength of COPOC is also its primary limitation: it assumes the underlying ground truth is unimodal. While this holds true for shoe sizes or disease stages, it might fail for bimodal distributions (e.g., predicting a "favorite time of day," which could peak in both the morning and evening). Additionally, like all conformal prediction methods, it relies on the assumption of exchangeability (that future data will resemble past data).
Future work may extend this framework to partially ordered labels or hierarchical classifications, where only certain branches of a category tree possess a natural order.
Summary updated