Design of a Modified Transformer Architecture Based on Relative Position Coding

被引:56
作者
Zheng, Wenfeng [1 ]
Gong, Gu [1 ]
Tian, Jiawei [1 ]
Lu, Siyu [1 ]
Wang, Ruiyang [1 ]
Yin, Zhengtong [2 ]
Li, Xiaolu [3 ]
Yin, Lirong [4 ]
机构
[1] Univ Elect Sci & Technol China, Sch Automat, Chengdu 610054, Peoples R China
[2] Guizhou Univ, Coll Resource & Environm Engn, Guiyang 550025, Peoples R China
[3] Southwest Univ, Sch Geog Sci, Chongqing 400715, Peoples R China
[4] Louisiana State Univ, Dept Geog & Anthropol, Baton Rouge, LA 70803 USA
关键词
Relative position embedding; Natural language processing; Attention mechanism; ATTENTION; LSTM;
D O I
10.1007/s44196-023-00345-z
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Natural language processing (NLP) based on deep learning provides a positive performance for generative dialogue system, and the transformer model is a new boost in NLP after the advent of word vectors. In this paper, a Chinese generative dialogue system based on transformer is designed, which only uses a multi-layer transformer decoder to build the system and uses the design of an incomplete mask to realize one-way language generation. That is, questions can perceive context information in both directions, while reply sentences can only output one-way autoregressive. The above system improvements make the one-way generation of dialogue tasks more logical and reasonable, and the performance is better than the traditional dialogue system scheme. In consideration of the long-distance information weakness of absolute position coding, we put forward the improvement of relative position coding in theory, and verify it in subsequent experiments. In the transformer module, the calculation formula of self-attention is modified, and the relative position information is added to replace the absolute position coding of the position embedding layer. The performance of the modified model in BLEU, embedding average, grammatical and semantic coherence is ideal, to enhance long-distance attention.
引用
收藏
页数:17
相关论文
共 62 条
[61]   RNN Language Processing Model-Driven Spoken Dialogue System Modeling Method [J].
Zhu, Xia .
COMPUTATIONAL INTELLIGENCE AND NEUROSCIENCE, 2022, 2022
[62]   A SOM-Based Customer Stratification Model [J].
Zong, Yi ;
Pan, Enze .
WIRELESS COMMUNICATIONS & MOBILE COMPUTING, 2022, 2022