# proportionally_fair_matching_via_randomized_rounding__a1ce9463.pdf Proportionally Fair Matching via Randomized Rounding Sharmila Duppala1, Nathaniel Grammel1, Juan Luque1, Calum Mac Rury2, Aravind Srinivasan1 1Department of Computer Science, University of Maryland, College Park 2Graduate School of Business, Columbia University sduppala@umd.edu, ngrammel@umd.edu, jluque@umd.edu, cm4379@columbia.edu, asriniv1@umd.edu Given an edge-colored graph, the goal of the proportional fair matching problem is to find a maximum weight matching while ensuring proportional representation (with respect to the number of edges) of each color. The colors may correspond to demographic groups or other protected traits where we seek to ensure roughly equal representation from each group. It is known that, assuming ETH, it is impossible to approximate the problem with ℓcolors in time 2o(ℓ)n O(1) (i.e., subexponential in ℓ) even on unweighted path graphs. Further, even determining the existence of a non-empty matching satisfying proportionality is NP-Hard. To overcome this hardness, we relax the stringent proportional fairness constraints to a probabilistic notion. We introduce a notion we call δ-PROBABLYFAIR, where we ensure proportionality up to a factor of at most (1 δ) for some small δ > 0 with high probability. The violation δ can be brought arbitrarily close to 0 for some good instances with large values of matching size. We propose and analyze simple and fast algorithms for bipartite graphs that achieve constant-factor approximation guarantees, and return a δ-PROBABLYFAIR matching. 1 Introduction Graph matching, in particular the special case of bipartite matching, is a classical computational problem with many applications such as ad allocation (Mehta et al. 2007; Mehta 2013), crowdsourcing (Ho and Vaughan 2021; Tong et al. 2016; Hikima et al. 2021; Dickerson et al. 2019), job hiring (Purohit, Gollapudi, and Raghavan 2019), organ exchange (Dickerson, Procaccia, and Sandholm 2013; Mc Elfresh, Bidkhori, and Dickerson 2019; Farnadi et al. 2021; Farhadi, Gilbert, and Hajiaghayi 2022), and ride sharing (Hikima et al. 2021; Nanda et al. 2020; Dickerson et al. 2018). Matching is also a fundamental subroutine in several domains including computer vision (Belongie, Malik, and Puzicha 2002), text similarity estimation (Pang et al. 2016) in natural language processing, machine learning algorithms (Huang and Jebara 2007; Jebara, Wang, and Chang 2009; Huang and Jebara 2011; Choromanski, Jebara, and Tang 2013) and computational biology (Zaslavskiy, Bach, and Vert 2009) among others. Copyright 2025, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved. In many applications, algorithms are employed to make decisions that could significantly impact the lives of individuals. In such settings, we ought to ensure fairness and equity in the decision-making process. However, classical algorithms typically do not consider such socially motivated objectives and constraints such as fairness or diversity. For instance, a ride-sharing platform may provide better quality assignments (e.g., with shorter wait times, newer vehicles, or better pricing) to riders from certain demographic groups while providing lower quality assignments to others as studied by (Esmaeili et al. 2023). Similarly, cognitive biases from workers can negatively impact the result of crowdsourced data, which may potentially be mitigated by assigning a diverse set of workers to a wide range of different task types. There are many ways to formalize and incorporate some notion of fairness into the computed solutions of matching problems (see, e.g., Esmaeili et al. (2023); Bandyapadhyay et al. (2023)). Following the work of Bandyapadhyay et al. (2023), we consider a notion of proportional fairness. This notion is closely related to the notion of disparate impact (Feldman et al. 2015) and has been explored in various fundamental problems, including matroid optimization (Chierichetti et al. 2019), clustering (Bera et al. 2019), online matching (Sankar et al. 2021), set packing (Duppala et al. 2023), spectral clustering (Kleindessner et al. 2019), and others. In the present work, we consider a formulation of proportional fairness known as (α, β)-BALANCEDMATCHING: given an edge-colored graph (where edge colors may denote membership in specific groups), the objective is to find a maximum weight matching ensuring that the proportion of edges of any color among all matched edges lies between α and β where 0 α β 1. We highlight that (α, β)-BALANCEDMATCHING adheres to two key criteria: restricted dominance, which limits the fraction of edges selected from any given group to at most β, and minority protection, which ensures that the fraction of edges from any given group is at least α. This notion of fairness can be applied to the applications discussed above, such as in ride-sharing, job hiring, and crowd sourcing. By assigning colors to edges (rather than only to vertices), the color is able to capture information about both sides of the match. For instance, in ridesharing, the edge color may encode information about both the The Thirty-Ninth AAAI Conference on Artificial Intelligence (AAAI-25) driver (e.g., vehicle type, rating) and rider (e.g., race or gender), the distance between the driver and rider, and even pricing information (e.g., whether dynamic or surge pricing is applied). As a concrete example, we may choose to encode information about a rider s race or economic status as well as whether an assignment incurs increased fares due to dynamic pricing; then, an (α, β)-BALANCEDMATCHING should ensure that no racial or economic group receives increased fares disproportionately often compared to other riders. In crowdsourcing, we may use edge color to encode both the task type and demographic information about the worker to ensure that a diverse set of workers are assigned to each type of task (for cognitive or human intelligence tasks, this may increase the diversity of perspectives among responses, and thus the overall quality of the final aggregate data). As a final example application, consider online advertising: an edge s color may encode information about the type of advertisement (or, in political advertising, the political party sponsoring the ad) and the user s personal information. Here, an (α, β)-BALANCEDMATCHING would limit the extent of targeted advertising based on protected demographic traits, which may violate (or appear to violate) a user s expectations and rights with regards to their privacy and use of their data; the social consequences of such indiscriminate highly targeted advertising were seen in the real world with the Cambridge Analytica data scandal around the 2016 US presidential election, which saw Facebook s CEO Mark Zuckerberg testify before congress (Lewis and Hilder 2018; Confessore 2018). Unfortunately, although this notion of fairness seems quite powerful, it may in fact be too strong in the basic formulation: Bandyapadhyay et al. (2023) demonstrated that the problem of (α, β)-BALANCEDMATCHING is NP-hard to approximate, even when G is an unweighted path graph. To address this fundamental hardness, we consider a slightly relaxed probabilistic notion of proportional fairness. Roughly speaking, we allow for small violations of the α and β bounds while still guaranteeing a constant factor approximation on the overall objective, i.e., the weight of the matching. Particularly, we ask the following question: does there exists an approximation algorithm with constant factor violations in fairness while guaranteeing a good approximation on the objective? We answer this question by designing a 1 2-approximate algorithm for bipartite graphs and whose matching is probably1 almost fair. That is, there exists a small constant δ > 0 for which the matching is (α(1 δ), β(1+δ))-balanced with high probability. A formal definition of this notion is given in Section 3. Thus, while the (α, β)-BALANCEDMATCHING formulation of Bandyapadhyay et al. (2023) remains hard on bipartite graphs, we can achieve our notion of probably almost fair. We note that for the special case when α = 0 and β < 1, we can attain a constant approximation ratio without violating the fairness constraint at all. Combined with the hardness result of Bandyapadhyay et al. (2023), this implies that the one-sided fairness case is strictly easier than the two-sided case. 1i.e., with probability close to 1 2 Related Work A significant body of research in fair matching explored various notions of fairness. Among these, several notions of group fairness, such as socially-fair matching (Bandyapadhyay et al. 2023), focus on Rawlsian (maxmin) fairness, aiming to maximize the utility for the worst-off group (Esmaeili et al. 2023). On the other hand, proportional fairness, as explored in Bandyapadhyay et al. (2023); Chierichetti et al. (2019), ensures a proportional representation of edges from each group, while leximin fairness (Garc ıa-Soriano and Bonchi 2020) is also considered. Most of these studies involve assigning group memberships to vertices in the graph. However, works such as (Bandyapadhyay et al. 2023; Chierichetti et al. 2019) investigate fairness in edge-colored graphs, which aligns with our area of study. We note that (Bandyapadhyay et al. 2023; Chierichetti et al. 2019) focus only on the unweighted setting where the objective is the cardinality/size of the output. That being said, our works are incomparable. While ours applies to edge weighted bipartite graphs, (Chierichetti et al. 2019) consider when the constraint system is described by the intersection of two-matroids (this generalizes unweighted bipartite matching). They focus on the case of two colors, and present a polynomial-time algorithm achieving a 3/2-approximation. Bandyapadhyay et al. (2023) consider when input is a general graph and the number of colors may be greater than two. They show that approximating the problem for an arbitrary number of colors is NP-hard and moreover that approximating the optimal solution requires time exponential in ℓunless the Exponential Time Hypothesis (ETH) (Impagliazzo and Paturi 1999) is false. Their main algorithm therefore runs in time exponential in ℓ, with an approximation guarantee of 1/(4ℓ). Note that even for the easier case when α = 0, their algorithm may still violate the fairness constraint imposed by β by a factor up to 1 + 1/ℓ. Their hardness result motivates our study of the slightly relaxed probabilistic fairness. This relaxation allows us to improve on the prior work by achieving, in polynomial time, a constant factor (i.e., one half) approximation in the matching weight while ensuring, with high probability, only a small violation in the fairness constraints. 3 Preliminaries and Problem Formulation We denote [k] = {1, . . . , k} for any positive integer k. Consider an undirected bipartite graph G = (U, V, E) with the set of edges E forming a partition c [ℓ]Ec, where denotes a disjoint union over the sets Ec. Each color c [ℓ] is associated with the set of edges Ec, representing edges of color c. For any color class c, we define ψc(e) such that ψc(e) = 1 if e Ec, and ψc(e) = 0 otherwise. A matching M E in G is defined as a subset of edges where no two edges in M share a common vertex. For a vertex v of G, let N(v) and δ(v) denote the neighbors and incident edges of v, i.e., N(v) := {u : (u, v) E} and δ(v) := {(u, v) : (u, v) E}. For any α, β [0, 1] and α β, we define a matching M E as (α, β)-BALANCED if, for each color c [ℓ], the proportion of edges in M belonging to color c lies between α and β. In other words, M is (α, β)-BALANCED if it contains at least α and at most β fraction of edges from every color. The goal of the proportional fair matching problem (PFM) is to find a (α, β)-BALANCEDMATCHING of G with maximum weight, and we denote the weight of such a matching by OPT. Since (Bandyapadhyay et al. 2023) proved that it is NP-Hard to verify the existence of a (α, β)-BALANCEDMATCHING in the PFM problem even on unweighted path graphs, we focus on deriving approximation ratios which hold against OPT. 3.1 Our Contributions and Techniques We design Algorithm 1, an efficient randomized algorithm for weighted matching on bipartite graphs with fairness constraints specified by 0 < α β < 1. By allowing the α (respectively, β) fairness constraint to be violated up to a multiplicative factor of 1 δ (respectively, 1 + δ), we show that Algorithm 1 attains an asymptotic approximation ratio against OPT. (We write the exact asymptotic guarantee of Algorithm 1 in Theorem 4.1). We argue that if the input is well-behaved, then we can take δ 0, and so we barely violate the fairness constraints, while still attaining a constant approximation ratio. We next analyze Algorithm 1 when α = 0 and β < 1. By allowing for a 1 ε 2 -approximation ratio, where 0 < ε < 1 is a parameter of Algorithm 1 which can be chosen arbitrarily small, we show how to ensure that the β fairness constraints are satisfied exactly. This allows us to get a true approximation ratio which is arbitrarily close to 1/2. We also note that our algorithms can be extended to the slightly more general setting where we have different proportionality requirements for each color; e.g., where we have values αc, βc (with 0 α β 1) for each color c [ℓ], and we insist that αc|M| |Mc| βc|M| for each c. This allows us to capture settings where we wish to represent different groups in different proportions, for example so that each group s representation in the matching is roughly proportional to its representation in the original graph. We take a linear programming (LP) based approach to designing Algorithm 1. Below we state LP-FAIR, which extends the standard matching polytope to include the proportionality constraints described by 0 < α β < 1: e E wexe (LP-FAIR) e δ(v) xe 1, v U V (1a) e Ec xe β X e E xe, c [ℓ] (1b) xe 0, e E (1c) Lemma 3.1. LP-FAIR relaxes OPT. That is, OPT P e E wexe, where x = (xe)e E is an optimal solution to LP-FAIR. As a first attempt to using LP-FAIR, observe that since G is bipartite, if x = (xe)e E is an optimal solution to the LP, then we can write x as a convex combination of integral matchings. By randomly sampling such a match- ing according to the coefficients of the convex combination, this yields a randomized algorithm with expected value P e E wexe OPT. Unfortunately, while this preserves the fairness constraints in expectation due to (1b), there is no guarantee that any particular matching we output will satisfy these constraints. In order for an algorithm to succeed with constant probability, an ideal approach would be to match each edge e with probability xe while ensuring that the size of a matching of a color class c is concentrated about P e Ec xe. For instance, if we had negative correlation amongst the matching statuses of the edges of Ec, then this would be sufficient (see (Dubhashi and Ranjan 1996)). The GKPS dependent rounding scheme of (Gandhi et al. 2006) provides such a guarantee for certain edge subsets of G. However, since the edges of Ec are adversarially chosen, it is easy to construct an example where the GKPS rounding scheme induces positive correlation amongst the matched statuses. Due to the limitations of these approaches, we need to round our LP in a different way. Let us suppose that we round x into a random matching M, where we denote Mc := M Ec for a fixed color class c [ℓ]. Roughly speaking, our goal is to ensure that the following properties simultaneously hold, where δ > 0 is a fixed parameter to be specified in Theorem 4.3: 1. For each e E, Pr[e M] = xe/2. 2. With constant probability, |M| (1 δ)E[|Mc|] E[|M|] , (1 + δ)E[|Mc|] Property 1 and Lemma 3.1 then imply that e M we] = X e E wexe/2 OPT/2. Moreover, since E[|Mc|] = P e Ec xe/2 and E[|M|] = P e E xe/2, we can combine Property 2. with (1b) to conclude that (1 δ)α|M| |Mc| (1 + δ)β|M|. Our approach uses a randomized rounding tool known as a contention resolution scheme (CRS). CRS s were originally introduced by (Chekuri, Vondr ak, and Zenklusen 2014) to solve certain constrained sub-modular optimization problems. Motivated by the applications to prophet inequalities, they were later adapted to the online setting by (Feldman, Svensson, and Zenklusen 2021), where they are referred to as online contention resolution schemes (OCRS s). Since then, they have found many other applications, and have become a fundamental tool in stochastic optimization. We continue this line of research and show that this tool can be useful even for our problem which is offline and has no inherit stochasticity. Our algorithm first has every v V independently draw a random vertex Fv N(v), where Pr[Fv = u] = xu,v (2) for each u N(v). (For convenience, we define Fv to be a null element if no draw is made, where P[Fv = ] = 1 P u N(v) xu,v). If Fv = u, we say that v proposes to u and refer to Fv as a proposal for u. At this point, we know that each vertex v V has made at most one proposal. However, a fixed vertex u U may have received multiple proposals, and so we must resolve which proposal each vertex u should take. This is precisely the purpose of the OCRS, and we use the explicit scheme of (Ezra et al. 2022). For a fixed u U, the input required of the OCRS is the edge values (xu,v)v N(u), together with the proposals (Fv)v N(u). Moreover, in the contention resolution framework, (Fv)v N(u) must be independent. Under these conditions, the OCRS outputs at most one edge (u, v) with Fv = u, while guaranteeing that for all v N(u) Pr[(u, v) is output | Fv = u] = 1/2. (3) Due to guarantee of (3), the OCRS is said to be 1/2selectable in the literature. By concurrently running a separate execution of this OCRS for each u U, the matching we output satisfies Property 1. We still need the explain why our algorithm satisfies Property 2. It turns out our algorithm has a very simple description. First, we order the vertices of V arbitrarily, say v1, . . . , vn. Then, when vt is processed and proposes to u (i.e., Fvt = u), we draw an independent random bit Au,vt We match (u, vt) provided u was not previously matched and Au,vt = 1. We note that in regards to verifying Property 2, the specific Bernouli parameter of Au,vt is not important. We simply require that (Ae)e E are drawn independently. If we let M be the output of the algorithm, and Mc = Ec M, then we can analyze the Doob martingale of |Mc|. Here the Doob martingale is defined by revealing the partial matching after the vertices v1, . . . , vt are processed. Due to the simplicity of our algorithm, we can bound the one-step changes in the Doob martingale in a very precise way that is related to P e Ec xe. Note that the standard Azuma Hoeffding martingale concentration inequality does not allow for good bounds due to constant worst-case onestep changes (as we explain in Section 5.1 and for more details we refer to the full version of our paper (Duppala et al. 2024)) leading to Θ(n) over the entire process from t=1 to t = n. We show that by controlling the variance of this martingale, we can get stronger bounds via Freedman s inequality. More precisely, we can tighten the concentration on the random variable Mc by using one-step variance which can be much smaller than the worse-case one-step changes since the events involving the bad cases occur with small probability. The total variance can be precisely computed and is upper bounded by 10 P e Ec xe which is much smaller than Θ(n). The concentration helps us achieve almost fairness, i.e., |Mc| violates the fairness constraints on each side by at most a δ-multiplicative factor for some small δ > 0. Finally, when we only have β-sided fairness constraints i.e., α = 0, β < 1, we apply an LP perturbation trick to recover a matching that satisfies the constraints exactly, meaning that without any violations with only a 0 < ϵ < 1 multiplicative loss in the objective. However, it is important to note that our algorithm still has a probabilistic guarantee: with a certain probability, the matching returned will not satisfy the fairness constraints. At the expense of additional runtime, we can improve the success probability to be arbitrarily close to 1 by repeatedly running our algorithm and taking the best solution which is feasible. 4 Our Algorithm We begin by formally describing our algorithm to find a matching for a bipartite graph G = (U, V, E) with color classes c [ℓ]Ec and α β 1. Note that our algorithm takes in a parameter 0 < ε < 1 which is only needed for the special case when α = 0. For δ > 0, a random matching M E is said to be δPROBABLYFAIR with respect to 0 α β 1 if for any color class c, 2 Pr (1 δ)α |Mc| |M| (1 + δ)β 1 fc(δ, G). (4) where fc(δ, G) is a term that depends on the tunable parameter δ and the input instance. This definition allows us to violate the constraints by a small δ-multiplicative factor which can be adjusted to attain a reasonable probability of success. Algorithm 1 OCRS Rounding Algorithm Input: G = (U, V, E) with color classes (Ec)c [ℓ], 0 α β 1, and 0 < ε < 1. Output: subset of edges forming a matching M. 1: M 2: If α > 0, compute an optimal solution x = (xe)e E to LP-FAIR with 0 < α β 1. Otherwise, compute an optimal solution x to LP-FAIR with β in (1b) replaced by β = (1 ε)β. 3: Order the vertices of V as v1, . . . , vn arbitrarily. 4: Draw (Fvt)n t=1 as described in (2). 5: for t = 1, . . . , n with Fvt = do 6: Set u := Fvt, and au,vt := 1/2 1 (1/2) P i 0, Pr |Mn M0| λ 2 exp λ2 Remark 5.3. The variance term Var( Mt | Ht 1) reduces to Var[ Mt | Ht 1] = E[| Mt|2 | Ht 1] since Var[ Mt | Ht 1] := E[| Mt|2 | Ht 1] E[ Mt | Ht 1]2 and E[ Mt | Ht 1] = 0 due to the martingale property. Freedman s inequality still depends on worst case onestep change Λ i.e., an upper bound on | Mt|. However, its dependence on this parameter is less severe compared to the Azuma Hoeffding inequality. The key difference is that Freedman s inequality depends on E[| Mt|2 | Ht 1], and so we get to average over the randomness in Fvt. This is much smaller than than the pessimistic bound of Lemma 5.1, as even conditional on Ht 1, the probability that a worstcase change in | Mt| occurs is small. 5.2 Concentration of |Mc| via Freedman s Inequality Freedman s inequality allows us to use the expected onestep changes instead of the worst case changes as shown in the Observation 5.1 below. Observation 5.1. Var( Mt | Ht 1) 2E[| Mt| | Ht 1] We first prove Lemma 5.4 which establishes a bound on the one-step changes in the random variable Z(vk) at any step t where k t. The proofs can be found in the full version of the paper (Duppala et al. 2024). Notice that these one step differences are in the worst case; therefore they can be as large as 2 as discussed in the previous section. However, when we compute the one-step variances, we get to take an expectation over the randomness of Fvt as shown in Lemma 5.5 and Lemma 5.6. This allows us to bypass this worst-case bound of 2. Lemma 5.4. For any step 1 t n and u N(vt), E Z(vt) | Ht 1, Fvt = u E Z(vt) | Ht 1 ψc(u, vt) + P w N(vt) ψc(w, vt)xw,vt E Z(vk) | Ht 1, Fvt = u E Z(vk) | Ht 1 ψc(u, vk)xu,vk + P w N u(vt) ψc(w, vk)xw,vkxw,vt if k > t. Following this lemma, we can say that the one-step change in the size of the matching restricted to color class c at any step t, conditioned on the event Fvt = u, is given by: E[Mn | Ht 1, Fvt = u] E[Mn | Ht 1] E[Z(vk) | Ht 1, Fvt = u] E[Z(vk) | Ht 1] . Therefore, by using the Lemma 5.4 we can derive the following result about the expected one-step change in the size of the matching restricted to color class c when Fvt = u. Lemma 5.5. For any step 1 t n and u N(vt), X u N(vt) xu,vt| Mt(u)| 4M0 where Mt(u)=E Mn | Ht 1, Fvt = u E Mn | Ht 1 . We next consider the case when Fvt = . Recall that this means Fvt = , or Fvt = u for some u N(vt), yet Au,vt = 0. Lemma 5.6. For any step 1 t n, X t [n] |E Mn | Ht 1, Fvt = E Mn | Ht 1 | 2M0. Therefore, by combining Lemma 5.5 and Lemma 5.6, we can easily derive a bound on the sum of one-step variances i.e., P t [n] Var( Mt | Ht 1) used in the Freedman s inequality. Formally, we can prove the following. Lemma 5.7. P t [n] Var( Mt | Ht 1) 12M0 where Var( Mt | Ht 1) is the variance in the one-step change of Mn at time t and M0 = E[|Mc|]. Therefore, by applying the Freedman s inequality (i.e., Theorem 5.2) we get the desired concentration for the size of matching from color class c. Theorem 5.8. For any color class c, Algorithm 1 returns a matching Mc = M Ec that is sharply concentrated around its expected value M0 = E[|Mc|]. Specifically, for any δ > 0, we have that: Pr h |Mc| M0 δM0 i 2 exp δ2 P e Ec xe 28 This concludes that Property 2 described in Section 3 can be satisfied. Finally combining Property 2 together with the fairness constraints in (1b), we can conclude the following lemma. Lemma 5.9. For any c [ℓ], and δ > 0, Algorithm 1 returns a matching M that satisfies the following: (1 δ)α |Mc| |M| (1 + δ)β δ2 P e Ec xe 28 Lemma 5.9 proves that Algorithm 1 returns a δPROBABLYFAIR matching. This lemma, along with the edge selectability guarantees of the OCRS rounding algorithm as stated in Property 1 completes the proof of Theorem 4.1. 6 Exact Fairness for β-Fairness Constraints in Bipartite Graphs In the previous section we showed that our algorithm provides a 1/2-approximation of the objective, provided we violate the two-sided fairness constraints by multiplicative factors dependent on δ. Suppose that α = 0 and only β imposes the fairness constraint, we can argue that by using a simple LP perturbation trick, we can remove the δviolations and make it an exact guarantee while still attaining an asymptotic 1/2-approximation of the objective. More precisely, we satisfy the β-sided fairness constraint exactly. We are also able to provide a better bound on our failure probability. Previously, this was fc(δ, G), and it depended on P e Ec xe. We improve this to a new, smaller failure probability f(ϵ, G), which now only depends on β P e E xe and a tunable parameter ϵ. This makes our algorithm more robust to the structure of the input instance. If α = 0, we modify our algorithm slightly. We begin by solving a perturbed LP where β in LP-FAIR is replaced by β(1 ϵ) where 0 < ϵ < 1. The perturbed LP requires that any feasible solution must satisfy a stronger β-fairness constraint, which results in a slightly weaker solution to our problem (see Lemma 6.1). Let x denote the optimal solution to the perturbed LP i.e., LP-FAIR with β. Since our algorithm still executes an OCRS on each u U concurrently, Equation (3) ensures that the matching M has expected weight P e E wexe/2. We now relate P e E wexe to the optimal solution to LP-FAIR when the fairness constraint is β. This will allow us to lower bound the expected weight of our matching in terms of OPT in Corollary 6.2. (Recall that OPT is the weight of the optimal matching in the original problem with fairness constraint β.) Lemma 6.1. For any 0 < ϵ < 1, the optimal LP solution to LP-FAIR with β = (1 ϵ)β is at least P e E wexe (1 ϵ) P e E weye, where y = (ye)e E is an optimal LP solution to LP-FAIR with β. Proof. Any feasible solution to LP-FAIR with α = 0 and β(1 ϵ) < 1 is also a feasible solution when α = 0 and β < 1. Let x = (xe)e E and y := (ye)e E are optimal fractional solutions to LP-FAIR with β = β(1 ϵ) and β = β respectively. Therefore, X e E wexe (1 ϵ) X e E weye. (8) Corollary 6.2. Algorithm 1 returns a matching M with an expected weight of at least 1 We next argue that the matching M we output satisfies the β-fairness constraints exactly with a probability of at least 1 f(ϵ, G) where f(ϵ, G) = 2 exp ϵ2β P e E xe 28 . Note that the failure probability of our algorithm now only depends on the parameter ϵ and P e E xe (see Lemma 6.3). It is also reduced by a factor of 2, since we can use a onesided version of Freedman s inequality when α = 0 and β > 0. Here, P e E xe refers to the size of optimal fractional matching of LP-FAIR with β = β(1 ϵ). Lemma 6.3. Given an optimal solution x to LP-FAIR with β = (1 ϵ)β, then we can recover a solution that satisfies the constraints exactly i.e., no violations in β-fairness constraints. Formally, we can say that for any color c, and 0 < ϵ < 1, the size of the matching restricted to color class c is at most β|M| with high probability, |M| β 1 2 exp ϵ2β P e E xe 28 Therefore we can conclude that the probability with which our algorithm fails to satisfy β-fairness constraints is now tightened from fc(δ, G) which depends on P e Ec xe of individual color classes, to a global quantity β P e E xe in f(ϵ, G). This concludes the proof of Theorem 4.3. 6.1 Brute Force Algorithm for Small Instances Given an instance of PROPORTIONALLYFAIRMATCHING, recall that the performance of Algorithm 1 improves the larger P e E βxe is, where x = (xe)e E is an optimal solution to LP-FAIR with β = (1 ε)β. We now handle the case where P e E βxe C by running a simple brute-force algorithm. In order to see how to do this, let y = (ye)e E be an optimal solution to LPFAIR with β. (We don t actually use y in our algorithm, it is just for the analysis). Define L = mine E we and U = maxe E we. Then, e E wexe (1 ε) X e E weye (1 ε)L X where the second inequality from the left uses Lemma 6.1, and the rest use the trivial upper and lower bounds of U and L. We thus have that e E ye. (9) Thus, if P e E βxe C, then P e E ye U L(1 ε) C β via (9). Let us now suppose that MOP T is a maximum weighted matching with respect to fairness constraint β. Then, L|MOPT| P e MOPT we P e E weye U P e E ye U U βL C 1 ε, where the last inequality uses the assumed inequality P e E ye U βL C 1 ε. It follows that |MOP T | U 2 L2 C β(1 ε). (10) Thus, if we run a brute force algorithm where we check matchings which are fair with respect to β, and which contain at most U 2 L2 C β(1 ε) edges, then (10) ensures that we ll return an optimal matching. 7 Conclusion and Future Work In contrast to our current algorithm which processes vertices in a fixed or arbitrary order, Random Order Contention Resolution Scheme (RCRS) from (Adamczyk and Włodarczyk 2018) provides better selection guarantees where vertices are processed in a random order. More precisely, RCRS achieves an approximation ratio of 1 1 e. However, it appears to be much more challenging to compute the onestep variance of the martingale at each time t, making it difficult to derive a useful bound for the sum of variances P t [n] Var(| Mt| | Ht 1). Thus, it remains an interesting open problem to determine if we can overcome this obstacle to improve the approximation factor from 1/2 to 1 1 e. Moreover, adapting the analysis to general graphs is also an interesting future direction. Acknowledgments Sharmila Duppala, Nathaniel Grammel, Juan Luque, and Aravind Srinivasan were supported in part by NSF award number CCF-1918749. Adamczyk, M.; and Włodarczyk, M. 2018. Random order contention resolution schemes. In 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS), 790 801. IEEE. Bandyapadhyay, S.; Fomin, F. V.; Inamdar, T.; and Simonov, K. 2023. Proportionally Fair Matching with Multiple Groups. ar Xiv preprint ar Xiv:2301.03862. Belongie, S.; Malik, J.; and Puzicha, J. 2002. Shape matching and object recognition using shape contexts. IEEE transactions on pattern analysis and machine intelligence, 24(4): 509 522. Bera, S.; Chakrabarty, D.; Flores, N.; and Negahbani, M. 2019. Fair algorithms for clustering. Advances in Neural Information Processing Systems, 32. Chekuri, C.; Vondr ak, J.; and Zenklusen, R. 2014. Submodular function maximization via the multilinear relaxation and contention resolution schemes. SIAM Journal on Computing, 43(6): 1831 1879. Chierichetti, F.; Kumar, R.; Lattanzi, S.; and Vassilvtiskii, S. 2019. Matroids, matchings, and fairness. In The 22nd international conference on artificial intelligence and statistics, 2212 2220. PMLR. Choromanski, K. M.; Jebara, T.; and Tang, K. 2013. Adaptive Anonymity via b-Matching. Advances in Neural Information Processing Systems, 26. Confessore, N. 2018. Cambridge Analytica and Facebook: The Scandal and the Fallout So Far. The New York Times. Dickerson, J.; Sankararaman, K.; Srinivasan, A.; and Xu, P. 2018. Allocation Problems in Ride-Sharing Platforms: Online Matching With Offline Reusable Resources. Proceedings of the AAAI Conference on Artificial Intelligence, 32(1). Dickerson, J. P.; Procaccia, A. D.; and Sandholm, T. 2013. Failure-aware kidney exchange. In Proceedings of the fourteenth ACM conference on Electronic commerce, 323 340. Dickerson, J. P.; Sankararaman, K. A.; Srinivasan, A.; and Xu, P. 2019. Balancing relevance and diversity in online bipartite matching via submodularity. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, 1877 1884. Dubhashi, D. P.; and Ranjan, D. 1996. Balls and Bins: A Study in Negative Dependence. BRICS Report Series, 3(25). Duppala, S.; Grammel, N.; Luque, J.; Mac Rury, C.; and Srinivasan, A. 2024. Proportionally Fair Matching via Randomized Rounding. ar Xiv:2412.11238. Duppala, S.; Luque, J.; Dickerson, J.; and Srinivasan, A. 2023. Group fairness in set packing problems. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, IJCAI 23. ISBN 978-1-956792-03-4. Esmaeili, S.; Duppala, S.; Cheng, D.; Nanda, V.; Srinivasan, A.; and Dickerson, J. P. 2023. Rawlsian fairness in online bipartite matching: Two-sided, group, and individual. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, 5624 5632. Ezra, T.; Feldman, M.; Gravin, N.; and Tang, Z. G. 2022. Prophet Matching with General Arrivals. Mathematics of Operations Research, 47(2): 878 898. Farhadi, A.; Gilbert, J.; and Hajiaghayi, M. 2022. Generalized Stochastic Matching. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, 10008 10015. Farnadi, G.; St-Arnaud, W.; Babaki, B.; and Carvalho, M. 2021. Individual Fairness in Kidney Exchange Programs. Proceedings of the AAAI Conference on Artificial Intelligence, 35(13): 11496 11505. Feldman, M.; Friedler, S. A.; Moeller, J.; Scheidegger, C.; and Venkatasubramanian, S. 2015. Certifying and Removing Disparate Impact. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD 15, 259 268. New York, NY, USA: Association for Computing Machinery. ISBN 9781450336642. Feldman, M.; Svensson, O.; and Zenklusen, R. 2021. Online Contention Resolution Schemes with Applications to Bayesian Selection Problems. SIAM Journal on Computing, 50(2): 255 300. Freedman, D. A. 1975. On tail probabilities for martingales. the Annals of Probability, 100 118. Gandhi, R.; Khuller, S.; Parthasarathy, S.; and Srinivasan, A. 2006. Dependent rounding and its applications to approximation algorithms. Journal of the ACM (JACM), 53(3): 324 360. Garc ıa-Soriano, D.; and Bonchi, F. 2020. Fair-by-design matching. Data Mining and Knowledge Discovery, 34: 1291 1335. Hikima, Y.; Akagi, Y.; Kim, H.; Kohjima, M.; Kurashima, T.; and Toda, H. 2021. Integrated Optimization of Bipartite Matching and Its Stochastic Behavior: New Formulation and Approximation Algorithm via Min-cost Flow Optimization. Proceedings of the AAAI Conference on Artificial Intelligence, 35(5): 3796 3805. Ho, C.-J.; and Vaughan, J. 2021. Online Task Assignment in Crowdsourcing Markets. Proceedings of the AAAI Conference on Artificial Intelligence, 26(1): 45 51. Huang, B.; and Jebara, T. 2007. Loopy belief propagation for bipartite maximum weight b-matching. In Artificial Intelligence and Statistics, 195 202. PMLR. Huang, B.; and Jebara, T. 2011. Fast b-matching via sufficient selection belief propagation. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, 361 369. JMLR Workshop and Conference Proceedings. Impagliazzo, R.; and Paturi, R. 1999. Complexity of k SAT. In Proceedings. Fourteenth Annual IEEE Conference on Computational Complexity (Formerly: Structure in Complexity Theory Conference) (Cat.No.99CB36317), 237 240. Jebara, T.; Wang, J.; and Chang, S.-F. 2009. Graph construction and b-matching for semi-supervised learning. In Proceedings of the 26th annual international conference on machine learning, 441 448. Kleindessner, M.; Samadi, S.; Awasthi, P.; and Morgenstern, J. 2019. Guarantees for spectral clustering with fairness constraints. In International Conference on Machine Learning, 3458 3467. PMLR. Lewis, P.; and Hilder, P. 2018. Leaked: Cambridge Analytica s blueprint for Trump victory. The Guardian. Mc Elfresh, D. C.; Bidkhori, H.; and Dickerson, J. P. 2019. Scalable Robust Kidney Exchange. Proceedings of the AAAI Conference on Artificial Intelligence, 33(01): 1077 1084. Mehta, A. 2013. Online Matching and Ad Allocation. Foundations and Trends in Theoretical Computer Science, 8 (4): 265 368. Mehta, A.; Saberi, A.; Vazirani, U.; and Vazirani, V. 2007. Ad Words and Generalized Online Matching. Journal of the ACM, 54, no. 5. Nanda, V.; Xu, P.; Sankararaman, K. A.; Dickerson, J.; and Srinivasan, A. 2020. Balancing the Tradeoff between Profit and Fairness in Rideshare Platforms during High-Demand Hours. Proceedings of the AAAI Conference on Artificial Intelligence, 34(02): 2210 2217. Pang, L.; Lan, Y.; Guo, J.; Xu, J.; Wan, S.; and Cheng, X. 2016. Text matching as image recognition. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 30. Purohit, M.; Gollapudi, S.; and Raghavan, M. 2019. Hiring Under Uncertainty. In Chaudhuri, K.; and Salakhutdinov, R., eds., Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, 5181 5189. PMLR. Sankar, G. S.; Louis, A.; Nasre, M.; and Nimbhorkar, P. 2021. Matchings with group fairness constraints: Online and offline algorithms. ar Xiv preprint ar Xiv:2105.09522. Tong, Y.; She, J.; Ding, B.; Wang, L.; and Chen, L. 2016. Online mobile Micro-Task Allocation in spatial crowdsourcing. In 2016 IEEE 32nd International Conference on Data Engineering (ICDE), 49 60. Zaslavskiy, M.; Bach, F.; and Vert, J.-P. 2009. Global alignment of protein protein interaction networks by graph matching methods. Bioinformatics, 25(12): i259 1267.