arXiv:2608.25586cs.LGAug 2026

Manuscript Offprint

arXiv:2608.25586

Individual Fairness in Hierarchical Clustering

Binita Maity, Shrutimoy Das

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Hierarchical clustering produces ultrametric representations that impose strong global geometric constraints and may distort local similarities in ways that disproportionately affect individual data points. We study hierarchical clustering under an individual fairness requirement that bounds relative distortion within local k-nearest neighborhoods. We formulate this requirement as a feasibility problem over dominated ultrametrics and characterize the minimal multiplicative slack required for feasibility. We identify a sharp local threshold, prove stability under bounded perturbations, establish monotonicity in k, and show an intrinsic Θ(log⁡n)\Theta(\log n) separation between local and global realizability. Experiments on synthetic and real world datasets support our theoretical results.

1 Introduction

Hierarchical clustering is a classical problem in unsupervised learning [16], where pairwise distances are given and the goal is to construct a nested sequence of partitions represented as a dendrogram. Unlike flat clustering, hierarchical clustering produces a multi resolution representation of the data, with merge heights defining an ultrametric over the points [23]. Ultrametrics impose strong global geometric constraints, i.e., every triple must satisfy the ultrametric inequality, meaning the two largest pairwise distances coincide. Hierarchical clustering is widely used in exploratory data analysis, computational biology, information retrieval, and social network analysis.

Most hierarchical clustering methods focus solely on optimizing a global objective or following a greedy linkage rule. However, such approaches provide no guarantees about how individual data points are treated locally. In particular, merge decisions may distort distances between nearby points in ways that disproportionately affect certain individuals. Because hierarchical structure propagates upward in the tree, early distortions influence all coarser resolutions. Thus, even if the overall hierarchy appears reasonable, individual points may experience large relative distortion compared to their local neighborhoods.

This limitation motivates our problem. We investigate hierarchical clustering under an individual fairness requirement, i.e., similar individuals should be treated similarly [10]. Rather than optimizing a global objective alone, we ask whether there exists an ultrametric representation that respects local similarity constraints up to a bounded multiplicative slack. Our goal is to characterize the minimal slack required to reconcile local Lipschitz type constraints with global ultrametric structure.

We formalize this problem as a feasibility question over dominated ultrametrics. Given a metric space (V,d)(V, d), we seek an ultrametric uu that (i) dominates dd (so that no pair is contracted), and (ii) satisfies multiplicative fairness constraints within kk-nearest neighborhoods. The key quantity in our analysis is the minimal multiplicative slack α⋆(d,k)\alpha^\star(d, k) for which such an ultrametric exists.

Our main theoretical results, presented in Section 4, characterize the feasibility landscape of individually fair hierarchical clustering. In Theorem 1, we identify a sharp local multiplicative threshold αkmut(d)\alpha_k^{\text{mut}}(d) determined by scale heterogeneity within mutual k-nearest neighborhoods and prove that slack below this value renders fairness infeasible. In Theorem 2, we establish Lipschitz stability of this threshold under bounded ℓ∞\ell_\infty perturbations that preserve neighborhood identities. Finally, Theorem 4 shows that the minimal feasible slack α⋆(d,k)\alpha^\star(d,k) is nondecreasing in the neighborhood parameter kk, providing structural control over how strengthening local fairness constraints affects global feasibility.

Crucially, we establish that local conditions do not fully determine global realizability. In Proposition 1, we construct metric families for which αkmut(d)=1\alpha_k^{\text{mut}}(d) = 1, yet every dominating ultrametric incurs Θ(log⁡n)\Theta(\log n) multiplicative distortion. This demonstrates an intrinsic separation between local similarity structure and global ultrametric geometry. Complementing this lower bound, Theorem 3 shows that classical tree embedding techniques yield matching O(log⁡n)O(\log n) sufficiency guarantees. Section 5 presents a fairness constrained agglomerative clustering (FCAC) algorithm 1 that enforces dominance and local Lipschitz constraints during merging.

In section 6, we empirically evaluate our framework on synthetic and real world datasets, observing sharp feasibility thresholds, saturation in neighborhood size, and dataset dependent distortion regimes consistent with the theory.

In summary, our contributions are as follows:

  • We formulate individually fair hierarchical clustering as a feasibility problem over dominated ultrametrics.

  • We identify a sharp local feasibility threshold αkmut(d)\alpha_k^{\text{mut}}(d) and prove that slack below this value renders fairness infeasible.

  • We establish stability under bounded perturbations and prove that the minimal feasible slack α⋆(d,k)\alpha^\star(d, k) is monotone in kk.

  • We prove an intrinsic local global separation, showing that some metric families require Θ(log⁡n)\Theta(\log n) distortion despite trivial local structure.

• We empirically validate the theoretical claims on five different synthetic and real world datasets.