Multi-Level Knowledge Distillation for Out-of-Distribution Detection in Text
On the map: Knowledge distillation → Knowledge distillation for LLMs
Abstract (arXiv)
Self-supervised representation learning has proved to be a valuable component for out-of-distribution (OoD) detection with only the texts of in-distribution (ID) examples. These approaches either train a language model from scratch or fine-tune a pre-trained language model using ID examples, and then take the perplexity output by the language model as OoD scores. In this paper, we analyze the complementary characteristics of both OoD detection methods and propose a multi-level knowledge distillation approach that integrates their strengths while mitigating their limitations. Specifically, we use a fine-tuned model as the teacher to teach a randomly initialized student model on the ID examples. Besides the prediction layer distillation, we present a similarity-based intermediate layer distillation method to thoroughly explore the representation space of the teacher model. In this way, the learned student can better represent the ID data manifold while gaining a stronger ability to map OoD examples outside the ID data manifold with the regularization inherited from pre-training. Besides, the student model sees only ID examples during parameter learning, further promoting more distinguishable features for OoD detection. We conduct extensive experiments over multiple benchmark datasets, i.e., CLINC150, SST, ROSTD, 20 NewsGroups, and AG News; showing that the proposed method yields new state-of-the-art performance. We also explore its application as an AIGC detector to distinguish between answers generated by ChatGPT and human experts. It is observed that our model exceeds human evaluators in the pair-expert task on the Human ChatGPT Comparison Corpus.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Knowledge distillation for LLMs, one of 12 directions in Knowledge distillation. Builds on 32 of its 68 references that are in the map. First posted on arXiv 21 Nov 2022.
Builds on
32 of 68 references.
Closest ancestors · 1
Same direction, newest first
Other references · 31
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2013Auto-Encoding Variational Bayescited by 4,053
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2015A large annotated corpus for learning natural language inferencecited by 1,847
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
- 2018Deep Anomaly Detection with Outlier Exposurecited by 942
- 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 546
- 2015Towards Open Set Deep Networkscited by 538
19 more
- 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 386
- 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 294
- 2020DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representationscited by 251
- 2016Multi30K: Multilingual English-German Image Descriptionscited by 250
- 2018Cross-Lingual Transfer Learning for Multilingual Task Oriented Dialogcited by 125
- 2018Efficient GAN-Based Anomaly Detectioncited by 122
- 2017DOC: Deep Open Classification of Text Documentscited by 109
- 2021Types of Out-of-Distribution Texts and How to Detect Themcited by 80
- 2021Contrastive Out-of-Distribution Detection for Pretrained Transformerscited by 71
- 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 70
- 2019Deep Unknown Intent Detection with Margin Losscited by 66
- 2021Modeling Discriminative Representations for Out-of-Domain Detection with Supervised Contrastive Learningcited by 42
- 2021Out-of-Scope Intent Detection with Self-Supervision and Discriminative Trainingcited by 42
- 2019Likelihood Ratios and Generative Classifiers for Unsupervised Out-of-Domain Detection In Task Oriented Dialogcited by 33
- 2021Unsupervised Out-of-Domain Detection via Pre-trained Transformerscited by 31
- 2021DATE: Detecting Anomalies in Text via Self-Supervision of Transformerscited by 25
- 2022Towards Textual Out-of-Domain Detection without In-Domain Labelscited by 14
- 2022Transcormer: Transformer for Sentence Scoring with Sliding Language Modelingcited by 8
- 2022Self-Supervised Losses for One-Class Textual Anomaly Detectioncited by 5
Built on by
Citing papers per year: 2023: 4; 2024: 4; 2025: 2; 2026: 1.
11 papers.
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 287
- 2024Leak, Cheat, Repeat: Data Contamination and Evaluation Malpractices in Closed-Source LLMscited by 229
- 2023A Survey on Out-of-Distribution Detection in NLPcited by 31
- 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 16
- 2023Few-shot Anomaly Detection in Text with Deviation Learningcited by 11
- 2025GEM: Gaussian Embedding Modeling for Out-of-Distribution Detection in GUI Agentscited by 8
- 2025Human Heterogeneity Invariant Stress Sensingcited by 1
- 2023Distilling the Unknown to Unveil Certaintycited by 0
- 2024One Stone, Four Birds: A Comprehensive Solution for QA System Using Supervised Contrastive Learningcited by 0
- 2024Compressing VAE-Based Out-of-Distribution Detectors for Embedded Deploymentcited by 0
- 2026Graphical-Probabilistic Modeling of Generative Flows in LLM-Native Software Systemscited by 0
- 2026Graphical-Probabilistic Modeling of Generative Flows in LLM-Native Software Systems14 Jun 2026
- 2025Human Heterogeneity Invariant Stress Sensing2 Jun 2025
- 2025GEM: Gaussian Embedding Modeling for Out-of-Distribution Detection in GUI Agents19 May 2025
- 2024Compressing VAE-Based Out-of-Distribution Detectors for Embedded Deployment2 Sep 2024
- 2024One Stone, Four Birds: A Comprehensive Solution for QA System Using Supervised Contrastive Learning12 Jul 2024
- 2024On the Noise Robustness of In-Context Learning for Text Generation27 May 2024
- 2024Leak, Cheat, Repeat: Data Contamination and Evaluation Malpractices in Closed-Source LLMs6 Feb 2024
- 2023Distilling the Unknown to Unveil Certainty14 Nov 2023
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models9 Oct 2023
- 2023Few-shot Anomaly Detection in Text with Deviation Learning22 Aug 2023
- 2023A Survey on Out-of-Distribution Detection in NLP5 May 2023
Similar, not cited
Close in wording, no citation either way
- 2022Delving into Out-of-Distribution Detection with Vision-Language Representations
- 2025Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
- 2026Respecting Modality Gap in Post-hoc Out-of-distribution Detection with Pre-trained Vision-Language Models
- 2024Diffusion based Semantic Outlier Generation via Nuisance Awareness for Out-of-Distribution Detection
- 2025Out-of-Distribution Detection using Synthetic Data Generation
- 2024Envisioning Outlier Exposure by Large Language Models for Out-of-Distribution Detection
- 2025Harnessing Large Language and Vision-Language Models for Robust Out-of-Distribution Detection
- 2026Vision Also You Need: Navigating Out-of-Distribution Detection with Multimodal Large Language Model