Manuscript Offprint
arXiv:2610.36617Balanced State Subspaces for Mamba-2 State Compression
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 BASS, 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, BASS 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.
1 Introduction
State space models (SSMs) such as Mamba and Mamba-2 have become a competitive alternative to Transformers for long-sequence modeling: they scale linearly in sequence length, avoid the growing key-value cache, and match or exceed attention-based models at small and medium scale (Gu and Dao, 2023; Dao and Gu, 2024). Their efficiency at inference stems from a single mechanism: the entire context is compressed into a fixed-size recurrent state. For Mamba-2, each layer keeps one matrix state per head (N=128 state modes), and generation updates this state in place at every token, so the state becomes the bottleneck: at batch size 128, the recurrent states of Mamba2-2.7B account for roughly 80% of decoding memory (Chen et al., 2025), and every generated token must stream them from memory (Nguyen, 2026).
Reducing the cost of the state has therefore become an active goal. Post-training quantization compresses state values (e.g., Quamba and Q-Mamba (Chiang et al., 2025b; Chen et al., 2025)). An orthogonal direction prunes state coordinates: GHOST selects state channels by an output-aware controllability×observability score (Menezes and Kyrillidis, 2026), and Nazari and Rusch (2026) discard key/query channels in linear attention. All of these methods operate in the native coordinate system of the state, scoring coordinates once from calibration statistics; even output-aware criteria score each coordinate independently, and none can represent the joint structure that governs how the state as a whole is written and read.
In this paper we ask two questions. First, how should we read trained Mamba-2 states? Second, given that structure, what is the right way to compress them? Related properties have been reported in isolation—anisotropy for Mamba-1 (Wagh and Singh, 2026), low-rank and head-stratified states for linear attention (Sun et al., 2026; Nazari and Rusch, 2026), and output-aware selection for Mamba-2 (Menezes and Kyrillidis, 2026)—but not jointly, under one measurement protocol. We therefore re-examine Mamba-2 checkpoints from 130M to 1.3B with a single capture pipeline and find three facts. (i) State energy is almost rank-
Corresponding author. Email: caowenf2015@gmail.com

Figure 1: BASS overview. Top: one Mamba-2 layer with pre- write , read , and step , where ; state and output follow Eqs. (1)–(2). Bottom: BASS estimates , , keeps the balanced basis , and applies , , ; the compressed layer reruns update and read with , , . The rotation is exact for any ; lossless at ; only truncation approximates. Post-training; all other parameters untouched.
one: most heads carry their energy in at most two directions, and the leading direction recurs across sequences. (ii) The state is functionally concentrated, but not in its coordinates: keeping only a handful of randomly chosen modes out of 128 recovers almost none of the output energy, the leading energy direction is bias-like rather than a readout direction, and no coordinate ordering captures the subspace that governs the input–output map. (iii) Unlike the head-level stratification reported for linear attention, heterogeneity in Mamba-2 is across layers, not heads. These findings suggest that compression should be posed as subspace selection: find the low-dimensional subspace that best preserves the input–output map, rather than discarding coordinates by a heuristic score.
We translate this insight into BASS, a post-training state-reduction transform built on balanced state subspaces. BASS estimates empirical controllability and observability Gramians of the state from forward statistics, computes the classical balanced-truncation subspace from their product, and applies it exactly by exploiting Mamba-2's scalar-identity transition: the state shrinks from N to r modes while all other parameters stay untouched (Section 5); Figure 1 summarizes the approach.
Experiments on Mamba2 checkpoints from 130M to 2.7B show that BASS halves the state dimension at an average WikiText-2 perplexity cost of 0.8 points (1.6 for GHOST); HARP lowers the 50% cost to 0.3, widens the lead at 25% retention where coordinate-space selection collapses, and improves LAMBADA over uniform allocation. Random and anti-allocated controls (ranks permuted across layers) confirm that the choice of subspace, not the budget, drives quality (Section 6).
Our contributions are:
• We show that trained Mamba-2 states (130M–1.3B) are almost rank-one in energy, yet the subspace that carries function is not coordinate-aligned, and that heterogeneity is across layers rather than heads; these observations motivate both the subspace transform and per-layer allocation (Section 4).
• We propose BASS, a post-training transform that performs balanced truncation of the recurrent state using full (non-diagonal) controllability and observability Gramians and applies the rotation exactly via Mamba-2's scalar-identity transition, without retraining; to our knowledge, this is the first balanced-truncation method to use full empirical Gramians for the recurrent state of a trained selective SSM (Section 5).
• We propose HARP, a layer-adaptive rank-selection scheme that allocates ranks from the Hankel spectrum and protects retrieval-sensitive layers with a leave-one-out probe; it improves both WikiText-2 perplexity and
LAMBADA accuracy over uniform per-layer budgets (Section 6).
State compression. Quantization compresses the values of the state: Quamba caches the state in 8 bits with hardware-aware scan kernels (Chiang et al., 2025b); Q-Mamba handles outliers along the state and channel dimensions to quantize state caches to 4 bits (Chen et al., 2025); Quamba2 extends this to several weight/activation formats and both Mamba generations (Chiang et al., 2025a), and MambaQuant equalizes channel variances to make the family 8-bit friendly (Xu et al., 2025). These methods are orthogonal to ours and can be applied after our rotation. Structured pruning removes coordinates: GHOST, the closest prior work, scores each state channel by the product of empirical controllability and observability from forward passes—the diagonal of the Gramians—and prunes the lowest-scoring channels (Menezes and Kyrillidis, 2026). The scalar-identity transition makes the state's dynamics coordinate-wise, but the write and read couplings are not, so its per-channel score ignores the joint structure that governs the input-output map (Section 4). PerfMamba prunes states whose gate activity is consistently low (Asif et al., 2025), and Mamba-Shedder removes blocks and sub-modules (Muñoz et al., 2025). In linear attention, Nazari and Rusch (2026) select key/query channels with a rank-revealing QR. These methods all operate in the native coordinate system. Prior analyses report anisotropy and low-rank dynamics in trained states (Wagh and Singh, 2026; Sun et al., 2026) and study what the state encodes (Ali et al., 2025; Endy et al., 2025); none measures the joint write-read geometry or uses it for compression.
System-theoretic reduction. Balanced truncation (Moore, 1981) retains the subspace that is simultaneously reachable and observable, ranked by Hankel singular values. Prior work applies it to linear time-invariant SSMs in three settings: during training (Chahine et al., 2026), to S4's diagonal layers (Ezoe and Sato, 2024), and for order reduction of deep SSMs (Forgione et al., 2024); Hankel spectra also set layer ranks (Schwerdtner et al., 2025), and a recent instrument measures per-input mode usage in Mamba-1 (Bhattacharya, 2026). Mamba-2 is time-varying, so these guarantees do not apply directly, and prior work on trained Mamba-2 states still selects among native coordinates by diagonal scores (Menezes and Kyrillidis, 2026). We instead estimate full empirical Gramians from calibration statistics; in this regime the scalar-identity transition lets us apply the transform exactly, without altering the recurrence.
3 Preliminaries
Mamba-2 recurrence. A Mamba-2 layer applies, per head, the recurrence
where is the recurrent state, (the value/input stream), are input-dependent write and read couplings, is a skip connection, and is a scalar decay shared by all state elements of the head (Dao and Gu, 2024). In the implementation, (with the pre- write) and are produced by linear projections of the token representation followed by a short depthwise convolution and a SiLU activation. Throughout, and are shared across the heads of a group (a grouped-query-attention-like structure). The state is the only context memory of the layer: at sequence length , the layer stores numbers per head regardless of , and autoregressive decoding touches all of them at every step.
Balanced truncation. For a stable linear time-invariant (LTI) system , , the controllability and observability Gramians and quantify how strongly inputs drive each state direction and how strongly each direction affects outputs. The eigenvalues of are the squared Hankel singular values ; balanced truncation retains the subspace spanned by the leading generalized directions and is provably near-optimal for LTI systems (Moore, 1981). For a selective SSM, is time-varying and no such guarantee holds; we therefore work with empirical Gramians (the analogues of ) estimated from calibration trajectories, and evaluate the resulting transform end-to-end (Sections 5 and 6). A crucial simplification of Mamba-2 is that is a scalar multiple of the identity: any invertible change of state coordinates leaves the recurrence invariant up to transformed input and output couplings, because scalar matrices commute with . We exploit this property to apply the truncated transform exactly.
4 The Structure of Trained Mamba-2 States
We capture per-layer, per-head states of Mamba2-130M, 370M and 1.3B (Dao and Gu, 2024) on four WikiText-2 training sequences (Merity et al., 2017), using windows held out from calibration (Appendix A). Because the fused implementation does not expose per-step states, we recompute from the exact reference equations and verify the replay against the model's cached recurrence; the maximum relative error is across probed layers. We write energy for the mean squared state norm and anisotropy for the mean pairwise cosine between cross-sequence states.
Finding 1: energy is almost rank-one. Consistent with prior reports of anisotropy and low rank (Wagh and Singh, 2026; Sun et al., 2026), Table 1 and Figure 2 show that per-head spectra are dominated by one direction: the median effective rank (participation ratio of the squared singular values) is 1.16–1.28, 89.6–91.9% of heads have effective rank at most two, and the leading direction carries 89–93% of the energy. States are strongly anisotropic: the mean cross-sequence cosine is 0.32–0.43 and reaches 0.99 in early layers.
Finding 2: functional content is concentrated, but not in the coordinates. The scalar-identity transition makes the channel recurrences independent, but it does not make the useful subspace coordinate-wise. The leading energy direction is bias-like: it aligns with the layer's mean write direction (median ), whereas individ- ual writes vary (consecutive cosine 0.51–0.54). Content-carrying directions therefore have small energy but non-trivial readout coupling. Keeping four randomly chosen coordinates of 128 retains at most 8.5% of the output energy (median , against the baseline), so channel independence does not make the state coordinate-sparse. Nor does a coordinate ordering: even the best native coordinates—an oracle over coordinate subsets—capture only 0.69–0.72 of the squared row mass of the retained balanced subspace at (random subspace: 0.55; Appendix D), and at matched rank the balanced subspace retains 96.6% of the empirical Hankel energy versus 70.0% for the strongest diagonal ordering on 130M at (Table 18). The relevant subspace is defined jointly by how the state is written and how it is read—the balanced-truncation criterion we adopt next.
| Model | L | H | erank med. (p90) | ≤ 2 | top-1 | aniso |
|---|---|---|---|---|---|---|
| 130M | 24 | 24 | 1.16 (2.10) | 89.6% | 0.93 | 0.43 |
| 370M | 48 | 32 | 1.17 (1.76) | 91.9% | 0.92 | 0.39 |
| 1.3B | 48 | 64 | 1.28 (1.93) | 90.7% | 0.89 | 0.32 |
Table 1: State statistics per model. L: layers; H: heads. "erank": median effective rank of a head; "≤ 2": fraction of heads with effective rank ≤ 2; "top-1": median energy share of the leading direction; "aniso": median per-layer mean pairwise cosine of cross-sequence states.

