Zero-Shot Tokenizer Transfer for Targeted Attacks on Retrieval-Augmented Generation

View at publisher
Authors: Edward French, Samyam Aryal, Aman Pratap Singh, Komal Subhash More, Joe Hammond, Mark Spanier
Cited by: 0
References: 5

Abstract

Retrieval-Augmented Generation (RAG) is widely used to improve the reliability of Large Language Models (LLMs) by grounding responses in external documents. However, RAG systems that ingest content from internet sources remain vulnerable to prompt injection attacks embedded within retrieved documents. We introduce ZBEAST, an adaptation of Beam Search-Based Adversarial Attacks (BEAST), designed to generate malicious documents specifically for RAG settings.We evaluate ZBEAST using an embedding-based heuristic built on BAAI-BGE-base-v1.5 and compare it against the state-of-the-art BEAST approach, which relies on an instruction-tuned LLM during search. ZBEAST replaces the generator’s tokenizer with that of the embedding model via Zero-Shot Tokenizer Transfer (ZeTT), enabling more effective adversarial document optimization. Our results show that ZBEAST scales reliably with beam size, while the baseline approach exhibits diminishing returns. We further demonstrate that ZBEAST-generated documents evade common filtering mechanisms used in RAG pipelines. These findings expose an underexplored vulnerability in RAG systems and suggest existing defenses may be insufficient against optimized adversarial document generation.

Fields of Study & Subjects

Adversarial Robustness in Machine Learning Topic Modeling Natural Language Processing Techniques

Publication details

Journal / source
IEEE International Conference on AI in Cybersecurity (ICAIC)
Pages
1–6
Publication date
18 February 2026
Language
EN