mlsanityData to 14 Oct 2026

Multi-Level Knowledge Distillation for Out-of-Distribution Detection in Text

arXiv 2211.11300 ↗First posted 21 Nov 2022cs.CL cs.AIcited by 11

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

  1. 2021RAIL-KD: RAndom Intermediate Layer Mapping for Knowledge Distillation21 Sep

Other references · 31

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2013Auto-Encoding Variational Bayescited by 4,053
  6. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  7. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  8. 2015A large annotated corpus for learning natural language inferencecited by 1,847
  9. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
  10. 2018Deep Anomaly Detection with Outlier Exposurecited by 942
  11. 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 546
  12. 2015Towards Open Set Deep Networkscited by 538
19 more
  1. 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 386
  2. 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 294
  3. 2020DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representationscited by 251
  4. 2016Multi30K: Multilingual English-German Image Descriptionscited by 250
  5. 2018Cross-Lingual Transfer Learning for Multilingual Task Oriented Dialogcited by 125
  6. 2018Efficient GAN-Based Anomaly Detectioncited by 122
  7. 2017DOC: Deep Open Classification of Text Documentscited by 109
  8. 2021Types of Out-of-Distribution Texts and How to Detect Themcited by 80
  9. 2021Contrastive Out-of-Distribution Detection for Pretrained Transformerscited by 71
  10. 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 70
  11. 2019Deep Unknown Intent Detection with Margin Losscited by 66
  12. 2021Modeling Discriminative Representations for Out-of-Domain Detection with Supervised Contrastive Learningcited by 42
  13. 2021Out-of-Scope Intent Detection with Self-Supervision and Discriminative Trainingcited by 42
  14. 2019Likelihood Ratios and Generative Classifiers for Unsupervised Out-of-Domain Detection In Task Oriented Dialogcited by 33
  15. 2021Unsupervised Out-of-Domain Detection via Pre-trained Transformerscited by 31
  16. 2021DATE: Detecting Anomalies in Text via Self-Supervision of Transformerscited by 25
  17. 2022Towards Textual Out-of-Domain Detection without In-Domain Labelscited by 14
  18. 2022Transcormer: Transformer for Sentence Scoring with Sliding Language Modelingcited by 8
  19. 2022Self-Supervised Losses for One-Class Textual Anomaly Detectioncited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 4; 2024: 4; 2025: 2; 2026: 1.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2022Delving into Out-of-Distribution Detection with Vision-Language Representations
  2. 2025Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
  3. 2026Respecting Modality Gap in Post-hoc Out-of-distribution Detection with Pre-trained Vision-Language Models
  4. 2024Diffusion based Semantic Outlier Generation via Nuisance Awareness for Out-of-Distribution Detection
  5. 2025Out-of-Distribution Detection using Synthetic Data Generation
  6. 2024Envisioning Outlier Exposure by Large Language Models for Out-of-Distribution Detection
  7. 2025Harnessing Large Language and Vision-Language Models for Robust Out-of-Distribution Detection
  8. 2026Vision Also You Need: Navigating Out-of-Distribution Detection with Multimodal Large Language Model