REVIEW 2 major objections 4 minor 2 cited by
Interleaved Mamba/Transformer hybrids beat pure Transformers and SSMs at dense in-context retrieval, while the locality-structured position embeddings that SSMs learn make them—and their hybrids—slower than Transformers at two-hop position
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · deepseek-v4-flash
2026-08-02 19:15 UTC pith:4JAF3TWJ
load-bearing objection Careful controlled comparison yielding solid empirical findings on hybrid retrieval; the mechanistic spiral story is correlational and needs a same-attention-depth control before it can carry the conclusion. the 2 major comments →
Retrievit: In-context Retrieval Capabilities of Transformers, State Space Models, and Hybrid Architectures
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Hybrid models combining Mamba and Transformer blocks are more data-efficient, generalize to sequences four times longer, and handle duplicate queries better than either pure family on n-gram retrieval; on position retrieval, Transformers remain fastest and SSMs never solve the task within the training budget. The paper attributes the difference to an emergent representation: models containing SSM blocks learn locality-aware positional embeddings, visualized as a two-dimensional spiral in PCA space, where adjacent positions become neighbors. This property arises from the recurrent hidden-state update rule and, while interpretable, acts as a bottleneck for precise two-hop lookup. The authors a
What carries the argument
The load-bearing object is the locality-preserving two-dimensional spiral in the embedding space of positional tokens, which develops in Mamba, Mamba2, and all hybrid variants but not in Transformers. It explains the serial-position learning dynamics (beginning and end positions are learned first) and is claimed to hinder precise two-hop positional retrieval, since adjacent positions are forced to be neighbors rather than being mapped to arbitrary distinct coordinates.
Load-bearing premise
The load-bearing premise is that the locality-preserving spiral in SSM positional embeddings—not the number of attention layers—is what slows hybrid and SSM models on two-hop position retrieval.
What would settle it
Train an interleaved hybrid in which the position-token embeddings are explicitly prevented from forming a locality structure (e.g., by adding a penalty that spreads neighbors apart) and check whether two-hop position accuracy improves; if it does not, the spiral is a byproduct rather than the cause.
If this is right
- Architecture selection for sequence models can be task-conditional: choose interleaved hybrids for dense retrieval and copying tasks, and pure Transformers with RoPE for tasks requiring precise positional grounding.
- Interleaved hybrids offer a practical robustness gain for retrieval-augmented generation, since they maintain low error rates when query n-grams appear multiple times, whereas pure SSMs show a strong recency bias.
- The serial-position effect is a training signature: SSM-based models solve the head and tail of a sequence first, so tasks requiring uniform coverage of all positions will need enough attention layers to overcome this bias.
- The spiral structure in positional embeddings can serve as a cheap diagnostic: if a hybrid's embeddings form a clear spiral, expect it to lag Transformers on two-hop lookup, regardless of its n-gram retrieval performance.
- Standalone SSMs are not sufficient for in-context retrieval that requires matching a query to an arbitrary earlier token, even when the state space is scaled up, so pure-SSM systems should be paired with attention when such retrieval matters.
Where Pith is reading between the lines
- If the spiral is truly causal rather than a byproduct of attention scarcity, then an intervention that breaks the locality structure—such as a regularizer that pushes adjacent position embeddings apart—should speed up two-hop retrieval in hybrids; the paper does not run this test.
- The same mechanism likely explains the 'needle in a haystack' brittleness reported for pure Mamba models in other contexts: a locality-preserving state update makes it hard to isolate one specific earlier token, so the spiral may be a general signature of this limitation.
- The findings imply a concrete engineering rule for multimodal grounding models (e.g., vision-language-action systems built on hybrid backbones): they need a minimum density of attention blocks, since two-hop positional lookup is exactly the operation those models perform.
- A scaling prediction follows: increasing SSM state size improves n-gram retrieval but may not help two-hop retrieval, and could even make the spiral more rigid; this is testable by comparing Mamba variants with different state dimensions on position retrieval.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. This paper reports a controlled comparison of Transformers, SSMs (Mamba/Mamba2), and hybrid interleaved/two-stream architectures on two synthetic in-context retrieval tasks: n-gram retrieval (reproduce the k tokens following a query n-gram) and position retrieval (two-hop lookup from a query token to its positional index). The authors evaluate data efficiency, length generalization, robustness to duplicate queries, and learned representations. The main empirical findings are: hybrid interleaved models are the most data-efficient on n-gram retrieval (Finding 1), generalize to 4x training length (Finding 2), and are most robust to duplicate queries (Finding 3); Transformers converge fastest on position retrieval (Finding 4); SSMs and hybrids show a serial-position-like learning trajectory (Finding 5); and SSM-based models learn locality-preserving, spiral-shaped positional embeddings, which the paper claims 'ultimately hinders precise two-hop associative lookup' (Finding 6).
Significance. The empirical results are timely and generally well controlled: models are parameter-matched (~150M), each condition is run with 3 data seeds x 3 learning rates (Section A.2), and the authors are transparent about a known confound in the length-generalization experiments, providing ablations in Figure 12. If the main empirical findings hold, the paper provides actionable guidance for architecture selection: interleaved Mamba/Transformer hybrids dominate pure families on dense in-context retrieval, while Transformers remain preferable for two-hop positional lookup. The representation analysis (Figures 9-11) is interesting and potentially interpretable. However, the causal claim that the locality-preserving spiral itself hinders position retrieval is not supported by the current evidence; this is load-bearing because the paper's mechanistic conclusion rests on it.
major comments (2)
- [Section 4.2.1 / Conclusion (Finding 6)] The central mechanistic claim--that the locality-preserving spiral in SSM position embeddings 'ultimately hinders precise two-hop associative lookup'--is supported only by correlational evidence. Figures 9-11 show the spiral for one model per family, but nothing varies the spiral while holding attention depth fixed. Table 1 shows pure Transformers have 12 attention layers, whereas the HybridI variants have fewer (e.g., 8 in the 1M2/1T model), and Figure 7c shows that increasing Transformer-block frequency monotonically narrows the gap with Transformers. Thus attention density alone could explain the position-retrieval speed difference, with the spiral as a byproduct. To support the causal interpretation, the authors need either a same-attention-depth control (e.g., a hybrid with as many attention layers as the pure Transformer) or an intervention that breaks/injects the spiral structure
- [Section 4.1 / Figure 7c and Table 1] Finding 2 claims hybrid models 'outperform both standalone Transformers... and standalone SSMs' on length generalization, but the paper acknowledges in Section 4.1 that the hybrid models shown in Figure 4 contain the highest number of Transformer layers. Figure 12 provides ablation over hybrid configurations only; it does not include a pure Transformer with a matched number of attention layers. Since Table 1 shows different attention-layer counts across families, the headline comparison could partly reflect model capacity rather than the hybrid architecture per se. The authors should report a pure-Transformer baseline with a number of attention layers matched to the best hybrid to strengthen this claim, or soften the wording to note the confound.
minor comments (4)
- [General (plots)] No error bars or confidence bands are shown for the main data-efficiency and duplicate-query curves, despite the paper reporting 9 runs per model. Adding variance information would help the reader judge the reliability of cross-model differences.
- [Section 4.2 / Finding 4] Finding 4 says standalone SSMs 'are not able to solve the task within the training budget,' but Figure 7a shows Mamba2 reaching non-negligible accuracy near the end of training. Consider wording it as 'do not reach the accuracy threshold within the budget' to avoid overstatement.
- [Appendix B.3, Eq. (1)] The expression l1 = -Σ p(x_i) log p(x_i) denotes negative entropy, which is negative; the subsequent numerical value is consistent with the intended loss formula but the sign convention is confusing. Clarify by writing the loss as -Σ p log p or by defining l1 directly as the cross-entropy term.
- [Section 3.1 / Task provenance] The position-retrieval task is attributed to Pantazopoulos et al. (2024), with overlapping authors. Please state explicitly any modifications from the prior task (sequence length, vocabulary, query sampling), so that the self-sourced benchmark is fully transparent.
Circularity Check
No significant circularity: the paper's load-bearing claims are empirical measurements and new representation analyses, not derivations from fitted parameters or self-citations.
full rationale
The central findings are controlled experimental comparisons across Transformers, SSMs, and hybrid models on two synthetic retrieval tasks. The n-gram task is taken from external work (Jelassi et al., 2024), and the position-retrieval task is sourced from the authors' own prior work (Pantazopoulos et al., 2024), but that citation is used only to define the task, not as evidence for any result; the reported learning curves, data-efficiency measurements, length-generalization results, and representation analyses are new and are not fitted to the conclusions. Finding 6's causal attribution — that locality-aware spiral embeddings hinder two-hop lookup — is supported by correlational evidence (PCA visualizations, cosine-similarity matrices) and by the observed effect of attention-block frequency, but this is an evidentiary/support concern, not circularity: no equation defines the spiral in terms of task performance, and no fitted parameter is renamed as a prediction. The only self-citation is not load-bearing and does not reduce any claim to its own input.
Axiom & Free-Parameter Ledger
free parameters (5)
- Position-retrieval training budget =
20x10^6 examples (312,500 steps)
- SSM state dimension for hybrid models =
S=16 (pure SSMs run at S=16/32/64)
- Data-efficiency accuracy threshold =
95%
- N-gram task shape and length caps =
n=2, k=3; train length <=100; eval <=400
- Duplicate-query schedule =
2-10 duplicates; segments s={2,3,4,10}
axioms (4)
- domain assumption Synthetic in-context retrieval tasks are valid proxies for real-world capabilities (RAG, instruction following, cross-modal grounding)
- domain assumption A parameter-matched (~150-160M params, embedding tables excluded) decoder-only comparison isolates architectural family differences
- domain assumption Position embeddings analyzed for 'a model from each family' (single run) are representative of the family
- domain assumption The position-retrieval benchmark's construct validity is inherited from the authors' own prior work
read the original abstract
Transformers excel at in-context retrieval but suffer from quadratic complexity with sequence length, while State Space Models (SSMs) offer efficient linear-time processing but have limited retrieval capabilities. We investigate whether hybrid architectures combining Transformers and SSMs can achieve the best of both worlds on two synthetic in-context retrieval tasks. The first task, n-gram retrieval, requires the model to reproduce an n-gram that succeeds the query within the input sequence. The second task, position retrieval, presents the model with a query token and requires it to perform a two-hop lookup: first locating the corresponding element in the sequence, and then outputting its positional index. Under controlled conditions, we assess data efficiency, length generalization, robustness to out of domain training examples, and learned representations across Transformers, SSMs, and hybrid architectures. We find that hybrid models outperform SSMs and match or exceed Transformers in terms of data efficiency and extrapolation for tasks that require precise information retrieval from the input context. However, Transformers maintain superiority in position retrieval tasks. Through representation analysis, we discover that SSM-based models develop locality-aware embeddings where tokens representing adjacent positions become neighbors in embedding space, forming interpretable structures. This property is absent in Transformers as causal attention is sufficient for acquiring positional associations, and the introduction of positional encoding amplifies this behavior, leading to improvement in data efficiency. SSMs on the other hand update their internal representations incrementally and without positional encodings, are required to learn these associations. Our findings reveal fundamental differences in how Transformers and SSMs, and hybrid models learn positional associations.
Figures
Forward citations
Cited by 2 Pith papers
-
The Capability Convergence Hypothesis: Capability from Access Structure, Not Scale
Capability, unlike representation, converges to access-complete hybrid architectures, and a witness task separates pure from hybrid families under fixed budgets.
-
The Capability Convergence Hypothesis: Capability from Access Structure, Not Scale
Long-context capability converges to hybrid architectures pairing O(1) state with a scalable index; pure scaling of SSMs or Transformers alone hits information, horizon, or circuit walls.
Reference graph
Works this paper leans on
-
[2014]
Riccardo Grazzi, Julien Siems, Simon Schrodi, Thomas Brox, and Frank Hutter
URLhttps://arxiv.org/abs/1410.5401. Riccardo Grazzi, Julien Siems, Simon Schrodi, Thomas Brox, and Frank Hutter. Is mamba capable of in- context learning?arXiv preprint arXiv:2402.03170, 2024. URLhttps://arxiv.org/abs/2402.03170. Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces.arXiv preprint arXiv:2312.00752, 2023. ...
Pith/arXiv arXiv 2024
-
[2021]
Liliang Ren, Yang Liu, Yadong Lu, yelong shen, Chen Liang, and Weizhu Chen
URLhttps://proceedings.mlr.press/v139/radford21a. Liliang Ren, Yang Liu, Yadong Lu, yelong shen, Chen Liang, and Weizhu Chen. Samba: Simple hybrid state space models for efficient unlimited context language modeling. InThe Thirteenth International Conference on Learning Representations, 2025. URLhttps://openreview.net/forum?id=bIlnpVM4bc. Jianlin Su, Murt...
Pith/arXiv arXiv 2025
-
[2024]
Amirhossein Kazemnejad, Inkit Padhi, Karthikeyan Natesan Ramamurthy, Payel Das, and Siva Reddy
URLhttps://openreview.net/forum?id=duRRoGeoQT. Amirhossein Kazemnejad, Inkit Padhi, Karthikeyan Natesan Ramamurthy, Payel Das, and Siva Reddy. The impact of positional encoding on length generalization in transformers.Advances in Neural Information Processing Systems, 36:24892–24928, 2023. URLscholar.google.com/citations?user=AUFTexwAAAAJ& hl=en. Sahar Ka...
Pith/arXiv arXiv 2023
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.