NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

All of the Fairness for Edge Prediction with Optimal Transport

Charlotte Laclau, Ievgen Redko, Manvi Choudhary, Christine Largeron

Introduction

While algorithmic fairness has seen significant advancement in classification tasks, its application to graph-based systems remains a complex frontier. Many modern digital services, from social media friend recommendations to professional networking platforms, rely on edge prediction (or link prediction). These algorithms often inherit and amplify "assortativity" or homophily—the natural tendency for similar individuals to connect.

In a professional network biased toward a specific gender, a standard link prediction algorithm will likely suggest connections that reinforce this existing imbalance, creating "online bubbles" and systematically excluding minorities from influential circles. Unlike standard classification, fairness in graphs involves pairs of nodes and the structural relationships between them, making it difficult to address without destroying the graph's utility. This paper proposes a novel, embedding-agnostic pre-processing method that uses Optimal Transport (OT) to "repair" the graph's adjacency matrix before any machine learning model is applied.

Methodology: A Three-Step Repair Process

The authors introduce a framework designed to balance group fairness (reducing bias against sensitive attributes) with individual fairness (preserving local graph structure). The procedure follows three primary steps:

  1. Theoretical Alignment: The authors prove that by aligning the distributions of nodes belonging to different sensitive groups, they can effectively bound the bias in edge predictions. This reduces the complexity of the problem from managing $O(n^2)$ node pairs to managing node-level distributions.
  2. Optimal Transport for Group Fairness: Using the Earth Mover's Distance (EMD), the method finds an optimal coupling that "pushes" the distribution of one sensitive group toward another. This process effectively obfuscates the sensitive attribute within the graph's connectivity patterns.
  3. Laplacian Regularization for Individual Fairness: To prevent the repair process from destroying the graph's useful local structure, a Laplacian regularization term is added. This ensures that nodes that were structurally similar in the original graph remain similar in the repaired version.
The three-step repair process: 1) Distance calculation between groups, 2) Finding the OT coupling, and 3) Generating the repaired adjacency matrix using Laplacian regularization.

Because this method modifies the adjacency matrix directly, it is embedding-agnostic. The repaired matrix can be used with any standard node embedding algorithm (such as Node2Vec or CNE), and the resulting vectors will inherently carry less bias.

Experimental Evaluation

The approach was evaluated on three distinct real-world networks:

  • POLBLOGS: A network of US political blogs where the sensitive attribute is political leaning (binary).
  • FACEBOOK: Ego-networks where gender serves as the sensitive attribute (binary).
  • DBLP: A co-authorship network where the sensitive attribute is the continent of the author's affiliation (multi-class, 5 groups).

Results: Mitigating Structural Bias

The primary metric for structural bias used in the study is the assortativity coefficient, which measures the extent to which nodes connect to others with the same sensitive attribute. A high coefficient indicates a highly siloed or biased graph.

Assortativity coefficients across datasets. The EMD and Laplacian-regularized versions significantly reduce structural bias compared to the original graphs.

As shown in the results, the OT-based repair (EMD) drastically reduces assortativity across all datasets. For instance, in the highly polarized POLBLOGS dataset, the coefficient dropped from 0.81 to 0.14.

Key findings include:

  • Fairness-Accuracy Trade-off: On POLBLOGS, the method increased the Disparate Impact (DI) score—a measure of fairness—from 0.10 to 0.54, while maintaining a functional AUC for link prediction (0.66 vs. the original 0.75).
  • Consistency: The inclusion of Laplacian regularization ($\\lambda$) allowed for a tunable balance between group parity and individual consistency, ensuring that nodes are not "moved" arbitrarily during the repair.
  • Scalability to Multi-class: The DBLP results demonstrate that the framework effectively handles multi-class sensitive attributes, moving beyond simple binary scenarios.

Conclusion

By treating graph fairness as an Optimal Transport problem, this research provides a universal pre-processing tool for edge prediction. The method successfully reduces structural bias while preserving the individual relationships necessary for accurate link prediction. Future work will explore the impact of extreme group imbalances and investigate why specific embedding techniques are more susceptible to inheriting underlying graph biases than others.

Summary updated

BibTeX
@inproceedings{laclau2021all,
  author = {Charlotte Laclau and Ievgen Redko and Manvi Choudhary and Christine Largeron},
  title = {{All of the Fairness for Edge Prediction with Optimal Transport}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure