arXiv:2610.34683cs.AIOct 2026

Manuscript Offprint

arXiv:2610.34683

Topic-Level Fairness in Retrieval-Augmented Generation

Jaeyoung Park, Hantian Zhang, Kexin Rong, Steven Euijong Whang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Group fairness in retrieval-augmented generation (RAG) systems is typically evaluated using metrics aggregated across queries. However, such metrics can conceal topic-level disparities: a system may favor women on questions about human rights and men on questions about actors and filmmakers, appearing nearly neutral overall even though neither topic is fair. We therefore study topic-level fairness, which requires group fairness to hold within each topic rather than only in aggregate. To reduce the topic-level disparity, we adapt the reranker separately for each topic with a Bradley–Terry objective under direct supervision from the generated output: preference pairs built from the generator's own output carry the direction that topic requires. With preference pairs built from RoMQA alone, the adaptation reduces the mean absolute per-topic disparity by 51% on RoMQA and by 40% on TREC Fair Ranking while retaining accuracy. No baseline reaches the reduction, even when modified to treat each topic separately rather than apply one correction to every topic. Neither does our method with one reranker for all topics, which follows the direction that most topics require.

1 Introduction

Retrieval-augmented generation (RAG) has become a standard approach for knowledge-intensive NLP and is increasingly deployed in systems that answer people's questions with external knowledge. A retrieval system, however, can reproduce the societal stereotypes in its corpus, even for queries that carry no gender connotation of their own, and the retrieved results can reinforce those stereotypes (Rekabsaz et al., 2021). Prior work has measured bias in RAG systems (Wu et al., 2025; Hu et al., 2025; Zhang et al., 2026), reporting group fairness metrics aggregated across queries.

Consider a RAG system answering questions on different topics. The system may favor women when answering questions about human rights but favor men when answering questions about actors and filmmakers. A metric aggregated across queries lets the opposite disparities cancel and can report a nearly neutral system even though disparities persist within individual topics (Figure 1, left). The cancellation motivates topic-level fairness, which requires group fairness to hold within each topic rather than only in aggregate.

Existing debiasing methods for RAG typically apply a common debiasing strategy across queries, often debiasing the retrieved results without direct supervision from the generated output (Zhao et al., 2026; Kim et al., 2025). These methods face two limitations. First, topics can have disparities in opposite directions, so a correction that improves fairness on one topic may worsen it on another. Second, fairness in the retrieved results does not necessarily translate to fairness in the generated output, which a person receives (Hu et al., 2025).

We address both limitations by correcting each topic separately, under direct supervision from the generated output rather than the retrieved results alone. Separate corrections move each topic in the direction that topic requires, unaffected by the opposite corrections of other topics (Figure 1, center). The corrections of all topics share one pretrained reranker through LoRA (Hu et al., 2022). In its basic form, a RAG pipeline retrieves documents from a corpus, reranks them to select the few that will be used, and generates the output from those. Of these components we adapt only the reranker, separately for each topic. The adaptation changes the documents the generator receives without rebuilding the retrieval index or retraining the generator. Appendix A explains why we adapt the reranker rather than the retriever.

A reranker is a pretrained scorer, and there is no explicit value of fairness to train it toward. We

∗^{*}Corresponding author

RAG system before adaptation

Figure

Per-topic correction

After adaptation

per-topic disparity GDtGD_{t}

avg(GD) = +0.0042, avg|GD| = 0.0070

Figure 1: Overview. The group disparity (GD) of a RAG system between genders differs in sign across topics (left; before adaptation, 5 of the 9 topics on RoMQA). Opposing topics cancel in a signed mean: avg(GD) is -0.0004, nearly neutral, while avg |GD|, the mean absolute per-topic disparity, is 0.0175. Adapting the reranker separately for each topic in the direction that topic requires, on preference pairs built from the generator's own output (center), moves every shown topic closer to zero and lowers avg |GD| to 0.0070 (right).

therefore formulate the adaptation of the reranker as preference learning. The reward model of RLHF (Ouyang et al., 2022) is trained the same way: on human preferences between two responses, with a Bradley–Terry objective (Bradley and Terry, 1952) that maximizes the probability that the preferred response is chosen over the non-preferred one. We adopt the objective, but build preference pairs of documents for each query from the generator’s own output rather than from human labels (Section 4).

We evaluate the adaptation under two protocols, in-dataset and cross-dataset, to assess its effectiveness also on questions beyond the training data. The reranker is adapted on RoMQA (Zhong et al., 2023), a multi-answer question answering dataset, and evaluated in-dataset on RoMQA itself and cross-dataset on TREC Fair Ranking (Ekstrand et al., 2022), an independently constructed fair ranking benchmark on which Wu et al. (2025) measure the fairness of RAG. The adaptation reduces the mean absolute per-topic disparity more than any retrieval-side or generation-side debiasing baseline, by 51% in-dataset and by 40% cross-dataset, while retaining accuracy (Sections 5.2.1 and 5.2.2).

To summarize, we make three contributions. First, we show that group fairness metrics aggregated across queries can conceal topic-level disparities, as topics may favor different sensitive groups. Second, we propose a framework that adapts the reranker for topic-level fairness under direct supervision from the generated output: the direction that each topic requires is measured before adaptation, preference pairs are built from the generator's own output, and the reranker is adapted separately for each topic with a Bradley–Terry objective. Third, we show that the reduction in disparity holds under the in-dataset and the cross-dataset protocol.

References (25)