TL;DR
This paper tackles the challenge of low-resource neural machine translation (NMT) by proposing novel transformer architectures that ensure consistent initialization between pretraining and translation. Their models, the Layer-Wise Coordination Transformer (LWCT) and the Consistent Pretraining Translation Transformer (CPTT), achieve better performance with fewer parameters on low-resource tasks compared to standard transformer baselines.
What Problem Does This Paper Address?
Neural machine translation (NMT) models typically require large parallel corpora to achieve high quality. However, in low-resource scenarios where such data is scarce, NMT performance degrades significantly. While pretraining language models on abundant monolingual data has shown promise for improving NMT, a key challenge arises from architectural mismatches between pretraining models (often just encoders) and NMT models (encoder-decoder). Specifically, standard transformers have decoders with more layers than typical pretrained encoders, leading to incomplete initialization and suboptimal transfer of knowledge. This paper aims to bridge this gap by proposing NMT architectures that can be fully and consistently initialized by a pretrained model, thereby maximizing the benefits of pretraining for low-resource NMT.
Methods
The authors propose two novel transformer variants to address the pretraining-translation consistency issue:
- Layer-Wise Coordination Transformer (LWCT): This model uses only an encoder, mirroring the architecture of many pretrained language models. It adapts the decoder's role to be handled by the encoder itself, employing a "mixed-attention" mechanism that allows target tokens to attend to both previous target tokens and all source tokens. This ensures full initialization from a pretrained encoder.
- Consistent Pretraining Translation Transformer (CPTT): This model retains the encoder-decoder structure but enforces architectural consistency. Crucially, it ensures that the encoder and decoder have exactly the same parameters. This is achieved by using a modified decoder that also employs a mixed-attention mechanism, allowing it to be fully initialized by a pretrained encoder-decoder model.
Both models leverage masked language modeling (MLM) for pretraining, similar to XLM, and then fine-tune on parallel data.
Datasets
The experiments were conducted on the following datasets:
- Chinese-English:
- Parallel Data: News Commentary v12 (used for low-resource training), CWMT Corpus, UN Parallel Corpus V1.0.
- Monolingual Data: Chinese part of CWMT corpus (9 million sentences), News Crawl 2016 (20.6 million sentences).
- English-German:
- Parallel Data: News Commentary v12 (used for low-resource training), Common Crawl corpus, Europarl v7, Rapid corpus of EU press releases.
- Monolingual Data: News Crawl 2016 (4.5 million English sentences), News Crawl 2016 (4.5 million German sentences).
The paper simulates low-resource conditions by using only the News Commentary v12 parallel corpus for training the NMT models.
Key Insights and Ideas
- Consistency is Key: The paper strongly suggests that maintaining architectural consistency between the pretraining model and the NMT model is crucial for effective knowledge transfer, especially in low-resource settings. Simply initializing parts of a standard transformer decoder is less effective than ensuring full, consistent initialization.
- Encoder Dominance: Ablation studies indicate that initializing the encoder is more critical than initializing the decoder for translation performance, highlighting the importance of source language understanding.
- Cross-Lingual Pretraining Advantage: Cross-lingual pretraining (using both source and target language monolingual data) yields better results than monolingual pretraining, underscoring the benefit of learning cross-lingual representations.
- Parameter Efficiency: The proposed models (LWCT and CPTT) achieve competitive or superior performance with significantly fewer parameters than the standard transformer baseline, making them more suitable for resource-constrained environments.
Key Results
- Improved Performance in Low-Resource Settings: Both LWCT and CPTT models, when initialized with a pretrained model, outperform the standard Transformer (XLM baseline) on Chinese-English and English-German tasks, particularly when the parallel corpus is small (less than 1 million sentence pairs).
- Parameter Reduction: LWCT models, having only an encoder, inherently use fewer parameters. CPTT also achieves better performance with fewer parameters compared to the standard transformer.
- LWCT Performance: The LWCT with 12 layers even surpassed the XLM baseline by 1.46 BLEU points on the English-German task, despite requiring a larger pretrained model.
- Impact of Corpus Size: As the parallel corpus size increases, the performance gap between the proposed models and the standard transformer narrows. For very large corpora (e.g., 4.5 million pairs), the standard transformer may even slightly outperform CPTT, suggesting that the benefits of pretraining diminish with abundant parallel data.
Limitations and Future Work
- LWCT Parameter Size: The LWCT with 12 layers, while performing well, requires a larger pretrained model, which might be a practical limitation.
- Future Directions: The authors plan to explore more pretraining models and investigate methods to utilize monolingual data more effectively for low-resource NMT. They also aim to further understand the interplay between pretraining, model architecture, and parallel corpus size.
Summary updated