arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2208.14488cs.LGcs.AIcs.CV
收藏

约束表征使模型知道自己不知道什么

Constraining Representations Yields Models That Know What They Don't Know

ServiceNow Research(ServiceNow研究院);Apple(苹果公司)

Joao Monteiro, Pau Rodriguez, Pierre-Andre Noel, Issam Laradji, David Vazquez

AI总结:

本文提出全激活分类器(TAC),通过为每个类分配唯一二进制类代码并约束模型内部激活模式来预测该代码,从而获得额外的置信度分数,使模型在允许拒绝或推迟时能更可靠地识别自身不确定性,并在多种架构和数据模态上验证了其有效性。

摘要:

神经网络的一个众所周知的失效模式是,它们可能自信地返回错误预测。当使用场景与训练上下文略有不同,和/或存在对抗者时,这种不安全行为尤其频繁。本工作提出了一个以广泛、通用的方式解决这些问题的新方向:对模型内部激活模式施加类感知约束。具体来说,我们为每个类分配一个唯一的、固定的、随机生成的二进制向量——以下称为类代码——并训练模型,使其跨深度激活模式根据输入样本的类预测相应的类代码。由此产生的预测器被称为全激活分类器(TAC),TAC可以从头开始训练,也可以以可忽略的成本作为冻结的、预训练神经网络之上的薄附加组件使用。TAC的激活模式与最近的有效代码之间的距离,作为除默认的非TAC预测头之外的额外置信度分数。在附加组件的情况下,原始神经网络的推理头完全不受影响(因此其准确性保持不变),但我们现在可以选择在假设的生产工作流中确定采取何种行动方案时使用TAC自己的置信度和预测。特别是,我们表明TAC严格提高了允许拒绝/推迟的模型所获得的价值。我们提供了进一步的经验证据,证明TAC在多种类型的架构和数据模态上表现良好,并且它至少与从现有模型派生的最先进的替代置信度分数一样好。

英文摘要:

A well-known failure mode of neural networks is that they may confidently return erroneous predictions. Such unsafe behaviour is particularly frequent when the use case slightly differs from the training context, and/or in the presence of an adversary. This work presents a novel direction to address these issues in a broad, general manner: imposing class-aware constraints on a model's internal activation patterns. Specifically, we assign to each class a unique, fixed, randomly-generated binary vector - hereafter called class code - and train the model so that its cross-depths activation patterns predict the appropriate class code according to the input sample's class. The resulting predictors are dubbed Total Activation Classifiers (TAC), and TACs may either be trained from scratch, or used with negligible cost as a thin add-on on top of a frozen, pre-trained neural network. The distance between a TAC's activation pattern and the closest valid code acts as an additional confidence score, besides the default unTAC'ed prediction head's. In the add-on case, the original neural network's inference head is completely unaffected (so its accuracy remains the same) but we now have the option to use TAC's own confidence and prediction when determining which course of action to take in an hypothetical production workflow. In particular, we show that TAC strictly improves the value derived from models allowed to reject/defer. We provide further empirical evidence that TAC works well on multiple types of architectures and data modalities and that it is at least as good as state-of-the-art alternative confidence scores derived from existing models.

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

↑