Fair Representation Clustering with Several Protected Classes

Zhen Dai, Yury Makarychev, Ali Vakilian

Abstract

This paper addresses the challenge of fair $k$-median clustering where data must be partitioned into $k$ clusters such that each cluster maintains a balanced representation of multiple protected demographic groups. We present the first polynomial-time approximation algorithms that satisfy these fairness constraints exactly, without the additive errors found in previous literature. By combining metric tree embeddings with a novel dynamic programming approach, the authors achieve an $O(\log k)$ approximation ratio that is fixed-parameter tractable with respect to the number of protected classes.

Introduction

In standard $k$-median clustering, the objective is to minimize the total distance between data points and their assigned cluster centers. While effective for data organization, these algorithms often ignore the demographic composition of the resulting clusters. In sensitive applications such as facility location, automated jury selection, or school districting, this can lead to "monochromatic" clusters that lack diversity.

The "fair representation" constraint addresses this by requiring that for every cluster, the proportion of points from a specific group $j$ falls within a predefined range $[\alpha_j, \beta_j]$. Historically, researchers faced a trade-off: either accept constant-factor approximations that slightly violate these bounds or use exact algorithms that are computationally infeasible for even moderate numbers of clusters or groups. This paper bridges that gap.

Problem Formulation

The authors consider a set of $n$ points in a metric space, where each point belongs to one or more of $\ell$ protected groups. The goal is to find $k$ centers and an assignment of points to these centers that minimizes the $k$-median objective while ensuring that every cluster satisfies the representation bounds for all $\ell$ groups.

Methodology

The proposed solution follows a robust three-step pipeline designed to handle the complexity of the fair $k$-median problem.

1. Location Consolidation

The first step involves reducing the continuous or high-dimensional search space. The authors run a standard, non-fair $k$-median algorithm to identify $k$ initial centers. All $n$ points are then "moved" to their nearest initial center. This consolidation reduces the problem's spatial complexity from $n$ arbitrary locations to just $k$ discrete locations, which the authors prove does not significantly degrade the final objective value.

2. Tree Metric Embedding

To simplify the distance calculations, the authors employ Fakcharoenphol-Rao-Talwar (FRT) trees. This technique embeds the $k$ locations into a tree structure where distances are approximated by the path lengths in the tree. While this introduces an $O(\log k)$ distortion, it transforms a complex metric space into a hierarchical structure that is much easier to navigate algorithmically.

3. Dynamic Programming (DP)

The core of the algorithm is a bottom-up dynamic programming approach executed on the tree. The DP state tracks the "net imports and exports" of different demographic groups across the tree's edges. Because the number of groups $\ell$ is assumed to be small, the state space remains manageable at $n^{O(\ell)}$.

Transformation of a general tree into a structured tree for dynamic programming.

To facilitate this DP, general trees are often transformed into a structured format where each node has a limited number of children (as illustrated in Figure 1). This binarization ensures that the DP transitions at each node are computationally efficient.

Exact Fairness and the Reassignment Method

For the specific case of "Exact Fairness"—where groups must be represented in exact proportion to their global population size—the authors introduce a "Reassignment Method." They leverage the concept of "fairlets," which are the smallest possible sets of points that satisfy the required fairness ratios. By starting with a "nearly fair" solution and using a reassignment multigraph to swap points, they demonstrate that a perfectly fair clustering can be achieved with minimal impact on the approximation ratio.

Key Results

The paper establishes several landmark theoretical results:

  • General Approximation: An $O(\log k)$-approximation algorithm for fair $k$-median that runs in $n^{O(\ell)}$ time. This is the first result to achieve this ratio without any fairness violations.
  • Fixed-Parameter Tractability: The algorithm is efficient as long as the number of protected groups $\ell$ is a small constant. This aligns with practical needs where fairness is typically monitored across a few key dimensions (e.g., race, gender).
  • Proportional Representation: A specialized algorithm for exact fairness that runs in $(kf)^{O(\ell)} \log n + \text{poly}(n)$ time, where $f$ is the size of the smallest fairlet.

Discussion and Future Work

While this work represents a significant theoretical advance, it has limitations. The $O(\log k)$ approximation ratio, while standard for tree embeddings, is not a constant factor; the solution quality may decrease as the number of clusters $k$ increases. Furthermore, the exponential dependence on the number of groups $\ell$ means the algorithm may struggle with datasets involving dozens of overlapping protected classes.

Future research could explore whether a polynomial-time $O(\log k)$-approximation is possible when $\ell$ is not fixed, or how these theoretical guarantees translate to real-world datasets with inherent noise and complex demographic distributions.

Conclusion

By decoupling location selection from fair assignment and utilizing the power of tree embeddings, the authors provide a rigorous framework for fair clustering. This work moves the field closer to algorithms that can provide ironclad fairness guarantees without sacrificing computational feasibility.

Summary updated

BibTeX
@inproceedings{dai2022fair,
  author = {Zhen Dai and Yury Makarychev and Ali Vakilian},
  title = {{Fair Representation Clustering with Several Protected Classes}},
  booktitle = {FAccT},
  year = {2022},
  doi = {10.1145/3531146.3533146},
}
Figure