HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Simplified State Space Layers for Sequence Modeling

Jimmy T.H. Smith Andrew Warrington Scott W. Linderman

Simplified State Space Layers for Sequence Modeling

Abstract

Models using structured state space sequence (S4) layers have achieved state-of-the-art performance on long-range sequence modeling tasks. An S4 layer combines linear state space models (SSMs), the HiPPO framework, and deep learning to achieve high performance. We build on the design of the S4 layer and introduce a new state space layer, the S5 layer. Whereas an S4 layer uses many independent single-input, single-output SSMs, the S5 layer uses one multi-input, multi-output SSM. We establish a connection between S5 and S4, and use this to develop the initialization and parameterization used by the S5 model. The result is a state space layer that can leverage efficient and widely implemented parallel scans, allowing S5 to match the computational efficiency of S4, while also achieving state-of-the-art performance on several long-range sequence modeling tasks. S5 averages 87.4% on the long range arena benchmark, and 98.5% on the most difficult Path-X task.

Code Repositories

lindermanlab/S5
Official
jax
Mentioned in GitHub
msgwak/last
jax
Mentioned in GitHub
leonty1/deepldnn
pytorch
Mentioned in GitHub
leonty1/essm
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
long-range-modeling-on-lraS5
Avg: 87.46
Image: 88
ListOps: 62.15
Pathfinder: 95.33
Pathfinder-X: 98.58
Retrieval: 91.4
Text: 89.31

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp