ERNIE-SPARSE:通过正则化的自注意学习分层有效的Transformer
ERNIE-SPARSE: Learning Hierarchical Efficient Transformer Through Regularized Self-Attention
摘要:
稀疏Transformer最近吸引了大量的关注,因为能够减少序列长度的二次依赖性。我们认为,两个因素,信息瓶颈的敏感性和不同的注意力拓扑结构之间的不一致性,可能会影响稀疏Transformer的性能。本文提出了一个设计良好的模型ERNIE-Sparse。它由两个不同的部分组成:(i)层次稀疏Transformer(HST),顺序统一的本地和全局信息。(ii)自注意正则化(SAR)方法,一种新的正则化设计,以最小化不同注意拓扑的变压器的距离。为了评估ERNIE-Sparse的有效性,我们进行了广泛的评估。首先,我们进行了实验上的多模态长序列建模任务基准,长距离竞技场(LRA)。实验结果表明,ERNIE-Sparse显著优于各种强基线方法,包括密集注意力和其他有效的稀疏注意力方法,并实现了2.77%的改进(57.78% vs. 55.01%)。其次,为了进一步证明我们的方法的有效性,我们对ERNIE-Sparse进行了预训练,并在3个文本分类和2个QA下游任务上进行了验证,分类基准提高了0.83%(92.46% vs. 91.63%),QA基准提高了3.24%(74.67% vs. 71.43%)。实验结果继续证明其优越的性能。
英文摘要:
Sparse Transformer has recently attracted a lot of attention since the ability for reducing the quadratic dependency on the sequence length. We argue that two factors, information bottleneck sensitivity and inconsistency between different attention topologies, could affect the performance of the Sparse Transformer. This paper proposes a well-designed model named ERNIE-Sparse. It consists of two distinctive parts: (i) Hierarchical Sparse Transformer (HST) to sequentially unify local and global information. (ii) Self-Attention Regularization (SAR) method, a novel regularization designed to minimize the distance for transformers with different attention topologies. To evaluate the effectiveness of ERNIE-Sparse, we perform extensive evaluations. Firstly, we perform experiments on a multi-modal long sequence modeling task benchmark, Long Range Arena (LRA). Experimental results demonstrate that ERNIE-Sparse significantly outperforms a variety of strong baseline methods including the dense attention and other efficient sparse attention methods and achieves improvements by 2.77% (57.78% vs. 55.01%). Secondly, to further show the effectiveness of our method, we pretrain ERNIE-Sparse and verified it on 3 text classification and 2 QA downstream tasks, achieve improvements on classification benchmark by 0.83% (92.46% vs. 91.63%), on QA benchmark by 3.24% (74.67% vs. 71.43%). Experimental results continue to demonstrate its superior performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。