article Open access

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

  • Applied Sciences
  • Multidisciplinary Digital Publishing Institute
Research footprint

At a glance

Citations
31
References
22
Comments
0
Paper overview

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).

Record transparency

Publication details

DOI
10.3390/app12094502
OpenAlex
W4225163098
Document type
article
Language
EN
Source
Applied Sciences
Last metadata update
Community

Comments

Log in to join the discussion.

  1. No comments yet. Start the discussion.