Variational-Ising-Attention:Tailored Attention Matters for Science
Abstract
Attention enables context modeling via query-key scoring with softmax normalization. Driven by industrial long-context demands, mainstream research has converged toward sparsity and efficiency, yet softmax's independence assumption persists. For scientific tasks unburdened by long-token constraints, however, richer structured coupling may often be essential, making tailored attention both viable and more appropriate. To this end, we propose Variational-Ising-Attention (VIA), which augments softmax normalization with an interacting Ising model; attention patterns emerge from learnable pairwise couplings via variational mean-field inference, extending attention from a ranking over isolated items to a collective state over interacting entities. We instantiate VIA on retrosynthesis reaction center prediction and, as a controlled internal ablation, on protein residue contact prediction, two structured prediction tasks governed by cooperative constraints: cooperative bond-breaking for retrosynthesis and inter-residue interactions for protein contact prediction. Comprehensive experiments across model variants, coupled with mechanistic analyses, demonstrate that VIA substantially outperforms standard softmax attention. More broadly, our findings suggest that for scientific problems, the optimal solution is not general-purpose efficiency, but appropriately tailored attention aligned with intrinsic domain structure. This work provides a theoretically grounded and empirically validated instantiation of this paradigm.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, physics.chem-ph
- Comments
- 24 pages, ~30 figures
Related papers
Put the World Back: Timestamps Matter in Time Series Reasoning
Shared title terminologycs.LGTingrui Huang, Yuanyuan Deng, Qingren Yao et al.
Distractor-Robust Reinforcement Learning via Variational Bisimulation
Shared title terminologycs.LGBenjamin Freed, Vivaan Singh, Dean Zadok et al.
The Reference Matters: Displacement Probing for Weight-Space Learning
Shared title terminologycs.LGHaechan Shin, Hoonki Lee, Jungwoon Kang et al.
State Space Attention: Learning Context-Dependent Memory Retention
Shared title terminologycs.LGEge Çakar, Cengiz Pehlevan
Dense Local Dependencies Induce Attention-Logit Explosion and Training Instability During Long-Sequence Transformer Training
Shared title terminologycs.LGSuvadeep Hajra
Eliminating Propagation Delay: Attention-Based Spatial-Temporal Fusion Graph Convolution Network for Traffic Flow Prediction
Shared title terminologycs.LGJinpeng Chen, Ziyu Yu, Tao Wang et al.