<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Optimal Fair Ranking: Real Performances and Critical Parameters</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Daniela AP.arlett</string-name>
          <email>daniela-angela.parletta@akkodis</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fabio Napoli</string-name>
          <email>bio.napoli@akkodis.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="editor">
          <string-name>Ranking, Fairness, Optimization</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>AIMMES '24: Workshop on AI bias: Measurements</institution>
          ,
          <addr-line>Mitigation, Explanation Strategies</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Akkodis, Technology Innovation Hub, Artificial Intelligence Unit</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>Ranking is the problem of retrieving the most rele vaitnetms for a query in a pool ofitems. Since ranking algorithms are extensively used in socially sensitive applications (e.g., candidate selections and search engines), it becomes critical to take into account an adequate notion of fairness. In this paper, we consider a flexible optimization-based fair ranking framework and we analyze optimal state-of-the-art algorithms on real-world data. We identify the merits as well as bottlenecks of existing methods and point out directions for future research.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>CEUR
ceur-ws.org</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>methods for concrete applications. As a byproduct of our evaluation, we also point toward
future research directions. In particular, we provide the following contributions:
• An explicit description of two state-of-the-art methods appeared in past literature only
implicitly and in the proofs of runtime bounds.
• A discussion on the benefits of these methods as well as their drawbacks.
• A numerical evaluation of real-world datasets aimed at assessing the maturity of these
solutions for concrete deployment into real-world applications. To the best of our
knowledge, this is the first numerical evaluation of these methods.</p>
      <p>
        Related work. Ranking with fairness constraints has recently received much attention from
the research community, and a complete account is given in a recent su2r, v3e].yO[ ne can
distinguish at least two diferent approaches to enforce fairness constraints in a proasnt-king:
hoc adjustments (e.g., [
        <xref ref-type="bibr" rid="ref4 ref5 ref6 ref7">4, 5, 6, 7</xref>
        ]) andfairness by design (e.g., [
        <xref ref-type="bibr" rid="ref1 ref8 ref9">1, 8, 9</xref>
        ]). The former, aim takes as
input a (possibly unfair) ranking, produced by an algorithm, and applies the minimum amount
of modifications to satisfy the fairness constraints. The latter, instead, are methods designed
to provide output rankings that already satisfy the fairness constraints. We notice that while
post-processing adjustments approaches can be applied to any ranking algorithm, even one that
is already developed and deployed, to enforce fairness. On the other hand, fairness by design
typically allows one to obtain rankings of superior quality.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] authors propose an optimization framework for fair ranking problems and develop
several polynomial time algorithms for it. This model has been generaliz8e]dtoina[ccount for
noisy sensitive attributes. 9In]a[uthors further extend the framework to aggregate multiple
rankings optimally. We notice that the specific problem formulation described in this paper may
be in principled approaches with the algorithms proposed10i,n1[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. However, the method
proposed in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] features an exponential dependence on the number of constraints, which in
the case of fair ranking may be very large. On the other hand, the algorit1h1m] sarine [only
?
guaranteed to satisfy a n -additive perturbation of the constraints, which is unsatisfactory
for even moderately large.
      </p>
      <sec id="sec-2-1">
        <title>Structure of the paper. The remaining of this paper is structured as follows. Sec2tion</title>
        <p>introduces the problem setting. Sect3iodnetails the considered methods and Sect4ioprnesent
the numerical evaluation. Finally, Sect5idonraws some conclusions and sketches future
directions for research.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>2. Problem Setting</title>
      <p>Notation. ℕ, ℤ, ℝ denote the set of natural, integer, and real numbers. Weℕd0efin“eℕ∪t0u,
ℝ` ≔ ℝ ∩ r0, ∞q andℤ` ≔ ℤ ∩ ℕ0. For every ∈ ℕ , r s will denote the ste1t, 2, … ,  u. Given
a set we denote its cardinality|by|. Given ,  ∈ ℕ and a se t ,  × denotes the set of
by  matrices with entries in. We will denote vectors with lowercase bold letters and matrices
with uppercase bold letters. Given a vecatwore denote its-th entry with . The zero norm of
a vectora is defined as }a}0 ≔ |t ∶   ‰ 0u|. Given a matrixA we denote itps,  q-th entry with
when  is true and0 otherwise.
  . Given a logical predicat,ewe denote its indicator function pbyq, notice thatp q “ 1</p>
      <sec id="sec-3-1">
        <title>Setting.</title>
        <p>Given ,  ∈ ℕ</p>
        <p>, the ranking problem consists informally of retrieving (and sorting)
