atlas

Research map / Architectures and efficiency / Attention and transformers

On the Expressiveness and Length Generalization of Selective State Space Models on Regular Languages

AAAI 2025 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces SD-SSM, a selective SSM with a softmax-weighted dictionary of dense transition matrices and a linear readout that achieves near-perfect length generalization on regular-language (FSA emulation) tasks with one layer, and analyzes why diagonal selective SSMs fail on non-commutative automata.

Problem

Selective SSMs' formal expressiveness and length generalization on finite-state automaton emulation (regular language state tracking) are underexplored; diagonal selective SSMs appear limited.

Approach

A selective SSM whose per-step transition matrix is a softmax-weighted convex combination of k learned dense matrices, followed by column-wise lp operator normalization and a linear readout (layer norm + linear), enabling single-layer perfect length generalization; plus a proposition that single-layer diagonal selective SSMs without the B term are restricted to commutative automata.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace the linear readout with a two-layer ReLU MLP (ablation)SD-SSM · Arithmeticmaximum length-generalization accuracy (%): 99.9\% -> 71.9\%Hurt
remove the B matrix and use a linear readout (ablation)C-complex diagonal SSM · C2 × C30maximum length-generalization accuracy (%): 65.8 -> 100Helped
remove the B matrix and use a nonlinear readout (ablation)C-complex diagonal SSM · C2 × C30maximum length-generalization accuracy (%): 81.7 -> 87.6Helped
add the B matrix while keeping a nonlinear readout (ablation)C-complex diagonal SSM · C2 × C30maximum length-generalization accuracy (%): 87.6 -> 81.7Hurt
add the B matrix and use a nonlinear readout (ablation)C-complex diagonal SSM · D30maximum length-generalization accuracy (%): 8.35 -> 61.0Helped
add the B matrix and use a linear readout (ablation)C-complex diagonal SSM · D30maximum length-generalization accuracy (%): 8.35 -> 11.3Hurt
replace linear readout with nonlinear readout while B=0 (ablation)C-complex diagonal SSM · D30maximum length-generalization accuracy (%): 8.35 -> 8.35No clear effect
replace linear readout with nonlinear readout while B is present (ablation)C-complex diagonal SSM · D30maximum length-generalization accuracy (%): 11.3 -> 61.0Helped
increase depth from 1 to 2 layers (ablation)C-complex diagonal SSM with B≠0 and nonlinear readout · C2 × C30maximum length-generalization accuracy (%): 81.7 -> 24.6Hurt
increase depth from 1 to 2 layers (ablation)C-complex diagonal SSM with B≠0 and nonlinear readout · D30maximum length-generalization accuracy (%): 61.0 -> 29.2Hurt
use parallel scan instead of recurrent computationSD-SSM · sequence length 512runtime (seconds): 77.27\,s -> 26.68\,sHelped
use parallel scan instead of recurrent computationSD-SSM · sequence length 64runtime (seconds): 1.82\,s -> 1.91\,sHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic finite-state automaton tasks: Parity, Even Pairs, Cycle Navigation, Modular Arithmetic, C2xC4, D4, A5, C2xC30,

Benchmarks: Parity Even Pairs Cycle Navigation Modular Arithmetic C2xC4 D4 A5 C2xC30 D30

Metrics: maximum/average length generalization accuracy area under accuracy vs length curve runtime (s)

Baselines: RNN LSTM Transformer S4D H3 Mamba RegularLRNN C diagonal selective SSM

Builds on: Mamba S4D RegularLRNN Deletang et al. state tracking benchmark

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy