NeuroGame Transformer:受游戏理论和统计物理启发的注意力机制
NeuroGame Transformer: Gibbs-Inspired Attention Driven by Game Theory and Statistical Physics
AI总结:
NeuroGame Transformer通过将token视为合作游戏玩家和相互作用的自旋,结合Shapley值和Banzhaf指数量化重要性,利用可学习门控参数和Ising哈密顿量构建能量模型,实现高效计算和长序列稳定性,实验表明其在SNLI和MNLI任务中表现优异。
摘要:
标准Transformer注意力机制受限于成对公式,阻碍了token间高阶依赖的建模。我们引入NeuroGame Transformer(NGT)通过双视角重构注意力:token同时被视为合作游戏中的玩家和统计物理系统中的相互作用自旋。token重要性通过两个互补的游戏理论概念——Shapley值用于全局排列属性分配和Banzhaf指数用于局部联盟影响进行量化。这些通过可学习门控参数结合形成外部磁场,而成对相互作用势能捕捉协同关系。系统的能量遵循Ising哈密顿量,注意力权重作为吉布斯分布下的边际概率出现,通过均场方程高效计算。为确保尽管指数级联盟空间的可扩展性,我们开发了重要加权蒙特卡洛估计器,使用吉布斯分布权重。这种方法避免了显式指数因子,确保长序列的数值稳定性。我们提供了理论收敛保证,并表征了由插值参数控制的公平性-敏感性权衡。实验结果表明,NeuroGame Transformer在SNLI和MNLI匹配任务中表现强劲,超越了一些主要高效Transformer基线。在SNLI上,其测试准确率为86.4%(验证准确率峰值为86.6%),超越ALBERT-Base并在RoBERTa-Base上保持高度竞争力。代码可在https://github.com/dbouchaffra/NeuroGame-Transformer获取。
英文摘要:
Standard attention mechanisms in transformers are limited by their pairwise formulation, which hinders the modeling of higher-order dependencies among tokens. We introduce the NeuroGame Transformer (NGT) to overcome this by reconceptualizing attention through a dual perspective: tokens are treated simultaneously as players in a cooperative game and as interacting spins in a statistical physics system. Token importance is quantified using two complementary game-theoretic concepts -- Shapley values for global, permutation-based attribution and Banzhaf indices for local, coalition-level influence. These are combined via a learnable gating parameter to form an external magnetic field, while pairwise interaction potentials capture synergistic relationships. The system's energy follows an Ising Hamiltonian, with attention weights emerging as marginal probabilities under the Gibbs distribution, efficiently computed via mean-field equations. To ensure scalability despite the exponential coalition space, we develop importance-weighted Monte Carlo estimators with Gibbs-distributed weights. This approach avoids explicit exponential factors, ensuring numerical stability for long sequences. We provide theoretical convergence guarantees and characterize the fairness-sensitivity trade-off governed by the interpolation parameter. Experimental results demonstrate that the NeuroGame Transformer achieves strong performance across SNLI, and MNLI-matched, outperforming some major efficient transformer baselines. On SNLI, it attains a test accuracy of 86.4\% (with a peak validation accuracy of 86.6\%), surpassing ALBERT-Base and remaining highly competitive with RoBERTa-Base. Code is available at https://github.com/dbouchaffra/NeuroGame-Transformer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。