Topic-Level Fairness in Retrieval-Augmented Generation
Organizations: KAIST · Meta · Georgia Institute of Technology
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.
Figures & tables
| In-dataset (RoMQA) | Cross-dataset (TREC) | |||||||
| System | Accuracy | Male-fav. | Female-fav. | Accuracy | Male-fav. | Female-fav. | ||
| Unadapted | 0.0169 | 55.1 | – | – | 0.0156 | 89.9 | – | – |
| RRPO | 0.0170 | 56.1 | 1/4 | 2/5 | 0.0156 | 89.9 | 3/6 | 2/3 |
| GB | 0.0193 | 55.4 | 1/4 | 1/5 | 0.0112 | 92.1 | 4/6 | 2/3 |
| RD | 0.0162 | 54.3 | 1/4 | 4/5 | 0.0143 | 89.9 | 6/6 | 0/3 |
| SD | 0.0174 | 54.9 | 0/4 | 4/5 | 0.0166 | 89.4 | 2/6 | 1/3 |
| In-dataset (RoMQA) | ||||
| System | Accuracy | Male- fav. | Female- fav. | |
| Unadapted | 0.0169 | 55.1 | – | – |
| Ours, one reranker | 0.0175 | 55.5 | 1/4 | 5/5 |
| RD per topic | 0.0118 | 54.8 | 4/4 | 4/5 |
| SD per topic | 0.0170 | 55.0 | 0/4 | 3/5 |
| Ours | 0.0083 | 55.2 | 3/4 | 5/5 |
| In-dataset (RoMQA) | ||||
|---|---|---|---|---|
| Variant | Accuracy | Male- fav. | Female- fav. | |
| Unadapted | 0.0169 | 55.1 | – | – |
| Ours | 0.0083 | 55.2 | 3/4 | 5/5 |
| one direction | 0.0176 | 54.8 | 0/4 | 5/5 |
| without anchor | 0.0142 | 55.0 | 0/4 | 4/5 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Train | Validation | Test | |
| RoMQA | |||
| Questions | 961 | 961 | 961 |
| Male candidates | 17,392 | 17,329 | 17,254 |
| Female candidates | 11,858 | 11,646 | 11,429 |
| Queries | 148,586 | 146,230 | 143,738 |
| TREC Fair Ranking | |||
| Topic | Female | Male |
|---|---|---|
| Actors and Filmmakers | 128 | 373 |
| Computer science | 78 | 423 |
| Former countries | 80 | 421 |
| Human rights | 154 | 347 |
| Literature | 117 | 384 |
| Medicine | 69 | 432 |
| Topic | Questions | Female | Male |
|---|---|---|---|
| Actors and Filmmakers | 216 | 8,847 | 11,643 |
| Computer science | 50 | 1,879 | 2,829 |
| Former countries | 104 | 3,001 | 5,468 |
| Human rights | 15 | 502 | 778 |
| Literature | 209 | 7,604 | 11,533 |
| Medicine | 26 | 917 | 1,467 |
| Recall@5 | ||||
| Topic | Male | Female | Male Female | |
| RoMQA | ||||
| Actors and Filmmakers | 91.2 | 92.9 | ||
| Computer science | 93.1 | 95.3 | ||
| Former countries | 94.1 | 94.8 | ||
| Human rights | 95.7 | 97.9 | ||
| Topic | Unadapted | RRPO | GB | RD | SD | Ours |
|---|---|---|---|---|---|---|
| In-dataset (RoMQA) | ||||||
| Actors and Filmmakers | 0.0211 | 0.0213 | 0.0270 | 0.0322 | 0.0219 | 0.0165 |
| Computer science | 0.0072 | 0.0073 | 0.0108 | 0.0077 | 0.0061 | 0.0043 |
| Former countries | 0.0121 | 0.0119 | 0.0074 | 0.0047 | 0.0106 | 0.0041 |
| Human rights | 0.0356 | 0.0413 | 0.0395 | 0.0417 | 0.0395 | 0.0104 |
| Literature | 0.0024 | 0.0046 | 0.0038 | 0.0122 | 0.0033 | 0.0010 |
| Unadapted | Ours | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Topic | Both | Male | Female | Neither | Other | Both | Male | Female | Neither | Other | Pairs per query |
| Actors and Filmmakers | 51.4 | 12.5 | 10.4 | 21.3 | 4.4 | 51.9 | 12.5 | 10.9 | 20.7 | 4.0 | 0.848 |
| Computer science | 62.9 | 8.4 | 9.2 | 17.5 | 2.0 | 62.6 | 9.0 | 8.6 | 17.6 | 2.1 | 1.097 |
| Former countries | 43.3 | 10.1 | 11.3 | 30.7 | 4.7 | 43.7 | 11.0 | 10.6 | 29.9 | 4.9 | 0.825 |
| Human rights | 62.5 | 9.5 | 13.1 | 10.2 | 4.7 | 64.2 | 10.9 | 9.9 | 9.6 | 5.4 | 1.065 |
| Literature | 54.8 | 8.5 | 8.3 | 25.5 | 2.9 | 54.7 | 8.4 | 8.3 | 25.6 | 3.0 | 1.055 |
| Unadapted | Ours | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Topic | Both | Male | Female | Neither | Other | Both | Male | Female | Neither | Other | Pairs per query |
| Actors and Filmmakers | 92.1 | 5.8 | 2.0 | 0.0 | 0.1 | 92.5 | 4.0 | 3.3 | 0.0 | 0.2 | 0.848 |
| Computer science | 99.4 | 0.2 | 0.2 | 0.0 | 0.2 | 99.4 | 0.1 | 0.2 | 0.2 | 0.1 | 1.071 |
| Former countries | 60.7 | 10.3 | 9.5 | 18.2 | 1.3 | 59.8 | 8.4 | 9.1 | 20.5 | 2.2 | 0.835 |
| Human rights | 90.3 | 2.6 | 3.3 | 1.1 | 2.7 | 90.3 | 2.3 | 3.0 | 0.9 | 3.5 | 1.065 |
| Literature | 98.9 | 0.4 | 0.7 | 0.0 | 0.0 | 98.9 | 0.4 | 0.7 | 0.0 | 0.0 | 1.091 |
| bge-reranker-v2-m3 | jina-reranker-v2-base-multilingual | |||
| Topic | Unadapted | Adapted | Unadapted | Adapted |
| Actors and Filmmakers | ||||
| Computer science | ||||
| Former countries | ||||
| Human rights | ||||
| Literature | ||||
| In-dataset (RoMQA) | Cross-dataset (TREC) | |||||||
|---|---|---|---|---|---|---|---|---|
| Variant | Accuracy | Male-fav. | Female-fav. | Accuracy | Male-fav. | Female-fav. | ||
| Unadapted | 0.0169 | 55.1 | – | – | 0.0156 | 89.9 | – | – |
| Ours | 0.0083 | 55.2 | 3/4 | 5/5 | 0.0094 | 90.2 | 6/6 | 2/3 |
| one direction | 0.0176 | 54.8 | 0/4 | 5/5 | 0.0102 | 90.3 | 6/6 | 0/3 |
| without anchor | 0.0142 | 55.0 | 0/4 | 4/5 | 0.0112 | 90.8 | 5/6 | 1/3 |
Group Fairness
Group fairness measures and reduces disparities in how algorithms predict, rank, allocate resources, and make decisions for different groups.
See all 140 papers