← Latest papers
🤖 AI

Epistemic Bias Injection: Biasing LLMs via Selective Context Retrieval

This paper introduces Epistemic Bias Injection (EBI), a subtle attack where adversaries inject factually correct but viewpoint-skewed content into RAG databases to manipulate LLM outputs, and proposes a geometric metric to quantify this bias along with a lightweight defense called BiasDef to mitigate the threat.

Original authors: Hao Wu, Prateek Saxena

Published 2026-03-27
📖 4 min read☕ Coffee break read

Original authors: Hao Wu, Prateek Saxena

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

🍽️ The Scenario: The "All-You-Can-Eat" Library

Imagine you have a super-smart robot chef (the LLM) who loves to cook delicious answers for you. But this chef doesn't know everything off the top of their head. Instead, before cooking, they run to a massive, chaotic library (the RAG Database) to grab a few books or articles that seem relevant to your question.

Usually, this is great. But what if someone sneaks into that library and replaces the books on the shelves with fake books that look exactly like real ones?

🎭 The New Threat: "The Truthful Propagandist"

Previous hackers were like clumsy vandals. They would write books with obvious lies, typos, or screaming headlines. The robot chef (or a fact-checker) could easily spot these and throw them away.

This paper introduces a new, sneakier villain: The Epistemic Bias Injector (EBI).

Imagine a hacker who writes 100 books about a controversial topic (like "Is coffee good for you?").

  • The Trick: Every single fact in these 100 books is 100% true.
  • The Twist: They only write about the benefits of coffee. They never mention the downsides. They use the same tone, style, and vocabulary as the real books.
  • The Result: When the robot chef runs to the library, the "benefits of coffee" books are so well-written and relevant that the librarian (the Retriever) picks only those 100 books. The books about "coffee dangers" are left on the shelf.
  • The Outcome: The robot chef reads all the "benefits" books and confidently tells you, "Coffee is the greatest thing ever!" They aren't lying; they are just blindly biased because the library was rigged.

This is Epistemic Bias Injection: Poisoning the well with truthful but one-sided information to steer the robot's opinion without ever telling a lie.

📏 The Ruler: Measuring "Slant"

How do you catch a liar who isn't lying? You need a new ruler.

The authors invented a mathematical tool called the Polarization Score (PS).

  • The Analogy: Imagine a giant compass in a room.
    • One side of the room is "Pro-Coffee."
    • The other side is "Anti-Coffee."
    • Neutral books sit right in the middle.
  • How it works: The authors take a bunch of books and use math to draw a line (an axis) that separates the "Pro" from the "Anti." Then, they measure exactly where every new book falls on that line.
  • If a book is slightly pro-coffee, it gets a score of +1. If it's super pro-coffee, it gets +10. If it's neutral, it gets 0.
  • The Discovery: They found that even though the hacker's books looked normal, they all clustered tightly on the "Pro" side of the compass, while the real library had a mix of both sides.

🛡️ The Shield: "BiasDef"

The paper also builds a defense called BiasDef. Think of it as a smart librarian who doesn't just look at the title of the book (relevance), but also checks the "slant" of the content.

  1. The Old Librarian: "This book is about coffee, so I'll put it on the list." (Falls for the trap).
  2. The BiasDef Librarian: "Wait. I see 50 books about coffee here. 49 of them are all on the 'Pro' side of the compass, and they all look suspiciously similar to each other. The 'Anti' side is empty. This looks like a rigged library."
  3. The Fix: The new librarian uses a statistical trick (like a magnet) to pull out the books that are too clustered on one side, while keeping the neutral or balanced ones.

🧪 The Results

The authors tested this on real AI models (like Llama-3 and GPT-4) using real questions.

  • The Attack: They successfully made the AI give one-sided answers by injecting these "truthful but biased" books. The AI didn't even realize it was being tricked.
  • The Defense: When they used BiasDef, the AI stopped giving one-sided answers. It successfully filtered out the "rigged" books and found a balanced view, reducing the bias by 6 times compared to other methods.

💡 The Big Takeaway

This paper warns us that truth isn't enough. Just because an AI is reading "facts" doesn't mean it's giving you the whole picture. If the source of those facts is manipulated to show only one side of the story, the AI will become a biased echo chamber.

The solution isn't just checking for lies; it's checking for balance. We need tools that can measure the "slant" of information and ensure the AI sees the whole map, not just the part the hacker wants it to see.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →