Coupled Dynamical System for Sparsemax Attention
Abstract
We present a family of coupled dynamical systems that compute sparsemax attention. Each system fuses query-key similarity and normalization into a single physical relaxation. Specifically, we cast sparsemax attention as a constrained energy minimization problem and derive a pair of coupled differential equations: one drives the energy minimization and the other enforces the constraint. At equilibrium, the system state gives exactly the sparsemax attention probabilities. We realize this formulation with continuous Ising spins and with Kuramoto oscillators. These relaxations run natively on emerging non-von Neumann platforms such as Ising machines, which have demonstrated orders-of-magnitude higher energy efficiency than digital processors, yet have so far been used mostly for unconstrained quadratic combinatorial optimization. Because analog hardware has limited precision and is noisy, we simulate both systems under these non-idealities, and inference quality degrades gracefully. Our formulation extends these emerging computing substrates from combinatorial optimization to attention, opening a path toward a new class of physical accelerators for transformer inference.
Create a lesson
Related papers
Countering Anion Inhibition of Laccase Electron Transfer: Electrostatic Design, Charge-Transfer Dynamics on a Superconducting Quantum Processor, and Its Limits
Shared title terminologycs.ETLucia Malickova
A Copper-Inducible Yeast Biosensor with Bioluminescent Readout: Mathematical Modeling, Experimental Validation, and Photodetector Coupling for Molecular Communication in IoBNT
Shared title terminologycs.ETNikolaos Ntetsikas, Styliana Kyriakoudi, Ariel Klavaris et al.
Influence of the branching geometry on SPION propagation: coupling of experiment and simulation
Shared title terminologycs.ETDaniel Fleischhauer, Luiz C. P. Wille, Stefan Lyer et al.
Local information processing capacity: anatomy of computation in neuromorphic systems
Shared title terminologycs.ETJiaxuan Chen, Daiki Nishioka, Yicheng Song et al.
TableTune: Measured, Self-Correcting Draft-Length Tables for Dynamic Speculative Decoding
Shared title terminologycs.ETAbhishek Malvankar, Paul Castro, Nick Mitchell
UnO-NeSy: Optimizing Neuro-Symbolic Computing with Unified FeFET Based In-Memory System
Shared title terminologycs.ETYifei Zhou, Zhiying Zhu, Yuxiao Jiang et al.