Imitate Before Detect: Aligning Machine Stylistic Preference for Machine-Revised Text Detection

Jiaqi Chen, Xiaoye Zhu, Tianyang Liu, Ying Chen, Xinhui Chen, Yiwen Yuan, Chak Tou Leong, Zuchao Li, Tang Long, Lei Zhang, Chenyu Yan, Guanghao Mei, Jie Zhang, Lefei Zhang

Introduction

As Large Language Models (LLMs) become ubiquitous, the nature of AI-assisted writing is evolving. While early concerns focused on entirely machine-generated content, a more subtle and pervasive challenge has emerged: machine-revised text. In this scenario, a human provides an initial draft, and an LLM is used to "polish," "expand," or "rewrite" the content. This hybrid approach blends human-specific facts and terminology with machine-driven stylistic preferences, creating a significant hurdle for existing AI detection tools.

Comparison of human-written, pure machine-generated, and machine-revised text.

The Detection Gap

Most current detection methods, such as DetectGPT or Fast-DetectGPT, rely on the statistical signature of LLMs—specifically their tendency to favor high-probability word sequences. While effective for 100% machine-generated essays, these methods struggle with revised text. The human-authored draft acts as "noise," masking the machine's statistical fingerprint. Consequently, the probability distribution of revised text often looks indistinguishable from purely human writing to standard detectors.

The ImBD Framework: Learning to Imitate

To address this, the authors propose Imitate Before Detect (ImBD). The core philosophy is counterintuitive: to better detect a machine, a model must first learn to think like one. The framework consists of two primary stages:

  1. Style Preference Optimization (SPO): A scoring LLM is "aligned" to prefer machine-like stylistic choices. Using a technique similar to Direct Preference Optimization (DPO), the model is trained on pairs of text with identical content—one human-written and one machine-revised. This teaches the detector to recognize and favor subtle machine-preferred tokens (e.g., "stunning," "intricate") over human alternatives.
  2. Style-conditional Probability Curvature (Style-CPC): Once aligned, the model calculates a "curvature" metric. By comparing the log-probability of the original text against conditionally resampled versions, the model can identify the sharp statistical discrepancies characteristic of machine revision.

Experimental Results

The researchers evaluated ImBD across diverse domains, including news (XSum), creative writing (WritingPrompts), and biomedical text (PubMedQA). The results demonstrate a significant performance leap over previous state-of-the-art methods.

Accuracy of detection across different domains and the overall improvement of the proposed ImBD method.

As shown in the results, while standard detectors see a massive drop in accuracy when moving from pure machine-generated text to machine-revised text, ImBD (labeled as "Ours") recovers this performance. Key highlights include:

  • Accuracy Boost: ImBD achieved an average accuracy of 0.96, a substantial increase from the 0.73 achieved by Fast-DetectGPT on revised text.
  • Proprietary Model Success: The method showed remarkable success against closed-source models, improving detection for GPT-4o by nearly 20% in AUC.
  • Efficiency: Despite its high performance, the model requires only 1,000 training samples and can be trained in approximately five minutes on a single GPU.

Conclusion

ImBD represents a shift in AI detection strategy. By explicitly modeling machine stylistic preferences before attempting detection, the framework effectively separates human "content noise" from machine "style signals." As LLMs continue to integrate into human workflows, such alignment-based detection methods will be crucial for maintaining the integrity of digital content. Future work will likely focus on quantifying the degree of revision and adapting to increasingly sophisticated adversarial styles.

Summary updated

BibTeX
@inproceedings{chen2025imitate,
  author = {Jiaqi Chen and Xiaoye Zhu and Tianyang Liu and Ying Chen and Xinhui Chen and Yiwen Yuan and Chak Tou Leong and Zuchao Li and Tang Long and Lei Zhang and Chenyu Yan and Guanghao Mei and Jie Zhang and Lefei Zhang},
  title = {{Imitate Before Detect: Aligning Machine Stylistic Preference for Machine-Revised Text Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i22.34525},
}
Figure