Figure 2: Empirical CDF of per-head effective rank. About 90% of state heads live in at most two directions, across all model scales.
Finding 3: the useful rank varies across layers, not heads. State-reduction methods fix one retention ratio for all layers and, where heads are treated separately, for all heads. Heads within a layer are similar (median within-layer standard deviation of effective rank 0.16–0.23), so per-head budgets have little room to improve; across layers, a few early-to-middle layers host heads with effective rank up to 12.8 while the rest are effectively rank-one, more than an order of magnitude apart. A uniform budget therefore over-provisions the many near-rank-one layers. HARP reallocates the same average budget across layers and improves both perplexity and retrieval (Section 6.3)—this is what per-layer rather than per-head budgets mean.
5 Method: BASS
BASS is a post-training transform with three steps: estimate empirical Gramians of the state (Section 5.1), build the balanced subspace and apply it exactly (Section 5.2), and allocate ranks across layers (Section 5.3). Figure 1 summarizes the first two steps and fixes notation.
Overview. The top strip of Figure 1 follows one Mamba-2 layer: the input is projected to the pre- write , the read , and the step ; the write is scaled, , and the state and output follow Eqs. (1)–(2). BASS changes only the state and the couplings ; the projections, convolution, , and normalization are untouched. The lower panel isolates the surgery: estimate the empirical Gramians from (Section 5.1), take the balanced basis (Section 5.2), and apply , , ; the compressed layer then reruns update and read with . The rotation is exact for any ; at it is lossless, and only truncation approximates. HARP (Section 5.3) selects per layer and is not shown.
5.1 Calibrating the state Gramians
Balanced truncation is defined by the controllability and observability Gramians of the state; for a trained selective SSM neither has a closed form, so we estimate both from calibration statistics. For each layer (and each group, since B and C are shared across heads of a group) we run the pretrained model over four 1,024-token calibration sequences and collect the write and read couplings after the convolution and activation, together with the states for diagnostics. We then form the empirical Gramians
which measure, respectively, how strongly the input history writes into each state direction and how strongly each direction is read out. For an LTI system with , the infinite-horizon Gramians reduce to these time-averaged covariances up to the common decay weighting; for the selective case we treat (3) as an empirical analogue rather than an exact infinite-horizon Gramian. Both are and estimated once per layer (4,096 tokens, Appendix A); the cost is a single forward pass over the calibration set.
5.2 Balanced subspace and exact transform
Balanced truncation keeps the -dimensional subspace that is simultaneously easy to reach (controllable) and easy to observe (observable). At a fixed it minimizes the discarded Hankel energy; directions that are written but never read—or read but never written—receive small Hankel values and are truncated first. Let and be the Gramian factorizations. The balanced coordinates are obtained from the singular value decomposition
and the leading directions in the original state space are spanned by ; we orthonormalize them into supported on the subspace that is both strongly written and strongly read, ranked by Hankel singular values . Coordinate selection is the special case : it can only keep native axes, while may mix them.
Because Mamba-2 uses a scalar-times-identity transition (Section 3), the transform commutes with the recurrence: applying the rotation to the couplings,
yields a smaller selective SSM whose state is and whose outputs coincide with the original model restricted to the retained subspace. The remaining parameters— , , , normalization, and the input projections—are untouched. At with orthonormal, the transform is exact; we verify this at full rank in Section 6.
In practice, the couplings are produced after a depthwise convolution and a SiLU activation, so the rotation cannot be folded into the input projection weights exactly. BASS therefore applies a small linear map to and at runtime. This costs 2Nr multiply-accumulates per token per layer—negligible compared with the 2NrP state update itself—while reducing the state memory and the per-step state traffic by a factor . Folding the rotation into the projections via a short recovery fine-tune, or into the scan kernel, is a systems extension we leave to future work.
5.3 HARP: Hankel allocation with retrieval protection
The balanced construction provides, for each layer , Hankel singular values ; truncating that layer to rank discards the tail energy . Given a target average rank and a per-layer floor , HARP allocates ranks by solving
The marginal reductions are non-increasing in , so a greedy procedure is optimal for the discrete problem: starting from , repeatedly grant one mode to the layer with the largest marginal tail reduction until the budget is met. A priority queue implements this in time.
The Hankel tail is a likelihood-oriented proxy and does not guarantee retrieval performance (Section 6.3). HARP therefore measures retrieval sensitivity with a leave-one-layer-out probe. For each layer , it compresses only that layer to a probe rank while keeping every other layer at , evaluates the model on a held-out retrieval set disjoint from the evaluation set, and records the accuracy drop
where is the accuracy of the uniformly allocated model and that of the probed model. The probe requires L forward passes and no gradients.
HARP then imposes a retrieval floor: the layers with the largest , ranked by (7), keep , and (6) is re-solved over the remaining layers with the remaining budget , or with capped at if the floor alone exhausts it. The floor changes only the per-layer ranks fed to the transform of Section 5.2; at a matched average rank it adds no parameters or FLOPs beyond BASS. A sensitivity-weighted alternative multiplies each layer's marginal Hankel gain in the greedy step by , where is the mean probe sensitivity; we evaluate it in Section 6.3 and Appendix E. The full procedure costs one calibration pass, one singular value decomposition per layer, allocation, and probe passes; inference adds only the map of Section 5.2.
6 Experiments
6.1 Setup
Models and evaluation. We use the public Mamba2-130M, 370M, 780M, 1.3B and 2.7B checkpoints (Dao and Gu, 2024) in float32. Language modeling is evaluated as chunked perplexity on the WikiText-2 test set (8 segments of 1024 tokens for 130M/370M/780M and 4 for 1.3B/2.7B; we report the change relative to the uncompressed model, whose perplexities are 25.21, 17.97, 14.78, 12.39 and 10.93). Retrieval is evaluated on LAM-BADA (Paperno et al., 2016) with last-token accuracy over the first 512 examples. All methods, including the uncompressed baseline, run through the same independent scan implementation.
Compression methods. All methods reduce every layer from N=128 modes to r modes and are applied as the transform of (5): saliency selects the r largest coordinates, the diagonal output-aware criterion of GHOST-style channel selection; balanced (BASS) is the joint-Gramian subspace of Section 5.2. BASS + HARP applies per-layer Hankel allocation with a retrieval floor (Section 6.3). Energy and random-coordinate selection are tabulated in Table 7. Gramians and saliency are estimated from four 1024-token sequences drawn from the WikiText-2 training split (the Gramians use the full sequences; energy and saliency use their post-warmup tokens), strictly disjoint from all evaluation data; the sensitivity of BASS to this calibration set is analyzed in Appendix C.
6.2 Main results
Table 2 reports absolute WikiText-2 perplexity and Figure 3 the corresponding changes. BASS+HARP is the best compressed configuration on perplexity at every scale and budget: at 50% retention it adds 0.3 ppl on average versus 1.6 for GHOST, and at 25% retention the gap widens to 1.7 versus 111. Even uniform BASS costs +7.2% at 130M versus +12.5% for GHOST. Three controls point to the basis: a diagonal-saliency control tracks GHOST, random selection is far worse, and permuting ranks is worse than uniform (Appendix E). A full-test-file evaluation of uniform BASS reproduces these
| Method | WikiText-2 perplexity ↓ | Avg. increase vs. dense | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 130M | 370M | 780M | 1.3B | 2.7B | 50% | 25% | ||||||
| r=64 | r=32 | r=64 | r=32 | r=64 | r=32 | r=64 | r=32 | r=64 | r=32 | |||
| Dense | 25.21 | 17.97 | 14.78 | 12.39 | 10.93 | ref. | ref. | |||||
| GHOST | 28.35 | 38.67 | 19.69 | 459.6 | 16.17 | 101.2 | 13.47 | 22.75 | 11.65 | 14.56 | +1.6 (9.3%) | +111 (643%) |
| Magnitude | 1972 | 105.8 | 56.81 | 2771 | 26.77 | 91.71 | 21.72 | 33.49 | 16.03 | 24.17 | +402 (1628%) | +589 (3290%) |
| Saliency | 28.30 | 37.11 | 19.54 | 62.65 | 15.96 | 43.91 | 13.49 | 19.78 | 11.48 | 13.71 | +1.5 (8.6%) | +19.2 (116%) |
| BASS (uniform) | 27.02 | 31.61 | 19.00 | 21.62 | 15.04 | 16.11 | 13.01 | 15.20 | 11.08 | 11.65 | +0.8 (4.2%) | +3.0 (16.8%) |
| BASS + HARP | 25.95 | 30.20 | 18.46 | 19.67 | 14.86 | 15.44 | 12.63 | 13.41 | 11.03 | 11.31 | +0.3 (1.8%) | +1.7 (9.1%) |
Table 2: WikiText-2 perplexity at (50%/25% retention). Last two columns: average increase vs. dense in ppl points, with relative change in parentheses (mean over five checkpoints). Bold marks the best compressed method in each column and underline indicates the second best; Dense is a reference and is not compared. Official rows use released implementations; ours use BASS.