the items in a pool of upon receiving a query. Thuetility of an item depends on the specific
query and maybe the level of the required skill in a job ofer, or the h-index in a Google Scholar
search. In this work, we assume that the query is given and fixed, so that we collect the utility of
placing a ite m∈ r s in position ∈ r s in autility matrix U ∈  × . We stress the importance
`
of accounting for the position of a item in a given ranking: in a real-world setting, the perceived
utility is inversely proportional to the item’s position in the ranking, a phenomenon known
as position bias. A ranking is a vectorr ∈ r s s.t.   “  if item is placed in positio n,
assigned to positionin the ranking, ii∑)
and  ‰   for each ‰  . For  ∈ r s the -prefix
We introduce thaessignment matrix of a rankingA ∈ t0, 1u×
  ≤ 1 for each ∈ r s and∑
where i)  “ 1 if item is
 “1</p>
        <p>“ 1 for each
of a rankingr is the vector “ p 1, … ,   q.
 ∈ r s. We denote the set of all such matrices b. yNotice that there is a bijection between the
set of the rankings and the set of the assignment matrices, thus we can speak about a ranking
or its assignment matrix interchangeably.oTpthiemal ranking problem is defined as
 
max ∑
A∈  “1  “1</p>
        <p>∑     .
max
A∈
 
∑</p>
        <p>∑    
 “1  “1

 “1 ∈ ℓ
s.t.  ℓp q ≤ ∑</p>
        <p>∑   ≤  ℓp q, ∀ ∈ r s, ∀ ∈ r s .
optimal value of the above problem will be denoted wOPitTh.</p>
        <p>We notice that this problem has bina⋅ ry decision variables an ⋅d p `  q constraints. The
ranking, that is</p>
        <sec id="sec-3-1-1">
          <title>As the focus of this paper is on fair rankings, we consider a more constrained version of</title>
        </sec>
        <sec id="sec-3-1-2">
          <title>Equation 1(). In particular, we assume that there is a se∈t ℕof properties w.r.t. achieve</title>
          <p>fairness and denote withℓ ⊆ r s the set of items having the properℓt∈y r s: examples of
properties are the gender, the ethnicity or the age. Fairness may be expressed via lower and
upper bounds on the number of items featuring a given properties in each prefix of the ranking.</p>
        </sec>
        <sec id="sec-3-1-3">
          <title>For example, we may require that in each even prefix of the ranking, there should be an equal</title>
          <p>number of men and women. Formally, the matricFepsq, Fp q ∈ ℤ
specifies the minimum
F
p q and the maximum numberFpℓ q of items having the propertℓyin the -prefix of a feasible
ℓ
×
`
(1)
(2)
(3)

 “1 ∈ ℓ
 ℓp q ≤ ∑</p>
          <p>∑   ≤  ℓp q, ∀ ∈ r s, ∀ ∈ r s .</p>
          <p>These matrices are callelodwer fairness constraint matrix andupper fairness constraint
matrix respectively. TheOptimal Fair Ranking (OFR) problem is thus defined as</p>
        </sec>
        <sec id="sec-3-1-4">
          <title>To set up a bottom line, notice that even just checking the feasibility of Eq3u)aitsion (</title>
        </sec>
        <sec id="sec-3-1-5">
          <title>NP-Hard in the general case (see Theorem 10.1, 10.3 and 10.41i]n). [Moreover, in the general case Equation3() is APX-Hard, and it thus not not admit a polynomial-time approximation scheme (see Theorem 10.2 in [1]).</title>
        </sec>
        <sec id="sec-3-1-6">
          <title>Utility and constraints models. In what follows we list a few popular models for the</title>
          <p>positions bias. We denote wi ththeabsolute utility of the item . We consider the following
models for the utility of placing ∈ r s in position ∈ r s
loolooogoo2´om1po1ooo`ooonq, lo oopo1oo´moooqoo´on1, looopom“ooo1onq
ℎ  
(4)</p>
        </sec>
        <sec id="sec-3-1-7">
          <title>Notice that while this specific bias is uniform across the items in the pool, the general utility</title>
          <p>model presented above does not need to be. Further, notice that the geometric model is
