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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lee, Heeyoung, Byun, Hoyoon, Oh, Changdae, Bak, JinYeong, Song, Kyungwoo
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913472201097216
author Lee, Heeyoung
Byun, Hoyoon
Oh, Changdae
Bak, JinYeong
Song, Kyungwoo
author_facet Lee, Heeyoung
Byun, Hoyoon
Oh, Changdae
Bak, JinYeong
Song, Kyungwoo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2408_10107
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Perturb-and-Compare Approach for Detecting Out-of-Distribution Samples in Constrained Access Environments
Lee, Heeyoung
Byun, Hoyoon
Oh, Changdae
Bak, JinYeong
Song, Kyungwoo
Machine Learning
Artificial Intelligence
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.
title Perturb-and-Compare Approach for Detecting Out-of-Distribution Samples in Constrained Access Environments
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2408.10107