cs.LGNov 17, 2026

Fair Bubble Sort: Provably Optimal Fair Ranking with Continuous Sensitive Attributes

Authors: Antonio Ferrara, Fabio Vitale, Atsushi Miyauchi, Francesco Bonchi

Organizations: Intesa Sanpaolo AI Research, Turin, Italy · Intesa Sanpaolo Innovation Center, Turin, Italy · Intesa Sanpaolo, Turin, Italy

Abstract

Most fair-ranking methods assume categorical protected attributes, requiring continuous attributes such as age or income to be discretized into groups. This introduces arbitrary thresholds, loses fine-grained information, and ignores the natural ordering of the attribute. In this paper, we study the problem of fair ranking with continuous protected attributes without relying on thresholding. We introduce Continuous Pairwise Parity (CPP), a fairness notion based on Kendall correlation between ranking positions and the protected attribute, and seek rankings that satisfy a prescribed CPP constraint while minimizing their Kemeny distance from an initial score-based ranking. To solve this problem, we propose Fair Bubble Sort (FBS), an efficient post-processing algorithm based on targeted adjacent swaps. We prove that FBS is exactly optimal for the unweighted Kemeny distance and provide approximation guarantees for the score-weighted setting. FBS is output-sensitive, with running time determined by the number of swaps required to meet the fairness constraint. Experiments on synthetic and real-world datasets show that FBS is scalable and consistently outperforms discretization-based baselines, achieving a superior fairness-accuracy Pareto front.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Generalizing Fair Top-kk Selection: An Integrative Approach

    Mar 5, 2026Guangya CaiAlgorithmic FairnessGroup Fairness

  2. FairRARI: A Plug and Play Framework for Fairness-Aware PageRank

    Feb 9, 2026Emmanouil Kariotakis, Aritra KonarAlgorithmic FairnessGroup Fairness

  3. A fairness-aware extension of Stochastic Multicriteria Acceptability Analysis for ranking

    Jun 16, 2026Guilherme Dean Pelegrina, Renata PelissariMulti-Criteria Decision AnalysisGroup Fairness