Conformal Prediction with Partially Labeled Data

Alireza Javanmardi, Yusuf Sale, Paul Hofman, Eyke Hüllermeier

Abstract

While the predictions produced by conformal prediction are set-valued, the data used for training and calibration is supposed to be precise. In the setting of superset learning or learning from partial labels, a variant of weakly supervised learning, it is exactly the other way around: training data is possibly imprecise (set-valued), but the model induced from this data yields precise predictions. In this paper, we combine the two settings by making conformal prediction amenable to set-valued training data. We propose a generalization of the conformal prediction procedure that can be applied to set-valued training and calibration data. We prove the validity of the proposed method and present experimental studies in which it compares favorably to natural baselines.

Introduction

In real-world machine learning applications, data is rarely perfectly labeled. We often encounter Partial Label Learning (PLL) scenarios where instances are associated with a set of candidate labels rather than a single ground truth. For example, an image of a bird might be labeled as "sparrow or finch" due to annotator uncertainty.

Standard machine learning typically aims to "disambiguate" this data to produce a single-point prediction. However, in safety-critical domains, we require rigorous uncertainty quantification. Conformal Prediction (CP) is a framework designed to produce prediction sets that are guaranteed to contain the true label with a user-specified probability (e.g., 95%). The challenge addressed in this paper is that standard CP requires a "clean" calibration set with precise labels, whereas PLL assumes the data is "dirty" or set-valued. This research bridges the gap by enabling CP to work with imprecise calibration data.

Methodology: Conformal Prediction for Partial Labels

The authors extend Inductive Conformal Prediction (ICP) to accommodate partial labels through a two-step process:

  1. Training: A probabilistic classifier is trained on a partially labeled training set using a PLL-specific algorithm, such as PRODEN.
  2. Calibration: To handle the set-valued nature of the calibration instances ($S_j$), the authors propose four strategies for calculating nonconformity scores:
  3. Pessimistic ($\mathcal{E}_{max}$): Assumes the least likely candidate label in the set is the truth. This is safe but often results in excessively large prediction sets.
  4. Inclusive ($\mathcal{E}_{all}$): Treats every candidate label in the set as a separate data point for calibration. This method is proven valid under specific conditions and offers a balance between safety and efficiency.
  5. Average ($\mathcal{E}_{mean}$): Utilizes the average score of all candidates in the set.
  6. Optimistic ($\mathcal{E}_{min}$): Assumes the model's highest-probability candidate is the ground truth, effectively disambiguating the data.

The research provides mathematical proofs for the validity of the Pessimistic and Inclusive approaches, ensuring they meet the required coverage guarantees.

Experimental Setup

The proposed methods were evaluated using two types of data: synthetically contaminated benchmarks and real-world PLL datasets. The synthetic benchmarks (MNIST, KMNIST, and Fashion-MNIST) were modified using random and instance-dependent contamination to simulate label ambiguity. The real-world datasets (BirdSong, Lost, MSRCv2, Soccer Player, and Yahoo!News) contain naturally occurring ambiguous labels.

The complexity of these datasets is summarized in Table 1, which details the number of classes and the Average Candidate Set Size (CSS)—a metric representing the degree of label imprecision in the input data.

Table 1: Dataset characteristics including the number of classes and the average candidate set size (CSS) for synthetic and real-world benchmarks.

Results and Key Insights

The experimental results highlight several critical findings regarding the trade-off between validity and efficiency:

  • The Power of Inclusion: The Inclusive ($\mathcal{E}_{all}$) strategy emerged as the most effective approach. By including all candidate labels in the calibration distribution, it "pads" the nonconformity scores, maintaining validity while producing significantly tighter prediction sets than the pessimistic approach.
  • Disambiguation is Dangerous: The Optimistic ($\mathcal{E}_{min}$) baseline frequently failed to provide the promised coverage. By assuming the model's best guess is correct, it underestimates uncertainty and fails the safety guarantee.
  • Validity and Efficiency: Only the Pessimistic and Inclusive methods consistently met the 90% coverage target. In the Fashion-MNIST test with random noise (p=0.7), the Pessimistic approach had an average prediction set size of 10.0, while the Inclusive approach achieved the same coverage with a much more efficient set size of 8.12.
  • Real-World Performance: On the "BirdSong" dataset, the Inclusive approach maintained 99% coverage with a set size of ~9.8. In contrast, the Average and Optimistic approaches dropped to 89% and 84% coverage, respectively, failing to meet the safety requirements.

Conclusion

This paper demonstrates that Conformal Prediction can be successfully adapted to settings with imprecise training and calibration data. While the Pessimistic approach offers a safe upper bound, the Inclusive strategy provides a more efficient alternative that maintains rigorous coverage guarantees in practice.

Future work may focus on relaxing the theoretical constraints of the Inclusive approach, which currently requires relatively low error rates ($\epsilon \leq 0.25$). Additionally, extending these guarantees to regression tasks with interval-valued outcomes remains an important open challenge in the field of uncertainty quantification.

Summary updated

BibTeX
@inproceedings{javanmardi2023conformal,
  author = {Alireza Javanmardi and Yusuf Sale and Paul Hofman and Eyke Hüllermeier},
  title = {{Conformal Prediction with Partially Labeled Data}},
  booktitle = {COPA},
  year = {2023},
  url = {https://openreview.net/forum?id=g95GhBFCX3},
}
Figure