Token-level precise attacks against RAG: searching for the best substitute text to mislead generationToken-Level Precise Attack on RAG: Searching for the Best Alternatives to Mislead Generation
The researchers propose TPARAG, a token-level precise attack framework against RAG systems that covers both white-box and black-box scenarios. The method uses a lightweight white-box LLM as the attacker, generating and iteratively optimizing malicious passages at the token level so that the malicious content can both be recalled by the retriever and mislead the model's output during generation. The paper notes that existing attack methods either rely heavily on access to the retriever or fail to consider both the retrieval and generation stages simultaneously, limiting their effectiveness in black-box scenarios. In experiments on open-domain question answering datasets, the authors claim that TPARAG consistently outperforms prior methods in both the retrieval stage and end-to-end attack effectiveness. The paper argues that these results reveal key vulnerabilities in the RAG pipeline and provide new ideas for improving its robustness.