NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Birds of an Odd Feather: Guaranteed Out-of-Distribution (OOD) Novel Category Detection

Yoav Wald, Suchi SariaUAI 2023

Abstract

In this work, we solve the problem of novel category detection under distribution shift. This problem is critical to ensuring the safety and efficacy of machine learning models, particularly in domains such as healthcare where timely detection of novel subgroups of patients is crucial. To address this problem, we propose a method based on constrained learning. Our approach is guaranteed to detect a novel category under a relatively weak assumption, namely that rare events in past data have bounded frequency under the shifted distribution. Prior works on the problem do not provide such guarantees, as they either attend to very specific types of distribution shift or make stringent assumptions that limit their guarantees. We demonstrate favorable performance of our method on challenging novel category detection problems over real-world datasets.

Introduction

Machine learning models deployed in the real world face two distinct challenges: distribution shift (where known categories change over time) and novel category detection (where entirely new types of data emerge). Most existing tools assume these phenomena occur in isolation. However, when they happen simultaneously—as is common in clinical settings—standard detectors often fail. They become "distracted" by the shift in known populations, failing to identify the actual emergence of a new category. This paper introduces CoNoC (Constrained Novel Category detection), a framework that provides theoretical guarantees for identifying new categories even amidst shifting background distributions.

Methodology: Constrained Novel Category Detection (CoNoC)

CoNoC departs from the standard approach of training a simple domain discriminator. Instead, it frames the problem as a constrained optimization task. The objective is to maximize the detection of new instances (Recall) while strictly bounding the False Positive Rate (FPR) for known categories.

The "Scarcity-of-Unicorns" Assumption

To provide mathematical guarantees, the authors introduce a relatively weak assumption: if an event was extremely rare (a "unicorn") in the source data, it should not suddenly become a dominant feature of the shifted known data in the target domain. Under this assumption, CoNoC can theoretically bound classification error. The algorithm is implemented via a primal-dual optimization approach, where a Lagrange multiplier acts as a "budget keeper" to ensure the false positive rate remains within specified limits.

Decision boundaries and ROC curves showing CoNoC's ability to isolate novel categories despite distribution shifts in known data.

As illustrated in the decision boundaries above, standard domain discriminators often focus on the largest shift between domains. If the shift in known data is more pronounced than the emergence of a novel category, the discriminator will prioritize the shift, effectively ignoring the new subgroup. CoNoC's constrained approach ensures the model remains sensitive to the novel category by directly optimizing the classification objective under constraints.

Experimental Evaluation

The authors evaluated CoNoC on two high-dimensional real-world datasets:

  1. MIMIC-III: A clinical dataset containing ICU patient data where categories correspond to specific phenotypes/diagnoses.
  2. Tabula Muris: A single-cell transcriptomic dataset where categories are different cell types and features are gene expressions.

In both scenarios, distribution shifts were simulated by varying the proportions of known subgroups to test if the models could identify a "novel" category hidden within the shifting population.

Key Results

CoNoC demonstrated superior performance and stability compared to state-of-the-art baselines like Propensity Weighting and standard Domain Discriminators.

Table showing AU-ROC and AU-PRC results for CoNoC and baselines on MIMIC-III and Tabula Muris.

On the MIMIC-III dataset, CoNoC achieved a near-perfect AU-ROC of 0.999, winning in 12 out of 15 experimental repetitions. Its Average Precision (AU-PRC) was also significantly higher (0.995) than the next best baseline (0.854). Similarly, on Tabula Muris, CoNoC maintained a high performance of 0.988 AU-ROC. Unlike baselines that showed high variance and frequent failure under certain shifts, CoNoC’s performance remained stable, validating its theoretical guarantees.

Conclusion

CoNoC provides a robust solution for novel category detection in safety-critical OOD scenarios. By moving from simple discrimination to constrained optimization, it avoids the pitfalls of "distraction" caused by distribution shifts. Future work will explore extending this framework to time-series data and developing methods for automatically tuning the constraint parameters during training.

Summary updated

BibTeX
@inproceedings{wald2023birds,
  author = {Yoav Wald and Suchi Saria},
  title = {{Birds of an Odd Feather: Guaranteed Out-of-Distribution (OOD) Novel Category Detection}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=6ckp3HWUjDU},
}
Figure