Capacitated Fair-Range Clustering: Hardness and Approximation Algorithms

Ameet Gadekar, Suhas Thejaswi

Introduction

Clustering is a cornerstone of unsupervised machine learning, but real-world deployments often demand more than simply grouping similar data points. Decision-support systems frequently must respect capacities (the maximum number of clients a facility can serve) and demographic fairness (ensuring the chosen cluster centers adequately represent diverse, potentially overlapping demographic groups).

This paper tackles the Capacitated Fair-Range $k$-Clustering problem. It establishes that the problem is fundamentally hard to approximate—even when fairness constraints are trivially easy to satisfy. To bridge the gap between theoretical hardness and practical utility, the authors introduce the first algorithms with provable approximation guarantees for scenarios involving a small, constant number of demographic groups, demonstrating their efficacy on both synthetic and real-world datasets.

The Problem: Capacitated Fair-Range $k$-Clustering

In the capacitated fair-range setup, the objective is to select $k$ facilities to act as cluster centers. The selection must satisfy three core conditions:

  1. Capacity Constraints: No center can be assigned more clients than its maximum capacity.
  2. Fair-Range Constraints: Each facility belongs to one or more demographic groups. The total number of centers chosen from each group must fall within specified lower and upper bounds.
  3. Cost Minimization: The overall clustering cost (measured via $k$-median or $k$-means objectives) must be minimized.

Prior research demonstrated that merely finding a valid solution satisfying these constraints is NP-hard when demographic groups intersect. This paper investigates a deeper question: If we are given an instance where finding a valid solution is guaranteed to be easy, is optimizing the clustering cost still computationally hard?

Theoretical Hardness

The authors answer this question affirmatively. Using reductions from the 3-SAT problem, they prove that capacitated fair-range clustering is strictly inapproximable. Specifically, no polynomial-time algorithm can approximate the optimal clustering cost within any polynomial factor.

Crucially, this inapproximability persists even under highly restricted conditions: when a feasible solution is guaranteed to exist, when the data resides on a simple tree metric, and when the number of demographic groups is merely logarithmic relative to the size of the facility set. The interaction between capacity limits and group requirements creates a computational bottleneck that goes beyond the "fairness" aspect alone.

Approximation Algorithms

Recognizing that many real-world fairness applications involve only a few demographic categories (e.g., gender, age brackets, ethnicity), the authors pivot to a practical regime where the number of groups ($t$) is constant. By doing so, they successfully bypass the inapproximability barrier.

1. Polynomial-Time Tree Embedding and DP

The first major algorithmic contribution is a polynomial-time approximation algorithm. The approach relies on a two-phase embedding technique:

  • The general metric space is first embedded into a "$k$-clique-star" metric.
  • It is then embedded into a tree metric.
  • Once transformed into a tree structure, the problem is solved exactly using a novel Dynamic Programming (DP) formulation.

This method yields an $O(\log k)$-approximation for the $k$-median objective and an $O(\log^2 k)$-approximation for $k$-means.

2. Fixed-Parameter Tractable (FPT) Algorithm

For tighter theoretical guarantees, the authors design constant-factor approximation algorithms (e.g., $3+\epsilon$ for $k$-median) that run in Fixed-Parameter Tractable (FPT) time relative to $k$. This approach leverages coresets to compress the dataset and employs a leader-guessing framework to identify optimal center candidates efficiently.

Empirical Evaluation and Key Results

The algorithms were evaluated on synthetic datasets (randomly generated points in 10-dimensional Euclidean space and synthetic binary tree metrics) as well as four real-world datasets from the UCI Machine Learning Repository, including Heart Failure, Student Performance, and the National Poll on Healthy Aging (NPHA).

Key Findings: * Theoretical Parity: The approximation guarantees match the best-known bounds for non-fair capacitated clustering. In this constant-group regime, fairness essentially comes "for free" regarding the approximation factor. * Strong Empirical Accuracy: The $O(\log k)$ algorithm significantly outperformed its theoretical worst-case bounds. On synthetic data, the empirical approximation factor remained below 2.7. * Practical Scalability: The DP approach proved highly efficient for modest problem sizes. It successfully solved real-world instances with $n \approx 700$ points and $k=10$ centers in under 10 minutes on a standard laptop. By contrast, a standard brute-force approach failed to process even 80 points.

Limitations and Future Directions

While the paper provides a significant leap forward for fair clustering, the authors note several limitations:

  • Coreset Trade-offs: Although coresets enable the FPT algorithms, using aggressively small coresets in practice can introduce more distortion than theoretical bounds suggest.
  • Scaling with $k$ and $t$: Both the DP and FPT algorithms scale exponentially with the number of groups ($t$) and centers ($k$). While highly effective for small values (e.g., $t=4, k=10$), performance degrades as these parameters grow.
  • Pruning Heuristics: The authors suggest that pruning the DP table (retaining only the most promising states) can accelerate the algorithm. However, current pruning methods do not guarantee that a feasible solution will be preserved, making the development of safer, more efficient heuristics a clear target for future work.

Summary updated

BibTeX
@inproceedings{gadekar2026capacitated,
  author = {Ameet Gadekar and Suhas Thejaswi},
  title = {{Capacitated Fair-Range Clustering: Hardness and Approximation Algorithms}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=91KRLNX4il},
}
Figure