RTD-Guard: A Black-Box Textual Adversarial Detection Framework via Replacement Token Detection
arXiv cs.CL / 3/16/2026
📰 NewsIdeas & Deep AnalysisTools & Practical UsageModels & Research
Key Points
- RTD-Guard is a black-box framework for detecting textual adversarial examples that leverages a pre-trained Replaced Token Detection (RTD) discriminator to identify substituted tokens without fine-tuning.
- It localizes suspicious tokens, masks them, and detects adversarial examples by observing the prediction confidence shift of the victim model before and after intervention, using only two black-box queries.
- The approach requires no adversarial data, model tuning, or internal model access, making it practical for deployment in privacy-sensitive or resource-constrained environments.
- Comprehensive experiments on multiple benchmark datasets show RTD-Guard surpasses existing detection baselines across multiple metrics, demonstrating its efficiency and practicality.
Related Articles

I built an online background remover and learned a lot from launching it
Dev.to
How AI is Transforming Dynamics 365 Business Central
Dev.to
Algorithmic Gaslighting: A Formal Legal Template to Fight AI Safety Pivots That Cause Psychological Harm
Reddit r/artificial
Do I need different approaches for different types of business information errors?
Dev.to
ShieldCortex: What We Learned Protecting AI Agent Memory
Dev.to