arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.12478cs.LGcond-mat.stat-mechquant-ph
收藏

玻尔兹曼注意力:用于协同注意力的可学习伊辛耦合

Boltzmann Attention: Learnable Ising Couplings for Cooperative Attention

Yonsei University(延世大学)

Gilhan Kim, Daniel K. Park

AI总结:

提出玻尔兹曼注意力,通过可学习的伊辛耦合增强注意力机制中的位置间交互,在字符级语言建模和括号匹配任务中优于标准softmax注意力,并展示了量子退火训练的有效性。

摘要:

注意力机制是现代序列模型的核心,但标准注意力主要通过单个查询-键相似度计算相关性。尽管softmax归一化引入了位置间的竞争,但标准注意力层并未显式参数化注意力决策之间的可学习交互。这限制了其直接在注意力机制内建模协同或对抗性共注意力结构的能力。我们提出玻尔兹曼注意力,一种基于能量的泛化,其中注意力模式由相互作用的伊辛模型控制。该方法用可学习的成对耦合增强通常的数据依赖局部场,使模型能够表示超出softmax或sigmoid注意力所捕获的位置间相关性。在字符级语言建模和合成括号匹配实验上,玻尔兹曼注意力在标准Transformer架构中持续优于标准softmax注意力,且优势随序列长度增加而更加明显。四路消融实验证实改进来自可学习的成对耦合。这些结果表明,显式位置间交互为基于注意力的序列建模提供了原则性增强。此外,伊辛公式为基于量子计算的采样策略开辟了自然路径:我们证明非绝热量子退火提供了实用的训练方法,同时保持了与精确玻尔兹曼计算相当的性能。

英文摘要:

Attention mechanisms are central to modern sequence models, yet standard attention computes relevance primarily through individual query--key similarities. Although softmax normalization introduces competition among positions, a standard attention layer does not explicitly parameterize learnable interactions between attention decisions. This limits its ability to directly model cooperative or antagonistic co-attention structure within the attention mechanism itself. We propose Boltzmann attention, an energy-based generalization in which attention patterns are governed by an interacting Ising model. The method augments the usual data-dependent local fields with learnable pairwise couplings, allowing the model to represent inter-position correlations beyond those captured by softmax or sigmoid attention. Experiments on character-level language modeling and synthetic bracket matching show that Boltzmann attention consistently improves over standard softmax attention within a standard Transformer architecture, with the advantage becoming more pronounced as sequence length increases. A four-way ablation confirms that the improvement arises from the learnable pairwise couplings. These results suggest that explicit inter-position interactions provide a principled enhancement for attention-based sequence modeling. Moreover, the Ising formulation opens a natural path toward quantum-computing-based sampling strategies: we demonstrate that diabatic quantum annealing provides a practical training method while maintaining competitive performance with exact Boltzmann computation.

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

↑