Saved in:
Bibliographic Details
Main Authors: Zhou, Yijin, Ge, Yutang, Xie, Wenyuan, Zeng, Linqian, Dong, Xiaowen, Wang, Yuguang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.12915
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911406366916608
author Zhou, Yijin
Ge, Yutang
Xie, Wenyuan
Zeng, Linqian
Dong, Xiaowen
Wang, Yuguang
author_facet Zhou, Yijin
Ge, Yutang
Xie, Wenyuan
Zeng, Linqian
Dong, Xiaowen
Wang, Yuguang
contents Transformers excel in natural language processing and computer vision tasks. However, they still face challenges in generalizing to Out-of-Distribution (OOD) datasets, i.e. data whose distribution differs from that seen during training. OOD detection aims to distinguish outliers while preserving in-distribution (ID) data performance. This paper introduces the OOD detection Probably Approximately Correct (PAC) Theory for transformers, which establishes the conditions for data distribution and model configurations for the OOD detection learnability of transformers. It shows that outliers can be accurately represented and distinguished with sufficient data under conditions. The theoretical implications highlight the trade-off between theoretical principles and practical training paradigms. By examining this trade-off, we naturally derived the rationale for leveraging auxiliary outliers to enhance OOD detection. Our theory suggests that by penalizing the misclassification of outliers within the loss function and strategically generating soft synthetic outliers, one can robustly bolster the reliability of transformer networks. This approach yields a novel algorithm that ensures learnability and refines the decision boundaries between inliers and outliers. In practice, the algorithm consistently achieves state-of-the-art (SOTA) performance across various data formats.
format Preprint
id arxiv_https___arxiv_org_abs_2406_12915
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle How Out-of-Distribution Detection Learning Theory Enhances Transformer: Learnability and Reliability
Zhou, Yijin
Ge, Yutang
Xie, Wenyuan
Zeng, Linqian
Dong, Xiaowen
Wang, Yuguang
Machine Learning
Probability
Transformers excel in natural language processing and computer vision tasks. However, they still face challenges in generalizing to Out-of-Distribution (OOD) datasets, i.e. data whose distribution differs from that seen during training. OOD detection aims to distinguish outliers while preserving in-distribution (ID) data performance. This paper introduces the OOD detection Probably Approximately Correct (PAC) Theory for transformers, which establishes the conditions for data distribution and model configurations for the OOD detection learnability of transformers. It shows that outliers can be accurately represented and distinguished with sufficient data under conditions. The theoretical implications highlight the trade-off between theoretical principles and practical training paradigms. By examining this trade-off, we naturally derived the rationale for leveraging auxiliary outliers to enhance OOD detection. Our theory suggests that by penalizing the misclassification of outliers within the loss function and strategically generating soft synthetic outliers, one can robustly bolster the reliability of transformer networks. This approach yields a novel algorithm that ensures learnability and refines the decision boundaries between inliers and outliers. In practice, the algorithm consistently achieves state-of-the-art (SOTA) performance across various data formats.
title How Out-of-Distribution Detection Learning Theory Enhances Transformer: Learnability and Reliability
topic Machine Learning
Probability
url https://arxiv.org/abs/2406.12915