arrow
返回

Bidirectional Transformer with absolute-position aware relative position encoding for encoding sentences

delete2022-08-08
delete8
PRE
AI
Q
Qi Le
张煜 (Yu Zhang) *
T
Ting Liu
DOI:10.1007/s11704-022-0610-2delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
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.
Keyword:
Transformer
relative position encoding
bidirectional mask strategy
sentence encoder

期刊

Frontiers of Computer Science 封面图
Frontiers of Computer Science
IF:
4.6
论文数:
1.6K
被引数:
2.8K

机构

H
harbin institute of technology
学者数:
8.0W
论文数: 6.6W
被引数: 66
引用论文

引用论文

Impurity effects on ionic-liquid-based supercapacitors
err2016-12-27
err0
errOAAI
errKun Liu; Cheng Lian; Douglas Henderson; Jianzhong Wu
err分享
err收藏
Triple‐negative breast cancer—Role of immunology: A systemic review
err2019-12-04
err0
errOAAI
errGizem Oner; Sevilay Altintas; Zafer Canturk; Wiebren Tjalma; Yannick Verhoeven; Christophe Van Berckelaer; Zwi Berneman; Marc Peeters; Patrick Pauwels; Peter A. Dam
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
Analysis of current-density distribution and giant magnetoimpedance effect in composite wires
err2006-01-01
err0
errOAAI
errLiu Long-Ping; Zhao Zhen-Jie; Huang Can-Xing; Wu Zhi-Ming; Yang Xie-Long
err分享
err收藏
Enhancement of pyramid solar distiller performance using reflectors, cooling cycle, and dangled cords of wicks
err2021-06-01
err0
PREAI
errF.A. Essa; Wissam H. Alawee; Suha A. Mohammed; A.S. Abdullah; Z.M. Omara
err分享
err收藏
Improving Self-Attention Networks With Sequential Relations
err2020-01-01
err13
PREAI
errZheng, Zaixiang; Huang, Shujian; Weng, Rongxiang; Dai, Xinyu; Chen, Jiajun
err分享
err收藏
学者 查看更多内容