Abstract
Ranking systems in sensitive domains like healthcare and criminal justice often inadvertently learn systematic biases, favoring one protected group over another. This paper presents xOrder, a model-agnostic post-hoc framework that optimizes the trade-off between ranking fairness and algorithm utility. By treating the interleaving of group-specific rankings as an optimal "warping path" problem, xOrder utilizes dynamic programming to find a globally optimal solution for a given fairness constraint. Experimental results across six datasets show that xOrder effectively reduces ranking disparity while maintaining high predictive performance, even under distribution shifts.
Introduction
Ranking algorithms are critical components in decision-making processes, ranging from financial loan approvals to organ transplant prioritization. In bipartite ranking, the objective is to rank positive instances higher than negative ones. However, these models frequently exhibit bias, ranking members of a protected group (e.g., based on gender or ethnicity) higher than others despite similar underlying risks.
The primary challenge in addressing this is the "fairness-utility trade-off," where improvements in fairness often come at the cost of model accuracy (utility). Existing methods are frequently model-dependent or rely on rigid parametric assumptions that fail when data distributions shift. xOrder addresses these limitations by providing a post-hoc, model-agnostic adjustment that focuses on the relative ordering of samples.
Methodology
The core innovation of xOrder is its focus on the relative ordering of instances across different groups rather than absolute score values. The framework consists of several key components:
The Warping Path Analogy
xOrder conceptualizes the merging of two sorted lists (Group A and Group B) as finding an optimal path through a 2D decision lattice. Each step in this path represents a decision to select the next highest-ranked individual from either Group A or Group B to form a combined, fair ranking.
Dynamic Programming Optimization
To identify the optimal interleaving, the authors employ a dynamic programming (DP) approach. They define an objective function that maximizes a weighted sum of utility (measured by AUC) and a penalty for fairness disparity ($\lambda \cdot Fairness Disparity$). By tuning the hyperparameter $\lambda$, practitioners can specify their desired balance between performance and equity.
Non-Parametric Adjustment and Transfer
Unlike parametric methods that apply fixed mathematical shifts to scores, xOrder is non-parametric and directly optimizes cross-group ordering. To handle unseen test data, the optimal ordering found during training is used to create a mapping via linear interpolation based on score quantiles. This approach ensures that the fairness adjustments remain effective even if the absolute score distributions change.
Experimental Evaluation
The researchers evaluated xOrder on six diverse datasets:
- Benchmarks: COMPAS (recidivism), Adult (income), and Framingham (heart disease).
- Clinical EHR: MIMIC-III and eICU repositories, used for predicting mortality and prolonged length of stay (LOS) across different ethnic and gender groups.
Key Results
- Superior Trade-offs: xOrder consistently outperformed baselines like post-logit and corr-reg, often reducing ranking disparity to near zero with negligible loss in AUC.
- Global Optimality: The authors proved that xOrder achieves the global optimal solution when focusing purely on utility ($\lambda=0$).
- Robustness: The framework demonstrated high data efficiency and resilience to distribution shifts, maintaining stable performance even with reduced training samples.
- Clinical Impact: In healthcare settings (MIMIC-III/eICU), xOrder successfully mitigated ethnic disparities in predicting hospital stay durations, a vital step toward equitable medical AI.
Conclusion and Future Work
xOrder provides a flexible, "bolt-on" solution for any ranking model, from linear regressions to deep neural networks. By focusing on the fundamental property of ranking—relative order—it achieves a more direct and effective optimization of the fairness-utility trade-off.
Future research directions include extending the framework to handle multiple intersecting protected groups simultaneously and optimizing the $O(N^2)$ computational complexity of the DP process for large-scale web applications.
Summary updated