Selection Mechanisms for Sequence Modeling using Linear State Space Models
Umberto Casti, Sandro Zampieri, Fabio Pasqualetti
TL;DR
The paper addresses efficient, selective sequence modeling and introduces a control-theory–inspired residual selection mechanism for Linear State Space Models (SSMs) that preserves an LTI structure, in contrast to Mamba’s LTV dynamics. It formalizes the sequence-to-sequence problem, designs two synthetic tasks (Induction Head and Extended Induction Head) to probe selectivity and memory, and proposes a Residual SSM architecture with three LTI blocks and a gating mechanism. Through simulations, the authors show that the Residual SSM achieves robust performance on both tasks, while a time-varying Selective SSM struggles, highlighting memory-enabled selectivity as a key advantage. The work demonstrates that integrating control-theoretic ideas with SSMs can yield efficient, scalable sequence models suitable as modular building blocks for larger architectures.
Abstract
Recent advancements in language modeling tasks have been driven by architectures such as Transformers and, more recently, by Selective State Space Models (SSMs). In this paper, we introduce an alternative selection mechanism inspired by control theory methodologies. Specifically, we propose a novel residual generator for selection, drawing an analogy to fault detection strategies in Linear Time-Invariant (LTI) systems. Unlike Mamba, which utilizes Linear Time-Varying (LTV) systems, our approach combines multiple LTI systems, preserving their beneficial properties during training while achieving comparable selectivity. To evaluate the effectiveness of the proposed architecture, we test its performance on synthetic tasks. While these tasks are not inherently critical, they serve as benchmarks to test the selectivity properties of different cores architecture. This work highlights the potential of integrating theoretical insights with experimental advancements, offering a complementary perspective to deep learning innovations at the intersection of control theory and machine learning.
