Compressed models for co-reference resolution: enhancing efficiency with debiased word embeddings

Γεώργιος Ιωαννίδης, Aishwarya Jadhav, Aditi Sharma, Samarth Navali, Alan W. Black

Abstract

This work presents a comprehensive approach to reduce bias in word embedding vectors and evaluate the impact on various Natural Language Processing (NLP) tasks. Two GloVe variations (840B and 50) are debiased by identifying the gender direction in the word embedding space and then removing or reducing the gender component from the embeddings of target words, while preserving useful semantic information. Their gender bias is assessed through the Word Embedding Association Test. The performance of co-reference resolution and sentiment analysis models trained on both original and debiased embeddings is evaluated in terms of accuracy. A compressed co-reference resolution model is examined to gauge the effectiveness of debiasing techniques on resource-efficient models. To the best of the authors' knowledge, this is the first attempt to apply compression techniques to debiased models. By analyzing the context preservation of debiased embeddings using a Twitter misinformation dataset, this study contributes valuable insights into the practical implications of debiasing methods for real-world applications such as human profiling.

Introduction

Modern Natural Language Processing (NLP) faces a dual challenge: algorithmic bias and computational inefficiency. Large-scale models often inherit societal prejudices from their training data, leading to biased outputs in tasks like co-reference resolution—linking entities like "the doctor" to gendered pronouns. Simultaneously, the massive size of these models hinders deployment on edge devices and increases environmental costs. This paper explores the intersection of fairness and efficiency by combining word embedding debiasing with model compression, demonstrating that resource-efficient models can significantly reduce gender bias while maintaining competitive performance.

Methodology

The researchers developed a multi-stage pipeline integrating debiasing and compression.

Debiasing Techniques

Two post-processing methods were applied to GloVe word embeddings:

  • HardWEAT: A "hard" debiasing method that identifies a gender subspace and completely neutralizes the gender component for non-gendered words.
  • SoftWEAT: A "graceful" approach using a tuning parameter ($\lambda$) to reduce bias while preserving semantic nuances.

Model Architecture and Compression

The core model for co-reference resolution utilizes a sequence of embedding layers, spatial dropout, and LSTM units to process linguistic context.

Architecture of the co-reference resolution model featuring embedding layers and LSTM units.

To enhance efficiency, the authors employed Magnitude Pruning. Weights below specific thresholds (0.1 and 0.02) were set to zero, reducing the model's footprint without intensive retraining.

Experimental Setup

The study utilized two primary benchmarks:

  1. WinoBias: A dataset for co-reference resolution containing "pro-stereotypical" and "anti-stereotypical" sentences to measure gender bias in model predictions.
  2. COVID-19 Twitter Misinformation Dataset: Used for sentiment analysis to ensure debiasing did not degrade general semantic understanding.

Bias was quantified using the Word Embedding Association Test (WEAT), which measures the relative association between target concepts and attribute words.

Results and Discussion

The results highlight a significant synergy between debiasing and model compression.

The Pruning Paradox

Moderate pruning (up to 33.25% compression) was found to actually reduce bias in anti-stereotypical data. This suggests that stereotypical associations may be encoded in lower-magnitude weights that are naturally discarded during pruning.

Accuracy rates for debiased GloVe embeddings across different pruning thresholds (THS).

Performance and Bias Elimination

  • Bias Reduction: HardWEAT successfully reduced the WEAT bias score to 0.00 (from an original 0.40 in GloVe 840B).
  • Accuracy Gains: On the WinoBias "Anti-stereotype Type 1" task, HardWEAT improved accuracy from 0.346 to 0.462.
  • SoftWEAT Optimization: With proper tuning, SoftWEAT occasionally outperformed original biased embeddings, suggesting that removing gender "noise" allows the model to focus on relevant linguistic features.

Conclusion

This study demonstrates that debiasing and compression are not mutually exclusive. Models using debiased embeddings remained stable and often outperformed uncompressed biased models in anti-stereotypical scenarios. While actual hardware speedups require specialized sparse algorithms, this work provides a foundation for deploying fair, efficient NLP models. Future research will expand this framework to address other forms of bias, such as race and age, across more diverse datasets.

Summary updated

BibTeX
@inproceedings{2023compressed,
  author = {Γεώργιος Ιωαννίδης and Aishwarya Jadhav and Aditi Sharma and Samarth Navali and Alan W. Black},
  title = {{Compressed models for co-reference resolution: enhancing efficiency with debiased word embeddings}},
  booktitle = {Scientific},
  year = {2023},
  doi = {10.1038/s41598-023-45677-0},
}
Figure