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
Day 10: 230 Sessions of Hustle and It Comes Down to One Person Reading a Document
Dev.to

5 Dangerous Lies Behind Viral AI Coding Demos That Break in Production
Dev.to
Two bots, one confused server: what Nimbus revealed about AI agent identity
Dev.to
How to Create a Month of Content in One Day Using AI (Step-by-Step System)
Dev.to

OpenTelemetry just standardized LLM tracing. Here's what it actually looks like in code.
Dev.to