SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.11598 · NeurIPS · 2024

Towards Fair RAG: On the Impact of Fair Ranking in Retrieval-Augmented Generation

Fernando Diaz, To Kim

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2409.11598.json · badge: /api/ran/2409.11598.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
kimdanny/fair-rag canonical (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
FunctionStatusWhere it lives
extract_after_article Ran
ran; our contract draft was wrong, not the code
kimdanny/fair-rag/retrieval/rank_profiles.py
pointer only (licence: NONE) · get_code("3c022e0b56a5b9aa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kimdanny/fair-rag when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_after_description Ran
ran; our contract draft was wrong, not the code
kimdanny/fair-rag/retrieval/rank_profiles.py
pointer only (licence: NONE) · get_code("490005de8edac2a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kimdanny/fair-rag when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_strings_between_quotes Ran
ran; our contract draft was wrong, not the code
kimdanny/fair-rag/retrieval/rank_profiles.py
pointer only (licence: NONE) · get_code("f11dc768dc0cbefb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kimdanny/fair-rag when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_labels Ran
ran; our contract draft was wrong, not the code
kimdanny/fair-rag/experiment.py
pointer only (licence: NONE) · get_code("d5c9a772055a1683")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kimdanny/fair-rag when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
extract_after_article 2 other papers
2 dated earlier
2404.05970 (2024-04)
Optimization Methods for Personalizing Large Language Models through Retrieval Augmentation
2406.02888 (2024-06)
HYDRA: Model Factorization Framework for Black-Box LLM Personalization
extract_after_description 2 other papers
2 dated earlier
2404.05970 (2024-04)
Optimization Methods for Personalizing Large Language Models through Retrieval Augmentation
2406.02888 (2024-06)
HYDRA: Model Factorization Framework for Black-Box LLM Personalization
extract_strings_between_quotes 2 other papers
2 dated earlier
2404.05970 (2024-04)
Optimization Methods for Personalizing Large Language Models through Retrieval Augmentation
2406.02888 (2024-06)
HYDRA: Model Factorization Framework for Black-Box LLM Personalization

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Despite the central role of retrieval in retrieval-augmented generation (RAG) systems, much of the existing research on RAG overlooks the well-established field of fair ranking and fails to account for the interests of all stakeholders involved. In this paper, we conduct the first systematic evaluation of RAG systems that integrate fairness-aware rankings, addressing both ranking fairness and attribution fairness, which ensures equitable exposure of the sources cited in the generated content. Our evaluation focuses on measuring item-side fairness, specifically the fair exposure of relevant items retrieved by RAG systems, and investigates how this fairness impacts both the effectiveness of the systems and the attribution of sources in the generated output that users ultimately see. By experimenting with twelve RAG models across seven distinct tasks, we show that incorporating fairness-aware retrieval often maintains or even enhances both ranking quality and generation quality, countering the common belief that fairness compromises system performance. Additionally, we demonstrate that fair retrieval practices lead to more balanced attribution in the final responses, ensuring that the generator fairly cites the sources it relies on. Our findings underscore the importance of item-side fairness in retrieval and generation, laying the foundation for responsible and equitable RAG systems and guiding future research in fair ranking and attribution. • Computing methodologies → Natural language generation; • Information systems → Evaluation of retrieval results.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2409.11598")
get_code_for_paper("2409.11598")
have("2409.11598")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2409.11598.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2409.11598.svg)](https://syntology.ai/paper/2409.11598)

Connect an agent — have() is free.