ESPFormer:基于期望切片传输计划的双随机注意力
ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans
AI总结:
本文提出 ESPFormer,一种基于期望切片传输计划(ESP)的新型完全可并行化双随机注意力机制,无需迭代 Sinkhorn 归一化,通过温度软排序确保可微性,在多任务上持续提升性能。
摘要:
虽然自注意力机制在 Transformer 的成功中发挥了关键作用,但它在训练过程中可能导致过度集中在少数 token 上,造成信息流次优。在注意力矩阵中强制施加双随机约束已被证明可以改善注意力分布的结构与平衡。然而,现有方法依赖迭代式 Sinkhorn 归一化,计算成本高昂。本文提出了一种基于切片最优传输的新型、完全可并行化的双随机注意力机制,利用了期望切片传输计划(ESP)。与以往方法不同,我们的方法无需迭代 Sinkhorn 归一化即可强制双随机性,显著提升了效率。为确保可微性,我们引入了基于温度的软排序技术,使其能无缝集成到深度学习模型中。在多个基准数据集上的实验表明,包括图像分类、点云分类、情感分析和神经机器翻译,我们增强的注意力正则化在多样化应用中持续提升了性能。
英文摘要:
While self-attention has been instrumental in the success of Transformers, it can lead to over-concentration on a few tokens during training, resulting in suboptimal information flow. Enforcing doubly-stochastic constraints in attention matrices has been shown to improve structure and balance in attention distributions. However, existing methods rely on iterative Sinkhorn normalization, which is computationally costly. In this paper, we introduce a novel, fully parallelizable doubly-stochastic attention mechanism based on sliced optimal transport, leveraging Expected Sliced Transport Plans (ESP). Unlike prior approaches, our method enforces doubly stochasticity without iterative Sinkhorn normalization, significantly enhancing efficiency. To ensure differentiability, we incorporate a temperature-based soft sorting technique, enabling seamless integration into deep learning models. Experiments across multiple benchmark datasets, including image classification, point cloud classification, sentiment analysis, and neural machine translation, demonstrate that our enhanced attention regularization consistently improves performance across diverse applications. Our implementation code can be found at https://github.com/dariansal/ESPFormer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。