atlas

Research map / Architectures and efficiency / Attention and transformers

Hydra: Bidirectional State Space Models Through Generalized Matrix Mixers

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 11 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.

Proposes a matrix-mixer framework with sequence alignment as a key property, and Hydra, a bidirectional Mamba/SSD extension parameterized as a quasiseparable matrix mixer that beats BERT on GLUE and ViT on ImageNet-1K.

Problem

Sequence models (Transformers, SSMs, MLP-Mixer, FNet, etc.) are ad hoc and lack a unified view of their matrix structure; SSMs like Mamba are causal, and prior bidirectional SSM extensions are heuristic.

Approach

Views sequence mixers as structured L x L mixer matrices, defines sequence alignment (data-dependence and extendability) as a key axis, and makes bidirectional SSMs principled by using quasiseparable matrices, which decompose into two semiseparable (SSD) products via flip and shift plus a diagonal term.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace BERT with HydraBERT-style masked language model · GLUEGLUE average: +0.8 pointsHelped
replace ViT sequence mixer with HydraViT-Base · ImageNet-1KTop-1 accuracy: 2.2%Helped
use quasiseparable bidirectional mixer instead of addition-based bidirectionalityMamba · GLUEGLUE average: 80.6 -> 81.7Helped
use quasiseparable bidirectional mixer instead of Hadamard-product bidirectionalityMamba · GLUEGLUE average: 79.6 -> 81.7Helped
use quasiseparable bidirectional mixer instead of concatenationMamba · GLUEGLUE average: 81.1 -> 81.7Helped
add sequence alignment and input-dependent parameterization to quasiseparable mixer (ablation)Quasiseparable mixer in the SSD block · GLUEGLUE average: 75.1 -> 79.7Helped
add sequence alignment and input-dependent parameterization to Attention mixer (ablation)Attention mixer in the SSD block · GLUEGLUE average: 71.9 -> 78.8Helped
add sequence alignment and input-dependent parameterization to Low-Rank mixer (ablation)Low-Rank mixer in the SSD block · GLUEGLUE average: 74.9 -> 78.4Helped
add sequence alignment and input-dependent parameterization to Cauchy mixer (ablation)Cauchy mixer in the SSD block · GLUEGLUE average: 74.2 -> 78.2Helped
add sequence alignment and input-dependent parameterization to Toeplitz mixer (ablation)Toeplitz mixer in the SSD block · GLUEGLUE average: 75.8 -> 77.7Helped
add sequence alignment and input-dependent parameterization to Vandermonde mixer (ablation)Vandermonde mixer in the SSD block · GLUEGLUE average: 70.8 -> 76.0Helped
replace bidirectional Quasi mixer with unidirectional MambaMamba sequence model · GLUEGLUE average: 81.7 -> 77.7Hurt

Surprising findings

Limitations

Experimental setup

Datasets: C4 GLUE ImageNet-1K

Benchmarks: GLUE C4 validation (masked LM) ImageNet-1K

Metrics: GLUE average accuracy C4 cross-entropy loss masked token accuracy Top-1 accuracy Top-5 accuracy

Baselines: BERT ViT MLP-Mixer FNet M2 Mamba S4ND Hyena Add/Mult/Concat bidirectional Mamba

Builds on: Mamba SSD (Mamba-2) S4 Linear Attention M2

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