RADAR: Robust AI-Text Detection via Adversarial Learning
Paper • 2307.03838 • Published • 1
Adversarially trained paraphraser (Gσ) from the RADAR framework (Hu et al., NeurIPS 2023). Trained via Clipped PPO with Entropy Penalty (cppo-ep) to generate paraphrases that evade the companion RADAR detector.
t5-largefrom transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained("Shushant/ADAL_Paraphrasher")
model = T5ForConditionalGeneration.from_pretrained("Shushant/ADAL_Paraphrasher")
text = "Paraphrase: " + "Your AI-generated text here."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
outputs = model.generate(**inputs, max_new_tokens=128, do_sample=True,
top_k=50, top_p=0.95)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))