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 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.
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.
What the gate reads Learned gate Lookup added Contribution to attention
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.
| 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%
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.
~41 GB table at 16-bit precision
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.
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.
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.