arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.29952cs.LGcs.AIcs.CV
收藏

利用局部平坦性进行高效分布外检测

Exploiting Local Flatness for Efficient Out-of-Distribution Detection

Korea Electronics Technology Institute (KETI)(韩国电子技术研究所);Pohang University of Science and Technology (POSTECH)(浦项科学技术大学)

Seonghwan Park, Hyunji Jung, Dongyeop Lee, Namhoon Lee

AI总结:

提出Fold方法,利用特征Hessian和部分特征归一化,通过局部平坦性差异高效检测分布外数据,并引入AutoFold自动校准,在保持计算效率的同时提升检测性能。

摘要:

检测分布外(OOD)数据对于可靠的机器学习部署至关重要。在检测策略中,事后方法因其高效性而特别有吸引力,因为它们直接操作于预训练网络,无需重新训练。在此范式下,一个有前景的方向利用损失景观曲率来估计模型不确定性;然而,此类方法会带来大量计算成本,并依赖于关于景观平坦性在分布内(ID)和OOD数据之间差异的隐含假设。在这项工作中,我们首次系统研究了这种曲率差异,并表明OOD输入比ID数据表现出更大的Hessian曲率,且随着分布偏移的增强,差距扩大。受这些观察启发,我们提出了Fold,一种轻量级的平坦性调制OOD检测器,它利用特征Hessian和部分特征归一化来改善ID-OOD可分离性,同时避免昂贵的参数空间曲率近似。为了在不同数据集上最优地适应这种归一化,我们进一步引入了AutoFold,一种自监督调优方案,通过ID logit掩码合成伪OOD样本,实现无需外部数据的自动校准。在OOD基准上的实验表明,Fold优于先前方法,平均AUROC提高了1.63%,FPR95降低了2.30%,同时保持了与标准前向传播相当的计算效率。在理论分析和大量消融研究的支持下,Fold为稳健的实际部署提供了原则性且实用的解决方案。

英文摘要:

Detecting out-of-distribution (OOD) data is crucial for reliable machine learning deployment. Among detection strategies, post-hoc methods are particularly attractive due to their efficiency, as they operate directly on pre-trained networks without requiring retraining. Within this paradigm, one promising direction exploits loss-landscape curvature to estimate model uncertainty; however, such methods incur substantial computational cost and rely on implicit assumptions about how landscape flatness differs between in-distribution (ID) and OOD data. In this work, we provide the first systematic investigation of this curvature discrepancy and show that OOD inputs exhibit larger Hessian curvature than ID data, with the gap widening under stronger distributional shifts. Motivated by these observations, we propose Fold, a lightweight flatness-modulated OOD detector that leverages the feature Hessian and partial feature normalization to improve ID-OOD separability while avoiding costly parameter-space curvature approximations. To optimally adapt this normalization across diverse datasets, we further introduce AutoFold, a self-supervised tuning scheme that synthesizes pseudo-OOD samples via ID logit masking for automatic calibration without requiring external data. Experiments on OOD benchmarks show that Fold outperforms prior methods, improving the average AUROC by 1.63% and reducing FPR95 by 2.30%, while maintaining computational efficiency comparable to a standard forward pass. Supported by theoretical analysis and extensive ablations, Fold provides a principled and practical solution for robust real-world deployment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