HACo-Det: A Study Towards Fine-Grained Machine-Generated Text Detection under Human-AI Coauthoring

Zhixiong Su, Yichen Wang, Herun Wan, Zhaohan Zhang, Minnan Luo

Abstract

As human-AI collaborative writing becomes the standard for content creation, traditional document-level AI text detectors are increasingly inadequate. This paper introduces HACo-Det, a novel benchmark designed for fine-grained machine-generated text (MGT) detection at the word and sentence levels. By evaluating retrofitted versions of existing detectors, the study reveals a significant performance gap: while supervised fine-tuned models achieve high accuracy, popular metric-based detectors fail to provide reliable signals at a granular level. These findings underscore the urgent need for detection systems that can navigate the nuances of co-authored text.

Introduction

Most existing Machine-Generated Text (MGT) detection systems operate on a binary assumption: a document is either entirely human-written or entirely AI-generated. However, the proliferation of interactive AI writing assistants—such as Notion AI, GPT-4o-canvas, and Wordcraft—has shifted the reality toward co-authorship. In these scenarios, a human might draft a document, use an LLM to paraphrase specific sections, and then manually refine the conclusion.

Labeling such a document as purely "AI-generated" is inaccurate and can lead to false accusations of academic or professional dishonesty. Conversely, failing to identify the AI's contribution undermines the transparency of the writing process. To address this, the authors formalize the task of fine-grained MGT detection, aiming to attribute authorship at the word and sentence levels to accurately determine the "AI ratio" within a single document.

The HACo-Det Dataset

To facilitate this research, the authors developed the HACo-Det (Human-AI Coauthored Text Detection) benchmark. The dataset consists of 11,200 texts, with an average length of approximately 4,000 words, designed to simulate realistic multi-turn human-AI collaboration.

Data Generation Pipeline

The authors utilized an automated pipeline that selects specific sentence spans from raw human texts and prompts an LLM to paraphrase them. By tracking lexical changes before and after the LLM's intervention, the pipeline generates precise word-level and sentence-level attribution labels. To ensure diversity, the dataset spans four distinct domains and utilizes four different instruction-tuned LLMs:

  • Domains: News (XSum), Stories (WritingPrompts), Scientific Papers (Dagpap24), and Wikipedia.
  • Generators: Llama-3-8B, Mixtral-8x7B, GPT-4o, and GPT-4o-mini.

Methodology

The study retrofitted seven prevailing document-level MGT detectors to perform sequence labeling at the word and sentence levels. These baselines are categorized into two primary approaches:

  1. Finetune-based Methods: Models such as DeBERTa and SeqXGPT were trained specifically for sequence labeling, classifying each token or word as human or AI.
  2. Metric-based Methods: These include zero-shot white-box and gray-box methods like DetectGPT, Fast-DetectGPT, NPR, and various GLTR metrics (e.g., log-probability and entropy). Since these methods typically yield a single document-level score, the authors adapted them to calculate metrics for individual words and sentences.

Key Insights and Results

The Failure of Metric-Based Detection

A primary finding of the study is that metric-based methods are largely ineffective at the word level. While techniques relying on log-probabilities or entropy can aggregate statistical signals over long documents, these signals become too noisy at granular scales. At the word and sentence levels, these methods performed no better than random guessing, with DetectGPT and Fast-DetectGPT achieving F1 scores near the random baseline of 0.433.

The Importance of Context

The research highlights that "context is king" for fine-grained detection. Many classification models utilize "chunking" to handle long texts due to context window limits. However, the authors found that chunking significantly harms detection accuracy. Detectors require the surrounding human-written context to identify the subtle statistical anomalies that characterize AI-generated sentences.

Performance Benchmarks

  • Word-Level Detection: The supervised DeBERTa model outperformed all other methods, achieving an F1 score of 0.831. In contrast, metric-based methods like Fast-DetectGPT reached only 0.501.
  • Sentence-Level Detection: DeBERTa achieved an impressive 0.966 F1, while the best metric-based method struggled at 0.533.
  • AI Ratio Prediction: When aggregating granular predictions to estimate the total percentage of AI content in a document, DeBERTa maintained a remarkably low error rate of approximately 1.8%. Metric-based methods exhibited high error rates, ranging from 10% to 43%.

Asymmetric Generalization

The study observed an asymmetry in out-of-domain (OOD) generalization. Training detectors on complex, lengthy documents (such as scientific papers) or texts modified by advanced models like GPT-4o resulted in better generalization to simpler domains than the reverse. This suggests that exposure to sophisticated AI-human blending during training is crucial for robust detection.

Limitations and Future Directions

While HACo-Det provides a critical foundation for fine-grained detection, several limitations remain. The current dataset is limited to English and simulates co-authoring using only one LLM per document. In real-world scenarios, a user might collaborate with multiple different models within the same text. Furthermore, the study focused on retrofitting existing architectures rather than proposing a bespoke model for fine-grained tasks.

Future work should focus on developing multilingual datasets, simulating multi-model collaborations, and designing new architectures specifically optimized for the nuances of human-AI co-authorship.

Summary updated

BibTeX
@inproceedings{su2025haco,
  author = {Zhixiong Su and Yichen Wang and Herun Wan and Zhaohan Zhang and Minnan Luo},
  title = {{HACo-Det: A Study Towards Fine-Grained Machine-Generated Text Detection under Human-AI Coauthoring}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure