TL;DR
This paper introduces a scalable variational framework for fair clustering that balances fairness and clustering objectives, outperforming existing spectral methods in efficiency and flexibility.
Contribution
It presents a novel variational approach with a tight upper bound for fair clustering, enabling scalable, distributed optimization without eigenvalue decomposition.
Findings
Achieves competitive fairness and clustering quality on benchmarks.
Offers scalable, distributed optimization suitable for large datasets.
Does not require spectral eigenvalue computations.
Abstract
We propose a general variational framework of fair clustering, which integrates an original Kullback-Leibler (KL) fairness term with a large class of clustering objectives, including prototype or graph based. Fundamentally different from the existing combinatorial and spectral solutions, our variational multi-term approach enables to control the trade-off levels between the fairness and clustering objectives. We derive a general tight upper bound based on a concave-convex decomposition of our fairness term, its Lipschitz-gradient property and the Pinsker's inequality. Our tight upper bound can be jointly optimized with various clustering objectives, while yielding a scalable solution, with convergence guarantee. Interestingly, at each iteration, it performs an independent update for each assignment variable. Therefore, it can be easily distributed for large-scale datasets. This…
| Datasets | Fair K-median | |||
| Objective | fairness error / balance | |||
| Backurs et al. 2019 | Ours | Backurs et al. 2019 | Ours | |
| Synthetic () | 299.859 | 292.4 | 0.00/1.00 | 0.00/1.00 |
| Synthetic-unequal () | 185.47 | 174.81 | 0.77/0.21 | 0.00/0.33 |
| Adult () | 19330.93 | 18467.75 | 0.27/0.31 | 0.01/0.43 |
| Bank () | N/A | 19527.08 | N/A | 0.02/0.18 |
| Census II () | 2385997.92 | 1754109.46 | 0.41/0.38 | 0.02/0.78 |
| Datasets | Fair K-means | |||
|---|---|---|---|---|
| Objective | fairness error / balance | |||
| Bera et al. 2019 | Ours | Bera et al. 2019 | Ours | |
| Synthetic () | 758.43 | 207.80 | 0.00 / 1.00 | 0.00 / 1.00 |
| Synthetic-unequal () | 180.00 | 159.75 | 0.00 / 0.33 | 0.00 / 0.33 |
| Adult () | 10913.84 | 9984.01 | 0.018 / 0.41 | 0.018 / 0.41 |
| Bank () | 11331.51 | 9392.20 | 0.03 / 0.16 | 0.05 / 0.17 |
| Census II () | 1355457.02 | 1018996.53 | 0.07/0.77 | 0.02/0.78 |
| Datasets | Fair NCUT | |||
|---|---|---|---|---|
| Objective | fairness error / balance | |||
| Kleindessner et al. 2019 | Ours | Kleindessner et al. 2019 | Ours | |
| Synthetic () | 0.0 | 0.0 | 0.00/1.00 | 0.0/1.00 |
| Synthetic-unequal () | 0.03 | 0.06 | 0.00/0.33 | 0.00/0.33 |
| Adult () | 0.47 | 0.74 | 0.06/0.32 | 0.08/0.30 |
| Bank () | N/A | 0.58 | N/A | 0.39/0.14 |
| Census II () | N/A | 0.52 | N/A | 0.41/0.43 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Variational Fair Clustering
Imtiaz Masud Ziko1, Jing Yuan2, Eric Granger1 and Ismail Ben Ayed1
Abstract
We propose a general variational framework of fair clustering, which integrates an original Kullback-Leibler (KL) fairness term with a large class of clustering objectives, including prototype or graph based. Fundamentally different from the existing combinatorial and spectral solutions, our variational multi-term approach enables to control the trade-off levels between the fairness and clustering objectives. We derive a general tight upper bound based on a concave-convex decomposition of our fairness term, its Lipschitz-gradient property and the Pinsker’s inequality. Our tight upper bound can be jointly optimized with various clustering objectives, while yielding a scalable solution, with convergence guarantee. Interestingly, at each iteration, it performs an independent update for each assignment variable. Therefore, it can be easily distributed for large-scale datasets. This scalability is important as it enables to explore different trade-off levels between the fairness and clustering objectives. Unlike spectral relaxation, our formulation does not require computing its eigenvalue decomposition. We report comprehensive evaluations and comparisons with state-of-the-art methods over various fair-clustering benchmarks, which show that our variational formulation can yield highly competitive solutions in terms of fairness and clustering objectives111Code is available at: https://github.com/imtiazziko/Variational-Fair-Clustering.
Introduction
Machine learning models are impacting our daily life, for instance, in marketing, finance, education, and even in sentencing recommendations (Kleinberg et al. 2017). However, these models may exhibit biases towards specific demographic groups due to, for instance, the biases that exist within the data. For example, a higher level of face recognition accuracy may be found with white males (Buolamwini and Gebru 2018), and a high probability of recidivism tends to be incorrectly predicted for low-risk African-Americans (Julia et al. 2016). These biases have recently triggered substantial interest in designing fair algorithms for the supervised learning setting (Hardt, Price, and Srebro 2016; Zafar et al. 2017; Donini et al. 2018). Also, very recently, the community started to investigate fairness constraints in unsupervised learning (Chierichetti et al. 2017; Kleindessner et al. 2019; Backurs et al. 2019; Samadi et al. 2018; Celis et al. 2018). Specifically, Chierichetti et al. (Chierichetti et al. 2017) pioneered the concept of fair clustering. The problem consists of embedding fairness constraints that encourage clusters to have balanced demographic groups pertaining to some sensitive attributes (e.g., sex, gender, race, etc.), so as to counteract any form of data-inherent bias.
Assume that we are given data points to be assigned to a set of clusters, and let denotes a binary indicator vector whose components take value when the point is within cluster , and [math] otherwise. Also suppose that the data contains different demographic groups, with denoting a binary indicator vector of demographic group . The authors of (Chierichetti et al. 2017; Kleindessner et al. 2019) suggested to evaluate fairness in terms of cluster-balance measures, which take the following form:
[TABLE]
The higher this measure, the fairer the cluster. The overall clustering balance is defined by the minimum of Eq. (1) over . This notion of fairness in clusters has recently given rise to a new line of research that was introduced, mostly, for prototype-based clustering, e.g., K-center, K-median and K-means (Chierichetti et al. 2017; Backurs et al. 2019; Schmidt, Schwiegelshohn, and Sohler 2018; Bera et al. 2019). Also, very recently, fairness has been investigated in the context of spectral graph clustering (Kleindessner et al. 2019). The general problem raises several interesting questions. How to embed fairness in popular clustering objectives? Can we control the trade-off between some “acceptable” fairness level (or tolerance) and the quality of the clustering objective? What is the cost of fairness with respect to the clustering objective and computational complexity?
Chierichetti et al. (Chierichetti et al. 2017) investigated combinatorial approximation algorithms for maximizing the the fairness measures in Eq. (1), for K-center and K-median clustering, and for binary demographic groups (). They compute fairlets, which are groups of points that are fair, and can not be split further into more subsets that are also fair. Then, they consider each fairlet as a data point, and cluster them with approximate K-center or K-median algorithms. Unfortunately, as reported in the experiments in (Chierichetti et al. 2017), obtaining fair solutions with these fairlets-based algorithms comes at the price of a substantial increase in the clustering objectives. Also, the cost for finding fairlets with perfect matching is quadratic w.r.t the number of data points, a complexity that increases for more than two demographic groups. Several combinatorial solutions followed-up on the work in (Chierichetti et al. 2017) to reduce this complexity. For instance, Backurs et al. (Backurs et al. 2019) proposed a solution to make the fairlet decomposition in (Chierichetti et al. 2017) scalable for , by embedding the input points in a tree metric. Rösner and Schmidt (Rösner and Schmidt 2018) designed a 14-approximate algorithm for fair K-center. (Schmidt, Schwiegelshohn, and Sohler 2018; Huang, Jiang, and Vishnoi 2019) proposed fair K-means/K-median based on coreset – a reduced proxy set for the full dataset. Bera et al. (Bera et al. 2019) provided a bi-criteria approximation algorithm for fair prototype-based clustering, enabling multiple groups (). It is worth noting that, for large-scale data sets, (Chierichetti et al. 2017; Rösner and Schmidt 2018; Bera et al. 2019) sub-sample the inputs to mitigate the quadratic complexity w.r.t . More importantly, the combinatorial algorithms discussed above are tailored for specific prototype-based objectives. For instance, they are not applicable to the very popular graph-clustering objectives, e.g., Ratio Cut or Normalized Cut (Von Luxburg 2007), which limits applicability in a breadth of graph problems, in which data takes the form of pairwise affinities.
Kleindessner et al. (Kleindessner et al. 2019) integrated fairness into graph-clustering objectives. They embedded linear constraints on the assignment matrix in spectral relaxation. Then, they solved a constrained trace optimization via finding the smallest eigenvalues of some transformed Laplacian matrix. However, it is well-known that spectral relaxation has heavy time and memory loads since it requires storing an affinity matrix and computing its eigenvalue decomposition – the complexity is cubic w.r.t for a straightforward implementation, and super-quadratic for fast implementations (Tian et al. 2014). In the general context of spectral relaxation and graph partitioning, issues related to computational scalability for large-scale problems is driving an active line of recent work (Shaham et al. 2018; Ziko, Granger, and Ayed 2018; Vladymyrov and Carreira-Perpiñán 2016).
The existing fair clustering algorithms, such as the combinatorial or spectral solutions discussed above, do not have mechanisms that control the trade-off levels between the fairness and clustering objectives. Also, they are tailored either to prototype-based (Backurs et al. 2019; Bera et al. 2019; Chierichetti et al. 2017; Schmidt, Schwiegelshohn, and Sohler 2018) or graph-based objectives (Kleindessner et al. 2019). Finally, for a breadth of problems of wide interest, such as pairwise graph data, the computation and memory loads may become an issue for large-scale data sets.
Contributions: We propose a general, variational and bound-optimization framework of fair clustering, which integrates an original Kullback-Leibler (KL) fairness term with a large class of clustering objectives, including both prototype-based (e.g., K-means/K-median) and graph-based (e.g., Normalized Cut or Ratio Cut). Fundamentally different from the existing combinatorial and spectral solutions, our variational multi-term approach enables to control the trade-off levels between the fairness and clustering objectives. We derive a general tight upper bound based on a concave-convex decomposition of our fairness term, its Lipschitz-gradient property and the Pinsker’s inequality. Our tight upper bound can be jointly optimized with various clustering objectives, while yielding a scalable solution, with convergence guarantee. Interestingly, at each iteration, our general variational fair-clustering algorithm performs an independent update for each assignment variable. Therefore, it can easily be distributed for large-scale datasets. This scalibility is important as it enables to explore different trade-off levels between fairness and the clustering objective. Unlike the constrained spectral relaxation in (Kleindessner et al. 2019), our formulation does not require computing its eigenvalue decomposition. We report comprehensive evaluations and comparisons with state-of-the-art methods over various fair-clustering benchmarks, which show that our variational method can yield highly competitive solutions in terms of fairness and clustering objectives, while being scalable and flexible.
Proposed formulation
Let denote a set of data points to be assigned to clusters, and is a soft cluster-assignment vector: . For each point , is the probability simplex vector verifying . Suppose that the data set contains different demographic groups, with vector indicating point assignment to group : if data point is in group and [math] otherwise. We propose the following general variational formulation for optimizing any clustering objective with a fairness penalty, while constraining each within the -dimensional probability simplex :
[TABLE]
denotes the Kullback-Leibler (KL) divergence between the given (required) demographic proportions and the marginal probabilities of the demographics within cluster :
[TABLE]
where is the -dimensional vector 222The set of -dimensional vectors and the set of simplex vectors are two equivalent ways for representing assignment variables. However, we use here for a clearer presentation of the problem, whereas, as will be clearer later, simplex vectors will be more convenient in the subsequent optimization part. containing point assignments to cluster , and denotes the transpose operator. Notice that, at the vertices of the simplex (i.e., for hard binary assignments), counts the number of points within the intersection of demographic and cluster , whereas is the total number of points within cluster .
Parameter controls the trade-off between the clustering objective and fairness penalty. The problem in (2) is challenging due to the ratios of summations in the fairness penalty and the simplex constraints. Expanding KL term and discarding constant , our objective in (2) becomes equivalent to minimizing the following functional with respect to the relaxed assignment variables, and subject to the simplex constraints:
[TABLE]
Observe that, in Eq. (4), the fairness penalty becomes a cross-entropy between the given (target) proportion and the marginal probabilities of the demographics within cluster . Notice that our fairness penalty decomposes into convex and concave parts:
[TABLE]
This enables us to derive the following tight bounds (auxiliary functions) for minimizing our general fair-clustering model in (4) using a quadratic bound and Lipschitz-gradient property of the convex part, along with Pinsker’s inequality, and a first-order bound on the concave part.
Definition 1
* is an auxiliary function of objective if it is a tight upper bound at current solution , i.e., it satisfies the following conditions:*
[TABLE]
where is the iteration index.
Bound optimizers, also commonly referred to as Majorize-Minimize (MM) algorithms (Zhang, Kwok, and Yeung 2007), update the current solution to the next by optimizing the auxiliary function:
[TABLE]
When these updates correspond to the global optima of the auxiliary functions, MM procedures enjoy a strong guarantee: The original objective function does not increase at each iteration:
[TABLE]
This general principle is widely used in machine learning as it transforms a difficult problem into a sequence of easier sub-problems (Zhang, Kwok, and Yeung 2007). Examples of well-known bound optimizers include concave-convex procedures (CCCP) (Yuille and Rangarajan 2001), expectation maximization (EM) algorithms and submodular-supermodular procedures (SSP) (Narasimhan and Bilmes 2005), among others. The main technical difficulty in bound optimization is how to derive an auxiliary function. In the following, we derive auxiliary functions for our general fair-clustering objectives in (4).
Proposition 1** (Bound on the fairness penalty)**
Given current clustering solution at iteration , we have the following auxiliary function on the fairness term in (4), up to additive and multiplicative constants, and for current solutions in which each demographic is represented by at least one point in each cluster (i.e., ):
[TABLE]
where is some positive Lipschitz-gradient constant verifying .
Proof: We provide a detailed proof in the supplemental material. Here, we give the main technical ingredients for obtaining our bound. We use a quadratic bound and a Lipschitz-gradient property for the convex part, and a first-order bound on the concave part. We further bound the quadratic distances between simplex variables with the Pinsker’s inequality (Csiszar and Körner 2011). This step avoids completely point-wise Lagrangian-dual projections and inner iterations for handling the simplex constraints, yielding scalable (parallel) updates, with convergence guarantee.
Proposition 2** (Bound on the clustering objective)**
Given current clustering solution at iteration , the auxiliary functions for several popular clustering objectives take the following general form:
[TABLE]
where point-wise (unary) potentials are given in Table 1.
Proofs: We give detailed proofs in the supplemental material. Here, we provide the main technical aspects: For the Ncut objective, the derivation of the auxiliary function is based on the fact that, for positive semi-definite affinity matrix , the Ncut objective is concave (Tang et al. 2019). Therefore, the first-order approximation at the current solution is an auxiliary function. For the prototype-based objectives, deriving an auxiliary function follows from the observation that the optimal parameters , i.e., those that minimize the objective in closed-form, correspond to the sample means/medians within the clusters. These auxiliary functions correspond to the standard K-means and K-median procedures, which can be viewed as bound optimizers (Tang et al. 2019).
Proposition 3** (Bound on the fair-clustering functional)**
Given current clustering solution , at iteration , and bringing back the trade-off parameter , we have the following auxiliary function for the general fair-clustering objective in Eq. (4):
[TABLE]
Proof: It is straightforward to check that sum of auxiliary functions, each corresponding to a term in the objective, is also an auxiliary function of the overall objective.
Notice that, at each iteration, our auxiliary function in (11) is the sum of independent functions, each corresponding to a single data point . Therefore, our minimization problem in (4) can be tackled by optimizing each term over , subject to the simplex constraint, and independently of the other terms, while guaranteeing convergence:
[TABLE]
Also, notice that, in our derived auxiliary function, we obtained a convex negative entropy barrier function , which comes from the convex part in our fairness penalty. This entropy term is very interesting as it avoids completely expensive projection steps and Lagrangian-dual inner iterations for the simplex constraint of each point. It yields closed-form updates for the dual variables of constraints and restricts the domain of each to non-negative values, avoiding extra dual variables for constraints . Interestingly, entropy-based barriers are commonly used in Bregman-proximal optimization (Yuan et al. 2017), and have well-known computational benefits when handling difficult simplex constraints (Yuan et al. 2017). However, they are not very common in the general context of clustering.
The objective in (12) is the sum of convex functions with affine simplex constraints . As strong duality holds for the convex objective and the affine simplex constraints, the solutions of the Karush-Kuhn-Tucker (KKT) conditions minimize globally the auxiliary function. The KKT conditions yield a closed-form solution for both primal variables and the dual variables (Lagrange multipliers) corresponding to simplex constraints .
[TABLE]
Notice that each closed-form update in (13) is within the simplex. We give the pseudo-code of the proposed fair-clustering in Algorithm 1. The algorithm can be used for any specific clustering objective, e.g., K-means or Ncut, among others, by providing the corresponding . The algorithm consists of an inner and an outer loop. The inner iterations updates using (13) until does not change, with the clustering term fixed from the outer loop. The outer iteration re-computes from the updated . The time complexity of each inner iteration is . Also, the updates are independent for each data and, thus, can be efficiently computed in parallel. In the outer iteration, the time complexity of updating depends on the chosen clustering objective. For instance, for K-means, it is , and, for Ncut, it is for full affinity matrix or much lesser for a sparse affinity matrix. Note that can be computed efficiently in parallel for all the clusters.
Convergence and monotonicity guarantees: Our variational model belongs to the family of MM procedures, whose theoretical guarantees are well-studied in the literature, e.g., (Vaida 2005). In fact, the MM principle can be viewed as a generalization of well-known expectation-maximization (EM). Therefore, in general, MM algorithms inherit the monotonicity and convergence guarantees of EM algorithms, as detailed in the theoretical discussion in (Vaida 2005). Theorem 3 in (Vaida 2005) states a condition for convergence of the general MM procedure to a local minimum: The auxiliary function has a unique global minimum, which should be obtained at each iteration when solving (7). This condition is important to guarantee, for instance, the monotonicity in (8). Our formulation satisfies this condition. In our case, the auxiliary function in (11) is strictly convex, as it is the sum of linear terms and a strictly convex term (the negative entropy), and is optimized under affine simplex constraints. Therefore, at each iteration, the closed-form solutions we obtained in (13) correspond to the unique global minimum of auxiliary function in (11). Our plots in Fig. 1 confirm the convergence and monotonicity of our general MM procedure for several fair-clustering objectives.
Exploring different trade-off levels via multiplier : Our variational multi-term formulation enables to explore several levels of trade-off between the clustering and fairness objectives via multiplier parameter , unlike the existing fair-clustering methods. In practice, we run in parallel our algorithm for several values of and choose the smallest value of that satisfies a pre-defined level of fairness error, i.e., . This is conceptually similar to standard penalty and augmented-Lagrangian approaches in constrained optimization, where the weights of the penalties333In standard constrained optimization, penalties typically take a quadratic form, unlike our method, which is based on a KL divergence penalty. are gradually increased, until reaching a certain pre-defined precision (or duality gap) for the constraints; see Chapter Chapter 17.1 in (Nocedal and Wright 2006). The difference here is that we run independently for each , which can be implemented in parallel. As illustrated by the plots in Fig. 2, when increases, the fairness error decreases and the clustering objective increases, which is intuitive. As discussed in more details below (Tables 2, 3 and 4), our variational formulation can achieve small fairness errors (competitive with the existing state-of-the-art fair-clustering methods), but with much better clustering objectives, consistently across all the data sets.
Experiments
In this section, we present comprehensive empirical evaluations of the proposed fair-clustering algorithm, along with comparisons with state-of-the-art fair-clustering techniques. We choose three well-known clustering objectives: K-means, K-median and Normalized cut (Ncut), and integrate our fairness-penalty bound with the corresponding clustering bounds (see Table 1). We refer to our bound-optimization versions as: Fair K-means, Fair K-median and Fair Ncut. Note that our formulation can be used for other clustering objectives (if a bound could be derived for the objective).
We investigate the effect of fairness on the original discrete (i.e., w.r.t. binary assignment variables) clustering objectives, and compare with the existing methods. We evaluate the results in terms of the balance of each cluster in (1), and define the overall balance of the clustering as . We further propose to evaluate the fairness error, which is the KL divergence in (2). This KL measure becomes equal to zero when the proportions of the demographic groups within all the output clusters match the target distribution. For Ncut, we use -nearest neighbor affinity matrix, : if data point is within the -nearest neighbors of , and equal to [math] otherwise. In all the experiments, we fixed and found that this does not increase the objective (see the detailed explanation in the supplemental material). We standardize each dataset by making each feature attribute to have zero mean and unit variance. We then performed L2-normalization of the features, and used the standard K-means++ (Arthur and Vassilvitskii 2007) to generate initial partitions for all the models.
Datasets
**Synthetic datasets. ** We created two types of synthetic datasets according to the proportions of the demographics, each having two clusters and a total of data points in 2D features (figures in the supplemental material). The Synthetic dataset contains two perfectly balanced demographic groups, each having an equal number of points. For this data set, we imposed target target proportions . To experiment with our fairness penalty with unequal proportions, we also used Synthetic-unequal dataset with 300 and 100 points within each of the two demographic groups. In this case, we imposed target proportions .
Real datasets. We use three datasets from the UCI machine learning repository (Dua and Graff 2017), one large-scale data set whose demographics are balanced (Census), along with two other data sets with various demographic proportions:
Bank 444https://archive.ics.uci.edu/ml/datasets/Bank+Marketing dataset contains number of records of direct marketing campaigns of a Portuguese banking institution corresponding to each client contacted (Moro, Cortez, and Rita 2014). Note that, the previous fair clustering methods (Bera et al. 2019; Backurs et al. 2019) used a much smaller version of Bank dataset with only number of records with and attributes. Instead, we utilize the marital status as the sensitive attribute, which contains three groups () – single, married and divorced – and removed the ‘’Unknown” marital status. Thus, we have records in total. We chose numeric attributes (age, duration, euribor of 3 month rate, no. of employees, consumer price index and number of contacts performed during the campaign) as features. We set the number of clusters , and impose the target proportions of three groups within each cluster.
Adult555https://archive.is.uci/ml/datasets/adult is a US census record data set from 1994. The dataset contains records. We used the gender status as the sensitive attribute, which contains females and males. We chose the numeric attributes as features, set the number of clusters to , and impose proportions within each cluster.
Census666https://archive.ics.uci.edu/ml/datasets/US+Census+Data+(1990) is a large-scale data set corresponding to a US census record data from 1990. The dataset contains records. We used the gender status as the sensitive attribute, which contains females and males. We chose the numeric attributes as features, similarly to (Backurs et al. 2019). We set the number of clusters to , and imposed proportions within each cluster.
Results
In this section, we discuss the results of the different experiments to evaluate the proposed general variational framework for Fair K-means, Fair K-median and Fair Ncut. We further report comparisons with (Bera et al. 2019), (Backurs et al. 2019) and (Kleindessner et al. 2019) in terms of discrete fairness measures and clustering objectives.
Trade-off between clustering and fairness objectives: We assess the effect of imposing fairness constraints on the original clustering objectives. In each plot in Fig. 2, the blue curve depicts the discrete-valued clustering objective (K-means or Ncut) obtained at convergence as a function of . The fairness error is depicted in red. Observe that, when multiplier increases (starting from a certain value), the discrete clustering objective increases while the fairness error decreases, which is intuitive. Also, the fairness error approaches [math] when , and both the clustering and fairness objectives tend to reach a plateau starting from a certain value of . The scalability of our model is highly relevant because it enables us to explore several solutions, each corresponding to a different value of multiplier , and to choose the smallest (i.e., the best clustering objective) that satisfies a pre-defined fairness level . As detailed below, this flexibility enabled us to obtain better solutions, in terms of fairness and clustering objectives, than several recent fair-clustering methods. Low fairness errors are typically achieved with large values of . This is due to the fact that the scale of the fairness penalty could be much smaller than the clustering objectives. Notice that, for relatively small values of , the K-means objective (blue curve) for the Adult dataset has an oscillating behaviour. This might be due to the fact that, for small , the K-means objective dominates the KL fairness term. However, after a certain value of (), the curves become smooth, with a predictable behaviour (i.e., the fairness term decreases and the clustering term increases). When the clustering objective dominates, the oscillating behaviour might be due to the local minima of bound optimization for the K-means term. We hypothesize that, with higher values of , the KL fairness term “convexifies” the function, and facilitates optimization. With smaller values of , the K-means term dominates, with possibilities of being stuck in local minima (K-means is well-known to be sensitive to the initial conditions).
Clustering cost with respect to : Fig. 3 depicts how the clustering objectives behave w.r.t to the number of clusters , with and without the fairness constraints. We plot the discrete clustering objective vs. for K-means, K-medians and Ncut, using the Bank dataset, with each plot corresponding to a fixed multiplier . In both cases (i.e., with and without the fairness constraints), the obtained clustering objectives decrease with , with the gap between the clustering objective obtained under fairness constraints and the vanilla clustering increasing with . Those experimental observations are consistent with the observations in (Bera et al. 2019).
Comparisons to state-of-the-art methods: Our algorithm is flexible as it can be used in conjunction with different well-known clustering objectives. This enabled us to compare our Fair K-median, Fair K-means and Fair Ncut versions to (Backurs et al. 2019), (Bera et al. 2019) and (Kleindessner et al. 2019), respectively. Tables 2, 3 and 4 report comparisons in terms of the original clustering objectives, achieved minimum balances and fairness errors, for Fair K-medians, Fair K-means and Fair NCut. For our model, we run the algorithm for several values of in ascending order, and choose the smallest that satisfies a pre-defined level of fairness error. This flexibility and scalability enabled us to obtain significantly better clustering objectives and fairness/minimum-balance measures in comparisons to (Backurs et al. 2019); See Table 2. It is worth noting that, for the Bank dataset, we were unable to run (Backurs et al. 2019) as the number of demographic group is (i.e. ). In comparison to (Bera et al. 2019), our variational method achieves significantly better K-means clustering objectives, with approximately the same fairness levels. Note that, we can obtain better fairness with larger values. These results highlight the benefits of our proposed variational formulation, which provides control over the trade-off between the fairness level and clustering objective. In the case of fair NCut, (Kleindessner et al. 2019) achieved slightly better Ncut objectives than our model, while achieving similar fairness levels. However, we were unable to run the spectral solution of (Kleindessner et al. 2019) for large-scale Census II data set, and for Bank, due to its computational and memory load (as it requires computing the eigen values of the square affinity matrix).
Our algorithm scales up to more than two demographic groups, i.e. when (e.g. Bank), unlike many of the existing approaches. Furthermore, for NCut graph clustering, our bound optimizer can deal with large-scale data sets, unlike (Kleindessner et al. 2019), which requires eigen decomposition for large affinity matrices. Finally, the parallel structure of our algorithm within each iteration (i.e., independent updates for each assignment variable) enables to explore different values of , thereby choosing the best trade-off between the clustering objective and fairness error.
Broader Impact: This paper deals with ensuring fairness criteria in clustering decisions, so as to avoid unfair treatment of minority groups pertaining to a sensitive attribute such as race, gender, etc. The paper is an endeavor to present a flexible mechanism, so as to relatively control the required fairness, while ensuring clustering quality at the same time.
Appendix A Proof of Proposition 1
We present a detailed proof of Proposition 1 (Bound on fairness) in the paper. Recall that, in the paper, we wrote the fairness clustering problem in the following form:
[TABLE]
The proposition for the bound on the fairness penalty states the following: Given current clustering solution at iteration , we have the following tight upper bound (auxiliary function) on the fairness term in (A), up to additive and multiplicative constants, and for current solutions in which each demographic is represented by at least one point in each cluster (i.e., ):
[TABLE]
where is some positive Lipschitz-gradient constant verifying
Proof: We can expand each term in the fairness penalty in (A), and write it as the sum of two functions, one is convex and the other is concave:
[TABLE]
Let us represent the matrix in its equivalent vector form , where is the probability simplex assignment vector for point . As we shall see later, this equivalent simplex-variable representation will be convenient for deriving our bound.
Bound on :
For concave part , we can get a tight upper bound (auxiliary function) by its first-order approximation at current solution :
[TABLE]
where gradient vector and is the sum of all the constant terms. Now consider matrix and it equivalent vector representation , which concatenates rows , , of the matrix into a single -dimensional vector. Summing the bounds in (15) over and using the -dimensional vector representation of both and , we get:
[TABLE]
Bound on :
For convex part , a quadratic upper bound can be found by using Lemma 1 and Definition 1 (both detailed at the end of the document):
[TABLE]
where gradient vector and is a valid Lipschitz constant for the gradient of . Similarly to earlier, consider matrix and its equivalent vector representation . Using this equivalent vector representations for matrices , and , and summing the bounds in (17) over , we get:
[TABLE]
In our case, the Lipschitz constant is: , where is the maximum eigen value of the Hessian matrix:
[TABLE]
Note that, is defined over the simplex variable of each data point . Thus, we can utilize Lemma 2 (Pinsker inequality), which yields the following bound on (Lemma 2 and its proof are detailed below):
[TABLE]
**Total bound on the Fairness term:
**By taking into account the sum over all the demographics and combining the bounds for and , we get the following bound for the fairness term:
[TABLE]
Note that for current solutions in which each demographic is represented by at least one point in each cluster (i.e., ), the maximum eigen value of the Hessian is bounded by , which means . Note that, in our case, typically the term in the Hessian is much smaller than . Therefore, in practice, setting a suitable positive does not increase the objective.
Definition 1
A convex function defined over a convex set is L-smooth if the gradient of is Lipschitz (with a Lipschitz constant ): for all . Equivalently, there exists a strictly positive such that the Hessian of verifies: where is the identity matrix.
Remark 1
Let denotes the maximum Eigen value of is a valid Lipschitz constant for the gradient of because
Lipschitz gradient implies the following bound777This implies that the distance between the and its first-order Taylor approximation at is between [math] and . Such a distance is the Bregman divergence with respect to the norm. on
Lemma 1** (Quadratic upper bound)**
If is L-smooth, then we have the following quadratic upper bound:
[TABLE]
Proof: The proof of this lemma is straightforward. It suffices to start from convexity condition and use Cauchy-Schwarz inequality and the Lipschitz gradient condition:
[TABLE]
Lemma 2** (Pinsker inequaltiy)**
For any and belonging to the -dimensional probability simplex , we have the following inequality:
[TABLE]
where is the Kullback-Leibler divergence:
[TABLE]
Proof: Let . The Hessian of is a diagonal matrix whose diagonal elements are given by: . Now because , we have . Therefore, is -strongly convex: . This is equivalent to:
[TABLE]
The gradient of is given by:
[TABLE]
Applying this expression to , notice that . Using these in expression (24) for , we get:
[TABLE]
Now, because and are in , we have . This yields the result in Lemma 2.
Appendix B Proof of Proposition 2
Here we present the proof of Proposition 2 [Bound on the clustering objective]: Given current clustering solution at iteration , the auxiliary functions for several popular clustering objectives take the following general form:
[TABLE]
where point-wise (unary) potentials are given in Table 1 in the paper.
For K-means, and for each cluster , the sample mean of the cluster is the closed-form global optimum of summation , i.e.,
[TABLE]
Therefore, for any , we have the following inequality:
[TABLE]
Thus, by setting at current iteration , we get the following auxiliary function for K-means:
[TABLE]
Similarly, we can show the same for K-median:
[TABLE]
Thus, considering all the clusters, we write the bound on the clustering objectives in the following simplified form:
[TABLE]
Where and . In the case of K-means, we have: , and for K-medians, we have: .
For Ncut, the objective is:
[TABLE]
Note that, discarding the constant number of clusters , and assuming is a positive semi-definite (p.s.d) affinity matrix, one can show that the objective is concave. Therefore, the first-order approximation gives the following linear upper bound for concave at current iteration :
[TABLE]
with , with degree vector , , and for all p.s.d. affinity matrices .
Appendix C Output clusters with respect to .
In Fig.4, we plot the output clusters of Fair K-means with respect to an increased value of , for the synthetic data sets. When , we get the traditional clustering results of K-means without fairness. The result clearly has biased clusters, each corresponding fully to one the demographic groups, with a balance measure equal [math]. In the Synthetic dataset, the balance increases with increased value of parameter and eventually gain the desired equal balance with a certain increased value of . We also observe the same trend in the Synthetic-unequal dataset, where the output clusters are found according to prior demographic distribution , with almost a null fairness error starting from a certain value of .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Arthur and Vassilvitskii (2007) Arthur, D.; and Vassilvitskii, S. 2007. k-means++: The advantages of careful seeding. In ACM-SIAM symposium on Discrete algorithms , 1027–1035. Society for Industrial and Applied Mathematics.
- 2Backurs et al. (2019) Backurs, A.; Indyk, P.; Onak, K.; Schieber, B.; Vakilian, A.; and Wagner, T. 2019. Scalable fair clustering. International conference on machine learning (ICML) 405–413.
- 3Bera et al. (2019) Bera, S.; Chakrabarty, D.; Flores, N.; and Negahbani, M. 2019. Fair algorithms for clustering. In Advances in Neural Information Processing Systems , 4955–4966.
- 4Buolamwini and Gebru (2018) Buolamwini, J.; and Gebru, T. 2018. Gender shades: Intersectional accuracy disparities in commercial gender classification. In Conference on Fairness, Accountability and Transparency , 77–91.
- 5Celis et al. (2018) Celis, L. E.; Keswani, V.; Straszak, D.; Deshpande, A.; Kathuria, T.; and Vishnoi, N. K. 2018. Fair and Diverse DPP-Based Data Summarization. In International Conference on Machine Learning (ICML) , 715–724.
- 6Chierichetti et al. (2017) Chierichetti, F.; Kumar, R.; Lattanzi, S.; and Vassilvitskii, S. 2017. Fair Clustering Through Fairlets. In Neural Information Processing Systems (Neur IPS) , 5036–5044.
- 7Csiszar and Körner (2011) Csiszar, I.; and Körner, J. 2011. Information theory: coding theorems for discrete memoryless systems . Cambridge University Press.
- 8Donini et al. (2018) Donini, M.; Oneto, L.; Ben-David, S.; Shawe-Taylor, J.; and Pontil, M. 2018. Empirical Risk Minimization Under Fairness Constraints. In Neural Information Processing Systems (Neur IPS) , 2796–2806.