Figure 3: (a) Perplexity change vs. retained rank for Mamba2-130M (log scale). (b) At state reduction for the three checkpoints with complete method sweeps (log scale); 780M/2.7B are in Table 2.
costs with bootstrap intervals and makes the 1.3B entry conservative (Appendix J).
Official baseline suite. We additionally run the remaining criteria compared in the GHOST paper with the authors' released implementations: Magnitude (static scoring) and random selection. Magnitude is catastrophic and not even monotone in budget, so static weight magnitude does not track functional importance; Taylor-2 is numerically explosive at 50% (Table 7). Random selection sits between GHOST and Magnitude. All reported rows are our re-runs under one protocol; every layer prunes 64/128 states, and the 25% GHOST rows reproduce under hard truncation with 31–32 of 128 states retained (Appendix B).
6.3 Layer-adaptive budgets and retrieval
Allocation versus retrieval. Table 10 separates allocation from the retrieval floor on 130M at . Hankel allocation nearly closes the perplexity gap but loses LAMBADA accuracy; rank floors do not recover it, and the retrieval floor restores most of it (+2.9% at 0.404, versus +7.2% at 0.371 for uni- form). The sensitivity-weighted variant is unstable across probe draws, so we use the hard floor; probe settings are in Section 5.3 and full results in Appendix E.
Across scales. The ordering holds at every probed scale, and the full LAMBADA set confirms the gains (Appendix E). Table 3 places HARP next to the baselines: at 370M/50% GHOST retains slightly more retrieval accuracy but at several times HARP's perplexity cost.
6.4 Exactness controls
At both the identity and the full-rank balanced transform reproduce the baseline perplexity exactly (), and the offline state recomputation matches the reference implementation to relative error; at only the retained subspace changes.
7 Discussion
Why balanced truncation wins. A coordinate-space method is the special case of our transform
| Method | LAMBADA last-word accuracy ↑ | Avg. change vs. dense | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 130M | 370M | 780M | 1.3B | 2.7B | 50% | 25% | ||||||
| r=64 | r=32 | r=64 | r=32 | r=64 | r=32 | r=64 | r=32 | r=64 | r=32 | |||
| Dense | 0.449 | 0.557 | 0.607 | 0.648 | 0.703 | ref. | ref. | |||||
| GHOST | 0.355 | 0.193 | 0.463 | 0.246 | 0.471 | 0.307 | 0.520 | 0.332 | 0.609 | 0.459 | -10.9 (-18.7%) | -28.6 (-49.2%) |
| Magnitude | 0.092 | 0.037 | 0.102 | 0.006 | 0.164 | 0.027 | 0.154 | 0.039 | 0.295 | 0.088 | -43.2 (-73.7%) | -55.4 (-93.5%) |
| Saliency | 0.330 | 0.139 | 0.449 | 0.279 | 0.461 | 0.299 | 0.520 | 0.318 | 0.596 | 0.443 | -12.2 (-21.0%) | -29.7 (-51.5%) |
| BASS (uniform) | 0.371 | 0.256 | 0.412 | 0.309 | 0.535 | 0.369 | 0.572 | 0.402 | 0.639 | 0.459 | -8.7 (-15.2%) | -23.4 (-39.9%) |
| BASS + HARP | 0.404 | 0.352 | 0.438 | 0.400 | 0.602 | 0.504 | 0.592 | 0.545 | 0.664 | 0.602 | -5.1 (-9.0%) | -11.2 (-19.5%) |
Table 3: LAMBADA last-word accuracy at the budgets of Table 2 (512 examples). Last two columns: average change vs. dense in accuracy points, with relative change in parentheses (unweighted mean over the five checkpoints). Official rows use released implementations; ours use BASS. HARP selects layers on held-out examples (512–767), disjoint from evaluation. Bold marks the best compressed method in each column and underline indicates the second best; Dense is a reference and is not compared. Magnitude is a failure floor.
with : it can only keep or drop native axes, and its per-channel scores ignore the cross-channel covariance that joint drops induce. The state's energy and functional axes differ—a bias-like direction dominates energy while the readout uses low-energy directions—so any diagonal criterion trades one against the other; rotating first lets selection operate in the basis that diagonalizes the input–output map. The subspace is optimal in the LTI limit, and empirically best or within 0.2 points of the best control at every budget, with write-only, read-only, and random-rotation controls falling behind as budgets tighten (Appendix H).
Interaction with quantization. Quantization and subspace reduction are complementary, and the best mix depends on the budget and scale. At compression, 16-bit state quantization is close to lossless on the smaller models and leaves little room for truncation; from down, low-bit quantization alone either loses accuracy or collapses, and the subspace transform becomes necessary. At , HARP with int16 is best on 130M/370M while dense int8 remains best on 1.3B; at and , only subspace plus int8 remains functional (Appendix K).
8 Conclusion
We studied the recurrent state of Mamba-2 as a compression target and found that its energy is nearly rank-one, yet its functional content is concentrated in a subspace that is not aligned with the coordinates. Based on this, we proposed BASS, which casts state compression as balanced truncation of the selective SSM and applies the subspace transform exactly through the scalar-identity transition, with per-layer Hankel allocation and a retrieval floor layered on top. At 50% retention it adds 0.3 ppl on average across the five checkpoints (1.6 for GHOST); on the three probed scales HARP also recovers 0.02–0.03 LAMBADA accuracy, and the gap widens at 25% retention. The characterization and released toolkit support state-level, system-theoretic work on efficient recurrent models.
Limitations
Method scope. The capacity limit remains: 25% retention costs +20–+25% on 130M/370M/1.3B, 16 of 128 modes costs +58% at 130M, and smaller models are more sensitive (+7.2% vs. +5.0% at 50%). Calibration moves the cost: across disjoint sources the 50% cost varies by up to 1.5 points, and 128-token sequences cost up to 1.0/9.9 points at r=64/32 (Appendix C).
Evaluation scope. We evaluate language modeling (WikiText-2, LAMBADA) on 130M–2.7B checkpoints; length generalization, out-of-distribution and zero-shot suites, and vision and hybrid models remain untested.
Cost and implementation. The rotation adds 0.6–0.8% to prefill latency; calibration takes 1.7–6.8 s and 2.3–10.2 GB versus 14.9–70.4 s and 3.3–16.3 GB for GHOST (Appendix F). Decode measurements show the N/r saving at large batch (1.5–2.2× throughput, 19–38% lower peak memory) but a 6–10% loss at batch 1 in our unoptimized loop (Appendix G); state quantization uses a simulated per-mode integer scheme, not production kernels (Appendix K).
Future work. Fusing the rotation into decode kernels or into the model via recovery fine-tuning would remove the batch-1 overhead; extending
BASS to Mamba-1 (non-rotation-invariant diagonal transition) and to complex-state models such as Mamba-3 (Lahoti et al., 2026) (data-dependent rotation), and extending the retrieval probe to long-context recall, are natural next steps.
References
Ameen Ali, Itamar Zimerman, and Lior Wolf. 2025. The hidden attention of mamba models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL).
Ali A. Asif, Mahdi Kashaniyan, Simin Yu, J. Pablo Muñoz, and Ali Jannesari. 2025. PerfMamba: Performance analysis and pruning of selective state space models. arXiv preprint arXiv:2511.22849.
Raktim Bhattacharya. 2026. An exact instrument for state usage in selective state-space models, and the input-driven migration it reveals. arXiv preprint arXiv:2607.11796.
Makram Chahine, Philipp Nazari, Daniela Rus, and T. Konstantin Rusch. 2026. The curious case of in-training compression of state space models. In International Conference on Learning Representations (ICLR). ArXiv:2510.02823.
Tianqi Chen, Yuanteng Chen, Weixiang Xu, Zeyu Zhu, Peisong Wang, and Jian Cheng. 2025. Q-Mamba: Towards more efficient mamba models via post-training quantization. In Findings of the Association for Computational Linguistics: ACL 2025.
Hung-Yueh Chiang, Chi-Chih Chang, Natalia Frumkin, Kai-Chiang Wu, Mohamed S. Abdelfattah, and Diana Marculescu. 2025a. Quamba2: A robust and scalable post-training quantization framework for selective state space models. In Proceedings of the 42nd International Conference on Machine Learning (ICML).
Hung-Yueh Chiang, Chi-Chih Chang, Natalia Frumkin, Kai-Chiang Wu, and Diana Marculescu. 2025b. Quamba: A post-training quantization recipe for selective state space models. In International Conference on Learning Representations (ICLR).
Tri Dao and Albert Gu. 2024. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. In Proceedings of the 41st International Conference on Machine Learning (ICML).
Nir Endy, Idan Daniel Grosbard, Yuval Ran-Milo, Yonatan Slutzky, Itay Tshuva, and Raja Giryes. 2025. Mamba knockout for unraveling factual information flow. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL), pages 23457–23477, Vienna, Austria. Association for Computational Linguistics.
Haruka Ezoe and Kazuhiro Sato. 2024. Model compression method for S4 with diagonal state space layers using balanced truncation. arXiv preprint arXiv:2402.15993.
Marco Forgione, Manas Mejari, and Dario Piga. 2024. Model order reduction of deep structured state-space models: A system-theoretic approach. arXiv preprint arXiv:2403.14833.
Albert Gu and Tri Dao. 2023. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752.
Albert Gu, Karan Goel, and Christopher Ré. 2022. Efficiently modeling long sequences with structured state spaces. International Conference on Learning Representations (ICLR).
Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. 2020. Transformers are RNNs: Fast autoregressive transformers with linear attention. In Proceedings of the 37th International Conference on Machine Learning (ICML).
Aakash Lahoti, Kevin Y. Li, Berlin Chen, Caitlin Wang, Aviv Bick, J. Zico Kolter, Tri Dao, and Albert Gu. 2026. Mamba-3: Improved sequence modeling using state space principles. In International Conference on Learning Representations (ICLR).
Michael Menezes and Anastasios Kyrillidis. 2026. GHOST: Unmasking phantom states in Mamba2 via grouped hidden-state output-aware selection and truncation. arXiv preprint arXiv:2602.11408. ICML 2026.
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2017. Pointer sentinel mixture models. In International Conference on Learning Representations (ICLR).
Bruce C. Moore. 1981. Principal Component Analysis in Linear Systems: Controllability, Observability, and Model Reduction, volume 26.
J. Pablo Muñoz, Jinjie Yuan, and Nilesh Jain. 2025. Mamba-shedder: Post-transformer compression for efficient selective structured state space models. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the ACL (NAACL).
Philipp Nazari and T. Konstantin Rusch. 2026. The key to state reduction in linear attention: A rank-based perspective. arXiv preprint arXiv:2602.04852. ICLR 2026.
An Xuan Nguyen. 2026. Asymmetric virtual memory paging for hybrid mamba-transformer inference. arXiv preprint arXiv:2605.22416.
Denis Paperno, Germán Kruszewski, Angeliki Lazari-dou, Quan Ngoc Pham, et al. 2016. The LAMBADA dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL).
Paul Schwerdtner, Jules Berman, and Benjamin Peherstorfer. 2025. Hankel singular value regularization for highly compressible state space models. In Advances in Neural Information Processing Systems (NeurIPS). ArXiv:2510.22951.
Ao Sun, Hongtao Zhang, Heng Zhou, Yixuan Ma, Yiran Qin, Tongrui Su, Yan Liu, Zhanyu Ma, Jun Xu, Jiuchong Gao, Jinghua Hao, and Renqing He. 2026. State rank dynamics in linear attention LLMs. arXiv preprint arXiv:2602.02195.
Bhagyashree Wagh and Akash Singh. 2026. Lost in state space: Probing frozen mamba representations. arXiv preprint arXiv:2605.00253.
Zukang Xu et al. 2025. MambaQuant: Quantizing the mamba family with variance aligned rotation methods. In International Conference on Learning Representations (ICLR). ArXiv:2501.13484.
Organization. This appendix is organized by the question it answers; the A–K letters match the main text. A–B cover the capture protocol and a released-vs-rerun audit of baseline numbers. C, D, H, and I test sensitivity and attribution: calibration robustness, off-diagonal coupling and subspace stability, single-sided and random-rotation controls, and Hankel-energy retention. E–G report layer budgets, calibration and prefill cost, and decode measurements. J–K close with full-test-set evaluation and matched-budget quantization; readers in a hurry should start with B, H, and J.
A State Capture Protocol
Capturing recurrent states from fused SSM kernels is unreliable: the fused scan does not expose per-step states, and installing optimized kernels disables the reference forward path that calibration hooks rely on. We therefore recompute states offline. For each layer we register forward hooks on the input projection and the depthwise convolution, reconstruct , , , with the exact equations of the reference implementation (including the SiLU activation, the causal padding of the convolution, the softplus reparameterization of , and the shared , within a group), and replay the recurrence with the model's own parameters. We verify the replay against the cached recurrent state maintained by the reference implementation at several probe layers and model scales; the maximum relative error is .
Calibration uses four 1024-token sequences from the WikiText-2 training split: energy and saliency accumulate over their post-warmup tokens (256–1023), and the Gramians over the full sequences. The diagnostic analysis of Section 4 uses the same calibration windows (tokens 256–512) and held-out windows (tokens 640–896) of four disjoint training sequences; all perplexity and retrieval evaluation is on the test split. The surgery experiments reuse the same rank grid for all methods and evaluate on the same token segments, so all comparisons are paired.
B Baseline Reproduction Details
All official rows run the authors' released mamba2_ghost implementation with its default soft pruning (is_hard=false) and its calibration protocol (128 WikiText-2 samples of 128 tokens, batch 8, sequential layer-wise pruning); every pruned and uncompressed model is evaluated with our protocol. Released values are word-level perplexities from the paper or repository, whereas our reruns are token-level, so Table 4 reports the metric per row rather than a . We count a method as reproduced when it lands in the same order of magnitude and preserves the ordering against the dense model.
Where the two runs diverge. Taylor-2 at 1.3B is near-dense in the released sweep, whereas our rerun reaches 539 ppl. The compressor skips layers for which no calibration gradient is available (its salience map is never populated), the released run peaks at 44.9 GB and uses 1024-token calibration, and all layers prune 64/128 in our check, so we treat the released run as likely not pruned. Magnitude's two-fold gap is consistent with word-level versus token-level scoring. For 370M/25%, the released pipeline is far worse than our joint re-implementation of the same diagonal criterion; both remain behind BASS, and the residual gap is consistent with sequential versus joint selection, so we report both.
Robustness of the 25% collapse. The 25% collapse persists under the authors' calibration protocol, a 32k-token window, and a second calibration draw (Table 5). Hard truncation reproduces the soft results with 31–32 of 128 states retained per layer, and BASS stays at +18–26% under the same window.
Released sweep and additional baselines. The released 1.3B sweep is qualitatively identical (Table 6): GHOST degrades smoothly but is severe at high sparsity, Taylor-2 jumps between mid and high
| Method | Model / budget | Released | Ours | Metric | Reading |
|---|---|---|---|---|---|
| GHOST-2 | 130M / 50% | +3.21 | +3.14 | word / token ppl | match |
| Random | 130M / 50% | 45.6 | 47.5 | token ppl | match |
| Taylor-2 | 370M / 50% | 12647 | 13851 | word / token ppl | same order |
| Taylor-2 | 1.3B / 50% | 13.94 | 539 | word / token ppl | released likely no-op |
| Taylor-2 | 130M / 50% | word / token ppl | both catastrophic | ||
| Magnitude | 130M / 50% | 910 | 1972 | word / token ppl | metric gap |
Table 4: Reproduction audit. Released values are word-level perplexities from the GHOST paper or repository; ours are reruns with the released compressor under our evaluation. No is reported because the metrics differ. "Reading" states the interpretation defended in the text.
| Setting | 130M | 370M | 1.3B |
|---|---|---|---|
| Replica (Table 2) | +53.4 | +2458 | +83.7 |
| Replica, 32k window | +47.3 | +1719.7 | +106.3 |
| Official calib., 32k window | +47.3 | +1719.3 | +61.7 |
| Official calib., draw 2, 32k | - | +1748.9 | +62.5 |
| Replica calib., draw 2, 32k | - | +2063.6 | - |
| Hard truncation | +53.4 | +2458 | +83.7 |
| BASS (ours), 32k window | +25.6 | +21.9 | +18.1 |
Table 5: GHOST-2 perplexity change at 25% under different calibration protocols, calibration draws and evaluation windows (all relative to the same uncompressed model). The collapse persists in every setting. Hard truncation removes channels physically and retains 31–32 of 128 states per layer. “-”: not run.
| Sparsity | 0.1 | 0.3 | 0.5 | 0.7 | 0.9 |
|---|---|---|---|---|---|
| Dense | 13.17 | ||||
| GHOST-2 | 13.24 | 13.51 | 14.23 | 16.16 | 25.07 |
| Magnitude | 427.7 | 22.39 | 29.34 | 39.96 | 69.49 |
| Taylor-2 | 13.18 | 13.26 | 13.94 | 4255 | 4690 |
| Random | 13.52 | 15.04 | 17.77 | 30.14 | 64.21 |
| SparseGPT | 13.17 | 13.19 | 13.25 | 13.52 | 15.51 |
Table 6: Word-level WikiText-2 perplexity from the authors' released sweep on Mamba2-1.3B. SparseGPT is unstructured and does not reduce the state dimension; it is shown for reference.
sparsity, and Magnitude is unstable from the lowest sparsity. Table 7 lists Taylor-2 at 780M/2.7B and the energy and random controls under our protocol.
C Calibration Sensitivity
The balanced basis is estimated from finite calibration statistics, so its sensitivity to the calibration set matters. Table 8 re-estimates the Gramians from disjoint calibration sources and re-runs the BASS surgery at and . Across train and validation calibration sets the perplexity cost varies by at most 1.5 points; at the variation reaches 7.7 points on the 130M model. The final row of Table 8 calibrates on the evaluation text as a leakage control; all reported results use train calibration. Ridge shrinkage of the Gramians and doubling the calibration set did not improve results further.
Subspace identity is not stable at this calibration budget: pairwise principal angles between balanced subspaces from different sources reach in the tail of the Hankel spectrum, and the rank- Hankel operator itself changes by in relative Frobenius norm, because the eigenvalues beyond the leading one form a near-degenerate cluster. What is stable is behavior: the Hankel spectra agree across sources (e.g., layer-0 leading eigenvalues 6.21/0.24/0.075 vs. 5.83/0.22/0.072), and the resulting perplexity is consistent (Table 8). The comparison to baselines is robust to the calibration source: even the weakest source at remains clearly better than GHOST , and at 1.3B all sources lie within 0.2 points and are better. We therefore report single-source (train) calibration and treat tail-subspace variability as an inherent property of finite-sample balanced truncation at this scale.
| Calibration source | 130M | 1.3B | ||
|---|---|---|---|---|
| r=64 | r=32 | r=64 | r=32 | |
| Train, 4 seq. (reported) | +7.18 | +25.38 | +5.06 | +22.75 |
| Validation, 4 seq. | +8.18 | +33.06 | +5.00 | +22.34 |
| Train, 8 seq. | +7.38 | +27.09 | +4.89 | +22.02 |
| Eval. text (leaky, excluded) | +3.50 | +13.96 | +1.02 | +8.95 |
Table 8: WikiText-2 perplexity change of BASS under different calibration sources. The last row calibrates on the evaluation text as a leakage control; all reported results use train calibration.
Calibration sequence length. The reported protocol uses 1024-token sequences, which estimate the steady-state write/read statistics; GHOST instead calibrates on 128-token sequences. To separate the protocol from the method, we re-calibrate BASS on 128 samples of 128 tokens (batch 8, 16k tokens; Table 9). Shorter sequences cost up to 1.0 point at and up to 9.9 points
| Method | WikiText-2 perplexity ↓ | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 130M | 370M | 780M | 1.3B | 2.7B | ||||||
| r=64 | r=32 | r=64 | r=32 | r=64 | r=32 | r=64 | r=32 | r=64 | r=32 | |
| Taylor-2 (released code, our run) | 13851 | 11654 | 539.0 | 813.4 | 511.7 | 542.9 | ||||
| Energy (ours) | 28.16 | 38.64 | 20.07 | 24.47 | 16.11 | 21.04 | 13.63 | 17.32 | 11.67 | 13.74 |
| Random (ours) | 39.23 | 84.54 | 28.21 | - | 26.20 | - | 18.38 | - | 14.02 | - |
Table 7: Additional baselines moved from Table 2 to keep the main comparison focused. Taylor-2 entries for 780M/2.7B are evaluated in bf16 (fp32 exceeds 24 GB); energy selects the largest coordinates, random draws coordinates uniformly, and both use the BASS protocol and the same evaluation as Table 2. “-”: not run.
at (130M), an effect of the same order as the calibration-source variation above; the ranking against GHOST is unchanged—at , BASS still costs at versus for GHOST, and remains far ahead at .
| Model | r=64 | r=32 | ||
|---|---|---|---|---|
| 128×128 | 4×1024 | 128×128 | 4×1024 | |
| 130M | +8.14 | +7.18 | +35.25 | +25.38 |
| 370M | +6.24 | +5.73 | +23.97 | +20.34 |
| 1.3B | +5.98 | +5.06 | +25.59 | +22.75 |
Table 9: Calibration-length control: BASS perplexity change when the Gramians are estimated from 128-token sequences (GHOST's protocol, 16k tokens) instead of the reported 1024-token sequences.
D Off-Diagonal Coupling and Retained-Subspace Stability
Coupling structure. The empirical Gramians are dominated by their leading direction: a rank-one matrix with that direction already has an off-diagonal Frobenius fraction of 0.92–0.98 at N=128, above our measured 0.84–0.94, so raw off-diagonal mass reflects the rank-one component rather than cross-channel structure per se. The functionally relevant question is whether native coordinates can represent the subspace that the joint write-read geometry selects. They cannot: for the retained balanced subspace at r=64, the best 64 native coordinates capture only 0.69–0.72 of the achievable squared row mass (random subspace: 0.55; a coordinate-aligned one: 1.0; at r=32: 0.53–0.54 vs. 0.32)—coordinate selection and joint subspace selection are genuinely different families, consistent with the control results above.
Stability of the retained subspace. Across disjoint calibration draws (the default training sequences, the validation split, 16 training sequences, and the leaky test-text control; up to six pairs per model), the retained top-64 subspace overlaps the default draw in 0.76–0.91 mean squared principal cosines (0.67–0.88 at rank 32), against 0.50/0.25 for random subspaces of the same dimension; the retained Hankel tail mass agrees to at rank 32). Individual principal directions can rotate (maximum per-layer angles up to ) because the kept spectrum is graded with near-degenerate tail values, so the exact basis is not identified by finite calibration; the operational object—the subspace span and the end-to-end cost—is stable across draws (Table 8).
E Layer-Adaptive Budgets and Retrieval
Allocation ablations. Table 10 studies layer-adaptive allocation on the 130M model at a matched average budget ( ). The Hankel tail proxy cuts the perplexity cost by but costs LAMBADA accuracy ( ): it measures likelihood sensitivity, not retrieval. Per-layer floors do not recover it (0.313 at floor 32); anti-allocating the same ranks is worse than uniform (+8.47% vs. +7.18%), so the per-layer distribution matters.
Retrieval probe. The probe compresses one layer at a time to while all other layers stay at , and evaluates 256 held-out LAMBADA examples (indices 512–767, disjoint from the 512 evaluation examples); Table 12 lists the most sensitive layers and probe times. One late layer dominates in every model, and the ranking correlates only moderately with the Hankel allocation (+0.41, +0.41 and -0.01 at 130M, 370M and 1.3B).
Retrieval floor. The floor keeps the six most sensitive layers at and re-solves (6) on the remaining layers with the remaining budget (ties below one point are broken arbitrarily); the sensitivity-weighted variant is defined in Section 5.3. Table 11 compares the two variants with uniform allocation at every scale: the floor dominates on both axes. The floor budgets are sta-ble across disjoint probe draws ( 0.1 ppl-point and 0.02 LAMBADA differences), whereas the weighted variant is not: at 1.3B it costs +2.45% under the first draw but +59% under the second, so we recommend the floor. A paired bootstrap over the 512 evaluation examples for the floor-minus-uniform difference gives 95% confidence intervals of [+0.008, +0.059] at 130M (p=0.016) and [+0.004, +0.049] at 370M (p=0.041). On the full LAMBADA test set (4,897 examples, excluding the probe window 512–767) the gains are significant at every scale: +0.0145 [0.007, 0.022] ( ), +0.0259 [0.019, 0.033] ( ) and +0.0384 [0.031, 0.046] ( ) at 130M/370M/1.3B (the earlier 512-example evaluation reported the 1.3B margin as within noise, p=0.11; the larger evaluation resolves it). Figure 4 shows the per-layer budgets for the 130M model.
| Configuration (130M) | ppl change | LAMBADA |
|---|---|---|
| Uncompressed baseline | 0.00% | 0.449 |
| Uniform r=64 | +7.18% | 0.371 |
| Adaptive =64, floor 2 | +2.78% | 0.320 |
| Adaptive =64, floor 32 | +2.81% | 0.313 |
| Retrieval floor (k=6) | +2.92% | 0.404 |
| Retrieval floor, weighted | +3.24% | 0.422 |
| Anti-allocated r=64 | +8.47% | 0.314 |
| Uniform r=32 | +25.38% | 0.256 |
| Adaptive =32, floor 2 | +11.60% | 0.221 |
Table 10: Allocation ablations at a matched average budget on Mamba2-130M. Hankel allocation improves perplexity but trades off retrieval; per-layer rank floors do not recover it, while the retrieval floor does.
| Model | Uniform =64 | HARP (floor) | HARP (weighted) | |||
|---|---|---|---|---|---|---|
| ppl | LAMB. | ppl | LAMB. | ppl | LAMB. | |
| 130M | +7.18 | 0.371 | +2.92 | 0.404 | +3.24 | 0.422 |
| 370M | +5.73 | 0.412 | +2.75 | 0.438 | +2.05 | 0.563 |
| 1.3B | +5.0 | 0.572 | +1.92 | 0.592 | +59.0 | 0.440 |
Table 11: Retrieval-aware allocation across scales. The probe selects layers on held-out LAMBADA examples (512–767), disjoint from the evaluation set (0–511). The retrieval floor (k=6) protects the six most probe-sensitive layers; the weighted variant is unstable across probe draws.

