State-Free Inference of State-Space Models: The Transfer Function Approach

Rom N. Parnichkun, Stefano Massaroli, Alessandro Moro, Jimmy T. H. Smith, Ramin Hasani +8 more
5/10/2024
cs.LGeess.SY

Official code: ruke1ire/RTF (84 stars, Apache-2.0, last commit 2024-05-17).

Abstract

We approach designing a state-space model for deep learning applications through its dual representation, the transfer function, and uncover a highly efficient sequence parallel inference algorithm that is state-free: unlike other proposed algorithms, state-free inference does not incur any significant memory or computational cost with an increase in state size. We achieve this using properties of the proposed frequency domain transfer function parametrization, which enables direct computation of its corresponding convolutional kernel's spectrum via a single Fast Fourier Transform. Our experimental results across multiple sequence lengths and state sizes illustrates, on average, a 35% training speed improvement over S4 layers -- parametrized in time-domain -- on the Long Range Arena benchmark, while delivering state-of-the-art downstream performances over other attention-free approaches. Moreover, we report improved perplexity in language modeling over a long convolutional Hyena baseline, by simply introducing our transfer function parametrization. Our code is available at https://github.com/ruke1ire/RTF.

View on arXivView PDF

Code Implementations(1)

ruke1ire/RTFOfficial100%
Apache-2.0

A State-Space Model with Rational Transfer Function Representation.

843C, C++Mar 1, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{parnichkun2024statefree,
  title  = {State-Free Inference of State-Space Models: The Transfer Function Approach},
  author = {Rom N. Parnichkun and Stefano Massaroli and Alessandro Moro and Jimmy T. H. Smith and Ramin Hasani and Mathias Lechner and Qi An and Christopher Ré and Hajime Asama and Stefano Ermon and Taiji Suzuki and Atsushi Yamashita and Michael Poli},
  year   = {2024},
  eprint = {2405.06147},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.06147v2},
  journal = {ICML 2024 2024}
}

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/2405.06147.svg)](https://codeofpaper.com/paper/2405.06147)

Discussion