Abstract
Neural Machine Translation (NMT) models often reflect and amplify societal biases present in their training data, frequently defaulting to gender stereotypes. This paper proposes an inference-only method to mitigate such biases by exploring the n-best list of translations generated during beam search. The approach involves two main steps: generating gender-diverse hypotheses through a constrained search and reranking these candidates using source-side coreference resolution. Experimental results across German, Spanish, and Hebrew demonstrate substantial gains in gender translation accuracy on the WinoMT benchmark while maintaining high general translation quality (BLEU).
Introduction
Neural Machine Translation models are typically optimized for likelihood, leading them to select the most "probable" word based on training data. Unfortunately, because training corpora are often riddled with societal biases, models learn to play it "safe" by defaulting to stereotypes. For example, a model might consistently translate "The doctor" into a masculine form and "The nurse" into a feminine form, regardless of the actual context.
Most existing solutions involve "de-biasing" training data or fine-tuning the model itself—processes that are computationally expensive and require massive amounts of curated bilingual data. The authors identify a specific gap: beam search itself amplifies bias. The most likely translation (the top result) is often the most biased, even if the model "knows" the correct gendered version and has buried it further down the list of candidates.
Methods
The authors propose a two-step inference procedure that requires no changes to the underlying NMT model:
- Gender-constrained n-best lists: Instead of a standard beam search, they use a "gender inflection transducer." When the model generates a gendered term (e.g., "el médico" in Spanish), the transducer forces the beam search to also explore the alternative gender (e.g., "la médica"). This creates a lattice of gendered possibilities, ensuring the n-best list contains diverse options.
- Reranking: Once a list of potential translations is generated, the system selects the most appropriate one using two strategies:
- Oracle Reranking: Assuming the correct gender is known (used for benchmarking).
- Inferred Reranking: Using a source-side coreference resolution tool (like RoBERTa) to determine the gender of the entity in the English source sentence and selecting the matching translation.
Crucially, the same model is used for both initial translation and scoring, keeping computational overhead low.
Key Insights
- The "Aha!" Moment: The model often has the correct translation within its reach; it simply does not rank it as the most likely. Forcing the model to consider alternatives unlocks knowledge already present in its parameters.
- Beam Search as a Bottleneck: Standard beam search is often too narrow. Increasing the beam size (e.g., from 4 to 20) significantly increases the probability that a correct, non-biased translation exists within the candidate list.
- Orthogonality: This method complements data-centric approaches. Applying reranking to a model already fine-tuned for gender balance resulted in even higher accuracy.
Key Results
Evaluation was conducted on the WinoMT benchmark for gender accuracy and standard WMT/IWSLT datasets for general quality (BLEU). On the WinoMT dataset, oracle reranking improved accuracy by approximately 10% absolute for a beam-4 search and over 25% absolute for a beam-20 search.
As shown in the results table, even without an oracle, using RoBERTa to infer gender led to accuracy gains nearly as high as the oracle case. Importantly, general translation quality (BLEU scores) remained stable, proving that bias mitigation does not have to come at the cost of performance.
Limitations and Future Work
The primary limitation is the reliance on source-side gender detection. If the coreference resolution tool fails to identify the correct gender in the English sentence, the reranker will select the wrong translation. Currently, the system focuses on sentences where gender can be determined by a pronoun or a known entity. Future work may involve developing more robust ways to extract gender information and extending transducer rules to handle more complex grammatical structures across a wider variety of languages.
Summary updated