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

受限访问环境下检测分布外样本的扰动-比较方法

Perturb-and-Compare Approach for Detecting Out-of-Distribution Samples in Constrained Access Environments

Sungkyunkwan University(成均馆大学);Yonsei University(延世大学);University of Wisconsin–Madison(威斯康星大学麦迪逊分校)

Heeyoung Lee, Hoyoon Byun, Changdae Oh, JinYeong Bak, Kyungwoo Song

AI总结:

针对远程API访问模型时无法获取参数或激活值的受限场景,提出模型无关的OOD检测框架MixDiff,通过对目标与相似ID样本施加相同输入扰动并比较输出差异提升检测性能,适用于视觉和文本领域。

摘要:

近年来,为提升性能而扩大模型参数规模的趋势下,通过远程API访问机器学习模型的做法日益普及。尽管这些模型展现出卓越能力,但检测分布外(OOD)样本仍是终端用户面临的关键安全问题,因为这类样本可能导致模型输出不可靠的结果。本文提出一种OOD检测框架MixDiff,即便终端用户无法获取模型参数或其激活值,该框架依然适用。为绕过访问限制,MixDiff对给定目标样本和相似的分布内(ID)样本施加相同的输入级扰动,随后比较这两个样本的模型输出的相对差异。MixDiff具有模型无关性,可与现有基于输出的OOD检测方法兼容。我们通过理论分析阐明了MixDiff在识别会引发模型过度自信输出的OOD样本方面的有效性,并通过实验证明,在视觉和文本领域的多个数据集上,MixDiff均能持续提升OOD检测性能。

英文摘要:

Accessing machine learning models through remote APIs has been gaining prevalence following the recent trend of scaling up model parameters for increased performance. Even though these models exhibit remarkable ability, detecting out-of-distribution (OOD) samples remains a crucial safety concern for end users as these samples may induce unreliable outputs from the model. In this work, we propose an OOD detection framework, MixDiff, that is applicable even when the model's parameters or its activations are not accessible to the end user. To bypass the access restriction, MixDiff applies an identical input-level perturbation to a given target sample and a similar in-distribution (ID) sample, then compares the relative difference in the model outputs of these two samples. MixDiff is model-agnostic and compatible with existing output-based OOD detection methods. We provide theoretical analysis to illustrate MixDiff's effectiveness in discerning OOD samples that induce overconfident outputs from the model and empirically demonstrate that MixDiff consistently enhances the OOD detection performance on various datasets in vision and text domains.

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

↑