Abstract
Machine learning (ML) is increasingly employed in real-world applications like medicine or economics, thus, potentially affecting large populations. However, ML models often do not perform homogeneously, leading to underperformance or, conversely, unusually high performance in certain subgroups (e.g., sex=female AND marital_status=married). Identifying such subgroups can support practical decisions on which subpopulation a model is safe to deploy or where more training data is required. However, an efficient and coherent framework for effective search is missing. Consequently, we introduce SubROC, an open-source, easy-to-use framework based on Exceptional Model Mining for reliably and efficiently finding strengths and weaknesses of classification models in the form of interpretable population subgroups. SubROC incorporates common evaluation measures (ROC and PR AUC), efficient search space pruning for fast exhaustive subgroup search, control for class imbalance, adjustment for redundant patterns, and significance testing. We illustrate the practical benefits of SubROC in case studies as well as in comparative analyses across multiple datasets.
Introduction
Machine learning (ML) models are often evaluated using aggregate metrics like overall accuracy or ROC AUC. However, these global scores can mask significant performance disparities across different subpopulations. A model might achieve high overall performance while failing catastrophically on specific intersectional subgroups (e.g., sex=female AND housing=rural). Identifying these "blind spots" is critical for ensuring fairness, debugging models, and making informed deployment decisions.
Manual exploration of subgroups is labor-intensive and error-prone, especially as the number of features and potential intersections grows exponentially. While Subgroup Discovery (SD) and Exceptional Model Mining (EMM) offer automated alternatives, they have historically struggled to efficiently handle "soft classifier" metrics—those based on probability rankings, such as ROC AUC and PR AUC—due to the computational complexity of searching the vast subgroup space.
The SubROC Framework
To address these challenges, we introduce SubROC, an open-source framework based on EMM specifically designed for auditing soft classifiers. SubROC enables the efficient and exhaustive search for subgroups where a model exhibits exceptional performance (either high or low error).
The technical core of SubROC is the derivation of tight optimistic estimates for ROC AUC, PR AUC, and Average Ranking Loss (ARL). In the context of subgroup discovery, an optimistic estimate provides a mathematical upper bound on the potential "interestingness" of any further specialization of a subgroup. By comparing these bounds to the best subgroups found so far, SubROC can safely prune large portions of the search space, enabling exhaustive search at speeds previously unattainable for these metrics.
Beyond efficient search, SubROC incorporates several features for practical utility:
- Size and Class Balance Weighting: Adjusts for the natural skews in AUC metrics caused by small sample sizes or extreme class imbalances.
- Generalization Awareness: Filters redundant, overlapping patterns to provide a diverse set of actionable insights.
- Significance Filtering: Employs randomization tests and False Discovery Rate (FDR) correction to distinguish genuine performance anomalies from statistical noise.
Experimental Evaluation
We evaluated SubROC across eight diverse tabular datasets, including Census-Income, Adult, and Bank Marketing. The framework's performance was compared against baseline methods to assess its efficiency and the quality of discovered subgroups.
Key Results
- Computational Efficiency: The optimistic estimates provided massive speedups. For instance, on the Bank dataset, the exhaustive search time for ROC AUC dropped from approximately 2.67 minutes to just 0.4 seconds—a ~402x speedup.
- Model Debugging: In controlled experiments where errors were intentionally injected into specific subgroups, SubROC successfully identified the exact targeted subpopulations at the top of its results, whereas baseline methods failed.
- Actionable Insights: The full SubROC framework consistently returned subgroups that were larger, more class-balanced, and statistically significant compared to naive search approaches. This ensures that the discovered "blind spots" are robust and representative of real model weaknesses.
Conclusion and Future Work
SubROC provides a rigorous and efficient framework for auditing machine learning models. By making exhaustive subgroup search practical for standard ranking metrics, it empowers practitioners to move beyond aggregate statistics and ensure their models perform reliably across all segments of a population.
Future work will explore the integration of other soft-classification metrics, such as cross-entropy or Brier scores, and investigate more direct ways to incorporate statistical significance bounds into the search process to further enhance efficiency.
Summary updated