[Paper Review] Multi-Task Learning with Shared Encoder for Non-Autoregressive Machine Translation
This paper proposes a multi-task learning framework with a shared encoder to improve non-autoregressive machine translation (NAT) by transferring knowledge from an autoregressive (AT) model. By jointly training NAT and AT models with a shared encoder and dynamically annealing the AT loss weight, the method achieves significant BLEU gains over strong NAT baselines and complements knowledge distillation on WMT14, WMT16, WMT19, and WMT20 English–German and English–Romanian translation tasks.
Non-Autoregressive machine Translation (NAT) models have demonstrated significant inference speedup but suffer from inferior translation accuracy. The common practice to tackle the problem is transferring the Autoregressive machine Translation (AT) knowledge to NAT models, e.g., with knowledge distillation. In this work, we hypothesize and empirically verify that AT and NAT encoders capture different linguistic properties of source sentences. Therefore, we propose to adopt Multi-Task learning to transfer the AT knowledge to NAT models through encoder sharing. Specifically, we take the AT model as an auxiliary task to enhance NAT model performance. Experimental results on WMT14 English-German and WMT16 English-Romanian datasets show that the proposed Multi-Task NAT achieves significant improvements over the baseline NAT models. Furthermore, the performance on large-scale WMT19 and WMT20 English-German datasets confirm the consistency of our proposed method. In addition, experimental results demonstrate that our Multi-Task NAT is complementary to knowledge distillation, the standard knowledge transfer method for NAT.
Motivation & Objective
- To address the performance gap between non-autoregressive (NAT) and autoregressive (AT) machine translation models by transferring linguistic knowledge from AT to NAT.
- To investigate whether AT and NAT encoders learn different linguistic properties in source sentences, which could enable complementary knowledge transfer.
- To design a multi-task learning framework with shared encoder and dynamic loss weighting to enhance NAT performance without sacrificing inference speed.
- To evaluate the effectiveness and generalization of the proposed method on diverse, large-scale translation benchmarks including WMT14, WMT16, WMT19, and WMT20.
Proposed method
- A multi-task learning framework is proposed where NAT and AT models share the same encoder while maintaining separate decoders.
- The AT model serves as an auxiliary task to improve NAT performance through shared representation learning.
- A dynamic loss weighting strategy, termed 'importance annealing', gradually reduces the AT loss weight from 1 to 0 during training to balance task contributions.
- The method is evaluated with and without knowledge distillation to assess its complementarity with standard knowledge transfer techniques.
- Probing tasks are used to analyze linguistic representations learned by the shared encoder, comparing AT and NAT models on surface, syntactic, and semantic properties.
- Experiments are conducted on WMT14, WMT16, WMT19, and WMT20 English–German and English–Romanian translation datasets using Transformer and Mask-Predict architectures.
Experimental results
Research questions
- RQ1Do AT and NAT encoders learn different linguistic properties from the same source sentences?
- RQ2Can shared encoder multi-task learning effectively transfer knowledge from AT to NAT models to improve translation quality?
- RQ3Does the proposed importance annealing strategy improve multi-task learning performance compared to fixed weighting?
- RQ4How does the proposed method compare to knowledge distillation, and can it be used in conjunction with it?
- RQ5Is the performance gain of the proposed method consistent across different scale and language pairs?
Key findings
- The proposed Multi-Task NAT model achieves a 0.96 BLEU point gain over the Mask-Predict baseline in the En→De direction and a 0.57 BLEU point gain in the De→En direction on WMT14.
- With importance annealing, the model achieves consistent improvements over the vanilla multi-task baseline, demonstrating the effectiveness of dynamic loss weighting.
- On WMT16 English–Romanian, the model outperforms the baseline by 0.77 and 0.89 BLEU points in the En→Ro and Ro→En directions, respectively.
- On large-scale WMT19 and WMT20 English–German datasets, the model achieves consistent improvements of 0.58 and 0.22 BLEU points over the baseline in En→De translation.
- Probing tasks show that the shared encoder captures better surface, syntactic, and semantic information than standalone AT or NAT models, with significant gains on sentence length and tree depth prediction.
- The model demonstrates complementary gains when combined with knowledge distillation, achieving a 0.80 BLEU point improvement over the Mask-Predict baseline on WMT14 En→De translation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.