Skip to main content
QUICK REVIEW

[Paper Review] Measuring Social Bias in Knowledge Graph Embeddings

Joseph B. Fisher, Dave Palfrey|arXiv (Cornell University)|Dec 5, 2019
Misinformation and Its ImpactsSocial Sciences24 references10 citations
TL;DR

This paper presents the first study on social bias in knowledge graph embeddings, proposing a novel metric to measure bias by comparing embedding similarities between professions and gender, race, or nationality. It demonstrates that embeddings from Wikidata and Freebase encode harmful stereotypes—such as men being more associated with banking and women with homemaking—highlighting the need for bias mitigation in downstream NLP applications using knowledge graph embeddings.

ABSTRACT

It has recently been shown that word embeddings encode social biases, with a harmful impact on downstream tasks. However, to this point there has been no similar work done in the field of graph embeddings. We present the first study on social bias in knowledge graph embeddings, and propose a new metric suitable for measuring such bias. We conduct experiments on Wikidata and Freebase, and show that, as with word embeddings, harmful social biases related to professions are encoded in the embeddings with respect to gender, religion, ethnicity and nationality. For example, graph embeddings encode the information that men are more likely to be bankers, and women more likely to be homekeepers. As graph embeddings become increasingly utilized, we suggest that it is important the existence of such biases are understood and steps taken to mitigate their impact.

Motivation & Objective

  • To investigate whether knowledge graph embeddings encode social biases similar to word embeddings.
  • To identify limitations of existing word embedding bias metrics like WEAT when applied to knowledge graph embeddings.
  • To develop a new, applicable method for measuring bias in knowledge graph embeddings using embedding fine-tuning and similarity comparisons.
  • To empirically demonstrate that biased distributions in real-world knowledge graphs (e.g., more male bankers) lead to encoded stereotypes in embeddings.
  • To raise awareness of the potential harm of such biases in downstream NLP tasks and advocate for debiasing methods.

Proposed method

  • Propose a new bias measurement framework based on comparing the average similarity of profession embeddings to gendered or demographic attribute embeddings.
  • Use a fine-tuning approach to align entity embeddings with sensitive attribute categories, enabling meaningful comparison of embedding directions.
  • Define a score function that computes the cosine similarity between a profession embedding and the average embedding of a demographic group (e.g., male or female).
  • Apply the method to TransE and ComplEx embeddings trained on Wikidata and Freebase, using 200-dimensional vectors and cross-entropy loss with negative sampling.
  • Compute bias scores as the difference in average similarity between a profession and two demographic groups (e.g., male vs. female), with higher scores indicating stronger bias.
  • Use a normalized metric to account for differences in entity counts across groups, ensuring robustness to sparsity and skewed distributions.

Experimental results

Research questions

  • RQ1Do knowledge graph embeddings encode social biases related to gender, race, ethnicity, and nationality in the same way that word embeddings do?
  • RQ2Why are traditional word embedding bias metrics like WEAT unsuitable for knowledge graph embeddings?
  • RQ3Can a new metric be developed that effectively measures bias in knowledge graph embeddings by leveraging embedding fine-tuning and similarity comparisons?
  • RQ4To what extent do real-world imbalances in knowledge graph data (e.g., more male than female professionals) result in biased embeddings?
  • RQ5How do different embedding models (e.g., TransE vs. ComplEx) differ in encoding these biases?

Key findings

  • Knowledge graph embeddings from Wikidata and Freebase encode harmful social biases related to gender, religion, ethnicity, and nationality, particularly in profession associations.
  • Men are significantly more associated with professions like banker and detective, while women are more linked to roles like homekeeper and model, as shown by high positive bias scores in both datasets.
  • In Freebase, the profession 'assn. football player' has a male bias score of 13,321 compared to 227 for females, indicating a strong encoded gender disparity.
  • Professions such as 'nun' and 'gravure idol' show extreme female bias, with scores of 41 and 62 respectively, reflecting stereotypical gender roles.
  • The proposed metric successfully identifies the most gendered professions even with complex models like ComplEx, where WEAT would be inapplicable.
  • The study confirms that real-world data imbalances in knowledge graphs directly translate into biased embeddings, making debiasing essential for fair NLP systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.