Fair Bubble Sort: Provably Optimal Fair Ranking with Continuous Sensitive Attributes
Antonio Ferrara, Fabio Vitale, Atsushi Miyauchi, Francesco Bonchi
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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CY, cs.DS
- Comments
- 35 pages, 9 figures, 4 tables. Accepted at NeurIPS 2026. Code: https://github.com/Ambress92/FairBubbleSort
Related papers
Variance Restoration over Covariance Rank: Memory-Budgeted Analytic Continual Learning
Shared title terminologycs.LGElena Voss, Pixel Nomand, Marcus Hale et al.
Beyond Attribute-Centric Fairness: Modelling and Mitigating Unified Bias Representation in Omni-modal Large Language Models
Shared title terminologycs.LGRunqi Lin, Suqin Yuan, Zihao Fu et al.
How Multi-Timescale Memory Cools Optimization: Theory and Evidence from AdEMAMix
Shared title terminologycs.LGJacopo Graldi, Antonio Orvieto, Anastasia Koloskova
Optimal Bandits with Switching Costs: (T/\log(T))^{2/3} Regret
Shared title terminologycs.LGChenyu Gan
Dually Constrained Parameter Projection for Continual Learning
Shared title terminologycs.LGBowyn Tan, Zhilong Zheng, Yang Guan et al.
OAT3D: A Generative Model for 3D Shape- and Resolution-Free Structural Topology Optimization
Shared title terminologycs.LGHongrui Chen, Kittipong Thiamchaiboonthawee, Zhen Wei et al.