Few-Shot Detection of Machine-Generated Text using Style Representations
Rafael A. Rivera Soto, Kailin Koch, Aleem Khan, Barry Y. Chen, Marcus Bishop, Nicholas Andrews
Abstract
The advent of instruction-tuned language models that convincingly mimic human writing poses a significant risk of abuse. However, such abuse may be counteracted with the ability to detect whether a piece of text was composed by a language model rather than a human author. Some previous approaches to this problem have relied on supervised methods by training on corpora of confirmed human- and machine- written documents. Unfortunately, model under-specification poses an unavoidable challenge for neural network-based detectors, making them brittle in the face of data shifts, such as the release of newer language models producing still more fluent text than the models used to train the detectors. Other approaches require access to the models that may have generated a document in question, which is often impractical. In light of these challenges, we pursue a fundamentally different approach not relying on samples from language models of concern at training time. Instead, we propose to leverage representations of writing style estimated from human-authored text. Indeed, we find that features effective at distinguishing among human authors are also effective at distinguishing human from machine authors, including state-of-the-art large language models like Llama-2, ChatGPT, and GPT-4. Furthermore, given a handful of examples composed by each of several specific language models of interest, our approach affords the ability to predict which model generated a given document. The code and data to reproduce our experiments are available at https://github.com/LLNL/LUAR/tree/main/fewshot_iclr2024.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
17 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Are AI-Generated Text Detectors Robust to Adversarial Perturbations? cites Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense
- Are AI-Generated Text Detectors Robust to Adversarial Perturbations? cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature cites Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense
- Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense cites A Watermark for Large Language Models
- DETree: DEtecting Human-AI Collaborative Texts via Tree-Structured Hierarchical Representation Learning cites Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense
- DETree: DEtecting Human-AI Collaborative Texts via Tree-Structured Hierarchical Representation Learning cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- DETree: DEtecting Human-AI Collaborative Texts via Tree-Structured Hierarchical Representation Learning cites RAID: A Shared Benchmark for Robust Evaluation of Machine-Generated Text Detectors
- DETree: DEtecting Human-AI Collaborative Texts via Tree-Structured Hierarchical Representation Learning cites DeTeCtive: Detecting AI-generated Text via Multi-Level Contrastive Learning
- DETree: DEtecting Human-AI Collaborative Texts via Tree-Structured Hierarchical Representation Learning cites A Watermark for Large Language Models
- DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature cites A Watermark for Large Language Models
- RAID: A Shared Benchmark for Robust Evaluation of Machine-Generated Text Detectors cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- DeTeCtive: Detecting AI-generated Text via Multi-Level Contrastive Learning cites Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense
- DeTeCtive: Detecting AI-generated Text via Multi-Level Contrastive Learning cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- DeTeCtive: Detecting AI-generated Text via Multi-Level Contrastive Learning cites Crosslingual Generalization through Multitask Finetuning
- DeTeCtive: Detecting AI-generated Text via Multi-Level Contrastive Learning cites A Watermark for Large Language Models
- A Watermark for Large Language Models cites Crosslingual Generalization through Multitask Finetuning
- A Watermark for Large Language Models cites CATER: Intellectual Property Protection on Text Generation APIs via Conditional Watermarks
Cited by top-tier papers17
- DeTeCtive: Detecting AI-generated Text via Multi-Level Contrastive LearningXun Guo, Yongxin He, Shan Zhang, Ting Zhang et al.NeurIPS 2024 · 100 citations
- RAID: A Shared Benchmark for Robust Evaluation of Machine-Generated Text DetectorsLiam Dugan, Alyssa Hwang, Filip Trhlík, Andrew Zhu et al.ACL 2024 · 18 citations
- DETree: DEtecting Human-AI Collaborative Texts via Tree-Structured Hierarchical Representation LearningYongxin He, Shan Zhang, Yixuan Cao, Lei Ma et al.NeurIPS 2025 · 13 citations
- Are AI-Generated Text Detectors Robust to Adversarial Perturbations?Guanhua Huang, Yuchen Zhang, Zhe Li, Yongjian You et al.ACL 2024 · 7 citations
- Leveraging Multilingual Training for Authorship Representation: Enhancing Generalization across Languages and DomainsJunghwan Kim, Haotian Zhang, David JurgensEMNLP 2025 · 3 citations
Builds on6
- DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability CurvatureEric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D. Manning et al.ICML 2023 · 988 citations
- A Watermark for Large Language ModelsJohn Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz et al.ICML 2023 · 854 citations
- Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defenseKalpesh Krishna, Yixiao Song, Marzena Karpinska, John Wieting et al.NeurIPS 2023 · 657 citations
- Crosslingual Generalization through Multitask FinetuningNiklas Muennighoff, Thomas Wang, Lintang Sutawika, Adam Roberts et al.ACL 2023 · 319 citations
- CATER: Intellectual Property Protection on Text Generation APIs via Conditional WatermarksXuanli He, Qiongkai Xu, Yi Zeng, Lingjuan Lyu et al.NeurIPS 2022 · 106 citations
Related papers
- LLMDet: A Third Party Large Language Models Generated Text Detection ToolKangxi Wu, Liang Pang, Huawei Shen, Xueqi Cheng et al.EMNLP Findings 2023 · 31 citations
- On the Zero-Shot Generalization of Machine-Generated Text DetectorsXiao Pu, Jingyu Zhang, Xiaochuang Han, Yulia Tsvetkov et al.EMNLP Findings 2023 · 14 citations
- MOSAIC: Multiple Observers Spotting AI ContentMatthieu Dubois, François Yvon, Pablo PiantanidaACL Findings 2025
- MAGE: Machine-generated Text Detection in the WildYafu Li, Qintong Li, Leyang Cui, Wei Bi et al.ACL 2024 · 44 citations
- Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated TextAbhimanyu Hans, Avi Schwarzschild, Valeriia Cherepanova, Hamid Kazemi et al.ICML 2024 · 262 citations
