arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.07350cs.CLcs.AI
收藏

THG:具有双曲线几何形状的Transformer

THG: Transformer with Hyperbolic Geometry

Dalian University of Technology(大连理工大学)

Zhe Liu, Yibin Xu

摘要:

最近,Transformer模型架构已经成为深度学习中不可或缺的主食,因为它们在一系列任务中的有效性。最近,提出了一系列“X-former”模型,这些模型改进了原始的Transformer架构。然而,这些变体中的大多数仅围绕自注意的二次时间和内存复杂度进行更改,即查询和键之间的点积。更重要的是,它们仅在欧几里得空间中计算。本文提出了一种新的双曲几何Transformer(THG)模型,该模型结合了欧氏空间和双曲空间的优点。THG改进了自注意力的线性变换,将其应用于输入序列以获得查询和密钥,并提出了双曲线性变换。在序列标记任务、机器阅读理解任务和分类任务上的实验证明了该模型的有效性和推广性。这也证明了THG可以减轻过拟合。

英文摘要:

Transformer model architectures have become an indispensable staple in deep learning lately for their effectiveness across a range of tasks. Recently, a surge of "X-former" models have been proposed which improve upon the original Transformer architecture. However, most of these variants make changes only around the quadratic time and memory complexity of self-attention, i.e. the dot product between the query and the key. What's more, they are calculate solely in Euclidean space. In this work, we propose a novel Transformer with Hyperbolic Geometry (THG) model, which take the advantage of both Euclidean space and Hyperbolic space. THG makes improvements in linear transformations of self-attention, which are applied on the input sequence to get the query and the key, with the proposed hyperbolic linear. Extensive experiments on sequence labeling task, machine reading comprehension task and classification task demonstrate the effectiveness and generalizability of our model. It also demonstrates THG could alleviate overfitting.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