Qwen4’s 35B is really about 55B

Qwen4’s 35B is really about 55B

Qwen’s new 35B has another 20.5 billion parameters in a lookup table. The table can live in main memory outside the GPU, or even on an SSD. The model fetches a handful of rows at a time and feeds what it finds into attention.

Qwen’s lookup follows the same idea that DeepSeek demonstrated with Engram. Short token sequences tell the model where to find learned information in a separate table.

This is Karpathy’s vision of the cognitive core. It separates arcane knowledge from core reasoning. If we ever want a 2B Opus, this is how it’s done.

A bar split proportionally into a 35-billion-parameter main model and a 20.5-billion-parameter n-gram table. The table sits in host RAM and an arrow carries selected rows to the main model on the GPU.
The bar shows stored weights. Only a few billion of the reasoning backbone’s parameters are active per token. Qwen also lists a separate 2B module for drafting multiple tokens.

A short token sequence becomes a dictionary lookup

Say the model is reading New York City. At City, the last two tokens give it York City, a bigram. The last three give it New York City, a trigram. Both groups end at the current token. Qwen hashes each group eight ways to pick rows from the same table, so one token position reads sixteen rows in all.

Three token tiles read New, York, City. A blue bracket selects York City, a two-token bigram, and a copper bracket selects New York City, a three-token trigram. Each points to eight highlighted rows in the same n-gram table. The selected rows join into one green vector.
The spans are illustrative. The two-token and three-token keys each select eight learned vectors.

The dictionary value is a learned vector. Each row holds 128 numbers, so joining sixteen rows gives the model a 2,048-number vector at that position. The hashes tell Qwen where to read. Training determines what the vectors there encode. That gives the model a learned representation of the short patterns it just encountered.

The vector feeds into attention

Layer 2 uses each of the four tracks from layer 1 to decide how much of the lookup to add to that track.

Each track has its own learned gate. A track working out the place name might take more from the New York City lookup than a track following what came earlier. Attention reads a mix of the four updated tracks.

Each track from layer 1 feeds its gate and continues to the +, where it picks up its share of the lookup. The track labels and line widths are illustrative.

What knowledge stays in the reasoning backbone?

In DeepSeek’s early Engram research, the team muted the lookup after training and ran the same benchmarks again. The paper’s main model was Engram-27B, and it leaves the exact checkpoint for this test unspecified. Engram supplied the biggest boost on factual recall. The reasoning backbone could still make sense of what it was given to read.

How much Engram added to the score
Task Range
Reading comprehension 7–19%
Commonsense reasoning 15–19%
Knowledge-intensive reasoning 22–28%
Code 24–42%
Algorithmic reasoning 33–64%
Factual recall 56–71%

Algorithmic reasoningBBH 33%GSM8K 38%MGSM 56%MATH 64%

Each dot marks a benchmark result within the category. Tied results share a dot. The percentages are shares of the Engram-enabled score, calculated as 100% minus the score retained in DeepSeek’s Figure 6.

Algorithmic reasoning depends on procedural knowledge. To find the slope of a line, a model has to know when to use the slope formula and how to apply it. A study of mathematical reasoning found that examples that demonstrated a procedure helped models apply it to new problems. If the lookup supplies some of that know-how, how much it helps depends on what the problem asks the model to do.

The spread shows up even within grade-school math. Engram accounts for 38% of the score on GSM8K and 56% on MGSM, which translates a subset of GSM8K into ten languages. DeepSeek switched off the whole table at once, so the experiment leaves open which parts of a procedure live in the lookup and which live in the reasoning backbone.

N-grams are easy to scale & optimize

Once the token IDs are known, the runtime knows which rows to fetch. vLLM starts fetching from host RAM while layer 1 runs, so much of the transfer can happen before layer 2 needs it. I’d expect other inference engines to use the same trick as they add support for n-gram memory.

The GPU can start work on layer 1 while the lookup rows are on their way to layer 2.

The same addresses let you batch reads, deduplicate repeats, and keep hot rows close to the GPU. You can grow the table without making each token fetch more rows.

We know how to update dictionaries, too

Train the table on new examples and keep the reasoning backbone fixed. In one study on editing n-gram tables, researchers trained on several ways of saying the same thing and limited changes to rows that many phrases share. Sadly, in a continual learning study on a related model, table-only updates preserved more of its existing math and coding ability and learned less of the new material than LoRA.

A proposed memory update for a change in policy. A new phrasing can read different rows, and unrelated questions can read some of the same ones.

What if updating a model worked more like deploying a database change? When a policy changes, I’d train a small memory patch, test it on questions that weren’t in the training examples, and give the patch its own version so it can be rolled back. Two teams could share one reasoning backbone and run different versions of the table. I want to know whether the thousandth patch would still be easy to ship.

Two ways to shrink the cognitive core

N-grams move some of what the model knows to cheaper storage. Looping lets the reasoning backbone run the same layers more than once. Inkling 2 Mini runs its middle twelve layers three times, getting 48 layer applications per token from 24 stored layers.

N-gram lookup, looping, and a possible combination Three rows align the reasoning backbone in the same column. The first sends selected rows from n-gram knowledge in host RAM or on an SSD into the GPU backbone. The second loops back to the start of the same middle layers for three passes in total. The third combines both paths in a proposed architecture. N-gramknowledge Host RAM or SSD Selected rows Reasoning backbone 3× N-gram lookup Loop the middle layers N-gram lookup + looping (proposed)
A model could fetch knowledge from cheaper storage and reuse its middle layers for three passes. The loop runs through the same layers each time.

Engrams still need a fair test

DeepSeek later shipped a 196B-parameter Engram table in DeepSeek-V4.1-Flash. The switch-off results above come from the earlier research paper.

Qwen stores about twice as many parameters as the 26.4B Inkling 2 Mini, and the advantage varies a lot with the task. In Qwen’s release chart, the models tie at 86.9 on GPQA and finish a point apart on FrontierCode-AA 2.0. Qwen leads 61.8 to 48.2 on DeepSWE v1.1. Inkling also ships expert weights in the mixed 4-bit and 8-bit precision it trained with. To figure out what the dictionary buys, I’d want a controlled comparison that trains the same reasoning backbone with and without it.

Conclusion

What excites me here is that Qwen exposes a new place for a model to keep what it learns. You can choose where that part lives, fetch pieces of it when you need them, and work on updating it separately. The experiment I’m most interested in is how small you can make the reasoning backbone before a larger table stops helping.

I first explored how these pieces fit together in a short video and thread.