arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.00392cs.LG
收藏

Coneheads:层级感知的注意力机制

Coneheads: Hierarchy Aware Attention

Cornell University(康奈尔大学)

Albert Tseng, Tao Yu, Toni J. B. Liu, Christopher De Sa

AI总结:

本文提出锥注意力,利用双曲蕴含锥中的层级结构替代点积注意力,以更少参数在多种任务上实现更优或相当的层级感知性能。

摘要:

Transformer 等注意力网络已在许多领域取得了最先进的性能。这些网络严重依赖点积注意力算子,该算子通过计算两个点的内积来衡量它们之间的相似度。然而,内积并不能显式地建模现实世界数据集中复杂的结构特性,例如数据点之间的层级关系。为了解决这一问题,我们引入了锥注意力(cone attention),它是一种基于双曲蕴含锥(hyperbolic entailment cones)的点积注意力直接替代方案。锥注意力通过两个点在由双曲锥定义的层级中最低公共祖先的深度来关联它们,这直观地度量了两个点的发散程度,并给出一个层级感知的相似度分数。我们在多种模型和任务上测试了锥注意力,结果表明它在任务级性能上优于点积注意力和其他基线方法,并且能够以显著更少的参数匹配点积注意力的表现。我们的结果表明,锥注意力是在计算注意力时捕捉层级关系的一种有效方法。

英文摘要:

Attention networks such as transformers have achieved state-of-the-art performance in many domains. These networks rely heavily on the dot product attention operator, which computes the similarity between two points by taking their inner product. However, the inner product does not explicitly model the complex structural properties of real world datasets, such as hierarchies between data points. To remedy this, we introduce cone attention, a drop-in replacement for dot product attention based on hyperbolic entailment cones. Cone attention associates two points by the depth of their lowest common ancestor in a hierarchy defined by hyperbolic cones, which intuitively measures the divergence of two points and gives a hierarchy aware similarity score. We test cone attention on a wide variety of models and tasks and show that it improves task-level performance over dot product attention and other baselines, and is able to match dot-product attention with significantly fewer parameters. Our results suggest that cone attention is an effective way to capture hierarchical relationships when calculating attention.

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

↑