Epistemic Bias Injection: Manipulating LLM Opinion via Selective Context Retrieval
On the map: Retrieval-augmented generation → Privacy and security of RAG
Abstract (arXiv)
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.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 34 of its 52 references that are in the map. First posted on arXiv 30 Nov 2025.
Builds on
34 of 52 references.
Closest ancestors · 6
Same direction, newest first
- 2025Bias Amplification in RAG: Poisoning Knowledge Retrieval to Steer LLMs13 Jun
- 2025Topic-FlipRAG: Topic-Orientated Adversarial Opinion Manipulation Attacks to Retrieval-Augmented Generation Models3 Feb
- 2024Towards More Robust Retrieval-Augmented Generation: Evaluating RAG Under Adversarial Poisoning Attacks21 Dec
- 2024BadRAG: Identifying Vulnerabilities in Retrieval Augmented Generation of Large Language Models3 Jun
- 2024The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)23 Feb
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models12 Feb
Other references · 28
- 2023GPT-4 Technical Reportcited by 18,396
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agentscited by 538
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 456
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Basescited by 429
- 2023Towards Expert-Level Medical Question Answering with Large Language Modelscited by 384
- 2024The Faiss librarycited by 376
16 more
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 143
- 2025Securing AI Agents with Information-Flow Controlcited by 121
- 2024Bias and Unfairness in Information Retrieval Systems: New Challenges in the LLM Eracited by 98
- 2023Machine-Made Media: Monitoring the Mobilization of Machine-Generated Articles on Misinformation and Mainstream News Websitescited by 38
- 2023Neural Retrievers are Biased Towards LLM-Generated Contentcited by 38
- 2025Real AI Agents with Fake Memories: Fatal Context Manipulation Attacks on Web3 Agentscited by 24
- 2024Backdoor Attacks on Dense Retrieval via Public and Unintentional Triggerscited by 14
- 2023Invisible Relevance Bias: Text-Image Retrieval Models Prefer AI-Generated Imagescited by 13
- 2021WikiCheck: An end-to-end open source Automatic Fact-Checking API based on Wikipediacited by 12
- 2025How Not to Detect Prompt Injections with an LLMcited by 12
- 2024SMART-RAG: Selection using Determinantal Matrices for Augmented Retrievalcited by 7
- 2024Measuring and Addressing Indexical Bias in Information Retrievalcited by 6
- 2024Exploring the Escalation of Source Bias in User, Data, and Recommender System Feedback Loopcited by 5
- 2022A Dataset for Sentence Retrieval for Open-Ended Dialoguescited by 3
- 2024Attacks against Abstractive Text Summarization Models through Lead Bias and Influence Functionscited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025ADMIT: Few-shot Knowledge Poisoning Attacks on RAG-based Fact Checking
- 2025Worse than Zero-shot? A Fact-Checking Dataset for Evaluating the Robustness of RAG Against Misleading Retrievals
- 2026Retrieval-Augmented Generation Must Move Beyond Factual Grounding to Represent Diverse Opinions
- 2026DiscourseFlip: An Oblique Discourse-Level Opinion Manipulation Attack against Black-box Retrieval-Augmented Generation
- 2025Injecting Falsehoods: Adversarial Man-in-the-Middle Attacks Undermining Factual Recall in LLMs
- 2026Architecture Matters: Comparing RAG Systems under Knowledge Base Poisoning
- 2026Cordon-MAS: Defending RAG against Knowledge Poisoning via Information-Flow Control
- 2025Your RAG is Unfair: Exposing Fairness Vulnerabilities in Retrieval-Augmented Generation via Backdoor Attacks