[Paper Review] Learning to Parse and Translate Improves Neural Machine Translation
This paper proposes NMT+RNNG, a hybrid neural machine translation model that jointly learns parsing and translation by integrating a recurrent neural network grammar (RNNG) into an attention-based NMT decoder. By jointly training on both translation and parse action prediction using an external parser during training, the model improves translation quality without additional inference cost, achieving significant BLEU and RIBES gains on four language pairs, especially on Japanese-English and Russian-English.
There has been relatively little attention to incorporating linguistic prior to neural machine translation. Much of the previous work was further constrained to considering linguistic prior on the source side. In this paper, we propose a hybrid model, called NMT+RNNG, that learns to parse and translate by combining the recurrent neural network grammar into the attention-based neural machine translation. Our approach encourages the neural machine translation model to incorporate linguistic prior during training, and lets it translate on its own afterward. Extensive experiments with four language pairs show the effectiveness of the proposed NMT+RNNG.
Motivation & Objective
- To investigate whether incorporating linguistic prior through parsing improves neural machine translation performance.
- To address the limitation of prior methods that require external linguistic tools at inference time.
- To explore multi-task learning between translation and syntactic parsing to enhance model generalization.
- To develop a unified, end-to-end trainable model that implicitly learns syntactic structure during training.
- To evaluate the effectiveness of the proposed method across diverse language pairs with varying syntactic complexity.
Proposed method
- The model combines an attention-based NMT decoder with a recurrent neural network grammar (RNNG) to jointly predict target sentence tokens and their parsing actions.
- The RNNG component uses a buffer (for output tokens), a stack (for syntactic structure), and a history of parsing actions, with shared word embeddings between the NMT and RNNG components.
- During training, the model is optimized to maximize both the likelihood of the target translation and the likelihood of the correct parse action sequence.
- An external dependency parser (Andor et al., 2016) provides gold-standard parse actions for supervision during training, but these are not needed at test time.
- The model uses beam search during inference with beam width tuned on the development set, and training employs stochastic gradient descent with gradient clipping and learning rate decay.
- The RNNG decoder generates dependency parse trees alongside translations, with the EOS token treated as the ROOT node in the parse tree.
Experimental results
Research questions
- RQ1Can joint learning of parsing and translation improve neural machine translation performance?
- RQ2Does incorporating syntactic structure through RNNG improve translation quality without requiring external parsers at inference time?
- RQ3How do individual components of the RNNG (buffer, stack, action prediction) contribute to the overall translation performance?
- RQ4Is the improvement from the proposed method consistent across language pairs with varying syntactic structures?
- RQ5Can the model learn useful linguistic priors implicitly through multi-task training without explicit linguistic features?
Key findings
- The NMT+RNNG model achieved statistically significant BLEU improvements on three out of four language pairs (JP-En, Ru-En, Cs-En), with a 0.96 BLEU point gain on JP-En (17.88 to 18.84).
- The model also improved RIBES scores on all four language pairs, with the highest gain on JP-En (72.25 vs. 71.27), indicating better fluency and adequacy.
- Ablation studies showed that removing any component of the RNNG—especially the stack—significantly degraded performance, with the stack having the largest negative impact.
- The model achieved the best performance only when all three RNNG components (buffer, stack, action prediction) were present, confirming their joint necessity.
- The proposed method achieved improvements without adding parameters or computational cost at inference time, maintaining the same efficiency as standard NMT.
- The model successfully generated correct dependency parse trees alongside translations, as shown in qualitative examples, though minor errors (e.g., incorrect dependency relations) were observed.
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.