cs.LGSep 27, 2026

Investigating the Effect of k-NN Preprocessing on Developing Graph Neural Networks: A Fairness-Based Perspective

Authors: Nikolaos Zafeiropoulos, Emmanouil Mavrikos, George E. Tsekouras

Organizations: Department of Cultural Technology and Communication University of the Aegean Mytilene, Greece

Abstract

In this paper, a methodology to design fair graph convolutional neural networks (GCNs) is developed and tested over several application data sets. The graphs that are used as inputs to the network are constructed by a k-nearest neighbor-based preprocessing procedure, while fairness issues are considered in terms of the equalized odds criterion. To effectively incorporate the above heterogenous information, the equalized odds criterion is directly embedded into the model's optimization objective through an additional fairness-driven loss functional term. The proposed methodology investigates how varying the neighborhood size in the k-NN algorithm during graph construction influences both the classification performance and the fairness of the resulting models. Extensive experimentation is conducted on three real-world tabular datasets with known biases, evaluating the interplay between graph structure and fairness enforcement. The results demonstrate that the choice of the value of the parameter k critically impacts the performance trends, either steadily improving or peaking at intermediate values depending on dataset characteristics, while the application of fairness constraints significantly mitigates disparities in false positive and false negative rates across groups defined by the protected variable at hand, without incurring major sacrifices in overall accuracy. This study highlights the importance of jointly optimizing the graph construction process and fairness objectives in GCN-based learning, providing a systematic approach toward building more equitable and effective graph-based models.

Explore similar work

CardsList
  1. Geometrical fairness in graph neural networks

    Jun 16, 2026Arturo Pérez-Peralta, Sandra Benítez-Peña, Blas Kolic +1Algorithmic FairnessPhysics-Guided Diffusion

  2. Grad2Fair: A Gradient-driven Approach for Graph Fairness without Demographics

    Jul 16, 2026Yuchang Zhu, Zezhong Xie, Huizhe Zhang +4Algorithmic FairnessFederated Graph Learning

  3. Adversarial Graph Neural Network Benchmarks: Towards Practical and Fair Evaluation

    May 7, 2026Tran Gia Bao Ngo, Zulfikar Alom, Federico Errica +2Graph Neural NetworksGraph Representations