LGSYMay 10, 2024

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

arXiv:2405.06147v219 citationsh-index: 24Has CodeICML
AI Analysis

This work addresses computational bottlenecks in sequence modeling for researchers and practitioners, offering a more efficient alternative to attention-free methods, though it is incremental in its method innovation.

The paper tackles the inefficiency of state-space models in deep learning by introducing a state-free inference algorithm using a transfer function approach, achieving a 35% training speed improvement over S4 layers on the Long Range Arena benchmark while maintaining state-of-the-art performance.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes