journal article·2022-04-29Open access

X-Transformer: A Machine Translation Model Enhanced by the Self-Attention Mechanism

Huey-Ing Liu, Wei-Lin Chen

Applied Sciences· Volume 12· Issue 9

Abstract

Machine translation has received significant attention in the field of natural language processing not only because of its challenges but also due to the translation needs that arise in the daily life of modern people. In this study, we design a new machine translation model named X-Transformer, which refines the original Transformer model regarding three aspects. First, the model parameter of the encoder is compressed. Second, the encoder structure is modified by adopting two layers of the self-attention mechanism consecutively and reducing the point-wise feed forward layer to help the model understand the semantic structure of sentences precisely. Third, we streamline the decoder model size, while maintaining the accuracy. Through experiments, we demonstrate that having a large number of decoder layers not only affects the performance of the translation model but also increases the inference time. The X-Transformer reaches the state-of-the-art result of 46.63 and 55.63 points in the BiLingual Evaluation Understudy (BLEU) metric of the World Machine Translation (WMT), from 2014, using the English–German and English–French translation corpora, thus outperforming the Transformer model with 19 and 18 BLEU points, respectively. The X-Transformer significantly reduces the training time to only 1/3 times that of the Transformer. In addition, the heat maps of the X-Transformer reach token-level precision (i.e., token-to-token attention), while the Transformer model remains at the sentence level (i.e., token-to-sentence attention).
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Natural Language Processing Techniques · Topic Modeling · Text Readability and Simplification

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Electrical Engineering, Fu Jen Catholic University, No. 510 Zhongzheng Rd., Xinzhuang Dist., New Taipei City 242062, Taiwan

References (26)

Show source-provided references
1. Learning representations by back-propagating errors10.1038/323533a0 ↗
2. Long Short-Term Memory10.1162/neco.1997.9.8.1735 ↗
3. Wu, Y., Schuster, M., Chen, Z., Le, Q.V., Norouzi, M., Macherey, W., Krikun, M., Cao, Y., Gao, Q., and Macherey, K. (2016). Google’s Neural Machine Translation System: Bridging the Gap between Human and Machine Translation. arXiv.
4. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., and Polosukhin, I. (2017, January 4–9). Attention is All You Need. Proceedings of the 2017 Conference on Advances in Neural Information Processing Systems, Long Beach, CA, USA.
5. Bojar, O., Buck, C., Federmann, C., Haddow, B., Koehn, P., Leveling, J., Monz, C., Pecina, P., Post, M., and Saint-Amand, H. (2014, January 30). Findings of the 2014 Workshop on Statistical Machine Translation. Proceedings of the Ninth Workshop on Statistical Machine Translation, Baltimore, MD, USA.10.3115/v1/W14-3302 ↗
6. Bahdanau, D., Cho, K., and Bengio, Y. (2014). Neural Machine Translation by Jointly Learning to Align and Translate. arXiv.
7. Luong, M.-T., Pham, H., and Manning, C.D. (2015). Effective Approaches to Attention-Based Neural Machine Translation. arXiv.10.18653/v1/D15-1166 ↗
8. Gehring, J., Auli, M., Grangier, D., Yarats, D., and Dauphin, Y.N. (2017, January 6–11). Convolutional Sequence to Sequence Learning. Proceedings of the 2017 International Conference on Machine Learning, Sydney, Australia.
9. Luong, M.-T., Sutskever, I., Le, Q.V., Vinyals, O., and Zaremba, W. (2014). Addressing the Rare Word Problem in Neural Machine Translation. arXiv.10.3115/v1/P15-1002 ↗
10. Gu, J., Lu, Z., Li, H., and Li, V.O. (2016). Incorporating Copying Mechanism in Sequence-to-Sequence Learning. arXiv.10.18653/v1/P16-1154 ↗
11. Gulcehre, C., Ahn, S., Nallapati, R., Zhou, B., and Bengio, Y. (2016, January 7–12). Pointing the Unknown Words. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, Berlin, Germany.10.18653/v1/P16-1014 ↗
12. Jean, S., Cho, K., Memisevic, R., and Bengio, Y. (2014, January 26–31). On Using Very Large Target Vocabulary for Neural Machine Translation. Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing, Beijing, China.10.3115/v1/P15-1001 ↗
13. Sennrich, R., Haddow, B., and Birch, A. (2016, January 7–12). Neural Machine Translation of Rare Words with Subword Units. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Berlin, Germany.10.18653/v1/P16-1162 ↗
14. Ott, M., Edunov, S., Grangier, D., and Auli, M. (2018). Scaling Neural Machine Translation. arXiv.10.18653/v1/W18-6301 ↗
15. Xu, H., van Genabith, J., Liu, Q., and Xiong, D. (2021, January 6–11). Probing Word Translations in the Transformer and Trading Decoder for Encoder Layers. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Mexico City, Mexico.10.18653/v1/2021.naacl-main.7 ↗
16. Press, N., Smith, A., and Levy, O. (2019, January 9). Improving Transformer Models by Reordering their Sublayers. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Seattle, WA, USA.10.18653/v1/2020.acl-main.270 ↗
17. Shi, X., Huang, H.-Y., Wang, W., Jian, P., and Tang, Y.-K. (2019, January 11). Improving Neural Machine Translation by Achieving Knowledge Transfer with Sentence Alignment Learning. Proceedings of the 23rd Conference on Computational Natural Language Learning (CoNLL), Hong Kong, China.10.18653/v1/K19-1025 ↗
18. Zhu, J., Xia, Y., Wu, L., He, D., Qin, T., Zhou, W., Li, H., and Liu, T.Y. (2020, January 6–9). Incorporating Bert into Neural Machine Translation. Proceedings of the 2019 Conference on Learning Representations, New Orleans, LA, USA.
19. Clinchant, S., Jung, K.W., and Nikoulina, V. (2019, January 4). On the use of BERT for Neural Machine Translation. Proceedings of the 3rd Workshop on Neural Generation and Translation, Hong Kong, China.10.18653/v1/D19-5611 ↗
20. Kim, Y., and Rush, A.M. (2016, January 21). Sequence-Level Knowledge Distillation. Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, Austin, TX, USA.10.18653/v1/D16-1139 ↗
21. Sun, S., Cheng, Y., Gan, Z., and Liu, J. (2019, January 3–7). Patient Knowledge Distillation for Bert Model Compression. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, Hong Kong, China.10.18653/v1/D19-1441 ↗
22. Understanding the Language Learning Plateau: A Grounded-Theory Study
23. Papineni, K., Roukos, S., Ward, T., and Zhu, W.-J. (2002, January 7–12). BLEU: A Method for Automatic Evaluation of Machine Translation. Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, Philadelphia, PA, USA.10.3115/1073083.1073135 ↗
24. Zhu, Y., Kiros, R., Zemel, R., Salakhutdinov, R., Urtasun, R., Torralba, A., and Fidler, S. (2015, January 7–13). Aligning Books and Movies: Towards Story-Like Visual Explanations by Watching Movies and Reading Books. Proceedings of the 2015 IEEE International Conference on Computer Vision, Washington, DC, USA.10.1109/ICCV.2015.11 ↗
25. Häggström, M. Wikipedia content by subject.png. Wikimedia.org. Wikimedia Commons. Web. 2010.
26. Kingma, P., and Ba, J. (2014). Adam: A Method for Stochastic Optimization. arXiv.