TL;DR
FairPGT is a novel partitioned graph transformer designed for fair unsupervised clustering on large-scale attributed graphs. By enforcing fairness at both the attention and assignment levels through a self-distillation objective and mutual-information regularization, it achieves state-of-the-art clustering performance while significantly reducing demographic bias compared to existing deep clustering methods.
What Problem Does This Paper Address?
Graph clustering is a fundamental task used to segment users or detect communities. However, when graph structure or node features correlate with protected attributes (like gender or age), standard clustering algorithms often produce biased results that mirror these demographics.
Graph transformers, while powerful, can amplify this bias because their attention mechanism naturally gravitates toward "same-group" nodes, making representations more group-dependent. Furthermore, the standard global attention in transformers scales quadratically ($O(n^2)$), making them impractical for large real-world graphs. Existing fair clustering methods typically only address bias at the final assignment level, leaving the underlying encoder biased, or they don't scale well to large networks.
Methods
The authors introduce FairPGT (Fair Partitioned Graph Transformer), which tackles these issues with three main components:
- Partitioned Attention with Routing: To solve scalability, FairPGT uses METIS to partition the graph into disjoint blocks. Attention is computed locally within these blocks. To maintain global context, "routing tokens" (one per partition) exchange information across the entire graph, reducing complexity to near-linear.
- Dual-Level Fairness:
- Assignment Level: A mutual-information term ($L_{grp}$) encourages cluster assignments to be independent of protected attributes, promoting statistical parity.
- Attention Level: The authors introduce the Normalized Cross-Group Attention Ratio (nCGAR). This metric measures if a node attends to other groups more or less than expected by chance. FairPGT uses a self-distillation loss ($L_{att}$) to guide the encoder toward group-neutral attention.
- Graph-Aware Self-Training: The model uses a clustering head trained against a target that combines Deep Embedding Clustering (DEC) with structural modularity gains, ensuring clusters are both demographically fair and structurally cohesive.
Datasets
The model was evaluated on seven diverse attributed graphs:
- Social/User Networks: NBA, LastFM, Facebook, Pokec-n, and Pokec-z.
- Financial/Credit: German and Credit.
- Synthetic: Controlled Stochastic Block Models (SBMs) were used to study the "price of fairness" by varying the alignment between communities and protected groups.
Key Insights and Ideas
- Fairness is Two-Sided: Fixing cluster assignments alone isn't enough. If the encoder remains biased, fair assignments must "work against" the representations, often destroying community structure. Conversely, neutral attention alone doesn't guarantee fair clusters if features are strong proxies for groups.
- The "Price" of Parity: On synthetic SBMs where communities and groups perfectly align, the authors prove an information-theoretic upper bound on how accurate any fair clustering can be. FairPGT reaches 97% of this theoretical limit.
- Attention as a Diagnostic: The nCGAR metric serves as a powerful audit tool. The paper shows that without attention-level fairness, an encoder forced to produce fair assignments actually learns "group-heterophilous" attention (preferring the opposite group) to compensate for biased features.
Key Results
- Superior Scaling and Fairness: On the three largest benchmarks (Credit, Pokec-n, Pokec-z), FairPGT achieved the best clustering quality (NMI) and the lowest statistical-parity gap. Its parity gap was roughly 10 times lower than the strong baseline DMoN.
- Pareto Dominance: Across most datasets, FairPGT sits on the Pareto front of the quality-fairness trade-off, often outperforming both fairness-agnostic and specialized fair clustering baselines.
- Efficiency: Partitioning reduced peak memory usage by an order of magnitude (e.g., from 11.9 GB to 0.75 GB on LastFM), allowing the transformer to run on graphs with nearly 70k nodes where global attention would fail.
Limitations and Future Work
- Transductive Nature: Currently, the model requires the full graph (partitions and spectral encodings) to be computed upfront. An inductive version for evolving graphs or unseen nodes is a suggested next step.
- Modularity Trade-off: FairPGT prioritizes label alignment and fairness over raw modularity. In cases where the "ground truth" is purely structural, modularity-based methods like DMoN might still be preferred, though they remain biased.
- Computational Weight: While more scalable than global transformers, FairPGT is still heavier than simple GNN-based clustering. Future work could look into further distilling these fair transformers into lighter architectures.
Summary updated