parametrized by adiscount factor  ∈ r0, 1s controlling how quickly the utility of an item decays
w.r.t. its position in the ranking.</p>
        </sec>
        <sec id="sec-3-1-8">
          <title>We will assume the following conditions on the utUility</title>
          <p>1 1 ≥   2 1,   1 1 ≥   1 2,   1 1 `   2 2 ≥   1 2 `   2 1
(5)
where the two leftmost inequality are called monotonicity and the rightmost is knMowonngaes
condition. We notice that is the users are sorted in descending order of absolute utilities, then
any of the above models for the position bias satisfies the Equat5i)o.n (</p>
        </sec>
        <sec id="sec-3-1-9">
          <title>As for the constraints, they are usually specified in terms of a maximum number of items</title>
          <p>belonging to a certain category that can appear in a given prefix. This can be done by setting
Fp q to the zero matrix and only specifyiFnpgq. We name this problemOptimal Fair Ranking
with Upper constraints (OFRU).</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>3. Algorithms</title>
      <sec id="sec-4-1">
        <title>In this section, we describe two algorithms that solve the OFR problem. Each method features</title>
        <p>optimality and runtime guarantees that depend on certain parameters, making them better
suited under diferent circumstances. We notice that these methods first appear1e]d, binut[
only implicitly with the proofs of the main theorems. We notice that this is the first explicit
description of such algorithms.</p>
        <p>Dynamic programming. We define the type of an item as a binary vectotrp q ∈ t0, 1u
such tha tℓp q “ 1 if and only if has the propertyℓ ∈ r s. Let ≔ ttp q ∶  ∈ r su the set of
diferent types in the data, and l≔et | |. We let the elements ofbe  p1q, … ,  p q and define
 ℓ ≔ t ∈ r s ∶ tp q “  pℓqu - the set of the firs t items of typeℓ - for eachℓ ∈ r s. We denote
with ℓ the cardinality oℓf and its elements wi tp1hℓq, … ,  pℓq.
ℓ</p>
      </sec>
      <sec id="sec-4-2">
        <title>It is convenient to perform a pre-processing step that only retains the first (a t imtoesmts)</title>
        <p>(i.e., the items with the smallest indices) for each type. In light of Equ3a),taiomnon(g these (at
while  1 ` ⋯ `   ă  do</p>
        <p>u Ð p0, … , 0q ∈ ℕ0
for ℓ “ 1, … ,  do
Initializer0, … , 0s Ð 0,  1, … ,   Ð 0,  “ empty list
if Feasiblep 1, … ,  ℓ ` 1, … ,   q then
 ℓ Ð  r 1, … ,   s `   pℓℓq
 ℓ Ð ´∞
Get the indexℓ˚ and the value˚ of maxℓ∈r s  ℓ</p>
        <p>Increment ℓ˚ Ð  ℓ˚ ` 1,  r 1, … ,   s Ð  ˚, . appendp pℓℓ˚qq</p>
      </sec>
      <sec id="sec-4-3">
        <title>Algorithm 1 Dynamic programming for OFR</title>
        <p>Input: the set s 1, … ,   , the utility matrUix, the constraintFsp q, Fp q, and the set of properties
t1, … ,  u.</p>
        <p>else
end if
end for
end while
Output: the optimal rankin g,the optimal utilitry 1, … ,  ℓs.
most)  ⋅  items there will be the optimal ranking. Notice step can be done in or⋅ dertoimfe
and produces the se ts1, … ,   .
simple: it is enough to check that</p>
        <p>The idea of the dynamic programming approach is the following. We can partition the set of
all possible rankings of a certain le n≤g th according to the number of items of each type
they have. That is, fo r1, … ,   ∈ ℕ0 s.t. “  1 ` ⋯ `   we denote withp 1, … ,   q the set of all
rankings of lengt hmade of   items of typevp q for each ∈ r s. Furthermore, withr 1, … ,   s
we denote the value of the feasible rankings of the highest vapl1u,e…in,  q. Thus, finding
the optimal solution to an OFR problem corresponds to identifying a feasible ranking of utility
 r 1, … ,   s “ OPT, when  1 ` ⋯ `   “  . Checking feasibility of the rankingsp i1n, … ,   q is
 ℓp q ≤ ∑  ℎ ℓpℎq ≤  ℓp q, ∀ℓ ∈ r s,
which takes order o f⋅  time.</p>
        <p>We start initializ inrg0, … , 0s “ 0 and notice that by Equatio5n), (it either holds that
 r 1, … ,   s “ max  r 1, … ,  ℓ ´ 1, … ,   s `  pℓq  ,

 ℓ´1

ℎ“1
ℓ∈r s
or thatp 1, … ,   q is infeasible in which case we setr 1, … ,   s “ ´∞. As a result, we can build
the optimal solution with a bottom-up approach: we startp0fr,…om, 0q and we build the
ranking by adding an item of maximal utility that keeps the constraints satisfied at each step.</p>
      </sec>
      <sec id="sec-4-4">
        <title>As we have seen, checking the feasibility takes the orde⋅ r oafnd there are at most order of</title>
        <p>rankings that needed to be considered (all the ways to cnhaotsueral numbers so that they
sum to  ). The overall algorithm is described in Algori1t.hBmelow we report the theorem
establishing its theoretical performances.</p>
        <p>
          Theorem 1 (Theorem 3.1 in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]). Algorithm 1 finds an optimal solution to the OFR problem, if
there is one, in order of   time. Otherwise, it return  r 1, … ,   s “ ´∞. The pre-processing runs
in order of  ⋅  time.
        </p>
        <p>Remark 1 (On the complexity of Algorith1m). We make the following comments:
• We notice that an exhaustive search among all possible rankings of leinngathpool of
 ⋅  takes the order o f time. On the other hand, the proposed method takes the order
of   time, which is better: in real-world applicat ioshnosu,ld be thought of as a constant
determined by the fairness constraints, w hiilsea parameter that can be as larg e. as
• The practicality of Algorith1mdepends on the value o.f We notice tha t≥  , implies
that when fairness is defined using more than 2-3 properties, the algorithm becomes
unpractical.</p>
      </sec>
      <sec id="sec-4-5">
        <title>Greedy algorithm. To overcome the limitations discussed in Rema1r, kwe consider an</title>
        <p>alternative greedy approach.</p>
        <p>The algorithm is simple. Similarly to Algorit1,himt keeps the items grouped into the set
 1, … ,   . At each ste p, the algorithm greedily takes the item with the highest utilvitpyq- let
its type - and adds it to the ranking if this addition does not violate the constraints. Otherwise,
it seeks the next item among the typtevsp1q, … , vp qu{tv p qu. If no feasible item can be found,
the problem is declared to be infeasible. Since ther e aproesitions to fill and each item can be
checked for feasibility in order otfime, the runtime of this algorithm is the orde⋅ r of. The
algorithm is also described in Algorit2h.m</p>
      </sec>
      <sec id="sec-4-6">
        <title>Despite its simplicity, this algorithm provably finds an optimal solution in the following class of problems. Let define</title>
        <p>Δ ≔ max } }0 (6)</p>
        <p>∈