Figure 4: Uniform, Hankel-adaptive, retrieval-floor (k=6), sensitivity-weighted and anti-allocated budgets at 50% reduction (130M): the retrieval-aware budgets dominate uniform allocation on both perplexity and LAMBADA.
| Model | probe-sensitive layers (drop, pts) | probe time |
|---|---|---|
| 130M | 20 (16.4), 19 (7.4), 10 (2.3), 17 (2.3) | 218 s |
| 370M | 38 (15.6), 32 (3.5), 35 (2.7), 28 (2.3) | 779 s |
| 1.3B | 33 (26.2), 6 (1.6), 25 (1.2), 37 (0.8) | 1362 s |
Table 12: Leave-one-layer-out retrieval probe ( for the probed layer, otherwise; held-out LAMBADA examples 512–767, disjoint from the evaluation set).
F Computational Cost
Table 13 compares the one-time calibration cost of BASS and GHOST, measured on one RTX 3090 in float32, under each method's released protocol and under a token-matched swap. BASS calibrates from four 1024-token sequences with a single forward pass and a per-layer eigendecomposition; GHOST's released protocol uses 128 samples of 128 tokens (batch 8, sequential layer-wise pruning). Under the released protocols BASS is faster and peaks lower; at matched token budgets it is still faster at 16k tokens and faster at 4k tokens, where GHOST also exceeds the 24 GB card at 1.3B. GHOST's cost is dominated by its sequential layer-wise processing and is nearly token-independent (13.1 s at 4k versus 14.9 s at 16k on 130M).
| BASS4×1024 | BASS128×128 | GHOST128×128 | GHOST4×1024 | |
|---|---|---|---|---|
| 130M | 1.7 / 2.3 | 4.6 / 2.3 | 14.9 / 3.3 | 13.1 / 10.2 |
| 370M | 3.7 / 4.0 | 11.3 / 4.0 | 37.2 / 5.7 | 33.3 / 15.1 |
| 1.3B | 6.8 / 10.2 | 22.0 / 10.3 | 70.4 / 16.3 | OOM |
Table 13: One-time calibration cost (median seconds / peak GB, RTX 3090, float32) under each method's released protocol and under a token-matched swap. GHOST's run exceeds 24 GB at 1.3B.
Table 14 lists the recurrent-state size, and Table 15 the cost of a 1024-token prefill (batch 1, float32), for the uncompressed model and BASS at and . All rows run the same chunked scan implementation, so the comparison isolates the retained subspace: applying an identity map to the uncompressed state costs only 0.6–0.8% (the “+map” column), so the runtime rotation is negligible. The compressed model is to faster than the uncompressed scan and peaks lower in memory at 130M and 370M; at 1.3B the uncompressed scan exceeds the 24 GB card while the compressed variants fit. These are prefill measurements under our reference implementation; decode-side throughput and memory are measured in Appendix G.
| Model | N=128 | r=64 | r=32 |
|---|---|---|---|
| 130M | 18.0 | 9.0 | 4.5 |
| 370M | 48.0 | 24.0 | 12.0 |
| 1.3B | 96.0 | 48.0 | 24.0 |
Table 14: Recurrent-state size summed over layers (MB, float32).
| Model | baseline | +map | r=64 | r=32 |
|---|---|---|---|---|
| 130M | 244.6 / 5.12 | +0.8% | 173.0 / 4.01 | 137.9 / 3.61 |
| 370M | 657.2 / 12.63 | +0.6% | 460.4 / 10.20 | 367.2 / 9.18 |
| 1.3B | OOM | OOM | 968.2 / 22.50 | 782.7 / 20.47 |
Table 15: Prefill at , batch 1, float32, one RTX 3090 (median ms / peak GB over five runs). All rows use the same chunked scan; “+map” applies an identity map to the uncompressed state. At 1.3B the uncompressed scan exceeds 24 GB.
G Decode Measurements
Table 16 measures token-by-token decoding with cached convolution buffers and recurrent states: the same reference loop (plain PyTorch, no fused kernels) runs the uncompressed model and BASS at with the runtime rotation included, so the comparison isolates the retained state size. The loop reproduces the prefill logits to max absolute error and the transform to the same tolerance. At batch 1, launch overhead dominates: the 130M model is 3–7% faster with the smaller state, while 370M/1.3B are 6–10% slower from the per-step rotation, and no memory difference is visible. At larger batches the state read–write traffic dominates: the 130M model decodes 1.6–2.2× faster and the 1.3B model gains 1.5–1.65×; peak memory falls with . Absolute rates reflect the unoptimized loop; production kernels would move the crossover batch lower.
| Model | B | decode tokens/s | peak GB | |||
|---|---|---|---|---|---|---|
| dense | r=64 | r=32 | dense | r=64 / r=32 | ||
| 130M | 1 | 66.9 | 69.2 | 71.9 | 2.53 | 2.52 / 2.51 |
| 130M | 128 | 4050 | 6555 | 8717 | 6.32 | 4.74 / 3.95 |
| 370M | 1 | 37.0 | 34.2 | 34.7 | 7.19 | 7.17 / 7.15 |
| 370M | 32 | 1131 | 1052 | 1074 | 10.31 | 9.47 / 9.05 |
| 1.3B | 1 | 37.7 | 33.8 | 35.2 | 5.24 | 5.19 / 5.17 |
| 1.3B | 32 | 664 | 992 | 1094 | 8.55 | 6.92 / 6.11 |
Table 16: Decode throughput and peak GPU memory (float32, one RTX 3090), measured over 128 steps after warmup with a cached-state reference loop; rotation included for BASS rows.
H Rotation and Single-Sided Controls
To isolate whether the gain comes from the balanced basis rather than from rotation or from either Gramian alone, we re-run the surgery with three controls under the identical protocol: (i) write-only, the top-r eigenvectors of ; (ii) read-only, the top-r eigenvectors of ; (iii) random rotation, a random orthogonal basis with the same retention. Table 17 reports perplexity change. At 25% retention the joint balanced subspace is best on all three models; at 50% it is best or within 0.1 points of the better single-sided control on 1.3B; and a random orthogonal rotation with the same retention is catastrophic, so retaining coordinates is not enough—the basis must be aligned with the state's write-read geometry.
| Model | r | BASS | write-only | read-only | rand-rot |
|---|---|---|---|---|---|
| 130M | 64 | +7.2 | +7.4 | +10.0 | +78.7 |
| 130M | 32 | +25.4 | +28.6 | +34.7 | ∞* |
| 370M | 64 | +5.7 | +6.2 | +6.1 | +135.4 |
| 370M | 32 | +20.3 | +22.5 | +60.1 | +239.9 |
| 1.3B | 64 | +5.0 | +6.1 | +4.9 | +31.3 |
| 1.3B | 32 | +22.7 | +27.7 | +23.3 | +206.2 |
Table 17: WikiText-2 perplexity change (%) under matched surgery with single-sided Gramian bases and a random orthogonal rotation. *Diverged to ppl.
I Hankel-Energy Retention: Coordinate Orderings vs. Balanced Subspace
For each layer we compute the fraction of the empirical Hankel spectral energy retained by an -dimensional subspace. For a native-coordinate subset this is , whereas the balanced subspace retains .
Coordinate orderings use the layer-mean per-coordinate score: (energy), (saliency), and (the strongest marginal-diagonal ordering). Table 18 reports medians over layers; the balanced subspace dominates at every r, and the gap is largest at small r.
| Model | r | Balanced | Hankel-diag | Saliency | Energy |
|---|---|---|---|---|---|
| 130M | 8 | 89.6 | 42.7 | 37.1 | 23.8 |
| 130M | 16 | 93.3 | 47.4 | 54.3 | 41.2 |
| 130M | 32 | 96.6 | 70.0 | 69.5 | 61.2 |
| 370M | 8 | 86.9 | 32.3 | 33.4 | 26.1 |
| 370M | 16 | 91.5 | 44.3 | 42.5 | 39.8 |
| 370M | 32 | 95.5 | 65.7 | 63.9 | 55.7 |
| 1.3B | 8 | 86.8 | 29.0 | 28.0 | 18.6 |
| 1.3B | 16 | 91.7 | 42.0 | 42.1 | 36.7 |
| 1.3B | 32 | 96.0 | 67.0 | 66.3 | 58.1 |
Table 18: Fraction (%) of the empirical Hankel spectral energy retained by an -dimensional subspace (median over layers). Coordinate columns select native coordinates by the layer-mean score (energy), (saliency), or the strongest marginal-diagonal ordering .
J Full-Test-Set Evaluation
Table 19 re-evaluates dense and BASS on the full WikiText-2 test file (280 segments of 1,024 tokens, 286,440 tokens) instead of the 8/4-segment protocol of the main table, with confidence intervals from a paired segment-level bootstrap (10,000 resamples). Dense perplexity differs from the main table (22.69/15.87/11.71 here vs. 25.21/17.97/12.39 on the first 8/4 segments) because the full file is a different token sample; all comparisons are within-protocol. The full-set costs agree with the main table for and are slightly smaller at ; in particular the 1.3B headline (+22.7% on four segments) is conservative—the full test set gives +16.7%.
| Model | dense ppl | r=64 | 95% CI | r=32 |
|---|---|---|---|---|
| 130M | 22.69 | +6.8% | [6.5, 7.2] | +24.7% |
| 370M | 15.87 | +5.9% | [5.6, 6.1] | +20.2% |
| 1.3B | 11.71 | +4.9% | [4.7, 5.1] | +16.7% |
Table 19: Full-test-file evaluation (280×1024 tokens): perplexity of the uncompressed model and BASS relative change; CIs are for the r=64 change (the r=32 CIs are within ±1.3 points, [23.5, 26.0]/[19.4, 21.1]/[16.0, 17.4]).
K State Quantization at Matched Budgets
Table 20 compares subspace reduction with per-mode symmetric state quantization at matched budgets, using the same token-by-token loop (rotation included for BASS rows; integer rows use per-mode absmax scales recomputed each step, without fused kernels or clipping calibration). The best configuration depends on the budget and scale. At , 16-bit quantization is close to lossless on 130M/370M but degrades 1.3B, leaving little room for truncation on the smaller models. At , HARP with int16 is best on 130M/370M, while dense int8 remains best on 1.3B. At , dense int4 collapses, and only subspace plus int8 remains functional; HARP leads on 130M/370M, uniform BASS on 1.3B. At , HARP plus int8 is best on all three scales. Quantization therefore dominates at mild budgets, and subspace reduction extends the usable bit-width range at aggressive ones (Table 20).
| Configuration | 130M | 370M | 1.3B |
|---|---|---|---|
| 4096 bits/head (1×) | |||
| Dense, r=128, fp32 | 25.21 | 17.97 | 12.39 |
| 2048 bits/head (2×) | |||
| Dense, r=128, int16 | 25.21 | 17.97 | 13.36 |
| BASS, r=64, fp32 | 27.02 | 19.00 | 13.01 |
| BASS+HARP, =64, fp32 | 25.95 | 18.46 | 12.63 |
| 1024 bits/head (4×) | |||
| Dense, r=128, int8 | 28.39 | 18.79 | 12.69 |
| BASS, r=64, int16 | 27.03 | 19.00 | 13.88 |
| BASS+HARP, =64, int16 | 25.93 | 18.45 | 13.62 |
| BASS, r=32, fp32 | 31.61 | 21.62 | 15.20 |
| BASS+HARP, =32, fp32 | 30.20 | 19.67 | 13.41 |
| 512 bits/head (8×) | |||
| Dense, r=128, int4 | 217.2 | 98.9 | 34.36 |
| BASS, r=64, int8 | 30.80 | 20.00 | 13.40 |
| BASS+HARP, =64, int8 | 29.75 | 19.49 | 14.04 |
| 256 bits/head (16×) | |||
| BASS, r=32, int8 | 35.37 | 22.50 | 15.38 |
| BASS+HARP, =32, int8 | 34.49 | 20.79 | 14.77 |
Table 20: WikiText-2 perplexity (lower is better) at matched per-head state budgets (bits = retained modes × bits per value). r: modes per layer; : average for HARP, whose per-layer ranks vary; compression is relative to the 4,096-bit dense state. Bold marks the best entry for each model within a budget. All rows use the same token-by-token loop; integer rows use per-mode absmax scales without fused kernels or clipping calibration.