The Invisible Gorilla Effect in Out-of-distribution Detection
Harry Anthony, Ziyun Liang, Hermione Warr, Konstantinos Kamnitsas
TL;DR
This work identifies the Invisible Gorilla Effect in out-of-distribution detection, showing that OOD artefacts visually similar to a model's region of interest are more readily detected than dissimilar ones, particularly for near-OOD cases. It performs a large-scale evaluation of 40 OOD detectors across 7 benchmarks and 3 architectures, using colour-annotated artefacts and colour-swapped counterfactuals to rule out dataset bias, and derives a mechanistic explanation via a PCA-based nuisance subspace that aligns colour variation with high-variance latent directions. The study finds that feature-based OOD methods are more susceptible to this bias than confidence-based ones, and demonstrates that projecting features orthogonally to the nuisance subspace can substantially mitigate the effect with modest latency overhead. Together, the results provide principled guidance for designing more robust OOD detectors and offer practical mitigation workarounds and publicly available annotations to advance robust deployment in healthcare and industrial settings.
Abstract
Deep Neural Networks achieve high performance in vision tasks by learning features from regions of interest (ROI) within images, but their performance degrades when deployed on out-of-distribution (OOD) data that differs from training data. This challenge has led to OOD detection methods that aim to identify and reject unreliable predictions. Although prior work shows that OOD detection performance varies by artefact type, the underlying causes remain underexplored. To this end, we identify a previously unreported bias in OOD detection: for hard-to-detect artefacts (near-OOD), detection performance typically improves when the artefact shares visual similarity (e.g. colour) with the model's ROI and drops when it does not - a phenomenon we term the Invisible Gorilla Effect. For example, in a skin lesion classifier with red lesion ROI, we show the method Mahalanobis Score achieves a 31.5% higher AUROC when detecting OOD red ink (similar to ROI) compared to black ink (dissimilar) annotations. We annotated artefacts by colour in 11,355 images from three public datasets (e.g. ISIC) and generated colour-swapped counterfactuals to rule out dataset bias. We then evaluated 40 OOD methods across 7 benchmarks and found significant performance drops for most methods when artefacts differed from the ROI. Our findings highlight an overlooked failure mode in OOD detection and provide guidance for more robust detectors. Code and annotations are available at: https://github.com/HarryAnthony/Invisible_Gorilla_Effect.
