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

涌现能力随机地从学习稀疏注意力模式中产生

Emergent Capabilities Arise Randomly from Learning Sparse Attention Patterns

New York University(纽约大学)

Vatsal Baherwani, Zixi Chen, Shikai Qiu, Andrew Gordon Wilson, Pavel Izmailov

AI总结:

研究发现,transformer模型的下游能力(如上下文学习)在训练过程中随机涌现,较大模型平均更早获得,且涌现对应于任务相关注意力模式的突然学习。

摘要:

Transformer语言模型的神经缩放定律预测,随着参数增加,预训练损失平滑改善,但诸如上下文学习等下游能力已知在超过一定模型规模后突然涌现。在本文中,我们表明涌现能力在训练过程中随机出现,较大模型平均更早获得。我们证明,模式完成和间接对象识别等能力的涌现对应于任务相关注意力模式的突然学习。为了隔离这一现象,我们在合成线性映射和元胞自动机数据集上训练transformer模型,并表明学习注意力模式的难度取决于上下文长度和模式稀疏性。此外,缩放注意力头数量提高了我们合成任务上的学习效率,而增加头维度在超过最小容量后收益递减。我们还研究了具有替代注意力机制的架构,表明MLP-Mixer在具有复杂注意力模式的线性映射任务上优于transformer。我们的发现为涌现提供了机制性见解,表明下游能力突然出现是由于transformer模型中学习稀疏注意力模式的内在困难。

英文摘要:

Neural scaling laws for transformer language models predict smooth improvements in pretraining loss with increasing parameters, but downstream capabilities such as in-context learning are known to emerge abruptly past a certain model scale. In this paper, we show that emergent capabilities arise stochastically throughout training, with larger models acquiring them earlier on average. We demonstrate that the emergence of capabilities such as pattern completion and indirect object identification corresponds to the abrupt learning of task-relevant attention patterns. To isolate this phenomenon, we train transformer models on synthetic linear map and cellular automata datasets, and we show that the difficulty of learning attention patterns depends on context length and pattern sparsity. Moreover, scaling the number of attention heads improves learning efficiency on our synthetic tasks, while increasing the head dimension yields diminishing returns past a minimum capacity. We additionally investigate architectures with alternative attention mechanisms, showing that MLP-Mixer outperforms a transformer on linear map tasks with complex attention patterns. Our findings provide a mechanistic insight into emergence, showing that downstream capabilities arise abruptly due to the intrinsic difficulty of learning sparse attention patterns in transformer models.

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

↑