Skip to main content
QUICK REVIEW

[Paper Review] Filling Gender & Number Gaps in Neural Machine Translation with Black-box Context Injection

Amit Moryossef, Roee Aharoni|arXiv (Cornell University)|Mar 8, 2019
Natural Language Processing TechniquesComputer Science13 references8 citations
TL;DR

This paper proposes a black-box method to inject gender and number information into pre-trained neural machine translation (NMT) systems by appending contextually explicit hints (e.g., 'She said:') to source sentences. The approach improves translation accuracy by up to 2.3 BLEU on an English-to-Hebrew task when correct gender and number information is injected, without modifying the model or training data.

ABSTRACT

When translating from a language that does not morphologically mark information such as gender and number into a language that does, translation systems must "guess" this missing information, often leading to incorrect translations in the given context. We propose a black-box approach for injecting the missing information to a pre-trained neural machine translation system, allowing to control the morphological variations in the generated translations without changing the underlying model or training data. We evaluate our method on an English to Hebrew translation task, and show that it is effective in injecting the gender and number information and that supplying the correct information improves the translation accuracy in up to 2.3 BLEU on a female-speaker test set for a state-of-the-art online black-box system. Finally, we perform a fine-grained syntactic analysis of the generated translations that shows the effectiveness of our method.

Motivation & Objective

  • To address morphological ambiguity in neural machine translation when translating from gender- and number-neutral source languages to morphologically rich target languages.
  • To enable control over gender and number marking in generated translations without modifying the underlying NMT model or its training data.
  • To develop a simple, post-processing-compatible method that leverages sentence-internal coreference chains to inject speaker and audience properties.
  • To evaluate the method’s effectiveness across multiple language pairs, including Hebrew, Spanish, French, and Russian, where gender agreement is morphologically marked.

Proposed method

  • Injects pre-defined textual hints (e.g., 'She said:') into the input sentence to unambiguously signal the gender and number of the speaker and audience.
  • Uses sentence-internal coreference chains (e.g., 'I love you, she told him') to create unambiguous antecedent relationships that guide morphological decisions.
  • Applies the method as a pre-processing step before inference and removes the injected hints post-generation to preserve clean output.
  • Relies on the NMT model’s inherent ability to track coreference and morphological agreement, even without explicit training for such signals.
  • Operates in a black-box manner—no access to model internals, parameters, or retraining is required.
  • Employs a wrapper approach that is compatible with any pre-trained NMT system, including commercial APIs like Google Translate.

Experimental results

Research questions

  • RQ1Can a black-box method effectively inject gender and number information into a pre-trained NMT system to control morphological output?
  • RQ2Does injecting contextually explicit hints improve translation accuracy on ambiguous gender and number cases?
  • RQ3To what extent can the method generalize across different language pairs with varying morphological marking systems?
  • RQ4How does the method affect syntactic accuracy, particularly in the agreement of pronouns, verbs, and adjectives?
  • RQ5Can the method be applied to commercial, non-open-source translation systems like Google Translate?

Key findings

  • The method improves translation BLEU score by up to 2.3 points on an English-to-Hebrew test set when correct gender and number information is injected.
  • The approach achieves a BLEU score of 39.95 on a female-speaker test set using Google Translate, outperforming both the baseline and prior state-of-the-art methods.
  • The method successfully controls morphological agreement for first- and second-person pronouns, verbs, and adjectives in multiple languages including Hebrew, Spanish, French, and Russian.
  • Fine-grained syntactic analysis confirms that the injected context effectively steers the model to produce correct morphological forms.
  • The method generalizes across 6 out of 10 tested languages, with correct gender marking preserved in 60% of cases, while 30% of cases defaulted to masculine and 10% to feminine forms.
  • The approach is effective even when applied to commercial, closed-source NMT systems like Google Translate, demonstrating strong black-box compatibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.