Design Principles for Sequence Models via Coefficient Dynamics
Jerome Sieber, Antonio Orvieto, Melanie N. Zeilinger, Carmen Amo Alonso
TL;DR
This work reframes sequence modeling by treating the outputs as linear combinations of past values whose coefficients arise from autonomous linear dynamical systems driven by impulse inputs. By unifying softmax attention, linear attention, and SSM/RNN-style dynamics under a single coefficient-dynamics framework, it derives six principled design guidelines—covering the readout map, evolution matrices, scaling, and normalization—that connect architectural choices to expressivity, efficiency, input selectivity, and training stability. The authors establish theoretical links between these components (e.g., the necessity of linear readouts for finite-memory recurrence, the role of $A_t$ in injecting positional information, the variance control via $b_j$, and the stabilizing effect of $\eta_i$), and validate the principles through extensive empirical tests on the MAD benchmark. Collectively, the framework enables principled, systematic design of new sequence-model architectures with predictable tradeoffs, beyond benchmark-driven experimentation.
Abstract
Deep sequence models, ranging from Transformers and State Space Models (SSMs) to more recent approaches such as gated linear RNNs, fundamentally compute outputs as linear combinations of past value vectors. To draw insights and systematically compare such architectures, we develop a unified framework that makes this output operation explicit, by casting the linear combination coefficients as the outputs of autonomous linear dynamical systems driven by impulse inputs. This viewpoint, in spirit substantially different from approaches focusing on connecting linear RNNs with linear attention, reveals a common mathematical theme across diverse architectures and crucially captures softmax attention, on top of RNNs, SSMs, and related models. In contrast to new model proposals that are commonly evaluated on benchmarks, we derive design principles linking architectural choices to model properties. Thereby identifying tradeoffs between expressivity and efficient implementation, geometric constraints on input selectivity, and stability conditions for numerically stable training and information retention. By connecting several insights and observations from recent literature, the framework both explains empirical successes of recent designs and provides guiding principles for systematically designing new sequence model architectures.
