arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.09857cs.LGcs.CL
收藏

价值感知近似注意

Value-aware Approximate Attention

Tel Aviv University(特拉维夫大学);Allen Institute for AI(艾伦人工智能研究所)

Ankit Gupta, Jonathan Berant

摘要:

随着点积注意力在Transformers中的成功,最近提出了许多近似来解决其关于输入长度的二次复杂性。然而,到目前为止,所有的近似都忽略了$\textit{value vectors}$对近似质量的贡献。在这项工作中,我们认为,研究工作应针对近似的注意力子层,其中包括价值向量的真实输出。我们提出了一个价值感知的目标,并从理论上和经验表明,一个价值感知的目标的最佳近似大大优于忽略值的最佳近似,在语言建模的上下文中。此外,我们发现,核函数的选择计算注意力相似性可以大大影响稀疏近似的质量,其中核函数是不太偏斜的值向量的影响更大。

英文摘要:

Following the success of dot-product attention in Transformers, numerous approximations have been recently proposed to address its quadratic complexity with respect to the input length. However, all approximations thus far have ignored the contribution of the $\textit{value vectors}$ to the quality of approximation. In this work, we argue that research efforts should be directed towards approximating the true output of the attention sub-layer, which includes the value vectors. We propose a value-aware objective, and show theoretically and empirically that an optimal approximation of a value-aware objective substantially outperforms an optimal approximation that ignores values, in the context of language modeling. Moreover, we show that the choice of kernel function for computing attention similarity can substantially affect the quality of sparse approximations, where kernel functions that are less skewed are more affected by the value vectors.

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

↑