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

Dmitri Roussinov, Serge Sharoff, Nadezhda Puchnina
12/29/2024
cs.CLcs.AI

No official code found. Best implementation: dminus1/LLM-OOD-control (0 stars, MIT, last commit 2025-01-07).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

The code and data for "Controlling Out-of-Domain Gaps in LLMs for Genre Classification and Generated Text Detection", D. Roussinov, S. Sharoff, N. Puchnina, The 31st International Conference on Computational Linguistics (COLING 2025)

00Python, BatchfileDec 13, 20241 years agoMIT

Similar Papers

Cite this paper

@article{roussinov2024controlling,
  title  = {Controlling Out-of-Domain Gaps in LLMs for Genre Classification and Generated Text Detection},
  author = {Dmitri Roussinov and Serge Sharoff and Nadezhda Puchnina},
  year   = {2024},
  eprint = {2412.20595},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.20595v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.20595.svg)](https://codeofpaper.com/paper/2412.20595)

Discussion