Hostname: page-component-74656f9884-kv2lp Total loading time: 0 Render date: 2026-11-06T04:19:22.257Z Has data issue: false hasContentIssue false

Linguistic knowledge-based vocabularies for Neural Machine Translation

Published online by Cambridge University Press:  02 July 2020

Noe Casas*
Affiliation:
TALP Research Center, Universitat Politècnica de Catalunya
Marta R. Costa-jussà
Affiliation:
TALP Research Center, Universitat Politècnica de Catalunya
José A. R. Fonollosa
Affiliation:
TALP Research Center, Universitat Politècnica de Catalunya
Juan A. Alonso
Affiliation:
Lucy Software, United Language Group
Ramón Fanlo
Affiliation:
Lucy Software, United Language Group
*
*Corresponding author. E-mail: contact@noecasas.com
Rights & Permissions [Opens in a new window]

Abstract

Neural Networks applied to Machine Translation need a finite vocabulary to express textual information as a sequence of discrete tokens. The currently dominant subword vocabularies exploit statistically-discovered common parts of words to achieve the flexibility of character-based vocabularies without delegating the whole learning of word formation to the neural network. However, they trade this for the inability to apply word-level token associations, which limits their use in semantically-rich areas and prevents some transfer learning approaches e.g. cross-lingual pretrained embeddings, and reduces their interpretability. In this work, we propose new hybrid linguistically-grounded vocabulary definition strategies that keep both the advantages of subword vocabularies and the word-level associations, enabling neural networks to profit from the derived benefits. We test the proposed approaches in both morphologically rich and poor languages, showing that, for the former, the quality in the translation of out-of-domain texts is improved with respect to a strong subword baseline.

Information

Type
Article
Copyright
© The Author(s), 2020. Published by Cambridge University Press
Figure 0

Figure 1. Vocabulary extraction and token encoding phases.

Figure 1

Figure 2. Morphological subword vocabulary extraction.

Figure 2

Figure 3. Token ID encoding process with the morphological unit vocabulary.

Figure 3

Figure 4. Overall distribution of the morphological units vocabulary table.

Figure 4

Figure 5. Lemmatized Vocabulary extraction.

Figure 5

Figure 6. Token encoding phase with the lemmatized vocabulary.

Figure 6

Figure 7. Overall distribution of the lemmatized vocabulary table.

Figure 7

Table 1. Hyperparameters of the Transformer model for the NMT experiments

Figure 8

Table 2. Statistics of the German-English training data

Figure 9

Table 3. Statistics of the French-English training data

Figure 10

Table 4. Statistics of the Basque-Spanish training data

Figure 11

Table 5. German-English and English-German translation quality (case-insensitive BLEU score) with different source vocabulary strategies

Figure 12

Table 6. French-English and English-French translation quality (case-insensitive BLEU score) with different source vocabulary strategies

Figure 13

Table 7. Basque-Spanish and Spanish-Basque translation quality (case-insensitive BLEU score) with different source vocabulary strategies

Figure 14

Table 8. German-English and English-German translation quality in out-of-domain text

Figure 15

Table 9. French-English and English-French translation quality in out-of-domain text

Figure 16

Table 10. Basque-Spanish and Spanish-Basque translation quality in out-of-domain text

Figure 17

Table 11. German-to-English out-of-domain examples

Figure 18

Figure 8. Distribution of the ratio of sequence length with the Morphological Unit Vocabulary and a standard word-based tokenization.

Figure 19

Figure 9. Distribution of the ratio of sequence length with the Lemmatized Vocabulary and a standard word-based tokenization.