Abstract
Knowledge graph (KG) embeddings are prone to inheriting societal biases from their source data, leading to stereotypical predictions in downstream applications. We present a "neutral-by-default" training framework that employs an adversarial KL-divergence loss to scrub sensitive information from entity representations. To preserve utility in contexts where sensitive attributes are relevant, we introduce a whitelisting mechanism using attribute vectors. Our approach achieves a significant speedup over existing debiasing methods while maintaining competitive prediction accuracy across standard benchmarks like FB15K and Wikidata.
Introduction
Knowledge graphs (KGs) serve as the foundation for numerous AI systems, including search engines and recommendation frameworks. However, these graphs frequently encode historical biases. For instance, a dataset with a disproportionate number of male bankers may lead a model to associate the profession "banker" primarily with men. When these biased embeddings are deployed, they propagate harmful stereotypes. Previous debiasing efforts often relied on post-hoc filtering, which significantly increased training time (often by over 800%) and degraded model accuracy. This work addresses the need for an efficient, performance-preserving debiasing method that integrates neutrality directly into the training process.
Methodology
The proposed architecture shifts the paradigm from post-hoc filtering to a "neutral-by-default" training process using two primary components.
Adversarial KL-Divergence Loss
The core of the debiasing process is the integration of a Kullback-Leibler (KL) divergence term into the training loss function. This adversarial component penalizes the model if sensitive attributes (e.g., gender or ethnicity) can be accurately predicted from an entity's embedding. The objective is to drive the probability distribution of these sensitive attributes toward a uniform (flat) distribution, effectively scrubbing the sensitive information from the latent space.
Attribute Vectors and Whitelisting
Recognizing that sensitive information is sometimes necessary for legitimate predictions (e.g., nationality for language prediction), the authors implemented a "whitelisting" mechanism. For specific, pre-approved relations, the model adds a learned attribute vector back to the neutral entity embedding. This allows the system to utilize sensitive data only in contextually appropriate and "safe" scenarios.
Experimental Setup
The framework was evaluated on three major KG benchmarks:
- FB15K and FB3M: Subsets of Freebase.
- Wikidata: A large-scale, real-world knowledge graph.
The authors manually identified 60 whitelisted relations for Freebase and 88 for Wikidata, covering attributes like "place of birth" and "spouse."
Results
The experimental results demonstrate significant improvements in both efficiency and bias reduction without sacrificing utility.
Computational Efficiency
The integrated approach drastically reduces overhead. On the FB15K dataset, the model required only 89.4 seconds per epoch, compared to 533.3 seconds for the previous state-of-the-art method (Bose & Hamilton). This represents an 8x speedup in terms of debiasing overhead, reducing it from an 800% increase to a marginal ~30% increase over a biased baseline.
Prediction Accuracy
Unlike previous methods that saw Mean Reciprocal Rank (MRR) drop significantly (e.g., to 0.426), this model maintained an MRR of 0.679 on FB15K, nearly matching the biased baseline of 0.680. Furthermore, the whitelisting mechanism improved prediction accuracy for allowed triples by a median of 25%, proving that the model can successfully "re-learn" sensitive info when permitted.
Debiasing Effectiveness
To test for information leakage, the authors used a separate neural network to attempt to recover sensitive attributes from the embeddings. For FB15K and FB3M, gender prediction accuracy was reduced to the level of a random guess, indicating successful debiasing.
Discussion and Limitations
While the method is highly effective on standard benchmarks, challenges remain for massive graphs like Wikidata. In Wikidata, a classifier could still predict gender with high accuracy (97.9%) due to the high volume of correlated metadata. This suggests that larger-scale graphs may require higher weights for the KL loss component ($w_{KL}$). Future research will focus on automating the whitelisting process, which currently relies on manual labeling or keyword-based heuristics.
Summary updated