Introduction
Machine Translation (MT) systems frequently encounter ambiguity when translating from gender-neutral languages (e.g., English) to gender-marked languages (e.g., Spanish, German, or Italian). Traditional Neural Machine Translation (NMT) models often resolve this ambiguity by defaulting to masculine forms or relying on societal stereotypes—for instance, associating "doctor" with masculine pronouns and "nurse" with feminine ones. While some commercial systems have implemented post-editing rewriters to offer multiple gender options, these solutions typically require separate, language-specific training. This paper explores whether Large Language Models (LLMs) can provide a more flexible and controllable alternative through simple prompting.
Methodology
The researchers compared a standard NMT model, NLLB-200 (3B parameters), against a decoder-only LLM, LLaMA-2 (70B parameters). The study utilized In-Context Learning (ICL) to steer the LLM's output. Instead of fine-tuning, the model was provided with a "Gender-specific template" containing eight examples. Each example paired an English sentence with two distinct Spanish translations: one masculine and one feminine.
Evaluation was conducted across three key datasets:
- MULTILINGUALHOLISTICBIAS (MHB): Used to elicit gender-specific translations across various patterns.
- BUG: A human-annotated set focused on coreference resolution and gender bias.
- FLoRes: A general-domain benchmark used to ensure model robustness and check for unnecessary gender "hallucinations."
Key Results and Insights
The study found that LLaMA-2 significantly outperformed NLLB on average across all reference types in the MHB dataset. A major breakthrough was observed in feminine translation accuracy, where traditional models typically struggle.
As shown in Table 1, LLaMA-2 outperformed NLLB by over 10 BLEU points on feminine references (39.55 vs 28.67). This suggests that the linguistic knowledge required for accurate feminine translation is present within the LLM but requires specific prompting to be surfaced. Furthermore, the model's performance was consistent across a wide array of languages.
Prompting as a Control Mechanism
Unlike traditional NMT models, which act as "black boxes," LLMs allow users to specify desired output properties (like "provide both genders") without architectural changes. The experiments revealed that LLaMA-2 utilizes coreference resolution—understanding the context of who a pronoun refers to—rather than simple word-swapping. This resulted in higher accuracy in unambiguous contexts and appropriate convergence in general domains like FLoRes, where the model avoided forcing gendered language where it was not required.
Limitations and Future Work
Despite these promising results, several challenges remain:
- Language Coverage: LLaMA-2 is primarily English-centric and does not yet match the 200+ language support of specialized models like NLLB.
- Prompt Sensitivity: Performance is highly dependent on the quality of the In-Context Examples (ICEs) provided.
- Binary Gender Focus: The current study and datasets focus on a masculine/feminine binary, failing to address non-binary or gender-neutral linguistic forms in target languages.
Future research will focus on expanding the multilinguality of LLMs to bring these controllable translation capabilities to a broader range of global languages.
Summary updated