paper-with-me

홈 › Papers

How Good Are LLMs at Out-of-Distribution Detection?

2023-08-20 · Bo Liu, LiMing Zhan, Zexin Lu, Yujie Feng, Lei Xue, Xiao-Ming Wu

Out-of-distribution (OOD) detection plays a vital role in enhancing the reliability of machine learning (ML) models. The emergence of large language models (LLMs) has catalyzed a paradigm shift within the ML community, showcasing their exceptional capabilities across diverse natural language processing tasks. While existing research has probed OOD detection with relative small-scale Transformers like BERT, RoBERTa and GPT-2, the stark differences in scales, pre-training objectives, and inference paradigms call into question the applicability of these findings to LLMs. This paper embarks on a pioneering empirical investigation of OOD detection in the domain of LLMs, focusing on LLaMA series ranging from 7B to 65B in size. We thoroughly evaluate commonly-used OOD detectors, scrutinizing their performance in both zero-grad and fine-tuning scenarios. Notably, we alter previous discriminative in-distribution fine-tuning into generative fine-tuning, aligning the pre-training objective of LLMs with downstream tasks. Our findings unveil that a simple cosine distance OOD detector demonstrates superior efficacy, outperforming other OOD detectors. We provide an intriguing explanation for this phenomenon by highlighting the isotropic nature of the embedding spaces of LLMs, which distinctly contrasts with the anisotropic property observed in smaller BERT family models. The new insight enhances our understanding of how LLMs detect OOD data, thereby enhancing their adaptability and reliability in dynamic environments. We have released the source code at \url{https://github.com/Awenbocc/LLM-OOD} for other researchers to reproduce our results.

📄 PDF Abstract BibTeX arXiv:2308.10261

Code (1)

awenbocc/llm-ood 공식 구현 pytorch

Tasks

Out-of-Distribution DetectionOut of Distribution (OOD) Detection

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Linear Warmup With Cosine Annealing Linear Warmup With Cosine Annealing is a learning rate schedule where we increase the learning rate linearly for $n$ updates and then anneal according to a cosine schedule…
Discriminative Fine-Tuning Discriminative Fine-Tuning is a fine-tuning strategy that is used for ULMFiT type models. Instead of using the same learning rate…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Adam 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…

Similar Papers 제목 키워드 기반

Few-Shot Graph Out-of-Distribution Detection with LLMs

2025-03-28 · Haoyan Xu, Zhengtao Yao, Yushun Dong, Ziyi Wang 외

Existing methods for graph out-of-distribution (OOD) detection typically depend on training graph neural network (GNN) classifiers using a substantial amount of labeled in-distribution (ID) data. However, acquiring high-…

Graph Neural NetworkInformativenessOut-of-Distribution DetectionOut of Distribution (OOD) Detection+1

Out-of-Distribution Detection on Graphs: A Survey

2025-02-12 · Tingyi Cai, Yunliang Jiang, Yixin Liu, Ming Li 외

Graph machine learning has witnessed rapid growth, driving advancements across diverse domains. However, the in-distribution assumption, where training and testing data share the same distribution, often breaks in real-w…

Anomaly DetectionGraph Anomaly DetectionOutlier DetectionOut-of-Distribution Detection+1

Adaptive Ensembles of Fine-Tuned Transformers for LLM-Generated Text Detection

2024-03-20 · Zhixin Lai, Xuesheng Zhang, Suiyao Chen

Large language models (LLMs) have reached human-like proficiency in generating diverse textual content, underscoring the necessity for effective fake text detection to avoid potential risks such as fake news in social me…

LLM-generated Text DetectionText Detection

GOOD: Training-Free Guided Diffusion Sampling for Out-of-Distribution Detection

2025-10-20 · Xin Gao, Jiyao Liu, Guanghao Li, Yueming Lyu 외 arxiv

Recent advancements have explored text-to-image diffusion models for synthesizing out-of-distribution (OOD) samples, substantially enhancing the performance of OOD detection. However, existing approaches typically rely o…

Out-of-Distribution Detection

SGOOD: Substructure-enhanced Graph-Level Out-of-Distribution Detection

2023-10-16 · Zhihao Ding, Jieming Shi, Shiqi Shen, Xuequn Shang 외

Graph-level representation learning is important in a wide range of applications. Existing graph-level models are generally built on i.i.d. assumption for both training and testing graphs. However, in an open world, mode…

Out-of-Distribution DetectionRepresentation Learning