# Balanced State Subspaces for Mamba-2 State Compression

DevFeed: [Balanced State Subspaces for Mamba-2 State Compression](<https://devfeed.tech/articles/balanced-state-subspaces-for-mamba-2-state-compression-103162.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.36617>)

Author: Shang Tingyu, Cao Wenfei

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Mamba](<https://devfeed.tech/topics/mamba.md>), [Compression](<https://devfeed.tech/topics/compression.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [quantization](<https://devfeed.tech/topics/quantization.md>)

Tags: [bandwidth](<https://devfeed.tech/tags/bandwidth.md>), [bias](<https://devfeed.tech/tags/bias.md>), [compression](<https://devfeed.tech/tags/compression.md>), [content](<https://devfeed.tech/tags/content.md>), [context](<https://devfeed.tech/tags/context.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [energy](<https://devfeed.tech/tags/energy.md>), [faster](<https://devfeed.tech/tags/faster.md>), [layer](<https://devfeed.tech/tags/layer.md>), [layers](<https://devfeed.tech/tags/layers.md>), [mamba](<https://devfeed.tech/tags/mamba.md>), [mamba-2](<https://devfeed.tech/tags/mamba-2.md>), [native](<https://devfeed.tech/tags/native.md>), [observability](<https://devfeed.tech/tags/observability.md>), [one](<https://devfeed.tech/tags/one.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [rank](<https://devfeed.tech/tags/rank.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [spectrum](<https://devfeed.tech/tags/spectrum.md>), [stat-ap](<https://devfeed.tech/tags/stat-ap.md>), [stat-me](<https://devfeed.tech/tags/stat-me.md>), [state](<https://devfeed.tech/tags/state.md>)

## AI overview

Mamba-2's recurrent state holds much of its energy in a bias-like direction that contributes little to the output; useful output content instead lies in a low-dimensional subspace misaligned with individual state coordinates. The proposed post-training method applies balanced truncation using full controllability and observability Gramians, with its rotation implemented through Mamba-2's scalar-identity transition. HARP assigns ranks per layer from the Hankel spectrum and protects retrieval-sensitive layers. The authors report that calibration takes one forward pass, is an order of magnitude faster than GHOST's released protocol, and uses less peak memory. With HARP, halving state dimension raises average WikiText-2 perplexity by 0.3 points (1.8%) across 130M-2.7B models, compared with 1.6 points (9.3%) for GHOST; the reported gap widens at 25% retention.

## Source excerpt

arXiv:2610.36617v1 Announce Type: cross Abstract: Mamba-2 compresses all context into a fixed-size recurrent state that dominates decoding memory and bandwidth. Existing compressors quantize state values or prune state coordinates, scoring each channel independently in the native basis. We examine trained Mamba-2 states and find that energy is almost rank-one, but the output does not read the energetic directions: energy concentrates in a bias-like direction accumulated by the recurrence, while the content the output reads lives in a low-dimensional subspace that is not aligned with the state's coordinates. Even output-aware scores are computed coordinate by coordinate, so they miss the directions that determine the input--output map. Compression should therefore target the write--read subspace rather than individual coordinates. We propose \method{}, a post-training transform that instantiates balanced truncation with full controllability and observability Gramians and applies the rotation exactly via Mamba-2's scalar-identity transition. Because the useful rank varies widely across layers, we further introduce HARP, which allocates ranks per layer from the Hankel spectrum and protects retrieval-sensitive layers, improving both perplexity and retrieval over uniform budgets. Calibration takes a single forward pass, an order of magnitude faster than GHOST's released protocol, with lower peak memory. With HARP, \method{} halves the state dimension at an average WikiText-2 perplexity increase of $0.3$ points ($1.8\%$) across 130M--2.7B, versus $1.6$ ($9.3\%$) for GHOST, and the gap widens at 25\% retention.