RADAR Paraphraser (T5-large)

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.

Training

Usage

from 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))
Downloads last month
229
Safetensors
Model size
0.3B params
Tensor type
F32
·
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for Shushant/ADAL_Paraphrasher