认知偏见注入:通过选择性上下文检索操纵LLM观点
Epistemic Bias Injection: Manipulating LLM Opinion via Selective Context Retrieval
AI总结:
研究通过检索增强生成(RAG)数据库注入事实正确但认知偏见的段落,以操纵LLM输出立场,并提出基于几何度量的攻击与防御方法BiasDef。
摘要:
当回答用户查询时,LLM通常从存储在检索增强生成(RAG)数据库中的外部源检索知识。这些数据库通常从未经审查的来源(如开放网络)填充,可能包含恶意构造的数据。本文研究了能够操纵LLM从这种RAG数据库中检索上下文的攻击。先前关于此类上下文操纵的工作主要注入虚假或有毒内容,这通常可以通过事实核查或语言分析检测到。一种更微妙的威胁,我们称之为认知偏见注入(EBI),是攻击者注入事实正确但认知偏见的段落,这些段落系统性地偏向开放性问题的一方。尽管语言连贯且真实,这种对抗性段落有效地在从RAG检索过程中排挤了其他观点,并将LLM输出推向攻击者期望的立场。作为核心贡献,我们提出了该问题的新特征化:我们给出了一种几何度量,用于量化立场极性和认知偏见。该度量可以直接在文本段落的嵌入上计算。利用它,我们构建了EBI攻击,并开发了一种轻量级原型防御方法BiasDef。我们在从公共问答数据集构建的综合基准上对它们进行了评估。结果表明:(1)所提出的攻击诱导了显著的立场极性偏移,有效规避了现有的基于检索的净化防御;(2)BiasDef显著减少了LLM答案中的对抗性检索和认知偏见。总体而言,这展示了新威胁以及在RAG增强的LLM中使用认知偏见度量进行过滤的简便性。
英文摘要:
When answering user queries, LLMs often retrieve knowledge from external sources stored in retrieval-augmented generation (RAG) databases. These are often populated from unvetted sources, e.g. the open web, and can contain maliciously crafted data. This paper studies attacks that can manipulate the context retrieved by LLMs from such RAG databases. Prior work on such context manipulation primarily injects false or toxic content, which can often be detected by fact-checking or linguistic analysis. A more subtle threat, which we call epistemic bias injection (EBI), is where adversaries inject factually correct yet epistemically biased passages that systematically favor one side of an open-ended issue. Although linguistically coherent and truthful, such adversarial passages effectively crowd out alternative viewpoints during retrieval from the RAG and push LLM outputs towards an attack-desired stance. As a core contribution, we propose a novel characterization of the problem: We give a geometric metric that quantifies stance polarity and epistemic bias. This metric can be computed directly on embeddings of text passages. Leveraging it, we construct EBI attacks and develop a lightweight prototype defense called BiasDef for them. We evaluate them both on a comprehensive benchmark constructed from public question answering datasets. Our results show that: (1) the proposed attack induces significant stance polarity shifts, effectively evading existing retrieval-based sanitization defenses, and (2) BiasDef substantially reduces adversarial retrieval and epistemic bias in LLM's answers. Overall, this demonstrates the new threat as well as the ease of employing epistemic bias metrics for filtering in RAG-enabled LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。