MaRS:通过马氏残差评分进行鲁棒的分布外检测
MaRS: Robust Out-of-Distribution Detection via Mahalanobis Residual Scoring
AI总结:
提出MaRS方法,利用轻量自编码器学习分布内流形,通过马氏距离度量重建残差,实现方差感知的分布外检测,在多种医学影像模态和分布偏移下优于现有基线。
摘要:
基础模型为医学图像提供了高度描述性的表示,但其可靠性在患者、设备或采集条件变化引起的分布偏移下会下降。因此,可靠的分布外(OOD)检测对于安全部署至关重要。最近的检测后方法有效地利用了冻结嵌入(例如kNN),而基于重建的潜在特征空间OOD检测由于性能不一致而应用有限。在这项工作中,我们表明潜在空间中基于重建的方法的局限性并非源于重建质量差,而是源于重建误差的评分方式。标准$L_2$残差范数压缩了各向异性残差结构,从而抑制了信息性偏差。为了解决这一局限性,我们引入了\texttt{MaRS}(马氏残差评分),这是一种无标签的OOD检测器,它使用轻量自编码器学习分布内流形,并通过重建残差上的马氏距离度量偏差,从而产生方差感知的OOD分数。在三种成像模态、多种类型的分布偏移以及不同的模型系列和规模下,\texttt{MaRS}优于已建立的基于置信度、距离和重建的基线,同时保持完全检测后和轻量级。代码可从此https URL获取。
英文摘要:
Foundation models provide highly descriptive representations for medical images, yet their reliability degrades under distribution shifts arising from changes in patients, devices, or acquisition conditions. Reliable out-of-distribution (OOD) detection is therefore essential for safe deployment. Recent post-hoc detectors efficiently exploit frozen embeddings (e.g., kNN), whereas reconstruction-based OOD detection in latent feature space has seen limited adoption due to inconsistent performance. In this work, we show that the limitation of reconstruction-based methods in latent space does not stem from poor reconstruction quality, but from how reconstruction errors are scored. Standard L2 residual norms collapse the anisotropic residual structure, thereby suppressing informative deviations. To address this limitation, we introduce MaRS (Mahalanobis Residual Scoring), a label-free OOD detector that learns an in-distribution manifold using a lightweight autoencoder and measures deviation via a Mahalanobis distance on reconstruction residuals, yielding variance-aware OOD scores. Across three imaging modalities, multiple types of distribution shift, and different model families and scales, MaRS outperforms established confidence-, distance-, and reconstruction-based baselines, while remaining fully post-hoc and lightweight. The code is available at https://github.com/francescodisalvo05/mars.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。