[论文解读] Is Out-of-Distribution Detection Learnable?
本论文为 OOD 检测建立了一个 PAC 学习理论框架,证明在何种条件下 OOD 检测可学习或不可学习,并识别在神经网络和有限 ID 分布情形下可以实现可学习性的场景。
Supervised learning aims to train a classifier under the assumption that training and test data are from the same distribution. To ease the above assumption, researchers have studied a more realistic setting: out-of-distribution (OOD) detection, where test data may come from classes that are unknown during training (i.e., OOD data). Due to the unavailability and diversity of OOD data, good generalization ability is crucial for effective OOD detection algorithms. To study the generalization of OOD detection, in this paper, we investigate the probably approximately correct (PAC) learning theory of OOD detection, which is proposed by researchers as an open problem. First, we find a necessary condition for the learnability of OOD detection. Then, using this condition, we prove several impossibility theorems for the learnability of OOD detection under some scenarios. Although the impossibility theorems are frustrating, we find that some conditions of these impossibility theorems may not hold in some practical scenarios. Based on this observation, we next give several necessary and sufficient conditions to characterize the learnability of OOD detection in some practical scenarios. Lastly, we also offer theoretical supports for several representative OOD detection works based on our OOD theory.
研究动机与目标
- 在未知且多样化的 OOD 数据下,激发对 OOD 检测学习理论的研究。
- 在领域空间和假设空间中提供用于 OOD 检测的 PAC 学习框架。
- 识别不可能性结果并推导在实际空间中表征可学习性的条件。
- 将理论与实际的假设空间(如基于全连接的神经网络 FCNNs 和基于分数的方法)联系起来。
提出的方法
- 定义混合 ID 与 OOD 分布的领域空间以及假设/得分函数空间。
- 引入风险 R_D(h) 与 R_D^α(h),并为 OOD 检测定义可学习性与强可学习性。
- 证明可学习性不是分布无关的,并推导条件1(线性条件)作为必要条件。
- 在全集和分离空间中建立不可能定理,并分析 ID 与 OOD 分布之间的重叠。
- 引入具代表性的先验未知空间(单分布、全集、分离、有限 ID、基于密度)并研究在各自下的可学习性条件。
- 为多类 ID 设置提出 ID 与二元分类假设的渐进组合,并给出相关条件(条件2、条件3)。
- 通过将结果映射到基于 FCNN 的假设空间和基于分数的方法的假设空间,将理论与实践联系起来。
实验结果
研究问题
- RQ1在训练阶段缺乏 OOD 数据且数据可能多样化时,OOD 检测是否能够以 PAC 的意义学习?
- RQ2对领域空间和假设空间有哪些条件能确保(强)可学习性?
- RQ3ID 与 OOD 分布之间的重叠如何影响可学习性?
- RQ4哪些实际空间(有限 ID、基于密度等)承认可学习性的必要和充分条件?
- RQ5神经网络和基于分数的假设空间如何与所提出的理论条件对齐?
主要发现
- 当 ID 与 OOD 重叠存在或在某些映射下,全集空间中 OOD 检测不可学习(全集空间的不可能性定理)。
- 一个线性(条件1)关系在某些空间中是可学习性的必要条件,在单分布空间则是充分条件。
- 在分离空间下,在温和假设下可学习性可能失败,但在额外结构存在时变得可行,例如有限输入域大小或 ID 与二元(OOD)分类器的特定组合。
- 有限 ID 分布空间承认一个兼容性条件(条件3),这是可学习性的必要且充分条件;在该条件下可实现的学习率为 O(1/√n)。
- 在基于密度的空间中,当假设类具有有限的 Natarajan 维时,可实现性(条件3)足以保证可学习性,且具有类似的亚线性学习速率。
- 该理论为实用的 OOD 方法提供支持,并阐明在何时远离 OOD 的图像场景更利于可学习的 OOD 检测。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。