On the Relation between Position Information and Sentence Length in Neural Machine Translation
41718Authors
nan
Abstract
AbstractLong sentences have been one of the major challenges in neural machine translation (NMT). Although some approaches such as the attention mechanism have partially remedied the problem, we found that the current standard NMT model, Transformer, has difficulty in translating long sentences compared to the former standard, Recurrent Neural Network (RNN)-based model. One of the key differences of these NMT models is how the model handles position information which is essential to process sequential data. In this study, we focus on the position information type of NMT models, and hypothesize that relative position is better than absolute position. To examine the hypothesis, we propose RNN-Transformer which replaces positional encoding layer of Transformer by RNN, and then compare RNN-based model and four variants of Transformer. Experiments on ASPEC English-to-Japanese and WMT2014 English-to-German translation tasks demonstrate that relative position helps translating sentences longer than those in the training data. Further experiments on length-controlled training data reveal that absolute position actually causes overfitting to the sentence length.
Keywords
Full Content
Proceedings of the 23rd Conference on Computational Natural Language Learning, pages 328–338 Hong Kong, China, November 3-4, 2019. c⃝2019 Association for Computational Linguistics 328 On the Relation between Position Information and Sentence Length in Neural Machine Translation Masato Neishi The University of Tokyo neishi@tkl.iis.u-tokyo.ac.jp Naoki Yoshinaga Institute of Industrial Science, the University of Tokyo ynaga@iis.u-tokyo.ac.jp Abstract Long sentences have been one of the ma- jor challenges in neural machine translation (NMT). Although some approaches such as the attention mechanism have partially reme- died the problem, we found that the current standard NMT model, Transformer, has diffi- culty in translating long sentences compared to the former standard, Recurrent Neural Net- work (RNN)-based model. One of the key differences of these NMT models is how the model handles position information which is essential to process sequential data. In this study, we focus on the position information type of NMT models, and hypothesize that rel- ative position is better than absolute position. To examine the hypothesis, we propose RNN- Transformer which replaces positional encod- ing layer of Transformer by RNN, and then compare RNN-based model and four vari- ants of Transformer. Experiments on ASPEC English-to-Japanese and WMT2014 English- to-German translation tasks demonstrate that relative position helps translating sentences longer than those in the training data. Further experiments on length-controlled training data reveal that absolute position actually causes overfitting to the sentence length. 1 Introduction Sequence to sequence models for neural machine translation (NMT) are now utilized for various text generation tasks including automatic summariza- tion (Chopra et al., 2016; Nallapati et al., 2016; Rush et al., 2015) and dialogue systems (Vinyals and Le, 2015; Shang et al., 2015); the models are required to take inputs of various length. Early studies on recurrent neural network (RNN)-based model analyze the translation quality with respect to the sentence length, and show that their mod- els improve translations for long sentences, using the long short-term memory (LSTM) (Sutskever et al., 2014) or introducing the attention mecha- nism (Bahdanau et al., 2015; Luong et al., 2015). However, Koehn and Knowles (2017) report that even RNN-based model with the attention mecha- nism performs worse than phrase-based statistical machine translation (Koehn et al., 2007) in trans- lating very long sentences, which challenges us to develop an NMT model that is robust to long sentences or more generally, variations in input length. Have the recent advances in NMT achieved the robustness to the variations in input length? NMT has been advancing by upgrading the model ar- chitecture: RNN-based model (Cho et al., 2014; Sutskever et al., 2014; Bahdanau et al., 2015; Lu- ong et al., 2015) followed by convolutional neural network (CNN)-based model (Kalchbrenner et al., 2016; Gehring et al., 2017) and attention-based model (Vaswani et al., 2017) called Transformer (§ 2). Transformer is the de facto standard NMT model today for its better performance compared to the former standard RNN-based model. We thus came up with a question whether Transformer have acquired the robustness to the variations in input length. …
Content truncated to 500 words
Labeled Text
AbstractLong sentences have been one of the major challenges in neural machine translation (NMT). Although some approaches such as the attention mechanism have partially remedied the problem, we found that the current standard NMT model, Transformer, has difficulty in translating long sentences compared to the former standard, Recurrent Neural Network (RNN)-based model. One of the key differences of these NMT models is how the model handles position information which is essential to process sequential data. In this study, we focus on the position information type of NMT models, and hypothesize that relative position is better than absolute position. To examine the hypothesis, we propose RNN-Transformer which replaces positional encoding layer of Transformer by RNN, and then compare RNN-based model and four variants of Transformer. Experiments on ASPEC English-to-Japanese and WMT2014 English-to-German translation tasks demonstrate that relative position helps translating sentences longer than those in the training data. Further experiments on length-controlled training data reveal that absolute position actually causes overfitting to the sentence length.
Publication Details
- Paper ID:
- 41718
- Year:
- 2019
- Publication:
- TIPSTER
- Publication Type:
- conf
- DOI:
- nan