English

Finding a Fair Scoring Function for Top-$k$ Selection: From Hardness to Practice

Databases 2026-03-31 v5 Computational Complexity Computers and Society Distributed, Parallel, and Cluster Computing Data Structures and Algorithms

Abstract

Selecting a subset of the kk "best" items from a dataset of nn items, based on a scoring function, is a key task in decision-making. Given the rise of automated decision-making software, it is important that the outcome of this process, called top-kk selection, is fair. Here we consider the problem of identifying a fair linear scoring function for top-kk selection. The function computes a score for each item as a weighted sum of its (numerical) attribute values, and must ensure that the selected subset includes adequate representation of a minority or historically disadvantaged group. Existing algorithms do not scale efficiently, particularly in higher dimensions. Our hardness analysis shows that in more than two dimensions, no algorithm is likely to achieve good scalability with respect to dataset size, and the computational complexity is likely to increase rapidly with dimensionality. However, the hardness results also provide key insights guiding algorithm design, leading to our two-pronged solution: (1) For small values of kk, our hardness analysis reveals a gap in the hardness barrier. By addressing various engineering challenges, including achieving efficient parallelism, we turn this potential of efficiency into an optimized algorithm delivering substantial practical performance gains. (2) For large values of kk, where the hardness is robust, we employ a practically efficient algorithm which, despite being theoretically worse, achieves superior real-world performance. Experimental evaluations on real-world datasets then explore scenarios where worst-case behavior does not manifest, identifying areas critical to practical performance. Our solution achieves speed-ups of up to several orders of magnitude compared to SOTA, an efficiency made possible through a tight integration of hardness analysis, algorithm design, practical engineering, and empirical evaluation.

Keywords

Cite

@article{arxiv.2503.11575,
  title  = {Finding a Fair Scoring Function for Top-$k$ Selection: From Hardness to Practice},
  author = {Guangya Cai},
  journal= {arXiv preprint arXiv:2503.11575},
  year   = {2026}
}

Comments

Abstract shortened to meet arXiv requirements; an extended abstract to appear at SoCG 2026

R2 v1 2026-06-28T22:20:52.887Z