Measuring Societal Biases from Text Corpora with Smoothed First-Order\n Co-occurrence

Navid Rekabsaz, Robert West, James Henderson, Allan Hanbury · DOI

Abstract

Text corpora are essential for quantifying societal biases, yet standard measurement techniques using word embedding similarities often capture irrelevant contextual "noise." This paper demonstrates that these high-order co-occurrence methods can misrepresent the true extent of bias. We propose a "first-order" approach that reconstructs direct co-occurrence estimates from embedding models. Our experiments on occupational gender bias in Wikipedia show that this method aligns more closely with real-world U.S. labor statistics and uncovers more pronounced biases in specific professions than traditional vector-based approaches.

The Problem: High-Order "Pollution" in Bias Measurement

To measure if a word like "nurse" is gender-biased, researchers typically calculate the cosine similarity between the vector for nurse and vectors for gendered terms like she or woman. However, word embeddings capture "high-order" co-occurrence: two words are similar if they appear in similar contexts.

While useful for general semantics, this introduces noise into bias measurement. For instance, the similarity between nurse and she might be inflated by shared context words like midwife or Filipina. If these context words are themselves biased or domain-specific, they "pollute" the measurement of the core gender concept. The challenge is to isolate the direct (first-order) relationship between a word and a concept without losing the generalization power of modern embeddings.

High-order co-occurrence (cosine similarity) can be influenced by shared context words, polluting the bias measurement.

Methodology: Smoothed First-Order Co-occurrence

The authors propose shifting from latent vector similarity to a smoothed first-order co-occurrence approach. This method isolates the direct association between a target word and a concept. To maintain the robustness of modern embeddings, they introduce "explicit" representations:

  • eSG (explicit Skip-Gram): Reconstructs co-occurrence probabilities from Word2vec Skip-Gram models by using the sigmoid output of word and context matrices.
  • eGloVe (explicit GloVe): Reconstructs the co-occurrence matrix from GloVe vectors, essentially "undoing" dimensionality reduction to retrieve a smoothed version of original counts.

These methods provide the directness of word counts with the noise-reduction benefits of embedding training, effectively providing a "best of both worlds" scenario.

Key Results: Better Alignment with Reality

The first-order approach was evaluated against U.S. Department of Labor and Census statistics for various occupations to determine which method best reflects real-world societal bias.

1. Higher Correlation with Ground Truth

The proposed method consistently outperformed standard high-order methods across almost all tested models. For example, using eSG with AVERAGE_FIRST achieved a Spearman correlation of 0.70 with Census data, significantly higher than the roughly 0.65 achieved by standard high-order Skip-Gram methods.

2. Uncovering Hidden Bias

The first-order approach revealed that bias in certain occupations is more severe than previously thought. In high-order models, the bias of words like nurse or housekeeper is dampened by their broad contextual usage. By focusing on direct associations, the first-order method shows these words are more strongly linked to female-representative terms in the Wikipedia corpus than high-order methods had indicated.

Comparison of bias measurements: High-order (a) vs. First-order (b). Note how occupations like 'nurse' and 'housekeeper' shift further into the biased regions in the first-order plot.

Conclusion

By moving from high-order vector similarity to smoothed first-order co-occurrence, researchers can obtain a cleaner, more accurate measurement of societal bias in text. This approach is more sensitive to corpus changes and aligns better with real-world statistics, providing a more reliable tool for auditing AI systems and understanding cultural stereotypes.

Summary updated

Abstract

Text corpora are widely used resources for measuring societal biases and\nstereotypes. The common approach to measuring such biases using a corpus is by\ncalculating the similarities between the embedding vector of a word (like\nnurse) and the vectors of the representative words of the concepts of interest\n(such as genders). In this study, we show that, depending on what one aims to\nquantify as bias, this commonly-used approach can introduce non-relevant\nconcepts into bias measurement. We propose an alternative approach to bias\nmeasurement utilizing the smoothed first-order co-occurrence relations between\nthe word and the representative concept words, which we derive by\nreconstructing the co-occurrence estimates inherent in word embedding models.\nWe compare these approaches by conducting several experiments on the scenario\nof measuring gender bias of occupational words, according to an English\nWikipedia corpus. Our experiments show higher correlations of the measured\ngender bias with the actual gender bias statistics of the U.S. job market - on\ntwo collections and with a variety of word embedding models - using the\nfirst-order approach in comparison with the vector similarity-based approaches.\nThe first-order approach also suggests a more severe bias towards female in a\nfew specific occupations than the other approaches.\n
BibTeX
@inproceedings{rekabsaz2021measuring,
  author = {Navid Rekabsaz and Robert West and James Henderson and Allan Hanbury},
  title = {{Measuring Societal Biases from Text Corpora with Smoothed First-Order\textbackslash\{\}n Co-occurrence}},
  booktitle = {ICWSM},
  year = {2021},
}
Figure