Neyman-Pearson Classification under Both Null and Alternative Distributions Shift

Mohammadreza Mousavi Kalan, Yuyang Deng, Eitan J. Neugut, Samory Kpotufe

Introduction

In critical domains such as disease diagnosis or malware detection, all classification errors are not created equal. Neyman–Pearson (NP) classification is the standard statistical framework for these imbalanced scenarios. The objective is to minimize the error on the rare or critical class (Type-II error) while strictly constraining the error on the common class (Type-I error) below a user-defined threshold $\alpha$ (e.g., 5%).

This paper introduces a novel adaptive transfer learning framework for NP classification that handles distribution shifts in both the "null" ($\mu_0$) and "alternative" ($\mu_1$) classes. The proposed algorithm effectively leverages abundant source data to improve performance on a scarce target dataset, while automatically reverting to target-only performance when the source is uninformative. This adaptive mechanism prevents the common pitfall of "negative transfer."

The Challenge of Dual Distribution Shifts

Standard transfer learning assumes we can safely combine source and target datasets to train a more robust model. However, in NP classification, if the common class ($\mu_0$) shifts between the source and target, a classifier that appears "safe" on the source might flag too many false positives on the target, thereby violating the strict $\alpha$ constraint.

Most existing research only accounts for shifts in the rare class ($\mu_1$). A shift in $\mu_1$ merely makes the model less accurate; a shift in $\mu_0$, however, makes the model invalid because it breaks the safety constraint. This paper tackles the significantly harder problem of simultaneous shifts in both distributions.

Illustration of distribution shifts in the null class ($\mu_0$) across different sources and the target.

Methodology: Adaptive Transfer Learning

The authors propose a two-stage adaptive procedure called NP-Transfer-Learning to address these dual shifts:

  1. Stage 1: Constraint Alignment. The algorithm uses source class-0 samples to determine an "effective threshold" $\hat{\alpha}_S$. This crucial step recalibrates the source data's constraints to ensure that any classifier chosen will actually respect the target's Type-I error limit.
  2. Stage 2: Error Minimization. It then leverages source class-1 samples to drive down the Type-II error on the target dataset.

Crucially, the method is adaptive. It does not require prior knowledge of how similar the source and target distributions are. Instead, it uses a "transfer modulus" to theoretically measure this distance and provides a mechanism to choose between the transferred model and a target-only model based on empirical performance.

Furthermore, the authors reformulate the learning process into a sequence of convex programs. This results in a stochastic convex optimization solver (CP-Solver) with guaranteed convergence, ensuring the method is computationally efficient (solvable in polynomial time) rather than just a theoretical abstraction.

Experimental Validation

The authors evaluated their approach on three primary benchmarks:

  • Climate Data (Yu et al., 2023): 124 features used for heavy rain detection.
  • NASA POWER (2024): 6 features, also for heavy rain detection, where source and target represent different geographic locations.
  • Synthetic Gaussian Data: A 10-dimensional controlled environment where the authors precisely manipulated the means and variances of the distributions to test the limits of their theory.

Key Results and Insights

  • Superior Error Control: In experiments on climate data, the proposed Transfer Learning Algorithm (TLA) kept the Type-I error close to the threshold $\alpha$ while significantly outperforming the "Only Target" baseline on Type-II error.
  • Avoiding Negative Transfer: One of the biggest risks in transfer learning is that a bad source will "poison" the target model. This algorithm is provably safe. When tested on uninformative sources, the TLA successfully avoided negative transfer, matching the performance of the target-only method while the "Only Source" baseline failed entirely.
  • Sample Efficiency: The TLA demonstrated significant improvements even when the number of target samples was extremely small ($n=40$), highlighting its utility in data-scarce environments.

Limitations and Future Work

While the framework provides strong theoretical and empirical results, the authors note a few limitations. First, the theoretical constants used to control the error bounds are quite conservative; in practice, these parameters often require careful tuning to achieve peak performance. Second, while the paper provides "upper bounds" (guarantees that the error won't exceed a certain level), it does not yet establish "lower bounds" (proof that no better algorithm could exist), which remains a path for future theoretical work. Finally, exploring more radical or non-convex distribution shifts beyond what is captured by the current transfer modulus remains an open challenge.

Summary updated

BibTeX
@inproceedings{kalan2026neyman,
  author = {Mohammadreza Mousavi Kalan and Yuyang Deng and Eitan J. Neugut and Samory Kpotufe},
  title = {{Neyman-Pearson Classification under Both Null and Alternative Distributions Shift}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=pHckxhmBlI},
}
Figure