The paper

Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search

Yuxian Gu, Qinghao Hu, Shang Yang, Haocheng Xi, Junyu Chen, Song Han, Han Cai · NVIDIA

arXiv:2508.15884 · github.com/NVlabs/Jet-Nemotron

Paper-explained series · 1

Key takeaways

  • Jet-Nemotron keeps attention only where it matters: PostNAS starts from a pre-trained full-attention model, freezes its MLPs and searches where full attention is still needed.
  • Only a few layers matter per task — about two for MMLU, two to three for retrieval — and they are different layers. Jet-Nemotron-2B keeps full attention in just 2 layers and sliding-window attention in 2 more.
  • Everything else is a JetBlock: Gated DeltaNet plus a causal convolution on V whose kernels are generated from the input.
  • Decoding is memory-bandwidth-bound, so KV-cache size — not parameter count — sets generation throughput.
  • Against Qwen3-1.7B-Base, Jet-Nemotron-2B decodes up to 53.6× faster and prefills 6.1× faster at 256K context, with higher MMLU-Pro (39.0 vs 37.8).

Modern language models face a fundamental trade-off: accuracy versus efficiency. Full-attention Transformers deliver strong accuracy but scale quadratically with context length \(O(n^2)\), making long-context inference expensive. Linear-attention models reduce complexity to \(O(n)\) but often sacrifice reasoning ability and precision.

In Jet-Nemotron, NVIDIA introduces a new family of hybrid-architecture language models that match or exceed full-attention model accuracy while delivering dramatic throughput gains — without relying on MoE tricks.

This article explains how.

What Is Jet-Nemotron?

Jet-Nemotron is a family of models discovered using Post Neural Architecture Search (PostNAS) — a novel pipeline that redesigns attention architectures after pretraining.

The flagship Jet-Nemotron-2B model:

This is achieved without abandoning attention entirely, but by using it only where it truly matters.

Animated figure — needs JavaScript. It charts the reported generation-throughput gains.

An interactive accuracy-versus-throughput chart built from the paper’s Table 3 is in the hardware-aware section below; the per-domain radar chart is in the original article on Towards AI.

The Core Idea: Hybrid Attention Architecture

Jet-Nemotron does not replace attention wholesale. Instead, it mixes multiple attention mechanisms — each used where it performs best.

Layer Composition:

This hybrid design is the foundation — but the real breakthrough comes from how these layers are selected.

So how did Nvidia achieve this speed-up while maintaining the same level of accuracy??? Let’s explore.

Nvidia followed 4 key techniques;

PostNAS: Finding Where Attention Actually Matters

As we all know the major bottleneck with current transformers is that they use full-attention mechanism which is powerful but remains \(O(n^2)\). To improve this much research was done towards linear attention methods like mamba which does the job in \(O(n)\) but is less accurate.

The Solution: PostNAS figures out exactly where full attention is actually needed. It trains a “super network” to test which layers matter most for specific tasks.

But How??? The overall approach is illustrated in Figure.

Pre-trained model Once-for-all super-network Jet-Nemotron layers augment each layer with alternative linear-attention paths random sampling + feature distillation; beam search selection full attention linear attention MLP weights (frozen)
The PostNAS approach: starting from a pre-trained full-attention model with frozen MLP weights, every attention layer is augmented with an alternative linear-attention path; random subnetworks are trained with feature distillation loss, and beam search selects where full attention is kept (e.g., only two full-attention layers allowed).

How PostNAS Works:

  1. Once-for-All Super-Network
    Each original attention layer is augmented with alternative linear-attention paths
  2. Random Subnetwork Sampling
    During training, we randomly sample an active path at each step, forming a subnetwork, which is trained using feature distillation loss.
  3. Beam Search Selection
    Optimal layer configurations are chosen under constraints (e.g., only two full-attention layers allowed)

The search objective is task-dependent: for MMLU, we select the configuration with the lowest loss on the correct answer (i.e., maximizing \(-\mathrm{loss}\)), while for mathematical and retrieval tasks, we choose the one with the highest accuracy.

Key Finding 1: In the pre-trained full-attention model, not all attention layers contribute equally. For MMLU, only two layers exhibit critical importance, while for retrieval tasks, just two to three layers are particularly crucial.

Key Finding 2: Different attention layers contribute to different capabilities. Layers that are critical for MMLU accuracy are not necessarily important for retrieval tasks.

Key Finding 3: The pattern of attention importance becomes more intricate for complex tasks like mathematical reasoning — but the combined set of top layers for MMLU and retrieval already covers most of the layers math needs.

