Classification under Nuisance Parameters and Generalized Label Shift in Likelihood-Free Inference

Luca Masserano, Alexander Shen, Michele Doro, Tommaso Dorigo, Rafael Izbicki, Ann B. Lee

Introduction

In scientific domains such as particle physics, genomics, and astronomy, researchers frequently rely on complex simulators to model data. These simulators are often influenced by nuisance parameters ($\nu$)—variables like experimental conditions or sensor noise that are not the primary focus of the study but significantly impact the observed data. A critical challenge arises when the distribution of these nuisance parameters and labels ($Y$) shifts between the training (simulation) environment and the target (real-world) environment, a phenomenon termed Generalized Label Shift (GLS). Standard classification and conformal prediction methods often fail under GLS, producing overconfident or invalid uncertainty estimates.

Nuisance-Aware Prediction Sets (NAPS)

To address this, we introduce Nuisance-Aware Prediction Sets (NAPS). Rather than providing a single point estimate, NAPS generates a set of possible labels guaranteed to contain the true label with a user-specified probability.

Technical Framework

NAPS treats classification as a hypothesis testing problem, estimating the classifier's Receiver Operating Characteristic (ROC) curve across the entire nuisance space. Key innovations include:

  1. Invariance: The rejection probability of the test statistic remains invariant given a specific class and nuisance value, even if the prior distribution shifts.
  2. Power vs. Validity: To prevent overly conservative results (e.g., always returning all possible labels), we introduce a parameter $\gamma$. By constructing confidence sets for the nuisance parameters, we can "tighten" the prediction sets, improving the model's power to exclude incorrect labels without sacrificing coverage validity.
Comparison of coverage and power under Generalized Label Shift (GLS). NAPS maintains valid coverage (following the bisector) even when standard methods fail.

Experimental Evaluation

We evaluated NAPS across three distinct regimes:

  • Synthetic Data: Demonstrating the fundamental failure of standard methods under GLS.
  • Single-Cell RNA Sequencing: Using the scDesign3 simulator to model varying experimental "batch protocols" as nuisance parameters.
  • Atmospheric Cosmic-Ray Showers: Using the CORSIKA simulator to distinguish gamma rays from hadron noise, where particle energy acts as a continuous nuisance parameter.

Key Results

NAPS demonstrates superior robustness compared to existing methods. In the scRNA-seq experiments, NAPS maintained the required 90% coverage across four different experimental protocols. In contrast, standard prediction sets and Conformal Adaptive Prediction Sets (APS) saw coverage drop as low as 40-60% on challenging protocols.

Actual vs. nominal coverage across four experimental protocols in scRNA-seq data. NAPS consistently provides valid coverage, whereas standard and conformal methods significantly under-cover.

In high-energy physics tasks, NAPS achieved significantly higher precision and lower False Discovery Rates (FDR) than standard Bayes classifiers. Furthermore, the method is computationally efficient; generating a prediction set takes only seconds, making it viable for real-time scientific applications.

Conclusion and Future Work

NAPS serves as a robust "calibration layer" for any pre-trained probabilistic classifier, endowing it with domain adaptation capabilities without requiring retraining. While the current implementation scales quadratically with the number of classes, future work will focus on optimizing NAPS for high-dimensional nuisance spaces and large-scale multiclass problems.

Summary updated

BibTeX
@inproceedings{masserano2024classification,
  author = {Luca Masserano and Alexander Shen and Michele Doro and Tommaso Dorigo and Rafael Izbicki and Ann B. Lee},
  title = {{Classification under Nuisance Parameters and Generalized Label Shift in Likelihood-Free Inference}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=RXxTuxPopa},
}
Figure