Abstract
Graph embeddings are essential for modern recommendation systems but often capture sensitive user attributes, leading to algorithmic bias. This paper proposes a novel adversarial framework that utilizes compositional filters to dynamically remove any combination of sensitive attributes from node embeddings at inference time. By training on random subsets of attributes, the model learns to generalize fairness constraints to unseen attribute combinations, providing a flexible, user-centric approach to privacy and fairness in graph-based learning.
Introduction
Learning low-dimensional representations of nodes in a graph is a cornerstone of modern link prediction and recommendation systems. However, these embeddings frequently encode sensitive information such as age, gender, or race, which can lead to biased downstream predictions. While fairness in machine learning is a well-studied field, applying it to graph data is complicated by the interconnected nature of nodes. Furthermore, real-world applications often involve multiple sensitive attributes, where different users may have varying privacy preferences. Training a separate model for every possible combination of $K$ attributes ($2^K$) is computationally prohibitive.
Proposed Framework
The authors introduce a framework designed to achieve representational invariance, ensuring that the mutual information between a node's embedding and a specified set of sensitive attributes is minimized.
The architecture consists of four primary components:
- Attribute-Specific Filters: The model learns a dedicated neural filter $f_k$ for each sensitive attribute $k$. These filters are designed to "scrub" specific information from the base node embedding.
- Compositional Encoder: To handle requests for filtering a subset of attributes $S$, the model passes the base embedding through the relevant filters and aggregates the results, typically via averaging.
- Adversarial Training: The filters are trained alongside a set of discriminators. While the discriminators attempt to predict sensitive attributes from the filtered embeddings, the encoder aims to fool them in a minimax game, while simultaneously maintaining performance on the primary task (e.g., edge prediction).
- Random Masking: During training, the model is exposed to random binary masks that determine which attributes to filter in each batch. This process encourages the network to learn how to effectively compose different filters dynamically.
Experimental Evaluation
The framework was evaluated on three diverse datasets:
- Freebase15k-237: A knowledge graph benchmark where the three most common entity types were treated as sensitive.
- MovieLens-1M: A recommendation dataset where user demographics (age, gender, occupation) served as sensitive attributes.
- Reddit: A social graph where participation in specific subreddits (up to 50) was treated as sensitive, simulating a high-dimensional privacy scenario.
Key Results
The experiments revealed several critical insights into the performance and flexibility of compositional fairness:
- Invariance-Accuracy Tradeoff: The model successfully reduced the ability of discriminators to predict sensitive attributes—often reaching near-random performance (~0.5 AUC)—with only a modest impact on primary task accuracy. For instance, on MovieLens, the RMSE increased slightly from a baseline of 0.865 to 1.01 under the compositional adversary.
- Zero-Shot Generalization: A standout finding was the model's ability to enforce fairness on attribute combinations it never encountered during training. On the Reddit dataset, the performance gap between seen and unseen combinations was negligible, validating the compositional approach.
- Compositional Synergy: Interestingly, training a single compositional model to remove multiple attributes proved more effective than training individual models for each attribute. This suggests that the adversary can better capture and mitigate bias by leveraging correlations between sensitive features like age and occupation.
Discussion and Future Work
While the proposed framework offers a pragmatic, user-centric approach to fairness, several avenues for future research remain. The current method focuses on demographic parity (marginal independence) but does not explicitly address subgroup fairness—the intersectional bias affecting groups like "young women." Additionally, the authors note that relying on user-driven fairness preferences could introduce new data distribution shifts if certain demographics are more likely to opt for privacy than others. Future work could explore alternative statistical distance measures beyond adversarial training to further refine representational invariance.
Summary updated