arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2110.10090cs.LGstat.ML
收藏

自注意力机制中的诱导偏差与变量创造

Inductive Biases and Variable Creation in Self-Attention Mechanisms

Harvard University(哈佛大学);Microsoft Research NYC(微软研究院纽约)

Benjamin L. Edelman, Surbhi Goel, Sham Kakade, Cyril Zhang

摘要:

自注意力是一种设计用于模拟序列数据中的远程交互的架构主题,它推动了自然语言处理及其他领域的许多最新突破。本文从理论上分析了自注意力模块的归纳偏差。我们的重点是严格建立哪些功能和长期依赖性的自注意力块更喜欢代表。我们的主要结果表明,有界范数Transformer网络“创建稀疏变量”:一个单一自注意力头可以表示输入序列的稀疏函数,样本复杂度缩放仅与上下文长度的几何关系。为了支持我们的分析,我们提出了合成实验,以探讨学习稀疏布尔函数与Transformers的样本复杂度。

英文摘要:

Self-attention, an architectural motif designed to model long-range interactions in sequential data, has driven numerous recent breakthroughs in natural language processing and beyond. This work provides a theoretical analysis of the inductive biases of self-attention modules. Our focus is to rigorously establish which functions and long-range dependencies self-attention blocks prefer to represent. Our main result shows that bounded-norm Transformer networks "create sparse variables": a single self-attention head can represent a sparse function of the input sequence, with sample complexity scaling only logarithmically with the context length. To support our analysis, we present synthetic experiments to probe the sample complexity of learning sparse Boolean functions with Transformers.

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

↑