Iron Sharpens Iron: Defending Against Attacks in Machine-Generated Text Detection with Adversarial TrainingIron Sharpens Iron: Defending Against Attacks in Machine-Generated Text Detection with Adversarial Training
Researchers propose an adversarial training framework named GREATER to defend against perturbations and adversarial attacks targeting machine-generated text (MGT) detectors. The framework comprises an attacker side, GREATER-A, and a detector side, GREATER-D. The former identifies and perturbs key tokens in embedding space, combining greedy search and pruning to generate stealthy and destructive adversarial examples; the two update synchronously, so that the detector's defense generalizes to different attacks and attack strengths. In experiments covering 10 text perturbation strategies and 6 adversarial attacks, GREATER-D reduces the attack success rate (ASR) by 0.67% compared with SOTA defense methods, and GREATER-A is also more effective and efficient than existing attack methods. The code and dataset are open-sourced at https://github.com/Liyuuuu111/GREATER.