Liquid Structural State-Space Models

Ramin Hasani, Mathias Lechner, Tsun-Hsuan Wang, Makram Chahine, Alexander Amini +1 more
9/26/2022
cs.LGcs.AIcs.CL
state-space-mamba

Official code: raminmh/liquid-s4 (397 stars, Python, Apache-2.0, last commit 2024-02-01).

Abstract

A proper parametrization of state transition matrices of linear state-space models (SSMs) followed by standard nonlinearities enables them to efficiently learn representations from sequential data, establishing the state-of-the-art on a large series of long-range sequence modeling benchmarks. In this paper, we show that we can improve further when the structural SSM such as S4 is given by a linear liquid time-constant (LTC) state-space model.

Show full abstract

LTC neural networks are causal continuous-time neural networks with an input-dependent state transition module, which makes them learn to adapt to incoming inputs at inference. We show that by using a diagonal plus low-rank decomposition of the state transition matrix introduced in S4, and a few simplifications, the LTC-based structural state-space model, dubbed Liquid-S4, achieves the new state-of-the-art generalization across sequence modeling tasks with long-term dependencies such as image, text, audio, and medical time-series, with an average performance of 87.32% on the Long-Range Arena benchmark. On the full raw Speech Command recognition, dataset Liquid-S4 achieves 96.78% accuracy with a 30% reduction in parameter counts compared to S4. The additional gain in performance is the direct result of the Liquid-S4's kernel structure that takes into account the similarities of the input sequence samples during training and inference.

View on arXivView PDF

Code Implementations(1)

raminmh/liquid-s4Official100%
Apache-2.0

Liquid Structural State-Space Models

39767Python, CudaMay 11, 20222 years agoApache-2.0
deep-learningliquid-neural-networksneural-networksrecurrent-neural-networkssequence-modeling+2 more

Similar Papers

Cite this paper

@article{hasani2022liquid,
  title  = {Liquid Structural State-Space Models},
  author = {Ramin Hasani and Mathias Lechner and Tsun-Hsuan Wang and Makram Chahine and Alexander Amini and Daniela Rus},
  year   = {2022},
  eprint = {2209.12951},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.12951}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.12951.svg)](https://codeofpaper.com/paper/2209.12951)

Discussion