that isΔ, is the maximum number of properties each type of item can exhibit. Then the following
holds.</p>
        <p>
          Theorem 2 (Theorem 3.2 in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]). Algorithm 2 finds an optimal solution to any OFRU problem as
long as Δ “ 1. For those problems, if the algorithm returns infeasible, then the problem does not
admit a solution. It runs in order of  ⋅  time. The pre-processing runs in order of  ⋅  time.
Remark 2 (On the complexity of Algorith2m). We make the following comments:
• Theorem 2 guarantees optimality of Algorit2homnly when the problem is an instance of
the OFRU problem. This assumption is in contrast to Algor1itthhmat instead can solve
the more general OFR problem. Nevertheless, OFRU models many natural settings, since
fairness is usually expressed only by limiting the number of items in the unprotected
classes (thus only specifying the matFrpixq).
• The assumptionΔ “ 1 is satisfied in many practical settings, including the important case
of mutually exclusive properties (e.g. male vs. female, White vs Black vs Asian, protected
workers categories). For the sake of comparison, notice that in this set“tinagn,d
when  is even moderately large (e.g∈. t4, 5u) Algorithm1 is unpractical.
        </p>
      </sec>
      <sec id="sec-4-7">
        <title>Algorithm 2 Greedy Algorithm for OFR</title>
        <p>Input: the set s 1, … ,   , the utility matrUix, the constraintFsp q, Fp q, and the set of properties
