The Other Side of the Coin: Exploring Fairness in Retrieval-Augmented Generation

Zheng Zhang, Ning Li, Qi Liu, Rui Li, Weibo Gao, Qingyang Mao, Zhenya Huang, Baosheng Yu, Dacheng Tao

TL;DR

While Retrieval-Augmented Generation (RAG) is a go-to solution for reducing hallucinations in Large Language Models (LLMs), this paper reveals it is a double-edged sword for fairness. The researchers find that while large-scale models (70B+) handle RAG well, smaller models (<8B) often become significantly more biased when exposed to retrieved documents; to combat this, they propose FairFT (a fairness-aligned retriever) and FairFilter (a two-step document filtering prompt) to restore balance without sacrificing accuracy.

What Problem Does This Paper Address?

RAG has become the industry standard for grounding LLMs in factual, up-to-date information by fetching relevant documents from external sources. However, most research focuses on utility (is the answer correct?) and efficiency (is it fast?).

The authors identify a critical gap: Fairness. External knowledge sources like the open web are rife with human biases and stereotypes. If a retriever pulls a biased document, does the LLM have the "critical thinking" capacity to reject that bias, or will it simply parrot the stereotype because it was told the document is "relevant"? This is particularly concerning as the industry moves toward deploying small, efficient models on edge devices.

Methods

The authors systematically investigated how LLM scale, retriever type, and data sources affect fairness. To mitigate the issues they found, they developed two novel frameworks:

  1. FairFT (Fairness Fine-Tuning): This is an alignment-based approach. Instead of just training a retriever to find "relevant" text, FairFT aligns the retriever with the LLM’s internal sense of fairness. They use the LLM to score retrieved documents based on how much they contribute to a fair output, then fine-tune the retriever (using KL divergence) to prioritize documents that facilitate unbiased responses.
  2. FairFilter: This is a "plug-and-play" inference-time solution that requires no training. It uses a two-step prompting strategy:
  3. Fairness Prompting: The LLM evaluates retrieved documents to identify and discard biased or harmful content.
  4. Utility Prompting: A secondary check ensures the remaining "fair" documents are actually relevant to the user's query, mitigating the typical "fairness-utility trade-off."

Datasets

The study utilized several key benchmarks to measure the tension between accuracy and bias:

  • CrowS-Pairs: Used for fairness evaluation, covering nine bias types (race, gender, age, etc.). The metric used was "agreement on stereotypes" (lower is better).
  • CRAG (Comprehensive RAG Benchmark): A Meta-released benchmark with 4,409 QA pairs across five domains to measure utility/accuracy.
  • StereoSet: Used specifically as the training signal for the FairFT retriever alignment.
  • Retrieval Sources: The authors tested their methods against both Wikipedia (structured/high-quality) and WebPage (real-world, noisier data from the Brave Search API).

Key Insights and Ideas

  • The 8B Parameter Threshold: The most striking finding is that model scale is the primary determinant of RAG fairness. Models smaller than 8B (like Llama 3.2-1B or Mistral-7B) often see their fairness worsen when RAG is introduced. They lack the "judgment" to override biased retrieved context. Conversely, 70B+ models actually become fairer with RAG.
  • Retrievers are "Fairness Neutral": Whether you use a sparse retriever (BM25) or a dense one (Contriever) has very little impact on fairness compared to the generative model's capacity.
  • The Parrotting Effect: Small models tend to over-rely on retrieved content. If a document says "Group X is always Y," a 1B model is highly likely to agree, whereas a 70B model recognizes the statement as a harmful stereotype and rejects it.
  • Scalability of Alignment: A retriever fine-tuned on a tiny 1B model (FairFT-1B) can actually improve the fairness of much larger models, suggesting that "fairness signals" are transferable across scales.

Key Results

  • Fairness Gains: On Llama 3.2-1B using WebPage data, standard RAG resulted in an "overall unfairness" score of 0.407. Applying FairFilter-BM25 slashed that score to 0.056—a massive improvement in social neutrality.
  • Utility Preservation: While fairness interventions often hurt accuracy, FairFilter-BM25 actually improved utility in some cases (e.g., Llama 3-8b utility rose from 0.246 to 0.247) because it filtered out noisy, irrelevant, or redundant documents.
  • Large Model Stability: For Llama 3-70B, the proposed FairFT-1B method achieved the best fairness score (0.044) while maintaining high utility, proving these methods aren't just for "fixing" small models but can optimize large ones too.

Limitations and Future Work

The authors acknowledge that their study primarily focuses on standard RAG architectures. They suggest that future research should explore:

  • Complex RAG Flows: Investigating fairness in Iterative, Recursive, or Adaptive Retrieval systems.
  • Broader Metrics: Moving beyond "agreement on stereotypes" to more nuanced, multi-dimensional fairness evaluations.
  • Retriever Diversity: Testing a wider array of dense retrievers beyond Contriever to see if specific embedding architectures are more prone to bias.

Summary updated

BibTeX
@article{zhang2026other,
  author = {Zheng Zhang and Ning Li and Qi Liu and Rui Li and Weibo Gao and Qingyang Mao and Zhenya Huang and Baosheng Yu and Dacheng Tao},
  title = {{The Other Side of the Coin: Exploring Fairness in Retrieval-Augmented Generation}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2026},
  doi = {10.1109/tkde.2026.3704753},
}
Figure