Simplifying and Understanding State Space Models with Diagonal Linear RNNs
Abstract
Sequence models based on linear state spaces (SSMs) have recently emerged as a promising choice of architecture for modeling long range dependencies across various modalities. However, they invariably rely on discretization of a continuous state space, which complicates their presentation and understanding. In this work, we dispose of the discretization step, and propose a model based on vanilla Diagonal Linear RNNs (). We empirically show that, despite being conceptually much simpler, is as performant as previously-proposed SSMs on a variety of tasks and benchmarks including Long Range Arena and raw speech classification. Moreover, we characterize the expressivity of SSMs (including ) and attention-based models via a suite of synthetic sequence-to-sequence tasks involving interactions over tens of thousands of tokens, ranging from simple operations, such as shifting an input sequence, to detecting co-dependent visual features over long spatial ranges in flattened images. We find that while SSMs report near-perfect performance on tasks that can be modeled via convolutional kernels, they struggle on tasks requiring such kernels and especially when the desired sequence manipulation is . Despite these limitations, reaches high performance on two higher-order reasoning tasks and with input lengths and respectively, and gives encouraging performance on with input length for which attention is not a viable choice.
Cite
@article{arxiv.2212.00768,
title = {Simplifying and Understanding State Space Models with Diagonal Linear RNNs},
author = {Ankit Gupta and Harsh Mehta and Jonathan Berant},
journal= {arXiv preprint arXiv:2212.00768},
year = {2023}
}
Comments
added Long Range Arena, language modeling with mixture of experts