Understanding the differences in Foundation Models: Attention, State Space Models, and Recurrent Neural Networks
Jerome Sieber, Carmen Amo Alonso, Alexandre Didier, Melanie N., Zeilinger, Antonio Orvieto

TL;DR
This paper introduces the Dynamical Systems Framework (DSF) to compare and analyze various foundation model architectures like attention, SSMs, and RNNs, providing theoretical insights and empirical validation to guide future development.
Contribution
The paper develops the DSF, a unified theoretical framework that enables rigorous comparison and understanding of different foundation model architectures.
Findings
Linear attention and selective SSMs can be equivalent under certain conditions.
Softmax attention can be approximated by other models under specific theoretical conditions.
Empirical validations support the theoretical insights of the DSF.
Abstract
Softmax attention is the principle backbone of foundation models for various artificial intelligence applications, yet its quadratic complexity in sequence length can limit its inference throughput in long-context settings. To address this challenge, alternative architectures such as linear attention, State Space Models (SSMs), and Recurrent Neural Networks (RNNs) have been considered as more efficient alternatives. While connections between these approaches exist, such models are commonly developed in isolation and there is a lack of theoretical understanding of the shared principles underpinning these architectures and their subtle differences, greatly influencing performance and scalability. In this paper, we introduce the Dynamical Systems Framework (DSF), which allows a principled investigation of all these architectures in a common representation. Our framework facilitates…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsNeural Networks and Applications
MethodsSoftmax
