<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Fair Labeled Clustering</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>08/14/2022</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10409112</idno>
					<idno type="doi">10.1145/3534678.3539451</idno>
					<title level='j'>KDD '22: Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Seyed A. Esmaeili</author><author>Sharmila Duppala</author><author>John P. Dickerson</author><author>Brian Brubach</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The widespread use of machine learning algorithms in settings that directly affect human lives has instigated significant interest in designing variants of these algorithms that are provably fair. Recent work in this direction has produced numerous algorithms for the fundamental problem of clustering under many different notions of fairness. Perhaps the most common family of notions currently studied is group fairness, in which proportional group representation is ensured in every cluster. We extend this direction by considering the downstream application of clustering and how group fairness should be ensured for such a setting. Specifically, we consider a common setting in which a decision-maker runs a clustering algorithm, inspects the center of each cluster, and decides an appropriate outcome (label) for its corresponding cluster. In hiring for example, there could be two outcomes, positive (hire) or negative (reject), and each cluster would be assigned one of these two outcomes. To ensure group fairness in such a setting, we would desire proportional group representation in every label but not necessarily in every cluster as is done in group fair clustering. We provide algorithms for such problems and show that in contrast to their NP-hard counterparts in group fair clustering, they permit efficient solutions. We also consider a well-motivated alternative setting where the decision-maker is free to assign labels to the clusters regardless of the centers' positions in the metric space. We show that this setting exhibits interesting transitions from computationally hard to easy according to additional constraints on the problem. Moreover, when the constraint parameters take on natural values we show a randomized algorithm for this setting that always achieves an optimal clustering and satisfies the fairness constraints in expectation. Finally, we run experiments on real world datasets that validate the effectiveness of our algorithms.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">INTRODUCTION</head><p>Machine learning applications have seen widespread use across diverse areas from criminal justice to hiring to healthcare. These applications significantly affect human lives and risk contributing to discrimination <ref type="bibr">[4,</ref><ref type="bibr">29]</ref>. As a result, research has been directed toward the creation of fair machine learning algorithms <ref type="bibr">[17]</ref>. Much existing work has focused on the supervised setting. However, significant attention has recently been given to clustering-a fundamental problem in unsupervised learning and operations research. While many important notions of fair clustering have been proposed, the most relevant to our work is group (demographic) fairness <ref type="bibr">[3,</ref><ref type="bibr">6,</ref><ref type="bibr">8,</ref><ref type="bibr">9,</ref><ref type="bibr">12,</ref><ref type="bibr">15,</ref><ref type="bibr">19,</ref><ref type="bibr">26,</ref><ref type="bibr">27]</ref>. In many of those works, fairness is maintained at the cluster level by imposing constraints on the proportions of groups present in each cluster. For example, we may require the racial demographics of each cluster to be close to the dataset as a whole (demographic/statistical parity) or that no group is over-represented in any cluster.</p><p>While constraining the demographics of each cluster is appropriate in some settings, it may be unnecessary or impractical in others. In decision making applications, each cluster eventually has a specific label (outcome) associated with it which may be more positive or negative than others. If the same label is applied to multiple clusters, we may only wish to bound the demographics of points associated with a given label as opposed to bounding the demographics of each cluster.</p><p>To be more concrete, consider the application of clustering for market segmentation in order to generate better targeted advertising <ref type="bibr">[2,</ref><ref type="bibr">11,</ref><ref type="bibr">24,</ref><ref type="bibr">34]</ref>. In this setting, we select or engineer features which are informative for targeted advertising and apply clustering (e.g., &#119896;-means) to the dataset. Then, we analyze the resulting centers (prototypical examples) and make decisions for targeted advertising in the form of recommending specific products or offering certain deals. These products or deals may have different levels of quality, i.e., we may assign labels such as: mediocre, good, or excellent to each cluster based on the quality of its advertisements. For the clusters of a given label (treated as one), it is possible that a certain demographic would be under-represented in the excellent label or that another could be over-represented in the mediocre label. In fact, the reports in <ref type="bibr">[14,</ref><ref type="bibr">28,</ref><ref type="bibr">33]</ref> indicate that targeted advertising may under-represent certain demographics for some advertisements. An algorithm that ensures each group is represented proportionally in each label could remedy this issue. While applying group fair clustering algorithms would also ensure demographic representation in the clusters and thus the labels, it could come at the price of a higher deformation in the clustering since points would have to be routed to possibly faraway centers just to satisfy the representation proportions. On the other hand, ensuring fair representation across the labels, but not necessarily the centers is less restrictive and likely to cause less deformation to the clustering.</p><p>Another similar example is clustering for job screening <ref type="bibr">[30]</ref> in which we have a dataset of candidates, <ref type="foot">1</ref> and each candidate is represented as a point in a metric space. Clustering could be applied over this set to obtain &#119896; many clusters. Then, the center of each cluster is given a more costly examination (e.g., a human carefully screening a job application). Accordingly, the centers would be assigned labels from the set: hire, short-list, scrutinize further, or reject. Naturally, more than one cluster could be assigned the same label. Clearly, the greater concern here is demographic parity across the labels, but not necessarily the individual clusters. Thus, group fair clustering would yield unnecessarily sub-optimal solutions. While in the above examples the label of the center was decided according to its position in the metric space. One can envision applications in Operations Research where the label assignment of the center is not dependent on its position <ref type="bibr">[32,</ref><ref type="bibr">36]</ref>. Rather, we would have a set of centers (facilities) of different service types (or quality) and we would have a budget for each service type. Further, to ensure group fairness we would satisfy the demographic representation over the service types offered. In this setting, we would have to choose the labels so as to minimize the clustering cost subject to further constraints such as budget and fair demographic representation.</p><p>The above examples illustrate the need for a group fairness definition at the label level when clustering is applied in decision-making settings or when the different centers (facilities) provide different types of services. In addition to being sufficient, evaluating fairness at the label level rather than cluster level can also be necessary. When the metric space is correlated with group membership it may be costly, counterproductive, or impossible to get meaningful clusters that each preserve the demographics of the dataset. For example, if the metric space is geographic as in many facility location problems, a person's location can be correlated with their racial group membership due to housing segregation. The same is true in machine learning when common features like location redundantly encode sensitive features such as race. In this case, the more strict approach of group fairness in each cluster could cause a large enough degradation in clustering quality that the entity in charge chooses a classical "unfair" clustering algorithm instead. In legal terms, this unfair clustering approach may exhibit disparate impact-members of a protected class may be adversely affected without provable intent on the part of the algorithm. However, disparate impact is allowed if the unfair clustering can be justified by business necessity (e.g., the fair clustering alternative is too costly) <ref type="bibr">[35]</ref>.</p><p>Thus, our work can be seen as a less stringent, less costly, and fundamentally different approach which still satisfies some similar fairness criteria to existing group fair clustering formulations. In addition, the decision-maker may not be concerned with the demographic representation in all labels, but rather only a specific set of label(s) such as hire and short-list. It may also be desired to enforce different lower and upper representation bounds for different labels.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Our Contributions</head><p>We introduce the problem of fairness in labeled clustering in which group fairness is ensured within the labels as opposed to each cluster. Specifically, we are given a set of centers found by a clustering algorithm, then having found the centers, we have to satisfy group fairness over the labels. We consider two settings: (1) labeled clustering with assigned labels (LCAL) where the center labels are decided based on their position as would be expected in machine learning applications and (2) labeled clustering with unassigned labels (LCUL) where we are free to select the center labels subject to some constraints. We note that throughout we consider the set of centers to be given and fixed (although in the unassigned setting their labels are unknown), therefore the problem is essentially a routing (assignment) problem where points are assigned to centers rather than a clustering problem. We however, refer to it as clustering since we minimize the clustering cost throughout and since our motivation is clustering based. Moreover, many of the application cases of the assigned labels setting would not alter the centers as that would not change the assigned labels which are given manually through further inspection <ref type="bibr">[11,</ref><ref type="bibr">30,</ref><ref type="bibr">34]</ref> or in the case of the unassigned labels we would have a fixed set of centers. Further, the work of <ref type="bibr">[15]</ref> in fair clustering follows a similar setting where the centers are fixed.</p><p>For the LCAL (assigned labels) setting, we show that if the number of labels is constant, then we can obtain an optimal clustering cost subject to satisfying fairness within labels in polynomial time. This is in contrast to the equivalent fair assignment problem in fair clustering which is NP-hard <ref type="bibr">[9,</ref><ref type="bibr">18]</ref>. <ref type="foot">2</ref> Furthermore, for the important special case of two labels, we obtain a faster algorithm with running time &#119874; (&#119899;(log &#119899; + &#119896;)).</p><p>For the LCUL (unassigned labels) setting, we give a detailed characterization of the hardness under different constraints and show that the problem could be NP-hard or solvable in polynomial time. Furthermore, for a natural specific form of constraints we show a randomized algorithm that always achieves an optimal clustering and satisfies the fairness constraints in expectation.</p><p>We conduct experiments on real world datasets that show the effectiveness of our algorithms. In particular, we show that our algorithms provide fairness at a lower cost than fair clustering and that they indeed scale to large datasets. We note that due to the space limit, some proofs are relegated to the appendix.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">RELATED WORK</head><p>Much of the investigation into fairness in machine learning and automated systems was sparked by the seminal work of <ref type="bibr">[17]</ref>. That work and others <ref type="bibr">[20,</ref><ref type="bibr">37]</ref> respond to the reality that points which should receive similar classifications, but belong to different demographic groups may not be near each other in the feature space.</p><p>Our approach accounts for this phenomenon as well by allowing points from different groups to be distant in the metric space and assigned to different clusters, but receive the same label.</p><p>The most closely related work in the clustering space addresses group (demographic) fairness among the members of each cluster <ref type="bibr">[3,</ref><ref type="bibr">6,</ref><ref type="bibr">8,</ref><ref type="bibr">9,</ref><ref type="bibr">12,</ref><ref type="bibr">15,</ref><ref type="bibr">18,</ref><ref type="bibr">19,</ref><ref type="bibr">26]</ref>. However, as noted earlier, these approaches can diverge quite a bit from the problem we consider and are not directly comparable. Some work also considers the less related fair data summarization problem of bounding group proportions among the set of centers/exemplars <ref type="bibr">[27]</ref>. In addition, several other notions of fair clustering and summarization exist to capture the diverse settings and objectives for which fairness is desirable. These include service guarantees bounding the distance of points to centers <ref type="bibr">[25]</ref>, preserving nearby pairs or communities of points in the metric space <ref type="bibr">[10]</ref>, equitable group representation <ref type="bibr">[1,</ref><ref type="bibr">23]</ref>, and fair candidate selection <ref type="bibr">[7]</ref>.</p><p>In particular, the setting of <ref type="bibr">[15]</ref> is very similar to ours in that the set of centers is fixed, and the problem amounts to routing points to centers so as to minimize the clustering cost function. However, unlike our work, the constraint is to satisfy conventional group fairness in the clusters; whereas in our setting, we are concerned with group fairness only within the labels.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">PRELIMINARIES AND PROBLEM FORMULATION</head><p>We are given a complete metric graph with a set of vertices (points) , where &#119901; = &#8734;, 1, and 2 for the &#119896;-center, &#119896;-median, and &#119896;-means objectives, respectively. We note that for the &#119896;-center with &#119901; = &#8734;, the objective reduces to a simpler form &#119895; &#8712; C &#119889; &#119901; ( &#119895;, &#120601; ( &#119895;))</p><p>) which is the maximum distance between a point &#119895; and its assigned center &#120601; ( &#119895;). We consider the number of colors &#119877; to be a constant throughout. This is justified by the fact that in most applications demographic groups tend to be limited in number.</p><p>As mentioned earlier, we have two settings and accordingly two variants of this optimization: (1) labeled clustering with assigned labels (LCAL) where the centers have already been assigned labels and (2) labeled clustering with unassigned labels (LCUL) where the centers have not been assigned any labels and can be assigned any arbitrary labels from the set L subject to (possible) additional constraints.</p><p>We pay special attention to the two label case where L = {&#119875;, &#119873; } with &#119875; being a positive outcome label and &#119873; being a negative outcome label, although many of our results can be extended to the general case where | L | = &#119898; &gt; 2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Labeled Clustering with Assigned Labels (LCAL):</head><p>In this problem the labels of the centers have been assigned, i.e. the function &#8467; is fully known and fixed. We look for an assignment &#120601; which is the optimal solution to the following problem:</p><p>where C &#119894; refers to the points &#120601; assigns to the center &#119894;, i.e. &#8462; and &#119906; &#119871; &#8462; , this is to indicate that we may desire different proportional representations in different labels. For example, for the case of two labels L = {&#119875;, &#119873; }, we may not want to enforce proportional representation in the negative label so we set &#119897; &#119873; &#8462; = 0 and &#119906; &#119873; &#8462; = 1 but we may want to enforce lower representation bounds in the positive label and therefore set &#119897; &#119875; &#8462; to some non-trivial value. Note that these constraints generalize those of fair clustering, in fact we can obtain the constraints of fair clustering by letting each center have its own label (&#119898; = &#119896;) and enforcing the proportional representation bounds to be the same throughout all labels. However, in our problem we focus on the case where the number of labels &#119898; is constant since in most applications we expect a small number of labels (outcomes). In fact, a large number could cause a problem in terms of decision making and result interpretability.</p><p>In constraints (1c), (&#119871;&#119861;) &#119871; and (&#119880; &#119861;) &#119871; are pre-set upper and lower bounds on the number of points assigned to a given label, clearly (&#119871;&#119861;) &#119871; , (&#119880; &#119861;) &#119871; &#8712; {0, 1, . . . , &#119899;} . They are additional constraints we introduce to the problem that have not been previously considered in fair clustering. Our motivation comes from the fact that since positive or negative outcomes could be associated with different labels, it is reasonable to set an upper bound on the total number of points assigned to a positive label, since a positive assignment may incur a cost and there is a bound on the budget. Similarly, we may set a lower bound to avoid trivial solutions where most points are assigned to negative outcomes and no or very few agents enjoy the positive outcome.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Labeled Clustering with Unassigned Labels (LCUL):</head><p>In labeled clustering with unassigned labels LCUL, the labels of the centers have not been assigned. As noted, this captures certain OR applications in which the label of a center is not related to its position in the metric space.</p><p>Similar to the case with assigned labels LCAL, we would also wish to minimize the clustering objective. In general we have the following optimization problem:</p><p>Note how in the above objective &#8467; has been added as an optimization variable unlike the objective in (1) for LCAL. Further, we have added constraint (2d) where &#119878; &#119871; refers to the subset of centers that have been assigned label &#119871; by the function &#8467;, i.e. &#119878; &#119871; = {&#119894; &#8712; &#119878; |&#8467; (&#119894;) = &#119871;}. This constraint simply lower bounds &#119878; &#119871; by (&#119862;&#119871;) &#119871; and upper bounds it by (&#119862;&#119880; ) &#119871; . This constraint models minimal service guarantees (lower bound) and budget (upper bound) guarantees. Clearly, (&#119862;&#119871;) &#119871; , (&#119862;&#119880; ) &#119871; &#8712; {0, 1, . . . , &#119896; }. Further, setting (&#119862;&#119871;) &#119871; = 0 and (&#119862;&#119880; ) &#119871; = &#119896; &#8704;&#119871; &#8712; L allows any label to have any number of centers, effectively nullifying the constraint. We show in a subsequent section that forcing certain constraints on the problem can make it NP-hard and that relaxing some constraints would make the problem permit polynomial time solutions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">ALGORITHMS AND THEORETICAL</head><p>GUARANTEES FOR LCAL 4.1 LCAL is Polynomial Time Solvable:</p><p>&#119871;&#119862;&#119860;&#119871; is problem (1) where we have a collection of centers and we wish to minimize a clustering objective subject to proportionality constraints (1b) and possible constraints on the number of points each label is assigned (1c). Fair allocation <ref type="foot">3</ref> is a problem which has a very similar form to our problem; the centers have already been decided and we wish to satisfy the same proportionality constraints in every cluster, specifically the optimization problem is:</p><p>It may be thought that the above optimization is simpler than that of &#119871;&#119862;&#119860;&#119871; (1), since all clusters have to satisfy the same proportionality bounds and there is no bound on the total number of points assigned to a any specific cluster. However, <ref type="bibr">[9,</ref><ref type="bibr">18]</ref> show that the problem is in fact NP-hard for all clustering objectives. We show in the theorem below that &#119871;&#119862;&#119860;&#119871; can be solved in polynomial time for all clustering objectives.</p><p>Theorem 1. Labeled clustering with assigned labels &#119871;&#119862;&#119860;&#119871; is solvable in polynomial time for the all clustering objectives (&#119896;-center, &#119896;-median, and &#119896;-means).</p><p>Proof. The key observation is that any assignment function &#120601;, will assign a specific number of points &#119899; &#119871; to the centers with label &#119871;. Further, we have that &#119871; &#8712; L &#119899; &#119871; = &#119899; since all points must be covered. Now, since | L | = &#119898; is a constant, this means that there is a polynomial number of ways to vary the total number of points distributed across the labels. More specifically, the total number of ways to distribute points across the given labels is upper bounded by</p><p>Note that once we decide the number of points assigned to the first (&#119898; -1) labels, the last label must be assigned the remaining amount to cover all &#119899; points, so we have a total of &#119899; &#119898;-1 possibilities. Since we have established, that there is a polynomial number of possibilities for distributing the number of points across the labels, if we can solve &#119871;&#119862;&#119860;&#119871; optimally for each possibility and simply take the minimum across all possibilities then we would obtain the optimal solution. Now that we are given a specific distribution of number of points across labels, i.e. (&#119899; 1 , . . . , &#119899; &#119871; , . . . , &#119899; &#119898; ) where &#119871; &#8712; L &#119899; &#119871; = &#119899;, we have to solve &#119871;&#119862;&#119860;&#119871; optimally for that distribution. The problem amounts to routing points to appropriate centers such that we minimize the clustering objective and satisfy the distribution of number of points across the labels along with the color proportionality. To do that we construct a network flow graph and solve the resulting minimum cost max flow problem. The network flow graph is constructed as follows:</p><p>Vertex &#119904; is the source, further we have a vertex for each point, hence the set of vertices C. For each color &#8462; &#8712; H we create a vertex for each center in &#119878; and for each label in L, these vertices constitute the sets &#8746; &#8462; &#8712;H &#119878; &#8462; and &#8746; &#8462; &#8712;H L &#8462; , respectively. We also have a vertex for each label in L and finally the sink &#119905;.</p><p>&#119864; &#119904;&#8594;C consists of edges from the source &#119904; to every point &#119895; &#8712; C, &#119864; C&#8594;&#119878; &#8462; consists of edges from every point &#119895; &#8712; C to the center of vertices of the same color in &#119878; &#8462; , &#119864; &#119878; &#8462; &#8594;L &#8462; consists of edges from the colored centers to their corresponding label of the same color, &#119864; L &#8462; &#8594;L consists of edges from the colored labels to their corresponding label, finally &#119864; L&#8594;&#119905; consists of edges from every label in L to the sink &#119905;.</p><p>&#8226; Capacities: the edges of &#119864; &#119904;&#8594;C have a capacity of 1, the edges of &#119864; L &#8462; &#8594;L have a capacity of &#119906; &#119871; &#8462; &#119899; &#119871; , the edges of &#119864; L&#8594;&#119905; have a capacity of &#119899; &#119871; .</p><p>&#8226; Demands: the vertices of L &#8462; have a demand of &#119897; &#119871; &#8462; &#119899; &#119871; , the vertices of L have a demand of &#119899; &#119871; .</p><p>&#8226; Costs: all edges have a cost of zero except the edges of &#119864; C&#8594;&#119878; &#8462; where the cost of the edge between the point and the center is set according to the distance and the clustering objective (&#119896;-median or &#119896;-means). As noted earlier a vertex &#119895; will only be connected to the same color vertex that represents center &#119894; in the network flow graph, we refer to that vertex by &#119894; &#120594; ( &#119895;) and clearly &#119894; &#120594; ( &#119895;) &#8712; &#119878; &#120594; ( &#119895;) . Specifically, &#8704;( &#119895;, &#119894; &#120594; ( &#119895;) ) &#8712; &#119864; C&#8594;&#119878; &#8462; , cost( &#119895;, &#119894; &#120594; ( &#119895;) ) = &#119889; &#119901; ( &#119895;, &#119894;) where &#119901; = 1 for the &#119896;-median and &#119901; = 2 for the &#119896;-means. We write the cost for a constructed flow graph as &#119895; &#8712; C,&#119894; &#8712;&#119878; &#119889; &#119901; ( &#119895;, &#119894;)&#119909; &#119894; &#119895; where &#119909; &#119894; &#119895; is the amount of flow between vertex &#119895; and center &#119894; &#120594; ( &#119895;) . Since all capacities, demands, and costs are set to integer values. Therefore we can obtain an optimal solution (maximum flow at a minimum cost) in polynomial time where all flow values are integers. Therefore, we can solve LCAL optimally for a given distribution of points.</p><p>The above construction are for the &#119896;-median and &#119896;-means. For the &#119896;-center we slightly modify the graph. First, we point out that unlike the &#119896;-median and &#119896;-means, for the &#119896;-center the objective value has only a polynomial set of possibilities (&#119896;&#119899; many exactly) since it is the distance between a center and a vertex. So our network flow diagram is identical but instead of setting a cost value for the edges in edges of &#119864; C&#8594;&#119878; &#8462; , we instead pick a value &#119889; from the set of possible distances &#119889; ( &#119895;, &#119894;) where &#119895; &#8712; C, &#119894; &#8712; &#119878; and draw an edge between a point &#119895; and a center &#119894; &#120594; ( &#119895;) only if &#119889; ( &#119895;, &#119894;) &#8804; &#119889;. Also we do not need to solve the minimum cost max flow problem, instead the max flow problem is sufficient. &#9633; 4.2 Efficient Algorithms for LCAL for the Two Label Case:</p><p>For the &#119896;-median and &#119896;-means and the two label case we present an algorithm with &#119874; (&#119899;(log (&#119899;) + &#119896;)) running-time. The intuition behind our algorithm is best understood for the case with "exact population proportions" for both the positive and negative labels 4 .</p><p>First, we note that each color &#8462; &#8712; H exists in proportion</p><p>where we refer to &#119903; &#8462; as the population proportion. The case of exact population proportions for the positive and negative labels, is the one where &#8704; &#8462; &#8712; H, &#8704;&#119871; &#8712; {&#119875;, &#119873; } :</p><p>That is, the upper and lower proportion bounds coincide and are equal to the proportion of the color in the entire set. This forces only a limited set of possibilities for the total number of points (and their colors) which we can assign to either &#119875; or &#119873; . For example, if we have two colors and &#119903; 1 = &#119903; 2 = 1 2 , then we can only assign an equal number of red and blue points to &#119875; and likewise to &#119873; . For the case of three colors with &#119903; 1 = 1 3 , &#119903; 2 = 1 2 , &#119903; 3 = 1 6 , then we can only assign points of the following form across the different labels: points for the first color = 2&#119888;, points for the second color = 3&#119888;, points for the third color = &#119888; where &#119888; is a non-negative integer. We refer to this smallest "atomic" number of points by &#119899; atomic and the number of color &#8462; of its subset by &#119899; &#8462; atomic . Now we define some notation &#119875; ( &#119895;) = min &#119894; &#8712;&#119875; &#119889; ( &#119895;, &#119894;) and &#119873; ( &#119895;) = min &#119894; &#8712;&#119873; &#119889; ( &#119895;, &#119894;), i.e. the distance of the closest centers to &#119895; in &#119875; and &#119873; , respectively. Further, &#120601; -1 (&#119875;) and &#120601; -1 (&#119873; ) are the set of points assigned to the positive and negative centers by the assignment &#120601;, respectively. We can now define the drop of a point &#119895; as &#119889;&#119903;&#119900;&#119901; ( &#119895;) = &#119873; ( &#119895;) -&#119875; ( &#119895;), clearly the larger &#119889;&#119903;&#119900;&#119901; ( &#119895;) the higher the cost goes down as we move it from the negative to the positive set. We can obtain a sorted values of &#119889;&#119903;&#119900;&#119901; for each color in &#119874; &#119899;(log &#119899; + &#119896;) run-time.</p><p>The algorithm is shown (algorithm block (1)). In the first step we start with all points in &#119873; , then in step 2 we move the minimum number of &#119899; &#8462; atomic for each color &#8462; to satisfy the size bounds for each label (constraint (1c)). Finally in the loop starting at step 3, we move more points to the positive label (in an "atomic" manner) if it lowers the cost and is within the size bounds. Theorem 2. Algorithm (1) finds the optimal solution and runs in &#119874; &#119899;(log &#119899; + &#119896;) time.</p><p>Proof. First we prove that the solution is feasible. Constraint (1b) for the color proportionality holds, this can is clearly the case 4 The general case is shown in the appendix. Take &#119899; &#8462; atomic many points from each color &#8462; with the highest values in &#119889;&#119903;&#119900;&#119901;, call the new assignment &#120601; &#8242; .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>5:</head><p>if &#120601; &#8242;-1 (&#119875;) and &#120601; &#8242;-1 (&#119873; ) are within bounds and &#119888;&#119900;&#119904;&#119905; (&#120601; &#8242; ) &lt; &#119888;&#119900;&#119904;&#119905; (&#120601; * ) then end if 10: end for before the start of the loop since the centers with negative labels cover the entire set which is color proportional and the the centers with positive labels cover cover nothing which is also color proportional. In each iteration, we move an atomic number of each color from the negative to the positive label and hence both the negative and the positive set of centers satisfy color proportionality in the points they cover.</p><p>For constraint (1b) because of exact preservation of the color proportions, we can always tighten the bounds (&#119871;&#119861;) &#119871; and (&#119880; &#119861;) &#119871; for each label &#119871; such that there multiples of &#119899; atomic without modification to the problem, so we assume that (&#119871;&#119861;) &#119873; = &#119886; &#119899; atomic , (&#119871;&#119861;) &#119875; = &#119887; &#119899; atomic , (&#119880; &#119861;) &#119873; = &#119886; &#8242; &#119899; atomic , (&#119880; &#119861;) &#119875; = &#119887; &#8242; &#119899; atomic where &#119886;, &#119886; &#8242; , &#119887;, &#119887; &#8242; are non-negative integers and clearly &#119886; &#8804; &#119887; and &#119886; &#8242; &#8804; &#119887; &#8242; . Step 2 satisfies the lower bound on the number of points in the positive label and the upper bound for the negative set. Note that if this step fails then the problem has infeasible constraints. Further, since we have moved the minimum number of points from the negative set to the positive set, it follows that the upper bounds on the positive are also satisfied since (&#119871;&#119861;) &#119875; &#8804; (&#119880; &#119861;) &#119875; , also the lower bound on the negative set is also satisfied since (&#119871;&#119861;) &#119873; &#8804; (&#119880; &#119861;) &#119873; . Finally in step 5, the size bounds are always checked fair therefore both labels are balanced.</p><p>Optimally follows since we move the points with the highest &#119889;&#119903;&#119900;&#119901; value to the positive set (these are also the points closest to the positive set). Further, in step 5 we stop moving any points to the positive if there isn't a reduction in the clustering cost. Note that since the values in &#119889;&#119903;&#119900;&#119901; are sorted, another iteration would not reduce the cost.</p><p>Finding the closest center of each label for every point takes &#119874; (&#119899;&#119896;) time. Finding and sorting the values in &#119889;&#119903;&#119900;&#119901; clearly takes &#119874; (&#119899; log &#119899;) time. The algorithm does constant work in each iteration for at most &#119899; many iterations. Thus, the run time is &#119874; &#119899;(log &#119899; + &#119896;) . &#9633;</p><p>With more elaborate conditional statements, the above algorithms can be generalized to give all solution values for arbitrary choices of label size bounds (constraint(1c)) with the same asymptotic run-time. Such a solution would be useful as it would enable the decision maker to see the complete trade-off between the label sizes and the clustering cost (quality).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">ALGORITHMS AND THEORETICAL GUARANTEES FOR LCUL 5.1 Computational Hardness of LCUL</head><p>We start by discussing the hardness of LCUL. In contrast to LCAL, the LCUL problem it not solvable in polynomial time. In the fact, the following theorem shows that even if we were to drop one constraint for the LCUL (problem (2)) we would still have an NPhard problem.</p><p>Theorem 3. For the LCUL problem with two labels and two colors, dropping one of the constraints(2b), (2c), or (2d) still leads to an NPhard problem.</p><p>Having established the hardness of LCUL for different sets of constraints, we show that it is fixed-parameter tractable 5 for a constant number of labels. This immediately follows since a given choice of labels for the centers leads to an instance of LCAL which is solvable in polynomial time and there are at most &#119898; &#119896; many possible choice labels.</p><p>Theorem 4. The LCUL problem is fixed-parameter tractable for a constant number of labels.</p><p>It is also worth wondering if the problem remains hard if we were to drop two constraints and have only one instead. Interestingly, we show that even for the case where the number of labels &#119898; is superconstant (&#119898; = &#937;(1)) , if we only had the color-proportionality constraint (2b) or the constraint on the number of labels (2c), then the problem is solvable in polynomial time. However, if we only had constraint (2d) for the number of centers a label has, the problem is still NP-hard.</p><p>Theorem 5. Even if number of labels &#119898; = &#937;(1), the LCUL problem is solvable in polynomial time under constraint (2b) alone or constraint (2c) alone. However, it is NP-hard under constraint (2d) alone.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">A Randomized Algorithm for label proportional LCUL:</head><p>Here we consider a natural special case of the LCUL problem which we call color and label proportional case (CLP) where the constraints are restricted to a specific form. In CLP each label must have color proportions "around" that of the population, i.e. color &#8462; has proportion &#119903; &#8462; in each label &#119871; &#8712; L. Further, each label has a proportion &#120572; &#119871; &#8712; [0, 1] and &#119871; &#8712; L &#120572; &#119871; = 1, this proportion decides the number of points the label covers and the number of centers it has. I.e., label &#119871; covers around &#120572; &#119871; &#119899; many points and has around &#120572; &#119871; &#119896; many centers. Therefore, the optimization takes on the following form below where we have included the &#120598; values to relax the constraints (note that for every value of &#120598;, we have that &#120598; &#8805; 0):</p><p>1/&#119901; (4a) 5 An algorithm is called fixed-parameter tractable if its run-time is &#119874; (&#119891; (&#119896;)&#119899; &#119888; ) where &#119891; (&#119896;) can be exponential in &#119896;, see <ref type="bibr">[13]</ref> for more details.</p><p>&#8704;&#119871;&#8712; L, &#8704;&#8462;&#8712; H :</p><p>We note that even when the constraints take on this specific form the problem is still NP-hard as shown in the theorem below: Theorem 6. The CLP problem is NP-hard even for the two color and two label case.</p><p>We show a randomized algorithm (algorithm block (2)) which always gives an optimal cost to the clustering and satisfies all constraints in expectation and further satisfies constraint (4d) deterministically with a violation of at most 1. Our algorithm is follows three steps. In step 1 we find the assignment &#120601; * by assigning each point to its nearest center, thereby guaranteeing an optimal clustering cost. In step 2, we set the center-to-label probabilistic assignments &#119901; &#119894; &#119871; = &#120572; &#119871; . Then in step 3, we apply dependent rounding, due to Gandhi et al. <ref type="bibr">[21]</ref>, to the probabilistic assignments to find the deterministic assignments. This leads to the following theorem: Theorem 7. Algorithm 2 gives an optimal clustering and satisfies constraints (4b,4c,4d) in expectation with (4d) being satisfied deterministically at a violation at most 1.</p><p>Proof. The optimality of the clustering cost follows immediately since each point is assigned to its closest center. Now, we show that the assignment satisfies all of the constraints. We have &#119901; &#119894; &#119871; = &#120572; &#119871; for each center &#119894;. Now we prove that constraints (2b,2c,2d) hold in expectation over the assignments &#119875; &#119894; &#119871; . Note that &#119875; &#119894; &#119871; is also an indicator random variable for center &#119894;, taking label &#119871;. Then we can show that using property (A) of dependent rounding (marginal probability) that:</p><p>Clearly, constraint (4c) is satisfied. Through a similar argument we can show that the rest of the constraints also hold in expectation.</p><p>We have that &#8704;&#119871; &#8712; L :</p><p>is satisfied in every run of the algorithm at a violation of at most 1.</p><p>&#9633; Algorithm 2 Randomized LCUL Algorithm 1: Find the assignment &#120601; * by assigning each point to its nearest center in &#119878;. 2: For each center &#119894;, set its probabilistic assignment for label &#119871; to &#119901; &#119894; &#119871; = &#120572; &#119871; . 3: Apply dependent rounding <ref type="bibr">[21]</ref> to probabilistic assignments &#119901; &#119894; &#119871; to get the deterministic assignments &#119875; &#119894;</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#119871;</head><p>We note that dependent rounding enjoys the Marginal Probability property which means that Pr[&#119875; &#119894; &#119871; = 1] = &#119901; &#119894; &#119871; . This enables us to satisfy the constraints in expectation. While we note that letting each center &#119894; take label &#119871; with probability &#120572; &#119871; would also satisfy the constraints in expectation. Dependent rounding also has the Degree Preservation property which implies that &#8704;&#119871; &#8712; L : &#119894; &#8712;&#119878; &#119875; &#119894; &#119871; &#8712; { &#119894; &#8712;&#119878; &#119901; &#119894; &#119871; , &#119894; &#8712;&#119878; &#119901; &#119894; &#119871; } which leads us to satisfy constraint (4d) deterministically (in every run of the algorithm) with a violation of at most 1. Further, dependent rounding has the Negative Correlation property which under some conditions leads to a concentration around the expected value. Although, we cannot theoretically guarantee that we have a concentration around the expected value, we observe empirically (section 6.2) that dependent rounding is much better concentrated around the expected value, especially for constraint (4c) for the number of points in each label.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">EXPERIMENTS</head><p>We run our algorithms using commodity hardware with our code written in Python 3.6 using the NumPy library and functions from the Scikit-learn library <ref type="bibr">[31]</ref>. We evaluate the performance of our algorithms over a collection of datasets from the UCI repository <ref type="bibr">[16]</ref>. For all datasets, we choose specific attributes for group membership and use numeric attributes as coordinates with the Euclidean distance measure. Through all experiments for a color We note that since all constraints are proportionality constraints, we calculate the proportional violation. To be precise, for the color proportionality constraint (2b), we consider a label &#119871; and define &#916; &#119871; &#8462; &#8712; [0, 1] where &#916; &#119871; &#8462; is the smallest relaxation of the constraint for which the constraint is satisfied, i.e. the minimum value for which the following constraint is feasible given the solution:</p><p>&#8462; we report &#916; color where &#916; color = max {&#8462; &#8712;H,&#119897; &#8712; L } &#916; &#119871; &#8462; . Similarly, we define the proportional violation for the number of points &#916; &#119871; points/label assigned to a label as the minimal relaxation of the constraint for it to be satisfied. We set &#916; points/label to the maximum across the two labels. In a similar manner, we define &#916; center/label for the number of centers a label receives.</p><p>We use the &#119896;-means++ algorithm <ref type="bibr">[5]</ref> to open a set of &#119896; centers. These centers are inspected and assigned a label. Further, this set of centers and its assigned labels are fixed when comparing to baselines other than our algorithm.</p><p>Clustering Baseline: In the labeled setting and in the absence of our algorithm, the only alternative that would result in. a fair outcome is a fair clustering algorithm. Therefore we compare against fair clustering algorithms. The literature in fair clustering is vast, we choose the work of <ref type="bibr">[8]</ref> as it can be tailored easily to this setting in which the centers are open. Further, it allows both lower and upper proportion bounds in arbitrary metric spaces and results in fair solutions at relatively small values of PoF compared to larger PoF (as high as 7) reported in <ref type="bibr">[12]</ref>. Our primary concern here is not to compare to all fair clustering work, but gauge the performance of these algorithms in this setting. We also compare against the "unfair" solution that would simply assign each point to its closest center which we call the nearest center baseline. Though this in general would violate the fairness constraints it would result in the minimum cost.</p><p>Datasets: We use two datasets from the UCI repository: The Adult dataset consisting of 32,561 points and the CreditCard dataset consisting of 30,000 points. For the group membership attribute we use race for Adult which takes on 5 possible values (5 colors) and marriage for CreditCard which takes on 4 possible values (4 colors). For the Adult dataset we use the numeric entries of the dataset (age, final-weight, education, capital gain, and hours worked per week) as coordinates in the space. Whereas for the CreditCard dataset we use age and 12 other financial entries as coordinates.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1">LCAL Experiments</head><p>Adult Dataset: After obtaining &#119896; centers using the &#119896;-means++ algorithm, we inspect the resulting centers. In an advertising setting, it is reasonable to think that advertisements for expensive items could be targeting individuals who obtained a high capital gain. Therefore, we choose centers high in the capital gain coordinate to be positive (assign an advertisement for an expensive item). Specifically, centers whose capital gain coordinate is &#8805; 1,100 receive a positive label and the remaining centers are assigned a negative one. Such a choice is somewhat arbitrary, but suffices to demonstrate the effectiveness of our algorithm. In real world scenarios, we expect the process to be significantly more elaborate with more representative features available. We run our algorithm for LCAL as well as the fair clustering algorithm as a baseline. Figure <ref type="figure">1</ref> shows the results. It is clear that our algorithm leads to a much smaller PoF and the PoF is more robust to variations in the number of clusters. In fact, our algorithm can lead to a PoF as small as 1.0059 (0.59%) and very close to the unfair nearest center baseline whereas fair clustering would have a PoF as large as 1.7 (70%). Further, we also see that the unlike the nearest center baseline, fair labeled clustering has no proportional violations just like fair clustering.</p><p>Here for the LCAL setting, we compare to the optimal (fairnessagnostic) solution where each point is simply routed to its closest center regardless of color or label. We use the same setting at that from section 6. We set &#120575; = 0.1 and measure the PoF. Since the (fairness-agnostic) solution does not consider the fairness constraint we also measure its proportional violations. Figures <ref type="figure">6</ref> and<ref type="figure">7</ref> show the results over the Adult and CreditCard datasets. We can clearly see that although the (fairness-agnostic) solution has the smallest cost it has large color violation. We also see that our algorithm unlike fair clustering achieves fairness but at a much lower PoF.</p><p>CreditCard Dataset: Similar to the Adult dataset experiment, after finding the centers using &#119896;-means++, we assign them positive and negative labels. For similar motivations, if the center has a coordinate corresponding to the amount of balance that is &#8805; 300,000 Figure <ref type="figure">2</ref> shows the results of the experiments. We see again that our algorithm leads to a lower price of fairness than fair clustering, but not to the same extent as in the Adult dataset but it still has no proportional violation just like fair clustering.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2">LCUL Experiments</head><p>Similar to the LCAL setting for LCUL we get the centers by running &#119896;-means++. However, we do not have the labels. We compare our algorithm (algorithm 2) to two baselines: (1) Nearest Center with Random Assignment (NCRA) and (2) Fair Clustering (FC). We refer to our algorithm (block 2) as LFC (labeled fair clustering). In NCRA we assign each point to its closest center which leads to an optimal clustering cost, whereas for fair clustering (FC) we solve the fair clustering problem. For both NCRA and FC we assign each center label &#119871; with probability &#120572; &#119871; .</p><p>We use two labels with &#120572; 1 = 1 4 and &#120572; 2 =  For PoF, our algorithm achieves an optimal clustering and hence coincides with NCRA whereas fair clustering achieves a much higher PoF as large as 1.5. For the color proportionality (&#916; color ), we see that fair clustering has almost no violation whereas the NCRA and labeled clustering have small but noticeable violations. For the number of points a label receives (&#916; points/label ) we notice that all algorithms have a violation although labeled clustering has a smaller violation mostly. As noted earlier, we suspect that this is a result of dependent rounding's negative correlation property leading to some concentration around the expectation. Finally, for the number of centers a label receives (&#916; center/label ), clearly LFC has a much violation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.3">Algorithm Scalability</head><p>Here we investigate the scalability of our algorithms. In particular, we take the Census1990 dataset which consists of 2,458,285 points and sub-sample it to a specific number, each time we find the centers with the &#119896;-means algorithm <ref type="foot">6</ref> , assign them random labels, and solve the LCAL and LCUL problems. Note since we care only about the run-time a random assignment of labels should suffice. Our group membership attribute is gender which has two values (two colors). We find our algorithm are indeed highly scalable (figure <ref type="figure">6</ref>) and that even for 500,000 points it takes less than 90 seconds. We note in contrast that the fair clustering algorithm of <ref type="bibr">[8]</ref> would takes around 30 minutes to solve a similar size on the same dataset. In fact, scalability is an issue in fair clustering and it has instigated a collection of work such as <ref type="bibr">[6,</ref><ref type="bibr">26]</ref>. The fact that our algorithm performs relatively well run-time wise is worthy of noting. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">CONCLUSION</head><p>Motivated by fairness considerations and the quality of outcome each cluster receives, we have introduced fair labeled clustering. We showed algorithms for the case where the centers' labels are decided and have shown that unlike fair clustering we end up with a much lower cost while still satisfying the fairness constraints. For the case where the centers' labels are not decided we gave a detailed characterization of the complexity and showed an algorithm for a special case. Experiments have shown that our algorithms are scalable and much faster than fair clustering.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>In some countries, such as India, the number of candidates can be in the millions for government jobs: https://www.bbc.com/news/world-asia-india-43551719.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>In this equivalent problem, the set of centers is given. We seek an assignment of points to these centers that minimizes a clustering objective and bounds the group proportions assigned to each center.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>Fair allocation<ref type="bibr">[8,</ref><ref type="bibr">9,</ref><ref type="bibr">19]</ref> is a sub-problem solved in fair clustering to finally yield a full algorithm for fair clustering.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_3"><p>We choose &#119896; = 5 for all different dataset sizes.</p></note>
		</body>
		</text>
</TEI>
