Beyond Binary: Towards Fine-Grained LLM-Generated Text Detection via Role Recognition and Involvement Measurement

Zihao Cheng, Li Zhou, Feng Jiang, Benyou Wang, Haizhou Li

Introduction

As Large Language Models (LLMs) become increasingly integrated into writing workflows, the distinction between human-authored and AI-generated content has blurred. Current detection methods primarily rely on binary classification—labeling text as either "Human" or "AI." However, this approach fails to account for the nuances of human-AI collaboration, where an LLM might polish a draft, extend a partial sentence, or rewrite specific sections. These "cyborg" texts often bypass traditional detectors.

Researchers from the Chinese University of Hong Kong, Shenzhen, propose a shift toward a fine-grained detection paradigm. Their framework identifies the specific role an LLM played in the writing process and quantifies the extent of its involvement, providing a more comprehensive understanding of text provenance.

The LLMDetect Framework

To address the limitations of binary detection, the authors introduce two primary tasks designed to capture the complexity of modern text generation:

  1. LLM Role Recognition (LLM-RR): A multi-class classification task that categorizes text into four roles: Human-Author (100% human), LLM-Creator (100% AI-generated), LLM-Polisher (human-authored text refined by AI), and LLM-Extender (AI continuing a human draft).
  2. LLM Involvement Measurement (LLM-IM): A regression task that calculates the LLM Involvement Ratio (LIR), a continuous value from 0 to 1 representing the proportion of the final text contributed by the AI.
Overview of the LLMDetect framework, including data types, evaluation aspects, and detection tasks.

Benchmark Datasets: HNDC and DetectEval

The study introduces LLMDetect, a robust benchmark consisting of two main components:

  • Hybrid News Detection Corpus (HNDC): A dataset of over 64,000 articles. It pairs human-written news from The New York Times and The Guardian (pre-2019 to prevent data leakage) with AI-generated versions corresponding to the four defined roles.
  • DetectEval: An evaluation suite designed to test Out-of-Distribution (OOD) generalization across five "cross-context" dimensions: time (2024 news), prompts, source models (e.g., Claude, GPT-4o), cultures (Germany, China, Qatar), and domains (essays, stories, theses).

Performance Analysis

The researchers evaluated ten baseline methods, including zero-shot LLMs (like GPT-4o), feature-based methods (GLTR), and fine-tuned Pre-trained Language Models (PLMs) such as RoBERTa, DeBERTa, and Longformer.

t-SNE visualizations of RoBERTa, Longformer, and DeBERTa embeddings showing class separation.

As shown in the t-SNE visualizations above, fine-tuned PLMs—particularly DeBERTa—demonstrate a superior ability to cluster different roles in the embedding space. While RoBERTa and Longformer show significant overlap between "Polished" and "Human" text, DeBERTa’s relative position encoding helps it maintain clearer boundaries, leading to an overall group average F1 score of 92.49% on the DetectEval suite.

In contrast, massive zero-shot LLMs struggled significantly. GPT-4o, the top-performing LLM, achieved an F1 of only 40.29% on the role recognition task. These models frequently failed to detect human-LLM collaboration, often misclassifying polished or extended text as entirely human-authored.

Key Insights

  • The "Cyborg" Challenge: Identifying "LLM-Polished" text is the most difficult task. Even advanced models find it challenging to distinguish between a high-quality human edit and an AI refinement.
  • Small Models, Big Impact: Fine-tuned encoder models (like DeBERTa) consistently outperformed massive LLMs. Their specialized training allows them to pick up on subtle statistical signatures that general-purpose LLMs overlook.
  • The Data Leakage Paradox: Interestingly, prior exposure to news articles during training (data leakage) actually hindered an LLM's performance as a zero-shot detector. The model's familiarity with the content appeared to mislead its judgment regarding the text's origin.
  • Domain and Cultural Sensitivity: Detection performance drops when moving across domains (e.g., from news to creative writing) or cultural contexts, suggesting that "AI-ness" is not a universal trait but is influenced by the underlying text's style.

Conclusion

This research highlights the necessity of moving beyond binary AI detection. By focusing on role recognition and involvement measurement, the LLMDetect framework provides a more accurate lens for evaluating human-AI collaborative writing. Future work will focus on improving domain adaptation and exploring detection strategies for evolving LLMs that better mimic human linguistic nuances.

Summary updated

BibTeX
@inproceedings{cheng2024beyond,
  author = {Zihao Cheng and Li Zhou and Feng Jiang and Benyou Wang and Haizhou Li},
  title = {{Beyond Binary: Towards Fine-Grained LLM-Generated Text Detection via Role Recognition and Involvement Measurement}},
  booktitle = {The Web Conference},
  year = {2024},
}
Figure