mlsanityData to 7 Oct 2026

Controlling Out-of-Domain Gaps in LLMs for Genre Classification and Generated Text Detection

arXiv 2412.20595 ↗First posted 29 Dec 2024cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

This study demonstrates that the modern generation of Large Language Models (LLMs, such as GPT-4) suffers from the same out-of-domain (OOD) performance gap observed in prior research on pre-trained Language Models (PLMs, such as BERT). We demonstrate this across two non-topical classification tasks: 1) genre classification and 2) generated text detection. Our results show that when demonstration examples for In-Context Learning (ICL) come from one domain (e.g., travel) and the system is tested on another domain (e.g., history), classification performance declines significantly. To address this, we introduce a method that controls which predictive indicators are used and which are excluded during classification. For the two tasks studied here, this ensures that topical features are omitted, while the model is guided to focus on stylistic rather than content-based attributes. This approach reduces the OOD gap by up to 20 percentage points in a few-shot setup. Straightforward Chain-of-Thought (CoT) methods, used as the baseline, prove insufficient, while our approach consistently enhances domain transfer performance.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 15 of its 38 references that are in the map. First posted on arXiv 29 Dec 2024.

Builds on

15 of 38 references.

References · 15

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  4. 2019GLTR: Statistical Detection and Visualization of Generated Textcited by 490
  5. 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
  6. 2019Topic Modeling in Embedding Spacescited by 224
  7. 2023The Science of Detecting LLM-Generated Textscited by 126
  8. 2023Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluationscited by 96
  9. 2024Language Models for Text Classification: Is In-Context Learning Enough?cited by 39
  10. 2023Adapt in Contexts: Retrieval-Augmented Domain Adaptation via In-Context Learningcited by 16
  11. 2024LLM-Detector: Improving AI-Generated Chinese Text Detection with Open-Source LLM Instruction Tuningcited by 10
  12. 2021Genre as Weak Supervision for Cross-lingual Dependency Parsingcited by 8
3 more
  1. 2022The GINCO Training Dataset for Web Genre Identification of Documents Out in the Wildcited by 8
  2. 2022Estimating Confidence of Predictions of Individual Classifiers and Their Ensembles for the Genre Classification Taskcited by 3
  3. 2023BERT Goes Off-Topic: Investigating the Domain Transfer Challenge using Genre Classificationcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Enhancing Low-Resource LLMs Classification with PEFT and Synthetic Data
  2. 2022Assessing Out-of-Domain Language Model Performance from Few Examples
  3. 2023Adapting Large Language Models for Content Moderation: Pitfalls in Data Engineering and Supervised Fine-tuning
  4. 2023Large Language Models Are Zero-Shot Text Classifiers
  5. 2023Generation-driven Contrastive Self-training for Zero-shot Text Classification with Instruction-following LLM
  6. 2023Synthetic Data Generation with Large Language Models for Text Classification: Potential and Limitations
  7. 2024Mitigating Boundary Ambiguity and Inherent Bias for Text Classification in the Era of Large Language Models
  8. 2024RAGulator: Lightweight Out-of-Context Detectors for Grounded Text Generation