The JHU Submission to the 2020 Duolingo Shared Task on Simultaneous Translation and Paraphrase for Language Education

Huda Khayrallah, Jacob Bremerman, Arya D. McCarthy, Kenton Murray, Winston Wu, Matt Post

Introduction

In traditional Machine Translation (MT), the primary objective is to identify the single most accurate translation for a given source sentence. However, in the context of language education, a one-to-one mapping is often insufficient. A student translating a simple English phrase like "Can I walk there?" into Portuguese might produce several valid variations, such as "Eu posso andar lá?" or "Dá para eu andar ali?". Recognizing this diversity is crucial for providing accurate feedback in educational platforms.

This paper details the Johns Hopkins University (JHU) submission to the 2020 Duolingo STAPLE (Simultaneous Translation and Paraphrase for Language Education) shared task. The JHU system aimed to generate a comprehensive set of all plausible translations rather than just the single "best" one. Their approach proved highly effective, securing first place across all five language tracks: Hungarian (hu), Japanese (ja), Korean (ko), Portuguese (pt), and Vietnamese (vi).

The Challenge: Beyond 1-Best Accuracy

Standard MT evaluation metrics, such as the BLEU score, measure the overlap between a system's output and a single reference translation. The STAPLE task, however, requires systems to produce a list of translations that match a weighted set of ground-truth references provided by Duolingo.

Example of multiple valid translations for a single prompt in the STAPLE task.

The challenge is twofold:

  1. Diversity: The system must generate numerous valid paraphrases.
  2. Precision vs. Recall: Missing high-frequency references severely penalizes the weighted macro F1 score used for evaluation. Conversely, including "hallucinated" or ungrammatical translations degrades precision.

The JHU Pipeline

The JHU team implemented a four-stage, language-agnostic pipeline designed to maximize coverage while maintaining linguistic quality.

1. Pre-training

The foundation of the system consisted of high-quality Transformer models built using the fairseq library. These models were trained on massive open-source bitext datasets, including OpenSubtitles, WikiMatrix, Europarl, and others, to ensure a broad linguistic base.

2. Fine-tuning with Up-weighting

To adapt the general-domain models to the specific style of Duolingo prompts, the team performed task-specific fine-tuning. A key discovery was the benefit of "up-weighting" the primary reference translation. By repeating the 1-best translation ten times within the training set, the model remained anchored to high-quality outputs while still learning the diversity present in the other provided translations.

3. Over-generation

Instead of the standard beam search used to find a single result, the JHU system was configured to generate an n-best list of 1,000 candidates per prompt. This massive over-generation ensured that even less common but valid paraphrases were captured.

4. Probability Score Thresholding

The most significant innovation was the method used to prune the 1,000-candidate list. Rather than selecting a fixed number of top candidates (top-$k$), the team employed a multiplicative probability threshold. This dynamic approach allowed the system to return many candidates for "easy" sentences with numerous valid variations and fewer candidates for "hard" sentences where the model's confidence was lower.

Key Insights: BLEU vs. Coverage

One of the most striking findings of the JHU study was the poor correlation between traditional MT metrics and performance on the STAPLE task.

Scatter plot showing the weak correlation between BLEU scores and the macro weighted F1 metric used in the STAPLE task.

As shown in the figure above, models with higher BLEU scores—indicating better 1-best translation accuracy—often performed worse in terms of coverage. In some instances, the best-performing systems on the F1 metric were 20 BLEU points behind the "top" standard MT models. This suggests that optimizing for the "average" or "most likely" translation can actively suppress the diversity required for educational applications.

Furthermore, the team explored various linguistically motivated filters, such as Part-of-Speech (POS) tagging and dual conditional thresholding (back-translation). Surprisingly, these complex filters did not improve performance. The simple statistical thresholding of the n-best list based on model log-probabilities proved to be the most robust and effective strategy.

Results and Conclusion

The JHU system dominated the 2020 Duolingo STAPLE shared task, ranking first in all five languages. Their final weighted macro F1 scores were:

  • Vietnamese: 55.8
  • Hungarian: 55.5
  • Portuguese: 55.2
  • Korean: 40.4
  • Japanese: 31.8

These results outperformed the baseline scores by factors of 2 to 10. The probability thresholding method alone contributed an improvement of 2 to 3.3 F1 points over a fixed top-$k$ selection.

While highly successful, the authors noted areas for future improvement, particularly regarding model calibration. NMT models are often poorly calibrated, and refining their probability distributions could lead to even more accurate n-best list generation. Additionally, the mismatch between general-domain training data and the specific vocabulary of Duolingo prompts remains a challenge for future research.

Summary updated

BibTeX
@inproceedings{khayrallah2020jhu,
  author = {Huda Khayrallah and Jacob Bremerman and Arya D. McCarthy and Kenton Murray and Winston Wu and Matt Post},
  title = {{The JHU Submission to the 2020 Duolingo Shared Task on Simultaneous Translation and Paraphrase for Language Education}},
  booktitle = {NGT @ ACL},
  year = {2020},
  doi = {10.18653/v1/2020.ngt-1.22},
}
Figure