FairAD: Computationally Efficient Fair Graph Clustering via Algebraic Distance

Minh Phu Vuong, Young-Ju Lee, Iván Ojeda-Ruiz, Chul-Ho Lee

Abstract

Graph clustering is essential for discovering community structures, yet traditional methods often propagate demographic biases. While fair clustering algorithms exist, they frequently suffer from high computational complexity, limiting their application to large-scale datasets. We present FairAD, a novel framework that integrates fairness constraints directly into the graph's distance metrics using algebraic distance. By combining this approach with graph coarsening and efficient optimization techniques like the Uzawa method, FairAD achieves significant speedups—up to 40x over state-of-the-art baselines—while maintaining superior cluster balance across diverse real-world datasets.

1. Introduction

Graph clustering serves as a foundational tool in social network analysis, recommendation systems, and community detection. The objective is to partition nodes into groups such that intra-cluster similarity is maximized. However, standard algorithms often produce clusters that disproportionately represent specific demographic groups, leading to biased outcomes in sensitive applications.

The primary challenge in "fair" graph clustering lies in the trade-off between fairness and scalability. Existing fair spectral clustering methods typically rely on solving constrained eigenvalue problems, which are computationally expensive. As graph sizes reach tens of thousands of nodes, these methods often encounter memory limits or prohibitive runtimes. FairAD addresses this gap by embedding fairness into the graph's geometry through algebraic distance, enabling scalable and equitable clustering.

2. Methodology

The FairAD framework operates through a three-stage pipeline designed for both fairness and efficiency.

2.1 Imposing Fairness via Algebraic Distance

Rather than relying on raw adjacency matrices, FairAD computes a fair affinity matrix based on algebraic distance. This is achieved through an iterative Jacobi relaxation process that simulates the "flow" of values between nodes. Crucially, fairness constraints are imposed at each iteration, ensuring that the resulting distance metric inherently accounts for demographic balance. This "pre-processing" of the graph geometry avoids the need for complex post-hoc adjustments.

2.2 Graph Coarsening

To manage large-scale graphs, FairAD employs recursive graph coarsening. This process shrinks the graph into a reduced representation by identifying "anchor" nodes that preserve the essential structural properties of the original network. Clustering is performed on this coarsened graph, significantly reducing the dimensionality of the optimization problem.

2.3 Efficient Optimization

The final clustering step involves solving a relaxed $k$-way graph cut problem. FairAD utilizes the Uzawa method, an iterative optimization technique, coupled with the Woodbury matrix identity to bypass expensive matrix inversions. The implementation leverages GPU acceleration via CuPy and sparse linear algebra solvers (PyAMG), making it highly optimized for modern hardware.

3. Experimental Evaluation

The researchers evaluated FairAD against several baselines, including FairSC and sFairSC, using both synthetic and real-world datasets.

  • Synthetic Data: A modified Stochastic Block Model (mSBM) was used to verify the algorithm's ability to recover ground-truth clusters under fairness constraints.
  • Real-World Data: The study utilized diverse datasets including social networks (NBA, LastFM), user networks (German, Deezer), and sensitive domain datasets (Recidivism, Credit). Sensitive attributes ranged from gender and race to nationality and education level.

4. Results and Discussion

4.1 Computational Efficiency

FairAD demonstrates remarkable scalability. On synthetic benchmarks, it achieved up to a 40x speedup compared to sFairSC. In large-scale tests, such as the Credit dataset (~30,000 nodes), FairAD completed clustering in approximately 150 seconds, whereas traditional fair spectral methods often failed due to "Out of Memory" (OOM) errors.

4.2 Clustering Balance

Beyond speed, FairAD consistently outperformed baselines in "average balance" scores. For smaller datasets like NBA and LastFM, the algorithm improved demographic balance by 20% to 100% compared to unconstrained or less efficient fair alternatives.

4.3 Hardware Utilization

A key takeaway is the importance of hardware-aware algorithm design. By utilizing GPU parallelization and specialized solvers, FairAD translates theoretical mathematical elegance into practical performance for big data applications.

5. Conclusion and Future Work

FairAD represents a significant step forward in making fair graph clustering viable for large-scale systems. By treating fairness as a geometric property rather than a secondary constraint, it achieves high-quality, balanced clusters with unprecedented speed.

Future research may address the framework's current focus on group fairness by incorporating individual or counterfactual fairness metrics. Additionally, automating the selection of hyperparameters, such as the coarsening factor ($\alpha$), and extending the method to dynamic or directed graphs remain promising avenues for exploration.

Summary updated

BibTeX
@inproceedings{vuong2026fairad,
  author = {Minh Phu Vuong and Young-Ju Lee and Iván Ojeda-Ruiz and Chul-Ho Lee},
  title = {{FairAD: Computationally Efficient Fair Graph Clustering via Algebraic Distance}},
  booktitle = {Proceedings of the 34th ACM International Conference on Information and Knowledge Management},
  year = {2026},
  url = {https://openreview.net/forum?id=JLKDt8Wx49},
}
Figure