Title: Thinking in Groups: Permutation Tests Reveal Near-Out-of-Distribution
Primary area: alignment, fairness, safety, privacy, and societal considerations
Keywords: Out-of-distribution (OoD) detection, Deep Neural Networks, permutation-based hypothesis testing, p-values, group-level OoD detection, HOoD framework

Abstract: Deep neural networks (DNNs) have the potential to power many biomedical workflows, but training them on truly representative, IID datasets is often infeasible. Most models instead rely on biased or incomplete data, making them prone to out-of-distribution (OoD) inputs that closely resemble in-distribution samples. Such near-OoD cases are harder to detect than standard OOD benchmarks and can cause unreliable—even catastrophic—predictions. Biomedical assays, however, offer a unique opportunity: they often generate multiple correlated measurements per specimen through biological or technical replicates. Exploiting this insight, we introduce Homogeneous OoD (HOoD), a novel OoD detection framework for correlated data. HOoD projects groups of correlated measurements through a trained model and uses permutation-based hypothesis tests to compare them with known subpopulations. Each test yields an interpretable p-value, quantifying how well a group matches a subpopulation. By aggregating these p-values, HOoD reliably identifies OoD groups. In evaluations, HOoD consistently outperforms point-wise and ensemble-based OoD detectors, demonstrating its promise for robust real-world deployment.

TL;DR: HOoD is a permutation-based framework that uses correlated biomedical measurements to provide reliable and interpretable out-of-distribution detection.