TL;DR
Retrieval-Augmented Generation (RAG) systems are highly susceptible to "stance poisoning"—a subtle attack where an adversary injects factually correct but one-sided documents to bias a model's output. This paper introduces a Stance-Balancing Middleware that uses a local, lightweight classifier to enforce a balanced "2 pro + 2 con + 1 neutral" evidence diet, effectively neutralizing bias without the cost of additional LLM calls.
What Problem Does This Paper Address?
While RAG is widely used to ground Large Language Models (LLMs) in factual data, it creates a new vulnerability: the model’s "stance" on controversial issues is heavily dictated by the distribution of retrieved materials.
Most research on knowledge poisoning focuses on injecting factual errors. However, this paper tackles a more insidious threat: stance poisoning. In this scenario, an attacker injects documents that are 100% truthful but represent only one side of a debate. Because the individual claims are verifiable, standard fact-checking defenses fail. The authors demonstrate that even a small "poisoning share" (around 18.9%) can monotonically shift the responses of state-of-the-art models from vendors like Anthropic, Google, and Meta toward the attacker's preferred direction.
Methods
The authors propose a Stance-Balancing Middleware positioned between the retriever and the generator. The system operates in three stages:
- Stance Detection: A local, task-specific classifier (fine-tuned from
roberta-large-mnli) labels retrieved documents as supportive, opposing, or neutral relative to the query. This runs locally to avoid expensive API calls. - Fixed-Quota Selection (2+2+1): Instead of simply passing the top-5 most relevant documents, the middleware re-ranks the top-20 (or up to top-50) candidates to select exactly 2 pro, 2 con, and 1 neutral document.
- Debiasing Prompt: A lightweight instruction is appended to the generator's prompt, explicitly telling the model to weigh evidence from both sides equally and reflect disagreement if the issue is genuinely contested.
Datasets
- Controversial Questions: A new evaluation set of 210 questions across 42 topics (e.g., public policy, technology ethics) where no single "correct" answer exists.
- Knowledge Base: A subset of the Natural Questions corpus (51,898 documents).
- Poisoning Corpus: 588 injected documents (294 pro, 294 con) and 420 neutral Wikipedia documents.
- Human Validation: Two human annotators verified 252 of the injected documents to ensure they contained verifiable claims and a clear one-sided stance.
Key Insights and Ideas
- Truth is not Neutrality: The most significant "aha" moment is that factuality and bias are orthogonal. A RAG system can be perfectly "faithful" to its sources while still being a vehicle for propaganda if those sources are curated by an attacker.
- Diversity $\neq$ Balance: The authors compared their method against Maximal Marginal Relevance (MMR), a standard technique for increasing content diversity. They found that while MMR reduces redundancy, it doesn't guarantee stance balance. In fact, MMR sometimes yielded greater stance deviation than the proposed balancing method.
- Local Models are Sufficient: You don't need a massive LLM to detect stance. A 355M-parameter RoBERTa model achieved a macro-F1 of 0.889, proving that stance detection can be a low-latency, "edge" component of the RAG pipeline.
- Zero-Call Defense: By performing detection and selection locally, the middleware adds zero cost in terms of LLM API tokens, making it a practical choice for production systems.
Key Results
- Attack Success: Without defense, all four tested models (Claude-3-Opus, DeepSeek-V4, Gemma-4-31B, Llama-4-Maverick) exhibited significant stance shifts aligned with the poisoning direction.
- Bias Mitigation: The complete middleware reduced the magnitude of stance deviation by 0.106 to 0.350 across various settings. In many cases, it brought the aggregate stance score back to near-zero (neutrality).
- Efficiency: On a single GPU, stance detection for 20 candidate documents took only ~89ms, which is roughly 1.5% of the median time it takes for an LLM to generate a response.
- No Quality Trade-off: When tested on "clean" (unpoisoned) data, the middleware did not harm response quality. In fact, it slightly improved relevance and argument coverage by forcing the model to look at a broader range of perspectives.
Limitations and Future Work
- Language and Scope: The study was limited to English and one specific retriever (BGE). Future work is needed to see how these results generalize across languages and different retrieval architectures.
- Evidence Availability: The "2+2+1" quota assumes that at least one document of each stance exists within the top-50 search results. In highly skewed or niche topics, the middleware might fail to find the "missing side."
- Nuance Beyond Pro/Con: Many controversial issues are multi-faceted rather than binary. Expanding the stance detection to handle more complex rhetorical structures is a suggested next step.
- Target-Aware Detection: The authors noted some "pro-con confusions" in the classifier, particularly when a document supports a position by attacking the opposite side. Improving target-aware recognition is a key area for future research.
Summary updated