paper-with-me

홈 › Papers

RTD-Guard: A Black-Box Textual Adversarial Detection Framework via Replacement Token Detection

2026-03-13 · He Zhu, Yanshu Li, Wen Liu, Haitian Yang arxiv

Textual adversarial attacks pose a serious security threat to Natural Language Processing (NLP) systems by introducing imperceptible perturbations that mislead deep learning models. While adversarial example detection offers a lightweight alternative to robust training, existing methods typically rely on prior knowledge of attacks, white-box access to the victim model, or numerous queries, which severely limits their practical deployment. This paper introduces RTD-Guard, a novel black-box framework for detecting textual adversarial examples. Our key insight is that word-substitution perturbations in adversarial attacks closely resemble the "replaced tokens" that a Replaced Token Detection (RTD) discriminator is pre-trained to identify. Leveraging this, RTD-Guard employs an off-the-shelf RTD discriminator-without fine-tuning-to localize suspicious tokens, masks them, and detects adversarial examples by observing the prediction confidence shift of the victim model before and after intervention. The entire process requires no adversarial data, model tuning, or internal model access, and uses only two black-box queries. Comprehensive experiments on multiple benchmark datasets demonstrate that RTD-Guard effectively detects adversarial texts generated by diverse state-of-the-art attack methods. It surpasses existing detection baselines across multiple metrics, offering a highly efficient, practical, and resource-light defense mechanism-particularly suited for real-world deployment in resource-constrained or privacy-sensitive environments.

📄 PDF Abstract BibTeX arXiv:2603.12582

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Sentra-Guard: A Real-Time Multilingual Defense Against Adversarial LLM Prompts

2025-10-26 · Md. Mehedi Hasan, Sk Tanzir Mehedi, Ziaur Rahman, Rafid Mostafiz 외 arxiv

This paper presents a real-time modular defense system named Sentra-Guard. The system detects and mitigates jailbreak and prompt injection attacks targeting large language models (LLMs). The framework uses a hybrid archi…

Continual Learning

Bypassing Prompt Injection and Jailbreak Detection in LLM Guardrails

2025-04-15 · William Hackett, Lewis Birch, Stefan Trawicki, Neeraj Suri 외

Large Language Models (LLMs) guardrail systems are designed to protect against prompt injection and jailbreak attacks. However, they remain vulnerable to evasion techniques. We demonstrate two approaches for bypassing LL…

VLMGuard: Defending VLMs against Malicious Prompts via Unlabeled Data

2024-10-01 · Xuefeng Du, Reshmi Ghosh, Robert Sim, Ahmed Salem 외

Vision-language models (VLMs) are essential for contextual understanding of both visual and textual information. However, their vulnerability to adversarially manipulated inputs presents significant risks, leading to com…

Behind the Refusal: Determining Guardrail Activation via Behavioral Monitoring

2026-07-02 · William Hackett, Peter Garraghan arxiv

As Large Language Models (LLMs) and agentic systems become integrated into real-world applications, ensuring their safety and security is critical. Guardrail systems that detect and block malicious instructions sent to a…

Harnessing Hyperbolic Geometry for Harmful Prompt Detection and Sanitization

2026-04-07 · Igor Maljkovic, Maria Rosaria Briglia, Iacopo Masi, Antonio Emanuele Cinà 외 arxiv

Vision-Language Models (VLMs) have become essential for tasks such as image synthesis, captioning, and retrieval by aligning textual and visual information in a shared embedding space. Yet, this flexibility also makes th…