Lune

EMNLP Findings2025

Navigating the Unknown: Intent Classification and Out-of-Distribution Detection Using Large Language Models

Yusuf Sali, Sitki Can Toraman

Abstract

Out-of-Distribution (OOD) detection is a critical challenge for ensuring the practicality and safety of task-oriented dialogue systems (TODS). With the emergence of large language models (LLMs), their strong ability to capture diverse patterns and contexts offers new opportunities to address this problem. In this paper, we evaluate the performance of LLMs in the near-OOD setting, where OOD queries are from the same domain but represent unseen intents. To leverage LLMs' capabilities without additional training, we avoid fine-tuning. We systematically assess GPT-4o on 3 widely used public datasets and 3 in-house datasets, exploring 10 methods and prompt variations. We further compare results with Gemini 1.5 Flash and Llama 3.1-70b, and analyze the impact of increasing the number of in-distribution (ID) intents. Finally, we propose a novel hybrid approach that combines the ID accuracy of smaller text classification models with the strong generalization power of LLMs for OOD detection. This method is cost-efficient, robust, high-performing, and adaptable enough to work effectively with smaller LLMs without sacrificing performance.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Out-of-Distribution Detection with Deep Nearest Neighbors cites On the Importance of Gradients for Detecting Distributional Shifts in the Wild
  • Is Fine-tuning Needed? Pre-trained Language Models Are Near Perfect for Out-of-Domain Detection cites Contrastive Out-of-Distribution Detection for Pretrained Transformers
  • Is Fine-tuning Needed? Pre-trained Language Models Are Near Perfect for Out-of-Domain Detection cites Out-of-Distribution Detection with Deep Nearest Neighbors
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on10

  1. Out-of-Distribution Detection with Deep Nearest NeighborsYiyou Sun, Yifei Ming, Xiaojin Zhu, Yixuan LiICML 2022 · 789 citations
  2. On the Importance of Gradients for Detecting Distributional Shifts in the WildRui Huang, Andrew Geng, Yixuan LiNeurIPS 2021 · 515 citations
  3. Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain DetectionAlexander Podolskiy, Dmitry Lipin, Andrey Bout, Ekaterina Artemova et al.AAAI 2021 · 100 citations
  4. Contrastive Out-of-Distribution Detection for Pretrained TransformersWenxuan Zhou, Fangyu Liu, Muhao ChenEMNLP 2021 · 63 citations
  5. Is Fine-tuning Needed? Pre-trained Language Models Are Near Perfect for Out-of-Domain DetectionRheeya Uppaal, Junjie Hu, Yixuan LiACL 2023 · 9 citations

Related papers

  1. Large Language Models Meet Open-World Intent Discovery and Recognition: An Evaluation of ChatGPTXiaoshuai Song, Keqing He, Pei Wang, Guanting Dong et al.EMNLP 2023 · 3 citations
  2. From Out-of-Distribution Detection to Hallucination Detection: A Geometric ViewLitian Liu, Reza Pourreza, Yubing Jian, Yao Qin et al.ICML 2026 · 1 citation
  3. On the Generalization of Training-based ChatGPT Detection MethodsHan Xu, Jie Ren, Pengfei He, Shenglai Zeng et al.EMNLP Findings 2024 · 9 citations
  4. Learning to Rewrite: Generalized LLM-Generated Text DetectionWei Hao, Ran Li, Weiliang Zhao, Junfeng Yang et al.ACL 2025
  5. Out-of-Scope Intent Detection with Self-Supervision and Discriminative TrainingLi-Ming Zhan, Haowen Liang, Bo Liu, Lu Fan et al.ACL 2021
Dusk over the sea between two cliffs drawn in fine vertical lines