Reading the layer-importance heatmap. In the paper’s Figure 5(a) (on Qwen2.5-1.5B), each cell scores a subnetwork in which only that one layer keeps full attention and every other layer is linear — negative loss for MMLU, accuracy for math and retrieval, so higher means more important. The paper publishes these scores only as a figure, not as numbers, so it is not re-plotted here; see Fig. 5 of arXiv:2508.15884. For Jet-Nemotron-2B the search kept full attention in layers 15 and 20 (retrieval) and sliding-window attention in layers 21 and 22 (multiple-choice tasks such as MMLU).

Note: Instead of starting from scratch, PostNAS begins with a pre-trained full-attention model (like Qwen2.5). It freezes the heavy Multi-Layer Perceptron (MLP) weights of the original model to save training costs. Then, it focuses purely on redesigning and optimizing the attention blocks.

Linear Attention Block Selection

Once the replaceable layers are identified, the next question is:
Replace them with what? In their experiments, they evaluate six SOTA linear attention blocks, including RWKV7, RetNet, Mamba2, GLA, Deltanet, and Gated DeltaNet.

Gated DeltaNet achieves the best overall accuracy among the evaluated linear attention blocks. This is attributed to the combination of two factors: a) the Data-Dependent Gating Mechanism, which dynamically controls whether the model should focus more on the current token or the history state.
b) the Delta Rule, which updates the history state with the information increment from the current token, to save the limited state memory. Therefore, we proceed with Gated DeltaNet in our experiments.

Go deeper: Gated DeltaNet gets its own deep-dive in Gated Attention & DeltaNets: The Missing Link for Long-Context AI.

JetBlock: Dynamic Convolution for Linear Attention

After selecting Gated DeltaNet as their base, the researchers found that it was not sufficiently expressive on its own. While linear attention offers strong efficiency, it can sometimes be too simple, as it processes sequences strictly in order and struggles to capture richer local patterns.

To address this limitation, they introduced convolution into the attention block. Convolution allows the model to look at small groups of neighboring tokens simultaneously — capturing phrase-level information rather than processing tokens in isolation. Prior work has shown that convolution is essential for achieving strong accuracy in many linear attention architectures. However, most existing approaches rely on static convolution kernels, which apply the same fixed filters to every input sequence and cannot adapt their feature extraction behavior based on context.

The key innovation of JetBlock is the introduction of dynamic convolution. Instead of using fixed kernels, JetBlock employs a kernel generator module that dynamically produces convolution kernels conditioned on the input itself.

Kernel Generator:

This allows context-adaptive local feature extraction, unlike fixed filters.

Importantly, the dynamically generated convolution is applied only to the Value (V) tokens. Through empirical analysis, the researchers found that extending this complex filtering to the Query (Q) and Key (K) components provided little performance benefit while significantly increasing computational cost. By omitting convolution over Q and K, JetBlock achieves a favorable trade-off: increased expressive power without sacrificing efficiency.

Interactive figure — needs JavaScript. It applies a static and an input-generated 4-tap causal convolution to the V vectors of a sentence.

Question 1: Why did researchers not see performance benefit while applying dynamic convolution to Query and Key vectors?

Key Finding 4: KV cache size is the most critical factor influencing long-context and long-generation throughput. When the KV cache size is constant, models with different parameter counts exhibit similar generation throughput

This is because the decoding stage is typically memory-bandwidth-bound rather than compute-bound.

The Myth: “Fewer parameters = Faster model.”

The Reality: The authors found that KV Cache Size (the memory used to store context) is actually the biggest bottleneck for speed, not just the parameter count.

The Fix:

Result: A model that is “larger” on paper but runs faster on actual GPU hardware.

Interactive chart — needs JavaScript. At 64K context on one H100 (paper, Table 3), Jet-Nemotron-2B has a 154 MB cache and decodes 2,885 tok/s; Qwen3-1.7B-Base has a 7,168 MB cache and decodes 61 tok/s.

Question 2: We said that they increased the model parameters, so can you tell if they scaled vertically (Adding Depth) or horizontally (Adding Width)?

Sliding Window Attention (SWA)

Certain tasks need local scratchpads, not global memory.

How SWA Works

Why It Helps

In Jet-Nemotron-2B, SWA is applied selectively (e.g., layers 21–22).

Conclusion

Jet-Nemotron demonstrates that:

By combining PostNAS, JetBlock, and hardware-aware search, NVIDIA achieves what previously seemed contradictory.

Until next time folks…
El Psy Congroo

Okabe Rintarou answering his phone — El Psy Congroo

References