SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.06147 · 2024

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

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
ruke1ire/RTF canonical 4 of 4
FunctionStatusWhere it lives
montel_init Ran ruke1ire/RTF/rtf.py
code served (permissive licence) · get_code("3051f8aeeb62bb52")
preprocess Ran ruke1ire/RTF/experiments/safari/evals/lambada.py
code served (permissive licence) · get_code("bb34448b589bbd0f")
xavier_init Ran ruke1ire/RTF/rtf.py
code served (permissive licence) · get_code("e8c14b7f4176d895")
zeros_init Ran ruke1ire/RTF/rtf.py
code served (permissive licence) · get_code("1054e6a0f3337fc5")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.06147")
get_code_for_paper("2405.06147")
have("2405.06147")

Connect an agent — have() is free.