Abstract
Knowledge Graphs (KG) are gaining increasing attention in both academia and industry. Despite their diverse benefits, recent research have identified social and cultural biases embedded in the representations learned from KGs. Such biases can have detrimental consequences on different population and minority groups as applications of KG begin to intersect and interact with social spheres. This paper aims at identifying and mitigating such biases in Knowledge Graph (KG) embeddings. As a first step, we explore popularity bias -- the relationship between node popularity and link prediction accuracy. In case of node2vec graph embeddings, we find that prediction accuracy of the embedding is negatively correlated with the degree of the node. However, in case of knowledge-graph embeddings (KGE), we observe an opposite trend. As a second step, we explore gender bias in KGE, and a careful examination of popular KGE algorithms suggest that sensitive attribute like the gender of a person can be predicted from the embedding. This implies that such biases in popular KGs is captured by the structural properties of the embedding. As a preliminary solution to debiasing KGs, we introduce a novel framework to filter out the sensitive attribute information from the KG embeddings, which we call FAN (Filtering Adversarial Network). We also suggest the applicability of FAN for debiasing other network embeddings which could be explored in future work.
Introduction
Knowledge Graphs (KGs) serve as the backbone for modern search engines and recommendation systems. To integrate these graphs into machine learning pipelines, entities and relations are mapped into high-dimensional vector spaces known as embeddings. However, these embeddings often inherit and amplify societal biases present in the underlying data.
A critical observation of this work is that bias is structural. Simply removing explicit sensitive attributes (e.g., deleting "gender" edges) is insufficient because the information is "smeared" across the embeddings of related entities like occupation, alma mater, or workplace. The authors focus on two primary forms of bias:
- Popularity Bias: The correlation between a node's connectivity (degree) and the model's prediction accuracy.
- Gender Bias: The unintended leakage of gender information into entity embeddings, which can lead to discriminatory outcomes in downstream tasks.
Methodology: Filtering Adversarial Network (FAN)
To mitigate these biases, we propose the Filtering Adversarial Network (FAN). This framework utilizes an adversarial learning approach to "scrub" sensitive information from embeddings while maintaining their utility for general tasks.
The architecture consists of two competing components:
- The Filter: This module transforms an original embedding into a "filtered" version. It is trained with a dual objective: minimizing the reconstruction loss to keep the filtered vector close to the original (preserving utility) and maximizing the error of the Discriminator.
- The Discriminator: Acting as the adversary, this component attempts to predict the sensitive attribute (e.g., gender) from the filtered embedding.
Through this min-max game, the Filter learns to eliminate the specific signal identifying the sensitive attribute without destroying the information necessary for other downstream applications.
Experimental Setup
The framework was evaluated using a refined subset of DBpedia. The authors processed approximately 580 million triples to create a focused dataset of 264,000 triples centered on US individuals. This involved semantic clustering to consolidate thousands of disparate occupation strings into 44 distinct categories, ensuring a robust ground truth for utility testing.
Results and Discussion
The effectiveness of FAN was tested on popular KGE algorithms such as TransH and TransD. The primary goal was to reduce the predictability of gender to random-guess levels while preserving occupation prediction accuracy.
Key findings include:
- Gender Scrubbing: Before filtering, gender could be predicted with 67-68% accuracy. Post-filtering, this dropped to 50-54%, effectively neutralizing the bias.
- Utility Preservation: Occupation prediction accuracy remained stable at approximately 49%, demonstrating that the debiasing process is surgical and does not degrade general performance.
- Popularity Consistency: The debiasing effect was consistent across nodes of varying degrees, addressing the "popularity paradox" where high-degree nodes typically exhibit stronger bias signals.
Conclusion
This work demonstrates that adversarial learning is a viable path for debiasing Knowledge Graph embeddings. By decoupling the sensitive attribute from the structural representation, FAN provides task-agnostic embeddings suitable for fair machine learning. Future research will explore broader biases, including ethnicity and age, and extend the framework to more complex graph neural network architectures.
Summary updated