Standard Transformer models face a significant "attention tax" during inference. As sequence lengths grow, the memory required for the Key-Value (KV) cache and the computation time increase linearly. This bottleneck is particularly acute for "inference-time scaling" applications, such as complex reasoning tasks that generate extensive internal "thought" tokens. NVIDIA’s Nemotron-H family addresses this by combining the global dependency-tracking of Transformers with the constant-time efficiency of State Space Models (SSMs).
Hybrid Architecture
The core innovation of Nemotron-H is its hybrid design, which replaces the majority of standard self-attention layers with Mamba-2 layers. In the 56B model, only approximately 8% of the layers utilize standard attention, while the remaining 92% consist of Mamba-2 and Feed-Forward Network (FFN) blocks.
Hybrid architecture of Nemotron-H models, showing the distribution of Mamba-2 and Attention layers.
This "less is more" approach allows the model to maintain high accuracy while significantly reducing the computational overhead of the KV cache. By dispersing a few attention layers throughout the model, Nemotron-H retains the ability to handle complex global dependencies without the full memory cost of a pure Transformer.
Training and Optimization
To optimize training, NVIDIA utilized a stable FP8 (8-bit floating point) recipe. While FP8 training loss was slightly higher than BF16, downstream task accuracy for the 56B model was improved. Furthermore, the MiniPuzzle framework was introduced for model compression. By using MSE-based importance scoring to prune redundant layers and neurons, followed by logit-based distillation, the Nemotron-H-47B model was derived from the 56B version. This process required only 63 billion tokens to recover accuracy, representing a 300x reduction in data compared to training from scratch. Notably, the 47B model was designed to fit into the 32GiB memory of a single NVIDIA RTX 5090 in FP4 precision.
Data Strategy
The models were pre-trained on a massive 20-trillion-token corpus. This includes Nemotron-CC, a curated 6.3T token dataset from English Common Crawl, and 1.8T tokens of high-quality synthetic data generated via rephrasing and diverse QA pairs. Specialized datasets for mathematics (OpenWebMath) and coding were also integrated to bolster reasoning capabilities.
Performance and Results
Nemotron-H-56B demonstrates a substantial leap in inference efficiency. At a 64k context length, it achieves 2.4x to 3x higher throughput compared to Llama-3.1-70B and Qwen-2.5-72B.
Throughput vs. MMLU-Pro accuracy comparison showing Nemotron-H's efficiency advantage over Llama and Qwen models.
Beyond speed, the model outperformed Llama-3.1-70B on 16 out of 17 evaluated tasks, showing particular strength in math and coding benchmarks. The distilled 47B model maintains this accuracy while offering an additional 20% speed increase over the 56B variant. In long-context evaluations, the models achieved an 83% score on the RULER benchmark at 128k sequence length, proving the effectiveness of the hybrid approach.
Conclusion
Nemotron-H proves that a sparse application of attention layers is sufficient for "Transformer-class" performance. By leveraging Mamba-2 for the bulk of sequence processing, NVIDIA has created a model family that is uniquely suited for the next generation of long-context, reasoning-heavy AI applications, delivering high accuracy with significantly lower hardware requirements.
@misc{blakeman2025nemotron,
author = {Aaron Blakeman and Aarti Basant and Abhinav Khattar and Adithya Renduchintala and Akhiad Bercovich and Aleksander Ficek and Alexis Bjorlin and Ali Taghibakhshi and Amala Sanjay Deshmukh and Ameya Sunil Mahabaleshwarkar and Andrew Tao and Anna Shors and Ashwath Aithal and Ashwin Poojary and Ayush Dattagupta and Balaram Buddharaju and Bobby Chen and Boris Ginsburg and Boxin Wang and Brandon Norick and Brian Butterfield and Bryan Catanzaro and Carlo del Mundo and Chengyu Dong and Christine Harvey and Christopher Parisien and Dan Su and Daniel Korzekwa and Danny Yin and Daria Gitman and David Mosallanezhad and Deepak Narayanan and Denys Fridman and Dima Rekesh and Ding Ma and Dmytro Pykhtar and Dong Ahn and Duncan Riach and Dusan Stosic and Eileen Long and Elad Segal and Ellie Evans and Eric Chung and Erick Galinkin and Evelina Bakhturina and Ewa Dobrowolska and Fei Jia and Fuxiao Liu and Gargi Prasad and Gerald Shen and Guilin Liu and Guo Chen and Haifeng Qian and Helen Ngo and Hongbin Liu and Hui Li and Igor Gitman and Ilia Karmanov and Ivan Moshkov and Izik Golan and Jan Kautz and Jane Polak Scowcroft and Jared Casper and Jarno Seppänen and Jason Lu and Jason Sewall and Jiaqi Zeng and Jiaxuan You and Jimmy Zhang and Jing Zhang and Jining Huang and Jinze Xue and Jocelyn Huang and Joey Conway and John Kamalu and Jon Barker and Jonathan M. Cohen and Joseph Jennings and Jupinder Parmar and Karan Sapra and Kari Briski and Kateryna Chumachenko and Katherine Luna and Keshav Santhanam and Kezhi Kong and Kirthi Sivamani and Krzysztof Pawelec and Kumar Anik and Kunlun Li and Lawrence McAfee and Leon Derczynski and Lindsey Pavao and Luis Vega and Lukas Voegtle and Maciej Bala and Maer Rodrigues de Melo and Makesh Narsimhan Sreedhar and Marcin Chochowski and Markus Kliegl},
title = {{Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Models}},
year = {2025},
eprint = {2504.03624},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2504.03624},
}