Paper · 2022-10-13 · cs.CL, cs.CR, cs.CY, cs.LG
Machine Generated Text: A Comprehensive Survey of Threat Models and Detection Methods
Survey of machine-generated text: threat models for abuse (phishing, influence campaigns, academic fraud, spam) and a review of detectors (statistical features, zero-shot and fine-tuned RoBERTa, human-aided tools). No new experiments. Fine-tuned RoBERTa detectors lead on GPT-2 data; open problems are class imbalance, unseen generators, robustness and fairness.
AI-generated text detectionAdversarial text generationsurveydetectionthreat-modelstext-generationtrustworthy-ai
AI-compiled by claude-haiku-5-5 on 2026-11-09, not yet reviewed by a human. Every claim cites its source; check it when a detail matters.
In plain words
Text from modern language models is getting hard to tell apart from text a person wrote. This paper is a survey with two halves. The first half asks how such text can be abused: scams, fake news and influence campaigns, cheating on essays, spam and harassment. The second half reviews the ways researchers try to spot machine-written text, from simple word-statistics checks to classifiers built on the same kind of model that wrote the text.
The authors also argue that detection is not enough on its own. Detectors tend to work well only on the kind of text they were trained on, they can be fooled by small edits, and they can wrongly flag some groups of people more often than others. The paper ends with a list of open problems rather than a new detector.
TL;DR
- A survey, not a method: it has no new experiments and no code.
- It maps threat models for machine-generated text (who abuses it, how, and what defence applies) §3.
- Its detection review covers feature-based methods, zero-shot use of generators, fine-tuned RoBERTa detectors, and human-aided tools §4.
- Its main open problems are class imbalance, unseen generators, adversarial robustness, explainability and fairness §5.
Problem
Language models can produce fluent text cheaply, and that text can be used to deceive people or to evade platform defences §1.1. The authors say the only earlier general survey of detection covered Transformer models released up to its time, and that no survey had focused on the risks of such text §1.2. This paper sets out to cover both gaps §1.2.
Method
The paper is a literature review. Its two methods are:
- Threat modelling. It follows Shostack's four questions: what is being protected, what can go wrong, what to do about it, and whether the analysis is good enough §3.1. It treats society as the system under attack, not one IT system, and names the attacker, their capability and their goal for each threat §3.1. The threat families are facilitating malware and social engineering §3.2, online influence campaigns §3.3, exploiting AI authorship §3.4 and spam and harassment §3.5. A taxonomy figure summarises them fig. 2.
- Detection review. Detection is framed as binary classification of
machine text against human text §4. Methods are grouped as follows.
- Feature-based methods feed statistical or linguistic features into SVM, random forest or neural classifiers §4.1. The feature families are frequency statistics, including Zipf's law eq. 2 §4.1.1; fluency and readability scores §4.1.2; features from auxiliary models such as part-of-speech tags and coreference §4.1.3; and basic text statistics §4.1.5.
- Zero-shot use of a generator classifies text with the generator's own representation, appending a classification token to the sequence and training a linear layer on it §4.2.1.
- Fine-tuning trains a bidirectional model, usually RoBERTa, to separate generator output from human text. This is described as the state of the art on the GPT-2 output dataset §4.2.2.
- Domain studies cover technical text, social media, chatbots, reviews and hybrid human-machine text §4.3.
- Human-aided methods include the GLTR tool and studies of how well people detect machine text §4.4.
- Evaluation trends and prompt injection are covered in §4.5 and §4.6.
The fine-tuning approach, as the survey describes it, reduces to the pseudocode below. The survey gives no training hyperparameters for it, so the steps are a summary, not a recipe.
# Fine-tuned neural detector [§4.2.2]
# Input: labelled texts (text, is_machine) from several sampling methods
# Output: a binary classifier for machine vs. human text
def train_detector(texts, labels):
# Start from a pre-trained bidirectional model [§4.2.2]
encoder = load_pretrained_bidirectional_model()
# Mix output from several sampling methods so the detector
# generalises to samplers not seen in training [§4.2.2]
for text, label in shuffled(texts, labels):
features = encoder(text) # (d,) pooled representation
score = linear_head(features) # scalar logit
loss = binary_cross_entropy(score, label)
update(encoder, linear_head, loss)
return encoder, linear_headHyperparameters
This survey runs no experiments, so it sets no training hyperparameters. The table lists the generation and model settings that the survey reports for the datasets and models it discusses. They are the values cited in the paper, not settings it recommends.
| Name | Value | Where | Notes |
|---|---|---|---|
| GPT-2 output dataset: model sizes | 117M, 345M, 762M, 1542M parameters | §4.5 | |
| GPT-2 output dataset: sampling | top-k with k = 40; pure sampling at T = 1 | §4.5 | |
| GPT-2 output dataset: Amazon reviews | 1542M model, k = 40 and nucleus sampling | §4.5 | |
| GPT-3 samples | 175B parameters; top-p with p = 0.85 | §4.5 | |
| Grover samples | top-p with p = 0.96 | §4.5 | Grover is fine-tuned on news |
| Evaluation sequence length | 2048 tokens (most common datasets) | §4.5 | |
| Pre-trained RoBERTa detectors | RoBERTa-base (123M), RoBERTa-large (354M) | §4.2.2 | Released detector checkpoints |
| Generation parameters (general) | sampling temperature T in (0, ∞) | §2.3.3 eq. 1 | Survey gives no default |
| Detection training data | not stated | Survey lists no detector training setup beyond the above |
The autoregressive factorisation the survey uses eq. 1 is:
p(x) = \prod_{i=1}^{m} p(s_m \mid s_1, \dots, s_{m-1}) eq. 1 §2.3.3
The Zipf relation used for frequency features eq. 2 is:
f \approx \frac{1/k^{s}}{\sum_{n=1}^{N} 1/n^{s}}, \quad s \ge 1 eq. 2 §4.1.1
Results
Author-reported. This is a survey, so it has no results of its own. It collates results from cited works. Setup and baseline are given where the survey gives them §4.4.2 tab. 3.
| Setting | Metric | Baseline | Reported value | Source |
|---|---|---|---|---|
| Untrained evaluators, GPT-3 text | detection accuracy | chance | at chance | §4.4.2, citing Clark et al. |
| Same evaluators after limited training | detection accuracy | untrained | 55% | §4.4.2, citing Clark et al. |
| Student group, longest excerpts | detection accuracy | automatic classifiers | above 70%, but below the automatic classifiers in every condition | §4.4.2, citing Ippolito et al. |
| Detection of GPT-2 samples | state of the art | - | fine-tuned bidirectional models; no numbers given | §4.2.2 §4.7 |
| Cross-domain adaptation of RoBERTa detector | adaptation after a few hundred expert-labelled samples | no adaptation | described as a large improvement; no numbers given | §4.2.2, citing Rodriguez et al. |
The survey's summary table (Table 3) lists which methods were evaluated against GPT-2, GPT-3, Grover and other datasets. It gives no metric values tab. 3.
Paper vs code
No official code. No code link appears in the paper source, and a GitHub repository search for the title and the method names returned no repository belonging to the authors. The survey has no implementation.
Pitfalls
- No new evidence. Every number in the Results table is a cited figure from another paper. Mixing settings from different rows is not meaningful.
- Detection accuracy depends on the adversary. The survey notes that a detector can fail on text from a sampler or model it did not see in training §4.1, §4.2.1, and that a feature detector trained on one sampling method can lose accuracy on another §4.1. It does not give a transfer table.
- Zero-shot is weak under fine-tuning. The zero-shot approach can underperform a TF-IDF baseline when the generator was fine-tuned on another domain §4.2.1.
- Human detection is poor. Untrained evaluators were at chance on GPT-3 text §4.4.2. Do not design a review step that depends on humans catching machine text without training and measurement.
- Adversarial attacks trade quality for evasion. Word-level and character-level attacks can degrade meaning and fluency, which may make the attack ineffective §5.3. The survey reports this from prior work; it does not measure it itself.
- Class imbalance is largely unstudied. The survey says little work has addressed detection when machine text is a small minority class §5.1.
- Some groups may be flagged more often. Writers who are non-native speakers, or who use translation tools, may be flagged more often §5.4.
- Prompt injection has no defence. The survey describes no working defence against prompt injection §4.6.
- Table numbers are inferred. This card numbers tables by caption order in the TeX source: the detection summary is tab. 3 and the prompt-injection example is tab. 4. Confirm these against the compiled PDF before citing.
Lineage
- Builds on: Jawahar et al. 2020, the earlier general survey of detection that this paper says it extends §1.2.
- Compared against: the feature-based detection work of Nguyen-Son et al., Fröhling and Zubiaga, and Crothers et al. §4.1, which the survey says prior surveys omitted §1.2.
- Superseded by: not stated.
Source and license
Adapted from “Machine Generated Text: A Comprehensive Survey of Threat Models and Detection Methods” by Evan Crothers, Nathalie Japkowicz, Herna Viktor (arXiv:2210.07321), used under CC BY 4.0. Changes: condensed and restructured for implementation, with tables, equations and algorithms taken from the paper and its code, each cited to its source. Not affiliated with or endorsed by the authors.