Abstract
While intrinsic debiasing of word embeddings is a well-studied area, its efficacy in downstream applications like Machine Translation (MT) remains inconsistent. This paper investigates the integration of debiasing techniques into MT models, focusing on the impact of sub-word tokenization, architectural placement, and linguistic morphology. Our findings suggest that debiasing is most effective when applied to whole-word tokens and that the optimal placement of the debiasing layer depends on the linearity of the algorithm.
Introduction
Natural Language Processing (NLP) models frequently inherit and amplify societal biases present in their training data, often manifesting as gender stereotypes—such as the persistent association of "doctor" with masculinity and "nurse" with femininity. While "intrinsic debiasing"—the process of removing bias from word embeddings—has shown promise in controlled geometric settings, its translation to "extrinsic" fairness in downstream tasks like Machine Translation (MT) is non-trivial. This study bridges this gap by systematically evaluating how embedding-level debiasing affects the fairness and quality of MT outputs.
Methodology and Architectural Integration
The researchers integrated three distinct debiasing algorithms into a standard Transformer-based MT architecture (OPUS-MT):
- Hard-Debiasing: A non-linear method using Principal Component Analysis (PCA) to identify and neutralize gendered subspaces.
- Iterative Nullspace Projection (INLP): A linear method that identifies and removes gender-predictive directions via iterative classification.
- LEACE: A minimal linear transformation designed to prevent any linear classifier from detecting gender information.
A key contribution of this work is the exploration of where these methods should be applied within the model pipeline. The study tested three specific locations: the Encoder Input, the Decoder Input, and the Decoder Output (immediately preceding the final softmax layer).
The Tokenization Mismatch
Modern MT models rely on sub-word tokenization (e.g., Byte Pair Encoding) to handle large vocabularies and out-of-vocabulary words. However, most debiasing research assumes whole-word embeddings. This study reveals a significant "tokenization mismatch": debiasing sub-word fragments (e.g., splitting "doctor" into "doc" and "##tor") is often ineffective or counterproductive. The gender signal is most effectively neutralized when the profession is treated as a single, atomic token. Consequently, the best results were achieved by targeting only "1-token professions."
Experimental Results and Discussion
The models were evaluated using the WinoMT benchmark for gender coreference accuracy and standard BLEU scores for translation quality across English to German (De), Hebrew (He), and Russian (Ru).
Fairness and Accuracy Gains
Applying debiasing to single-token professions improved gender translation accuracy across all tested languages. In German, for instance, accuracy rose from 57.7% to 61.9%. Manual audits further validated these metrics, showing that in 32% of cases where the model's output changed post-debiasing, the change directly corrected a gender-related translation error.
Algorithm Placement and Linearity
A significant finding was the relationship between algorithm type and architectural placement. Linear methods (INLP and LEACE) performed most effectively at the Decoder Output. In contrast, the non-linear Hard-Debiasing was most effective at the Encoder Input. This suggests that the geometric representation of bias evolves as it passes through the Transformer's non-linear layers, requiring different tools to address it at different stages of the pipeline.
The Impact of Morphology
The study highlighted that language-specific grammar significantly impacts debiasing success. Russian, with its complex morphology, saw more frequent sub-word splitting (only 59% of professions were single tokens), making it more resistant to word-level debiasing compared to German (83% single tokens). This indicates that the more a language fragments words, the harder it is for intrinsic debiasing to "find" and erase the bias.
Quality vs. Fairness Trade-offs
While LEACE and Hard-Debiasing were able to improve fairness without significantly harming translation quality (BLEU scores), INLP often resulted in "over-cleaning," leading to a noticeable drop in performance. This highlights the need for precision in debiasing to avoid degrading the model's primary utility.
Conclusion
Applying intrinsic debiasing to MT requires careful consideration of model architecture and linguistic features. The findings suggest that focusing on whole-word tokens and aligning the debiasing method with the appropriate architectural layer are critical for success. Future research should expand beyond binary gender, explore debiasing within the Transformer's internal hidden layers, and address the deeper challenges of coreference resolution that go beyond embedding-level fixes.
Summary updated