Towards Model-Agnostic Post-Hoc Adjustment for Balancing Ranking Fairness and Algorithm Utility

Sen Cui, Weishen Pan, Changshui Zhang, Fei Wang

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.

Conceptual overview of cross-group ordering and interleaving.

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.

The xOrder framework: (a) ordering procedure and (b) dynamic programming optimization on a decision lattice.

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

BibTeX
@inproceedings{cui2021towards,
  author = {Sen Cui and Weishen Pan and Changshui Zhang and Fei Wang},
  title = {{Towards Model-Agnostic Post-Hoc Adjustment for Balancing Ranking Fairness and Algorithm Utility}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  doi = {10.1145/3447548.3467251},
}
Figure