Hybrid Attention and State Space Models › What the Evidence Actually Says
Language AI HandbookAll chapters The studies below address different questions. Their strongest comparisons match the training and evaluation setup within an experiment. The scope of a measurement stays with the models and budget used to produce it.
The original Jamba architecture. The released v0.1 model uses four groups of eight sequence-mixing layers, with one attention layer and seven Mamba layers in each group. Its expert feed-forward networks occur every second layer, at zero-based indices 1, 3, and so on. Attention appears at indices 4, 12, 20, and 28, so each attention layer has a dense feed-forward network. Each mixture routes a token to two of 16 experts. The authors report 52 billion total parameters, 12 billion active parameters, and a supported context of 256K tokens. Retrieval quality still needs to be evaluated across lengths and tasks.
Lieber et al., Jamba, Sections 2 and 3.1
Two experiments on layer ratios. The original report and Appendix C.1 of the 2025 Jamba-1.5 paper present the same core comparisons. The smaller experiment trained 1.3B-parameter models for 250B tokens. It compared two attention-to-Mamba ratios, 1:3 and 1:7, alongside pure-attention and pure-Mamba baselines. The hybrids had no mixture of experts. They reached the same reported OpenLLM aggregate score of 37.2, while their individual benchmark scores varied. The authors chose 1:7 because the lower attention count reduced compute and retained similar reported performance. The 7B-parameter experiment trained for 50B tokens and compared the chosen 1:7 hybrid with both pure baselines. It found a lower training loss for the hybrid. That experiment tested one hybrid ratio. The optimum could move with dataset, scale, token budget, or workload.
Lieber et al., Jamba, Section 6.1, Tables 4–5 and Lenz et al., Jamba-1.5, Appendix C.1, Tables 7–8
The empirical study by Waleffe et al. The authors explored layer fractions at 130M parameters and checked the attention-fraction trend at 840M before training their 8B-class models. One 8B-class hybrid has 4 attention, 24 Mamba-2, and 28 MLP layers. Because their layer count includes MLP layers, attention accounts for of all layers and of sequence-mixing layers. A comparison with Jamba's ratio should use the second denominator.
After training the compared models for 3.5 trillion tokens, Table 7 reports mean scores of 55.82 for Mamba-2-Hybrid and 53.17 for the Transformer, a difference of 2.65 points. The means use 13 score columns from 12 benchmarks because MMLU has separate zero-shot and five-shot columns. Pure Mamba-2 scored higher than the hybrid on some individual benchmarks. Figure 5 estimates the speedup for generating one token at batch size 32. Measure end-to-end throughput on the target runtime before extrapolating that estimate.
To isolate placement, compare two hybrids with the same mixer counts but move where their attention layers occur. To isolate the count, vary the ratio and hold the feed-forward design fixed, then document any changes to width or heads used to keep parameter counts comparable. For serving measurements, report the prefill and decode phases separately, along with batch size, context length, output length, precision, hardware, and attention kernel.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!