TurboMamba: Faster Inference, Faster Training, and Better Prediction with Lexical Memory
Organizations: Department of Neurology, University of Pittsburgh
Abstract
We introduce TurboMamba, a language-model architecture for faster inference, faster training, and better token prediction. A global Mamba-3 model runs once per completed token block. A small Transformer uses this global context and earlier tokens within the block to predict the next token. Three lightweight additions improve local predictions: direct access to the previous block's last token, a small correction to next-token scores, and a learned mixture with recent-token frequencies. We compare twelve small-scale implementations on public FineWeb-Edu, with comparable parameter counts and shared training-budget caps. The baselines include Transformer, Mamba-3, Jamba, and Zamba. The Jamba and Zamba versions use Mamba-3 in place of their original Mamba modules. TurboMamba achieves the lowest mean test prediction loss (negative log-likelihood, NLL) among all twelve models. Its mean NLL is 9.4% lower than that of Mamba-3, 7.3% lower than that of the Jamba version, and 18.3% lower than that of the Zamba version. End-to-end training throughput is 2.60x that of Mamba-3, 2.81x that of the Jamba version, and 4.82x that of the Zamba version. We measure end-to-end batch latency for a batch of 32 sequences, each with a 256-token prompt and 128 generated tokens. On this workload, TurboMamba achieves a 3.12x speedup over Mamba-3, a 3.53x speedup over the Jamba version, and a 6.21x speedup over the Zamba version.
Figures & tables
| Architecture | Global computation | Local prediction | Added detail or routing |
|---|---|---|---|
| TurboMamba | Mamba-3 per fixed block | Small Transformer with global prefix | Boundary connection, residual head, count mixture |
| Jamba | Token-level Mamba and attention | Token-level hybrid layers | Top-2 experts in selected layers |
| Zamba | Token-level Mamba | Repeated shared attention branch | Original-embedding concatenation; shared attention/feedforward |
| BST | Token-level state-space model | Block-local self/cross-attention | State-space context in local attention |
| MBLM | Fixed multiscale hierarchy | Local decoder with global context vectors | Separate stage embeddings |
| H-Net | Learned dynamic chunks | Fine encoder and decoder around main model | Learned boundaries; smoothed chunk expansion |
| Model | Parameters (M) | Test NLL | Training-step throughput | End-to-end training throughput |
|---|---|---|---|---|
| Transformer | 3.000 | |||
| Mamba-3 SISO | 3.001 | |||
| BT | 3.000 | |||
| BST (S4D) | 3.000 | |||
| Cache Transformer | 3.000 | |||
| Pointer Sentinel | 3.016 |
| Model | |||||
|---|---|---|---|---|---|
| Transformer | |||||
| Mamba-3 SISO | |||||
| BT | |||||
| BST (S4D) | |||||
| Cache Transformer | |||||
| Pointer Sentinel |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | DEV pilots (s) | Formal training (s) | Total (s) |
|---|---|---|---|
| Transformer | |||
| Mamba-3 SISO | |||
| BT | |||
| BST (S4D) | |||
| Cache Transformer | |||
| Pointer Sentinel |
| Model | |||||
|---|---|---|---|---|---|
| Transformer | |||||
| Mamba-3 SISO | |||||
| BT | |||||
| BST (S4D) | |||||
| Cache Transformer | |||||
| Pointer Sentinel |
| Comparator | Mean difference | 95% interval |
|---|---|---|
| Transformer | ||
| Mamba-3 SISO | ||
| BT | ||
| BST (S4D) | ||
| Cache Transformer | ||
| Pointer Sentinel |
| Model | GPT-2 NLL/token | GPT-2 NLL/byte | Word 4-gram repeat (%) |
|---|---|---|---|
| Transformer | |||
| Mamba-3 SISO | |||
| BT | |||
| BST (S4D) | |||
| Cache Transformer | |||
| Pointer Sentinel |