paper-with-me

홈 › Papers

Your Finetuned Large Language Model is Already a Powerful Out-of-distribution Detector

2024-04-07 · Andi Zhang, Tim Z. Xiao, Weiyang Liu, Robert Bamler, Damon Wischik

We revisit the likelihood ratio between a pretrained large language model (LLM) and its finetuned variant as a criterion for out-of-distribution (OOD) detection. The intuition behind such a criterion is that, the pretrained LLM has the prior knowledge about OOD data due to its large amount of training data, and once finetuned with the in-distribution data, the LLM has sufficient knowledge to distinguish their difference. Leveraging the power of LLMs, we show that, for the first time, the likelihood ratio can serve as an effective OOD detector. Moreover, we apply the proposed LLM-based likelihood ratio to detect OOD questions in question-answering (QA) systems, which can be used to improve the performance of specialized LLMs for general questions. Given that likelihood can be easily obtained by the loss functions within contemporary neural network frameworks, it is straightforward to implement this approach in practice. Since both the pretrained LLMs and its various finetuned models are available, our proposed criterion can be effortlessly incorporated for OOD detection without the need for further training. We conduct comprehensive evaluation across on multiple settings, including far OOD, near OOD, spam detection, and QA scenarios, to demonstrate the effectiveness of the method.

📄 PDF Abstract BibTeX arXiv:2404.08679

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingLarge Language ModelOut of Distribution (OOD) DetectionQuestion AnsweringSpam detection

Similar Papers 제목 키워드 기반

BYOM: Building Your Own Multi-Task Model For Free

2023-10-03 · Weisen Jiang, Baijiong Lin, Han Shi, Yu Zhang 외

Recently, various merging methods have been proposed to build a multi-task model from task-specific finetuned models without retraining. However, existing methods suffer from a large performance deterioration compared to…

One Leak Away: How Pretrained Model Exposure Amplifies Jailbreak Risks in Finetuned LLMs

2025-12-14 · Yixin Tan, Zhe Yu, Jun Sakuma arxiv

Finetuning pretrained large language models (LLMs) has become the standard paradigm for developing downstream applications. However, its security implications remain unclear, particularly regarding whether finetuned LLMs…

Always Keep your Target in Mind: Studying Semantics and Improving Performance of Neural Lexical Substitution

2022-06-07 · COLING 2020 8 · Nikolay Arefyev, Boris Sheludko, Alexander Podolskiy, Alexander Panchenko

Lexical substitution, i.e. generation of plausible words that can replace a particular target word in a given context, is an extremely powerful technology that can be used as a backbone of various NLP applications, inclu…

Data AugmentationRelation ExtractionWord Sense Induction

InPars-v2: Large Language Models as Efficient Dataset Generators for Information Retrieval

2023-01-04 · Vitor Jeronymo, Luiz Bonifacio, Hugo Abonizio, Marzieh Fadaee 외

Recently, InPars introduced a method to efficiently use large language models (LLMs) in information retrieval tasks: via few-shot examples, an LLM is induced to generate relevant queries for documents. These synthetic qu…

Information RetrievalRetrieval

Video Finetuning Improves Reasoning Between Frames

2025-11-17 · Ruiqi Yang, Tian Yun, Zihan Wang, Ellie Pavlick arxiv

Multimodal large language models (LLMs) have made rapid progress in visual understanding, yet their extension from images to videos often reduces to a naive concatenation of frame tokens. In this work, we investigate wha…

Video Question AnsweringVisual Reasoning