t1, … ,  u.</p>
        <p>Initialize Ð 0,  1, … ,   Ð 0,  “ empty list
for  “ 1, … ,  do</p>
        <p>Sort by decreasing utilipt11yq, … ,  p q # We denote wit h the sorted indices
for ℓ “ 1, … ,  do
if Feasiblep 1, … ,  ℓ ` 1, … ,   q then</p>
        <p>Ð  `   pℓℓq , . appendp pℓℓqq,  ℓ Ð  ℓ{t pℓℓqu, Flag Ð true
end if
end for
if flag ““ false then return Infeasible
end if
end for</p>
      </sec>
      <sec id="sec-4-8">
        <title>Output: a fair rankingand its utility.</title>
        <p>
          • The runtime of this greedy method is exponentially) (simnaller than that of Theor1e.m
• When Δ ≥ 3, Theorem 10.2 in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] establish that it is NP-Hard to find a solution that is
within a (multiplicative) factor largerΔt{hlaongpΔq.
        </p>
      </sec>
      <sec id="sec-4-9">
        <title>Practical considerations. Both algorithms employ a pre-processing step that prunes the</title>
        <p>item pool to retain only the t⋅ op items. This step is justified by the Equation5)(. In practice,
even when the utilities are obtained from an application of the position-bias model to the
absolute utilities, it is often not the case that the items are already sorted in a wsaatyitsfiehsat</p>
      </sec>
      <sec id="sec-4-10">
        <title>Equation5(). To overcome this limitation, it is necessary to perform a sorting of the items based</title>
        <p>on their absolute utilities, a step that requires o rldoegr otfime. Overall the pre-processing
runs in order o ⋅f log  ` ⋅ time. In the case of Algorith2mthis pre-processing time dominates
over the ranking time.</p>
      </sec>
      <sec id="sec-4-11">
        <title>Furthermore, both methods require storage of the constraint matrices which occupy order of</title>
        <p>⋅  space. In addition, Algorith1malso requires to store the array withrt1h,e… ,   s values,
which can require up to order  of space. This results in a strong limitation - even disposing of
time, when is moderately large it is not possible to run this method.</p>
      </sec>
      <sec id="sec-4-12">
        <title>Finally, we notice that typically the fairness constraints are phrased in natural language. To</title>
        <p>work within this framework, it is necessary to translate this constraint into thFep mqatrices
andFp q. This is not straightforward in general, but we will show an example in 4S.ection
Chess Ranking</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>4. Numerical Experiments</title>
      <sec id="sec-5-1">
        <title>In this section, we perform some experiments aiming at assessing the following questions:</title>
        <p>• Exemplify some typical values thaatndΔ may take in real-world applications.
• What is the actual runtime of Algori1t?hmDoes it follow the theoretical complexity?
• How does Algorithm2 compare with Algorithm1even when the hypothesis of Theorem2
are violated?</p>
        <p>For all datasets, we consider the logarithmic position-bias model discussed in2S.eFcotrion
the sake of comparison, when setting the fairness constraints we alwaFypsq p“ut0, thus
restricting the problems to be instances of the OFRU problemF.p Fqowre consider the notion
of fairness known apsroportional representation, where the entrpy, ℓ q of the upper fairness
constraint matrix i|s |{ , where  is the subset of items that have prope r.tNyotice that this
constraint imposes that each property, in the firpsotsitions, cannot be represented with more
items than the overall population, fractionally. For each algorithm, we measure the runtime
excluding the pre-processing that is common to both methods. For Algor2iwthemreport also
thecompetitive ratio of the computed rankinrĝ, this is defined as the ratio between the utility
of r̂ and the optimal valuOePT. This ratio takes valueri0n, 1s and follows the semantic ththaet
higher the better. Notice that, due to its optimality, for Algor1ithmis ratio always evaluates 1.</p>
      </sec>
      <sec id="sec-5-2">
        <title>In what follows, we refer to Algorit1hams DP and to Algorithm2as Greedy. All experiments are performed on an Intel i9 2.4 GHz with 8 cores and 16 GB 2.66 MHz DDR4 of RAM.</title>
        <sec id="sec-5-2-1">
          <title>Parameters.</title>
        </sec>
      </sec>
      <sec id="sec-5-3">
        <title>We consider the following real-world dataCsehtess.s Ranking [12] consists of</title>
        <p>
          3251 entries, one per player. For each player, we have the absolute utility as given by the FIDE
rating, the gender (male or female), and the race (Asian, Hispanic-Latin, white). Notice that
in this dataset there are no women of Hispanic-Latin ethnicity, so“t5haatndΔ “ 2. We
derive two more datasets from Chess Ranking. We consider a simplified version, that we name
Chess Ranking S(implified), where each player has a gender and is either white or non-white,
leading to“ 4 andΔ “ 2. Instead, we drop the gender attributCehienss Ranking R(ace)
and keep the ethnicity, leading t“o3 andΔ “ 1. Occupation [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] consists of 4494 images of
workers. These data are the results of Google queries each one reporting the top workers in a
given professional category, among 94 options. The absolute utility is the position of a worker
in the relative ranking. For each image, we also have the gender of the worker. We generate
two datasets from Occupation.OInccupation G(ender) we drop the working category and
(a) Chess Ranking
20 rankin3g0length 40
(c) Chess Ranking R
50
50
(b) Chess Ranking S
20 rankin3g0length 40
(d) Occupation G
50
50
only consider the gender, leadin g “to2 types andΔ “ 1. In Occupation W(ork) we drop the
gender and only the working category, leadi ng“t9o4 andΔ “ 1. The relevant parameters of
the dataset are reported in Ta1.ble
Runtime. To evaluate the runtime of Algorit1hmwe vary the ranking leng th in
t10, 20, 30, 40, 50u and measure it for each dataset (excluding Occupation work). For
comparison, we also report the leading t ermin the worst-case bound of Theore1m. This latter
term is multiplied by a suitably chosen small constant, to make the quantities comparable.
        </p>
      </sec>
      <sec id="sec-5-4">
        <title>Results are shown in Figur1.e First, notice the qualitative diferences among the plots: the</title>
        <p>actual runtime scales with a diferent law depending on the dataset. This is in line with the
theory as the leading term in the bound takes on the expres5s,ion4,  3,  2 respectively on
the considered datasets. Second, we notice that on at least 3 out of 4 datasets, the behavior of</p>
      </sec>
      <sec id="sec-5-5">
        <title>DP closely follows the worst-case behavior predicted by the theory. In the case of Occupation</title>
      </sec>
      <sec id="sec-5-6">
        <title>G instead, it performs significantly better.</title>
        <p>Optimization. We now fix  “ 100 and compareDP toGreedy. Results are shown in Tab2l.e</p>
      </sec>
      <sec id="sec-5-7">
        <title>First, notice thaGtreedy is alwaysat least 2 orders of magnitude faster thDaPn. In the case of</title>
        <p>Chess Ranking
Chess Ranking S</p>
        <p>Chess Ranking, it is 6 orders of magnitude faster. Second, even wΔhąen1, Greedy features a
competitive ratio very close1t,omeaning that it essentially finds an optimal solution. Third, in
the case of Occupation WGreedy finds an optimal solution in abou0t.2 seconds, while it is not
even possible to runDP due to the tremendous space required to store the tablre1f,o…r,   s:
10094 elements for this dataset.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>5. Conclusion and Future Directions</title>
      <sec id="sec-6-1">
        <title>Ranking is a foundational problem in algorithms, with numerous applications where fair</title>
        <p>ness constraints must be accounted for. In this paper, we present and discuss an important
optimization-based framework for ranking with fairness constraints. We provide, for the first
time, an explicit description of state-of-the-art algorithms and evaluate them critically on
realworld datasets. By considering the critical parameters controlling the complexity of the fair
ranking problem, we shed light on the limitations of the exact dynamic programming method.</p>
      </sec>
      <sec id="sec-6-2">
        <title>While it appears to be feasible in some circumstances, its runtime explodes as soon as more</title>
        <p>than 3 properties are used to define fairness. On the other hand, the greedy approach seems
to ofer a viable alternative even when the hypothesis that ensures its optimality is violated.</p>
      </sec>
      <sec id="sec-6-3">
        <title>Both these methods appear to feature a level of maturity that may already sufice for certain</title>
        <p>real-world applications such as candidate selection in job matching.</p>
      </sec>
      <sec id="sec-6-4">
        <title>Future directions in this area may attempt to: design optimal linear time algorithms for the</title>
        <p>case Δ “ 2; re-parameterize the problem and design novel algorithms with better dependencies
on the parameters than Algorit1h; midentify additional assumptions to place to escape
NPhardness results.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>6. Acknowledgments</title>
      <sec id="sec-7-1">
        <title>This paper was supported by the European Union’s Horizon Europe research and innovation</title>
        <p>program under grant number 101070363 - AEQUITAS. Funded by the European Union. Views
and opinions expressed are however those of the authors only and do not necessarily reflect
those of the European Union. Neither the European Union nor the granting authority can be
held responsible for them.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>L. E.</given-names>
            <surname>Celis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Straszak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. K.</given-names>
            <surname>Vishnoi</surname>
          </string-name>
          ,
          <article-title>Ranking with fairness constraints</article-title>
          , in: I.
          <string-name>
            <surname>Chatzigiannakis</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Kaklamanis</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Marx</surname>
          </string-name>
          , D. Sannella (Eds.),
          <source>45th International Colloquium on Automata, Languages, and Programming</source>
          ,
          <source>ICALP 2018, July 9-13</source>
          ,
          <year>2018</year>
          , Prague, Czech Republic, volume
          <volume>107</volume>
          ofLIPIcs, Schloss Dagstuhl - Leibniz-Zentrum für Informatik,
          <year>2018</year>
          , pp.
          <volume>28</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>28</lpage>
          :
          <fpage>15</fpage>
          . URL: https://doi.org/10.4230/LIPIcs.ICALP.
          <year>2018</year>
          .
          <volume>2</volume>
          .8doi:
          <fpage>10</fpage>
          .4230/LIPICS. ICALP.
          <year>2018</year>
          .
          <volume>28</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>M.</given-names>
            <surname>Zehlike</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Stoyanovich</surname>
          </string-name>
          ,
          <article-title>Fairness in ranking, part I: score-based ranking</article-title>
          ,
          <source>ACM Comput. Surv</source>
          .
          <volume>55</volume>
          (
          <year>2023</year>
          )
          <volume>118</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>118</lpage>
          :
          <fpage>36</fpage>
          . URL:https://doi.org/10.1145/353337.9doi:
          <fpage>10</fpage>
          .1145/ 3533379.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Zehlike</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Stoyanovich</surname>
          </string-name>
          ,
          <article-title>Fairness in ranking, part II: learning-to-rank and recommender systems</article-title>
          ,
          <source>ACM Comput. Surv</source>
          .
          <volume>55</volume>
          (
          <year>2023</year>
          )
          <volume>117</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>117</lpage>
          :
          <fpage>41</fpage>
          . URLh: ttps://doi.org/ 10.1145/3533380. doi:
          <volume>10</volume>
          .1145/3533380.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Zehlike</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Bonchi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Castillo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Hajian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Megahed</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Baeza-Yates</surname>
          </string-name>
          ,
          <article-title>Fa* ir: A fair top-k ranking algorithm</article-title>
          ,
          <source>in: Proceedings of the 2017 ACM on Conference on Information and Knowledge Management</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>1569</fpage>
          -
          <lpage>1578</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Joachims</surname>
          </string-name>
          ,
          <article-title>Fairness of exposure in rankings</article-title>
          ,
          <source>in: Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery &amp; data mining</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>2219</fpage>
          -
          <lpage>2228</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Zehlike</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Castillo</surname>
          </string-name>
          ,
          <article-title>Reducing disparate exposure in ranking: A learning to rank approach</article-title>
          ,
          <source>in: Proceedings of the web conference</source>
          <year>2020</year>
          ,
          <year>2020</year>
          , pp.
          <fpage>2849</fpage>
          -
          <lpage>2855</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Zehlike</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Hacker</surname>
          </string-name>
          ,
          <string-name>
            <surname>E. Wiedemann,</surname>
          </string-name>
          <article-title>Matching code and law: achieving algorithmic fairness with optimal transport</article-title>
          ,
          <source>Data Mining and Knowledge Discovery</source>
          <volume>34</volume>
          (
          <year>2020</year>
          )
          <fpage>163</fpage>
          -
          <lpage>200</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>L. E.</given-names>
            <surname>Celis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Keswani</surname>
          </string-name>
          ,
          <article-title>Implicit diversity in image summarization</article-title>
          ,
          <source>Proceedings of the ACM on Human-Computer Interaction</source>
          <volume>4</volume>
          (
          <year>2020</year>
          )
          <fpage>1</fpage>
          -
          <lpage>28</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>N.</given-names>
            <surname>Boehmer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. E.</given-names>
            <surname>Celis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mehrotra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. K.</given-names>
            <surname>Vishnoi</surname>
          </string-name>
          ,
          <article-title>Subset selection based on multiple rankings in the presence of bias: Efectiveness of fairness constraints for multiwinner voting score functions</article-title>
          ,
          <source>in: Proceedings of the 40th International Conference on Machine Learning</source>
          ,
          <year>2023</year>
          , pp.
          <fpage>2641</fpage>
          -
          <lpage>2688</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>F.</given-names>
            <surname>Grandoni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Ravi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Zenklusen</surname>
          </string-name>
          ,
          <article-title>New approaches to multi-objective optimization</article-title>
          ,
          <source>Mathematical Programming</source>
          <volume>146</volume>
          (
          <year>2014</year>
          )
          <fpage>525</fpage>
          -
          <lpage>554</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>A.</given-names>
            <surname>Srinivasan</surname>
          </string-name>
          ,
          <article-title>Improved approximations of packing and covering problems</article-title>
          ,
          <source>in: Proceedings of the twenty-seventh annual ACM symposium on Theory of computing</source>
          ,
          <year>1995</year>
          , pp.
          <fpage>268</fpage>
          -
          <lpage>276</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>A.</given-names>
            <surname>Ghosh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Dutt</surname>
          </string-name>
          , C. Wilson,
          <article-title>When fair ranking meets uncertain inference</article-title>
          ,
          <source>in: Proceedings of the 44th international ACM SIGIR conference on research and development in information retrieval</source>
          ,
          <year>2021</year>
          , pp.
          <fpage>1033</fpage>
          -
          <lpage>1043</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>