arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.07925cs.LGcs.AImath.OC
收藏

Sinkhorn双重随机注意力秩衰减分析

Sinkhorn doubly stochastic attention rank decay analysis

University of Bologna(博洛尼亚大学)

Michela Lapenna, Rita Fioresi, Bahman Gharesifard

AI总结:

本文研究了网络深度下注意力秩的衰减问题,发现使用Sinkhorn算法归一化的双重随机注意力矩阵比标准Softmax行随机注意力更能保持秩。通过实验验证了这一现象,并推导了纯自注意力秩衰减的理论界限。

摘要:

自注意力机制是Transformer架构成功的关键。然而,标准行随机注意力在跨层中表现出显著的信号退化,特别是会导致秩崩溃,产生越来越均匀的token表示,以及熵崩溃,表现为高度集中的注意力分布。最近的研究强调了双重随机注意力作为熵正则化的优势,促进更平衡的注意力分布并提升实际性能。本文研究了网络深度下的秩崩溃现象,表明使用Sinkhorn算法归一化的双重随机注意力矩阵比标准Softmax行随机注意力更能保持秩。如前所述,跳过连接对于缓解秩崩溃至关重要。我们在情感分析和图像分类任务中实证验证了这一现象。此外,我们推导了使用Sinkhorn归一化时纯自注意力秩衰减的理论界限,并发现秩以双重指数形式随深度衰减,这一现象在Softmax中已有所展示。

英文摘要:

The self-attention mechanism is central to the success of Transformer architectures. However, standard row-stochastic attention has been shown to suffer from significant signal degradation across layers. In particular, it can induce rank collapse, resulting in increasingly uniform token representations, as well as entropy collapse, characterized by highly concentrated attention distributions. Recent work has highlighted the benefits of doubly stochastic attention as a form of entropy regularization, promoting a more balanced attention distribution and leading to improved empirical performance. In this paper, we study rank collapse across network depth and show that doubly stochastic attention matrices normalized with Sinkhorn algorithm preserve rank more effectively than standard softmax row-stochastic ones. As previously shown for softmax, skip connections are crucial to mitigate rank collapse. We empirically validate this phenomenon on both sentiment analysis and image classification tasks. Moreover, we derive a theoretical bound for the pure self-attention rank decay when using Sinkhorn normalization and find that rank decays to one doubly exponentially with depth, a phenomenon that has already been shown for softmax.

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

↑