TL;DR
This paper introduces "paired evaluation," a novel method for assessing machine learning model performance that directly accounts for confounders and outliers without retraining. By analyzing how models rank pairs of data points, this approach provides more robust performance estimates and deeper insights into model behavior, especially in complex biological and clinical datasets.
What Problem Does This Paper Address?
Evaluating the true accuracy of machine learning models is a persistent challenge, particularly in fields like biology and medicine where datasets are often limited, noisy, and contain confounding variables. Traditional methods like cross-validation can be misled by these factors, leading to over-optimistic performance estimates and a false sense of confidence. Confounding variables (e.g., patient age, tumor subtype) can be inadvertently learned by models, making them appear accurate on test data but fail in real-world applications. Outliers, whether due to measurement error or biological rarity, can also skew performance metrics and model interpretation. Existing methods to address these issues often involve complex data preprocessing that can introduce new artifacts.
Methods
The core of this paper is the paired evaluation method. Instead of evaluating a model on individual data points or entire test sets, it focuses on pairs of data points. For a given pair, the model predicts which of the two should have a higher or lower outcome (e.g., higher drug sensitivity, greater disease severity).
- Rankable Pairs: A pair is considered "rankable" if their true labels can be ordered. In classification, this means they belong to different classes. In regression, it means the difference in their continuous labels exceeds a predefined threshold ($\delta$), which can be set based on experimental error.
- AUC Estimation: The Area Under the Receiver Operating Characteristic curve (AUC) is estimated as the fraction of rankable pairs that the model correctly ranks. This is a natural extension of the AUC interpretation in binary classification.
- Confounder Analysis: To assess the impact of a confounder, the authors compare performance estimates using pairs where the confounder values are matched (e.g., both cell lines are the same subtype) versus pairs where they are mismatched. A significant drop in performance for matched pairs suggests the model has learned the confounder.
- Outlier Detection: The method allows for sample-specific AUC calculation. Samples with significantly lower individual AUCs are flagged as potential outliers.
- Statistical Significance: Comparisons between models or between confounder-matched/mismatched scenarios are assessed using standard statistical tests like Fisher's exact test on contingency tables of correctly/incorrectly ranked pairs.
- Efficient Implementation: An O(n log n) algorithm based on inversion counting is proposed for efficient paired evaluation, enabling its application to large-scale datasets.
Datasets
The paper utilizes two primary real-world datasets:
- Breast Cancer Cell Lines: A dataset characterizing the sensitivity of 63 breast cancer cell lines to 72 small molecule drugs, with associated baseline mRNA expression profiles. This dataset is used to study the impact of molecular subtype as a confounder.
- Alzheimer's Disease (AD) Decedents: A dataset of over 200 bulk RNA-seq profiles from postmortem brain specimens, with matching pathology annotations (Braak staging) and age of death (AOD) data. This dataset is used to investigate the confounding effect of age on predicting disease severity.
Key Insights and Ideas
- Confounders are not always bad: The method reveals that models can learn confounders, but this isn't inherently negative. If the confounder is biologically relevant (like tumor subtype for certain drugs), the model's learned association can be informative.
- Outliers can skew interpretation: Identifying outliers is crucial for accurate model interpretation. Removing an outlier can change feature importance scores, potentially highlighting more relevant biological drivers.
- Paired evaluation is model-agnostic: The method can be applied to any machine learning model that can produce comparable scores for data points.
- The choice of test data matters significantly: The $\delta$ parameter in regression, which defines rankable pairs, can alter performance estimates by up to 20%, underscoring the need for careful test set construction.
Key Results
- In breast cancer drug sensitivity prediction, performance estimates varied by up to 20% depending on how rankable pairs were defined (i.e., the choice of $\delta$).
- For several drugs, AUC estimates decreased when comparing subtype-matched pairs versus all rankable pairs, indicating that models had learned molecular subtype as a confounder.
- The method identified specific cell lines as outliers in predicting sensitivity to certain drugs (e.g., ZR7530 for Torin2), and removing these outliers led to improved AUC and altered feature importance scores.
- In Alzheimer's disease severity prediction, models did not appear to be confounded by age when using paired evaluation with confounder-matched vs. mismatched pairs, suggesting that age did not mask the prediction of disease severity.
Limitations and Future Work
- Unknown Confounders: The current method requires known confounders. Detecting and accounting for unknown "lurking variables" or hidden batch effects would require external methods first.
- No Intrinsic Correction: Paired evaluation identifies when confounders affect model training but does not inherently correct for them, as it doesn't modify the original training data.
- Delineating Interpretation: While paired evaluation can signal that a predictor learned a confounder, it doesn't automatically clarify which aspects of model interpretation (e.g., feature importance) align with the confounder versus the variable of interest.
- Future Work: The authors suggest extending outlier detection to identify groups of samples with similar misranking patterns as a way to approximate shared unobserved characteristics. They also aim to develop methods for resolving confounder effects and improving model interpretation beyond simply identifying problematic variables.
Summary updated