In the era of deep learning and multi-omics, we are increasingly good at building "black-box" models that predict outcomes with high accuracy. However, we are often much worse at answering a fundamental scientific question: Does this specific feature (or entire data modality) actually matter?
A new paper by Lucas Kook and Anton Rask Lundborg introduces a framework using COvariance Measure Tests (COMETs) to provide valid statistical significance testing that works with virtually any supervised learning algorithm, from simple regressions to complex neural networks.
TL;DR
COMETs provide a way to perform "algorithm-agnostic" significance testing, allowing researchers to determine if a feature or data modality (like an image or a genomic sequence) adds predictive power beyond what is already known. By focusing on the residuals of "black-box" models, these tests offer a mathematically grounded way to calculate p-values without requiring traditional parametric assumptions.
What Problem Does This Paper Address?
Traditional statistical tests, like the Wald test, rely on knowing the underlying functional form of a model (e.g., assuming a linear relationship). But modern bioinformatics and medical imaging rely on "black-box" models like Random Forests or Convolutional Neural Networks where the internal math is too complex for traditional tests.
The core challenge is conditional independence testing. We want to know if a response $Y$ (e.g., patient survival) is independent of a feature $X$ (e.g., a specific mutation) given other features $Z$ (e.g., age, sex, and other clinical data). If $X$ is independent of $Y$ given $Z$, then $X$ provides no "new" information. Proving this in high-dimensional, multimodal settings—where $X$ might be an image and $Z$ might be thousands of gene expressions—has been a major bottleneck for rigorous scientific inference.
Methods
The authors propose two primary tools under the COMET umbrella:
- Generalised Covariance Measure (GCM): This test looks at the residuals (the errors) of two models: one predicting $Y$ from $Z$, and another predicting $X$ from $Z$. If the product of these residuals is significantly different from zero, $X$ likely contributes unique information to $Y$. It’s an "all-purpose" test but works best when relationships are somewhat linear.
- Projected Covariance Measure (PCM): This is the more flexible "heavy lifter." It uses sample splitting to learn an optimal transformation of the data. It is specifically designed to detect non-linear dependencies that the GCM might miss.
The "magic" here is that these tests are algorithm-agnostic. You can use a Random Forest to generate your residuals, and the COMET framework will still produce a valid p-value.
Datasets
The authors demonstrated the versatility of COMETs across three distinct types of biomedical data:
- CCLE (Cancer Cell Line Encyclopedia): Used to test the significance of 466 mutations in predicting drug response (PLX4720).
- TCGA (The Cancer Genome Atlas): A multi-omics dataset (RNA-seq, miRNA, and DNA methylation) used to predict survival in liver cancer patients.
- MIMIC Chest X-Ray: A massive dataset (over 180,000 patients) combining tabular clinical data (age, sex, race) with image embeddings to predict the presence of pleural effusion.
Key Insights and Ideas
- No Pre-screening Required: Traditionally, researchers "pre-screen" variables by looking at marginal correlations to reduce dimensionality. However, this often invalidates p-values (the "double-dipping" problem). COMETs can be applied to high-dimensional data directly, maintaining "Type I error control" (preventing false positives).
- Modality Selection: Instead of just testing single variables, COMETs can test entire "modalities." For example, they can ask: "Does adding DNA methylation data improve my survival prediction if I already have RNA-seq data?"
- Handling Non-Tabular Data: Because the framework only cares about the predictions (residuals) of the model, it can handle images or text just as easily as spreadsheets, provided you have a model capable of processing them.
Key Results
- Genomics: In the CCLE data, the PCM test correctly identified the BRAF V600E mutation as highly significant for drug activity, which aligns with the known fact that the drug (PLX4720) was specifically designed as a BRAF inhibitor.
- Multi-omics: In liver cancer survival prediction, the authors found that DNA methylation was the only modality that provided significant predictive power when the others were already accounted for. RNA-seq and miRNA did not add significant "new" information in this specific context.
- Imaging: Using the MIMIC dataset, they showed that both race and X-ray images provided independent predictive information for pleural effusion. Interestingly, the GCM (the simpler test) produced smaller p-values here, suggesting a strong linear component in how these features relate to the outcome.
Limitations and Future Work
While powerful, COMETs are not a silver bullet:
- Sample Efficiency: The PCM test requires sample splitting (using half the data to "learn" and half to "test"), which can reduce statistical power if the dataset is small.
- Computational Cost: For very high-dimensional data, the GCM requires many regressions (one for each feature in $X$), which can become slow.
- Imputation Sensitivity: The authors noted that the validity of these tests on datasets like TCGA depends heavily on the quality of the data imputation used during pre-processing.
The authors have released the framework as an R package (comets) and a Python library (pycomets), making these "black-box" significance tests accessible to the broader research community.
Summary updated