arXiv:2512.01335cs.CRcs.AI2025-12KDD被引 5

一个表情符号能让RAG系统完全跑偏,研究揭示其致命弱点

EmoRAG: Evaluating RAG Robustness to Symbolic Perturbations

  • 用微小表情符注入查询,触发严重误导性检索
  • 单个表情符使检索错误率接近100%,位置影响更大
  • 大模型反而更脆弱,现有防御基本无效

检索增强生成(RAG)系统日益成为稳健AI的核心,通过引入外部知识提升大语言模型(LLM)的可信度。然而,本研究揭示了一个被忽视的关键漏洞:对细微符号扰动极度敏感,尤其在近乎不可察觉的表情符如"(@_@)"注入后,会导致检索结果发生灾难性偏差,称为EmoRAG。实验表明,在查询中插入一个表情符,几乎100%会触发包含相同表情符的语义无关文本的检索。我们在通用问答与代码领域,使用多种前沿检索器与生成器进行广泛测试,发现三个关键结论:(I)单表情符灾难:极小的表情符注入即可引发最大破坏,单个表情符几乎100%主导输出;(II)位置敏感性:将表情符置于查询开头可造成严重扰动,所有数据集上F1分数超过0.92;(III)参数规模脆弱性:反直觉地,参数量更大的模型对干扰更为敏感。我们深入分析了这些现象的内在机制。进一步指出当前RAG系统鲁棒性假设存在重大缺陷,设想攻击者可利用此漏洞操纵系统。评估标准防御措施后发现其对EmoRAG无效。为此,我们提出针对性防御策略,并分析其优劣。最后,展望未来构建更具鲁棒性的RAG系统的方向。

原文摘要 · Abstract (English)

Retrieval-Augmented Generation (RAG) systems are increasingly central to robust AI, enhancing large language model (LLM) faithfulness by incorporating external knowledge. However, our study unveils a critical, overlooked vulnerability: their profound susceptibility to subtle symbolic perturbations, particularly through near-imperceptible emoticon tokens such as "(@_@)" that can catastrophically mislead retrieval, termed EmoRAG. We demonstrate that injecting a single emoticon into a query makes it nearly 100% likely to retrieve semantically unrelated texts that contain a matching emoticon. Our extensive experiment across general question-answering and code domains, using a range of state-of-the-art retrievers and generators, reveals three key findings: (I) Single-Emoticon Disaster: Minimal emoticon injections cause maximal disruptions, with a single emoticon almost 100% dominating RAG output. (II) Positional Sensitivity: Placing an emoticon at the beginning of a query can cause severe perturbation, with F1-Scores exceeding 0.92 across all datasets. (III) Parameter-Scale Vulnerability: Counterintuitively, models with larger parameters exhibit greater vulnerability to the interference. We provide an in-depth analysis to uncover the underlying mechanisms of these phenomena. Furthermore, we raise a critical concern regarding the robustness assumption of current RAG systems, envisioning a threat scenario where an adversary exploits this vulnerability to manipulate the RAG system. We evaluate standard defenses and find them insufficient against EmoRAG. To address this, we propose targeted defenses, analyzing their strengths and limitations in mitigating emoticon-based perturbations. Finally, we outline future directions for building robust RAG systems.

RAG安全对抗攻击表情符扰动模型脆弱性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。