期刊文献+
共找到1篇文章
< 1 >
每页显示 20 50 100
Bidirectional Transformer with absolute-position aware relative position encoding for encoding sentences 被引量:1
1
作者 Le QI Yu ZHANG Ting LIU 《Frontiers of Computer Science》 SCIE EI CSCD 2023年第1期63-71,共9页
Transformers have been widely studied in many natural language processing (NLP) tasks, which can capture the dependency from the whole sentence with a high parallelizability thanks to the multi-head attention and the ... Transformers have been widely studied in many natural language processing (NLP) tasks, which can capture the dependency from the whole sentence with a high parallelizability thanks to the multi-head attention and the position-wise feed-forward network. However, the above two components of transformers are position-independent, which causes transformers to be weak in modeling sentence structures. Existing studies commonly utilized positional encoding or mask strategies for capturing the structural information of sentences. In this paper, we aim at strengthening the ability of transformers on modeling the linear structure of sentences from three aspects, containing the absolute position of tokens, the relative distance, and the direction between tokens. We propose a novel bidirectional Transformer with absolute-position aware relative position encoding (BiAR-Transformer) that combines the positional encoding and the mask strategy together. We model the relative distance between tokens along with the absolute position of tokens by a novel absolute-position aware relative position encoding. Meanwhile, we apply a bidirectional mask strategy for modeling the direction between tokens. Experimental results on the natural language inference, paraphrase identification, sentiment classification and machine translation tasks show that BiAR-Transformer achieves superior performance than other strong baselines. 展开更多
关键词 TRANSFORMER relative position encoding bidirectional mask strategy sentence encoder
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部