In pairwise fair clustering, the input points are partitioned into $\ell$ protected groups, and a clustering is called fair only if, inside every cluster, no group dominates any other group by more than a factor $t$: the number of points of any group is at most $t$ times the number of points of any other. We study algorithms that never violate this constraint and approximate the clustering cost. For the $k$-center objective such algorithms achieve a constant approximation ratio in polynomial time, while for $k$-median the best ratio achieved in polynomial time was $O(k^{2}\ell t)$. For $k$-means with more than two groups, polynomial-time algorithms were known only for perfect balance ($t=1$); beyond that, known algorithms violate the constraint or run in exponential time. We give a single randomized polynomial-time algorithm that improves both cases. For pairwise fair $k$-median it returns a clustering that is always exactly fair and whose expected cost is within a factor $O(\log k)$ of the optimal fair clustering. This is best possible up to constants short of a breakthrough: an $o(\log k)$ bound would give an $o(\log k)$ approximation for uniform capacitated $k$-median, where $O(\log k)$ has stood for decades. The algorithm relies on a structural observation: on integral cluster loads, pairwise fairness is equivalent to the existence of a single nonnegative integer base $h$ with $h \le (\text{load of each group}) \le t\cdot h$, and these bases add along a hierarchical decomposition. This collapses an apparently $\ell$-dimensional feasibility condition to one scalar, so that a dynamic program on a tree embedding of the centers can carry one integer per subtree instead of $\ell$ group counts.
翻译:暂无翻译