Abstract
Graph hyperdimensional computing (HDC) has emerged as a promising paradigm for cognitive tasks, emulating brain-like computation with high-dimensional vectors known as hypervectors. While HDC offers robustness and efficiency on graph-structured data, its fairness implications remain largely unexplored. In this paper, we study fairness in graph HDC, where biases in data representation and decision rules can lead to unequal treatment of different groups. We show how hypervector encoding and similarity-based classification can propagate or even amplify such biases, and we propose a fairness-aware training framework, FairGHDC, to mitigate them. FairGHDC introduces a bias correction term, derived from a gap-based demographic-parity regularizer, and converts it into a scalar fairness factor that scales the update of the class hypervector for the ground-truth label. This enables debiasing directly in the hypervector space without modifying the graph encoder or requiring backpropagation. Experimental results on six benchmark datasets demonstrate that FairGHDC substantially reduces demographic-parity and equal-opportunity gaps while maintaining accuracy comparable to standard GNNs and fairness-aware GNNs. At the same time, FairGHDC preserves the computational advantages of HDC, achieving up to about one order of magnitude ($\approx 10\times$) speedup in training time on GPU compared to GNN and fairness-aware GNN baselines.
Introduction
Graph Neural Networks (GNNs) are the standard for analyzing networked data, but they are computationally expensive due to backpropagation and complex matrix operations. Hyperdimensional Computing (HDC) has emerged as a "green" alternative, representing data using high-dimensional vectors (hypervectors) and performing learning through simple arithmetic. However, like all machine learning models, HDC can inherit and amplify human biases present in training data—leading to unfair outcomes based on sensitive attributes like race, gender, or age. Because HDC doesn't use standard backpropagation, existing fairness techniques for GNNs cannot be applied.
This paper introduces FairGHDC, the first framework designed to ensure group fairness in Graph HDC. By incorporating a dynamic bias-correction factor directly into the hypervector update rule, FairGHDC achieves fairness metrics that often surpass state-of-the-art GNNs while maintaining a 10x training speedup.
Methods
The FairGHDC pipeline consists of five primary steps to transform graph data into fair hypervector representations:
- Feature Hypervector Encoding: Mapping node features to high-dimensional space using cyclic shifts.
- Edge Hypervector Encoding: Aggregating information from 1-hop and 2-hop neighbors using "bundling" (vector addition).
- Node Representation: Combining feature and structural information into a single node hypervector.
- Fairness-Aware Training: This is the core innovation. Instead of simply adding a node's hypervector to its class "prototype," FairGHDC calculates a bias correction term ($F$) based on the demographic parity gap of the current training batch. The update rule becomes: $C_{truth} \leftarrow C_{truth} + \eta(1 - F)E$. If a batch is highly biased, $F$ increases, shrinking the update and preventing the model from over-learning biased patterns.
- Inference: Classification is performed via simple cosine similarity between the node hypervector and the learned class hypervectors.
Datasets
The model was evaluated on six benchmark datasets commonly used in fairness research, covering diverse domains and sensitive attributes.
- Pokec-z & Pokec-n: Large-scale Slovak social networks (sensitive attribute: Region).
- NBA: Player performance and salary data (sensitive attribute: Nationality).
- German: Credit card client data (sensitive attribute: Gender).
- Bail: Recidivism data for defendants (sensitive attribute: Race).
- Credit: Default prediction (sensitive attribute: Age).
Key Insights
- Debiasing without Derivatives: You don't need complex loss functions or backpropagation to achieve fairness. By weighting how much a specific batch of data influences the global class prototype based on its inherent bias, discrimination can be effectively neutralized.
- The "Shrinkage" Factor: Treating the fairness factor ($F$) as a shrinkage factor allows the model to remain accurate on "fair" batches while being skeptical of "biased" ones.
- Efficiency as a Feature: HDC uses vector-wise operations (additions and multiplications) rather than dense matrix-matrix multiplications, scaling linearly with the number of nodes. This makes it viable for massive graphs where traditional fair GNNs might run out of memory.
Results
- Superior Fairness: FairGHDC consistently achieved the lowest Demographic Parity ($\Delta_{DP}$) and Equal Opportunity ($\Delta_{EO}$) gaps across almost all datasets. For example, on the Bail dataset, it reduced the parity gap significantly compared to standard GCNs.
- Massive Speedup: On the large Pokec datasets, FairGHDC was ~10x faster than GNN baselines.
- Robustness: While some fairness-aware GNNs (like EDITS) failed due to memory constraints on larger graphs, FairGHDC handled them easily due to its lightweight architecture.
- Accuracy Trade-off: The model maintained classification accuracy comparable to (and sometimes better than) fairness-aware GNNs, proving that performance doesn't have to be sacrificed for equity.
Limitations and Future Work
While FairGHDC shows great promise, it relies on hyperparameters ($\alpha$ and $\beta$) to tune the fairness factor, and fairness can be sensitive to $\alpha$. Future work includes extending this framework to link prediction or graph-level classification and exploring "trainable" encoders within the HDC framework to potentially boost accuracy further.
Summary updated