← Lab /AI/ML

Adversarial training raises few-shot machine-generated text detection F1 by ~5 points and cuts attack success

The REACT framework improves few-shot detection performance and robustness against adversarial humanization attacks

AI/ML arXiv 4 May 2026 Method Simulation evidence Threat model

Published as “Fight Poison with Poison: Enhancing Robustness in Few-shot Machine-Generated Text Detection with Adversarial Training”

Why it matters

The method enables more reliable deployment of MGT detectors when only a few labeled examples are available, improving defenses against humanized text attacks.

Summary

REACT reduces the average attack success rate to 10.04% and raises detection F1 to 93.72, outperforming eight SOTA detectors by up to 5 points. It couples a retrieval-augmented generation attacker with a contrastive adversarial-training objective to stabilize few-shot learning and improve robustness. Experiments on four public benchmarks, four shot sizes, and three random seeds show consistent gains in both clean accuracy and robustness. The paper reports these results as averages with standard deviations. No multilingual or fine-grained (sentence-level) evaluation is provided.

What they found 1

  1. REACT achieves an average detection F1 score of 93.72 and reduces average ASR by 3.66 percentage points.

    “REACT achieves an average detection F1 score of 93.72, outperforming SOTA detectors by 4.95 points. Moreover, REACT attains an average attack success rate (ASR) of 10.04% under 4 attacks, reducing ASR by 3.66% compared to SOTA baselines.”

Caveats 3

  • First, while REACT performs well on English benchmarks, extending it to multilingual settings remains challenging.
  • Second, although adversarial training yields clear improvements, it also increases training time and incurs additional computational and resource overhead during training.
  • Third, the detector in our work operates at the document level and therefore cannot localize machine-generated content within a human-AI co-authored text.

What’s new here 4

  • Uses retrieval-augmented generation (RAG) to craft highly human-like adversarial examples for training.
  • Introduces a pairwise boundary contrastive loss to stabilize representation learning in few-shot settings.
  • Implements a co-evolutionary training loop where attacker and detector are alternately updated under a black-box output-only constraint.
  • Achieves the best reported few-shot detection accuracy and lowest attack success rates across four datasets.

Threat model stated by the source

AdversaryAttacker who rewrites machine-generated text to appear human-like
CapabilityCan query the target detector only for top-1 labels (output-only black-box), may use any publicly available LLMs and previously generated rewrites, one query per rewrite
AssumesDetector weights, architecture, and training data are unknown; Attacker has access only to the few-shot training set provided to the defender