← All postsWhat Is DeepSeek Engram?

What Is DeepSeek Engram?

Carlos GarciaCarlos GarciaPublished

What Is DeepSeek Engram?

Engram is a memory module that DeepSeek bolts onto a language model so the model stops wasting its own layers on remembering things. Instead of making the network reconstruct, from scratch and on every pass, that "Marie" and "Curie" belong together, Engram looks the fact up in a table and hands it over.

The research paper describing it, "Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models," comes from DeepSeek-AI with collaborators at Peking University.

It is a genuine architecture paper rather than a product launch, which is worth knowing up front: Engram is a component inside models, not a feature you switch on.

What Is the Short Answer?

Engram is a lookup table of learned embeddings, indexed by hashes of short token sequences, that gets added into the model's residual stream at a couple of early layers. It gives the transformer a native way to retrieve static knowledge, which frees its attention and feed-forward layers to do the work they are actually good at.

The claimed payoff is twofold. At the same parameter count and the same compute, a model with Engram scores several points higher across reasoning and knowledge benchmarks than one without.

And because the table is only read, not computed over, most of it can be pushed off the GPU into ordinary system memory at almost no cost in speed.

Not sure which of your pages are actually bringing people in? Start with a free SEO audit and get a clear picture.

Free audit

Where do you stand in AI search?

A manual SEO + AI search audit of your site: how ChatGPT, Gemini, Perplexity and Claude read and cite it today, and what to fix first. Report within 48 hours, no credit card.

Get my free audit

Or have it all done: AI SEO services, $999 once

What Problem Is It Solving?

A transformer has no retrieval primitive. It has attention, which compares things, and feed-forward layers, which transform them.

When a model needs to recall that a particular pair of tokens names a particular person, it has to simulate retrieval using those two tools — typically by spending several early layers assembling the multi-token entity before anything else can happen.

The paper's argument is that this is an expensive way to do something simple. Those early layers are general-purpose compute being used as a lookup mechanism, and the depth they consume is depth that could have gone to reasoning.

The Second Axis of Sparsity

The subtitle is the clearest statement of the idea. Mixture-of-experts models are sparse along one axis: for any given token, only a fraction of the parameters are activated, and which fraction depends on a learned router.

That buys capacity without buying proportional compute, and it is the trick behind most of the large open-weight models now in circulation.

Engram adds a second axis. Its parameters are sparse not because a router selects them but because an index does.

A hash of the current token sequence points at a handful of rows, those rows are read, and the rest of the table is untouched. There is no routing decision, no load balancing and no gradient flowing through a selection mechanism — just an address.

Why a Lookup Is Cheaper Than a Computation

The economics follow from that. An expert in a mixture-of-experts layer has to be resident where the matrix multiplications happen, which means high-bandwidth memory attached to the accelerator.

A lookup table does not. The operation is a read, the addresses are known in advance, and anything you can predict you can prefetch.

This is why the paper spends as much time on systems as on benchmarks. Decoupling where knowledge is stored from where computation happens loosens the constraint that has shaped large-model design for years — that useful parameters must sit in scarce, expensive GPU memory.

How Does It Actually Work?

The mechanism has two phases, and both matter for understanding what Engram can and cannot do.

Phase one, sparse retrieval. Token IDs are first mapped to canonical IDs through a normalisation step, which collapses case and Unicode variants and shrinks the effective vocabulary by around 23 per cent on a 128k tokenizer.

Then, for each N-gram order the model uses, several hash heads index prime-sized embedding tables via a lightweight multiplicative-XOR hash, and the retrieved vectors are concatenated.

Phase two, gated fusion. The retrieved memory is not simply added in. The model's current hidden state acts as a query against the retrieved vectors, and a sigmoid gate computed from the normalised query and key decides how much of the memory to let through. A short causal convolution is applied, and the result joins the residual stream.

That gate is the part that makes the thing safe. Hashed N-gram lookup is context-blind by construction — the same token pair returns the same rows regardless of what is going on around it.

The gate is what lets the model suppress a retrieved association that the surrounding context contradicts, which is the difference between a useful memory and a stubborn one.

Where It Sits in the Network

Engram is additive, not a replacement. Attention stays, the mixture-of-experts layers stay, and the input embedding and output unembedding are unchanged.

The module is inserted at a small number of selected layers — in the paper's 27-billion-parameter configuration, at layers 2 and 15 — and the ablations find the earliest insertion point the most valuable single one.

What it does trade against is expert capacity. In the paper's matched comparison, routed experts drop from 72 to 55 and the freed parameters go into a 5.7-billion-parameter Engram table. So this is a reallocation of a fixed budget rather than a free addition, which is what makes the comparison meaningful.

Want to know how your site stacks up against the competition? Get a free SEO audit and see where you stand.

What Do the Results Show?

The headline comparison holds total parameters and compute constant: a 27-billion-parameter mixture-of-experts baseline against an Engram model of the same size, both trained on 262 billion tokens with 3.8 billion parameters activated.

Engram wins across the board, by margins between roughly one and five points:

  • BBH, a reasoning benchmark, rises by 5.0 points
  • CMMLU gains 4.0 and ARC-Challenge 3.7
  • DROP, which tests reading comprehension with arithmetic, gains 3.3
  • MMLU gains 3.0, HumanEval 3.0, MATH 2.4, GSM8K 2.2

The long-context results are the more striking ones. On a multi-query needle-in-a-haystack test the baseline reaches 84.2 while Engram reaches 97.0, and variable tracking goes from 77.0 to 87.2.

Both of those are measured at the point where the two models have equal training loss, so the gain is not simply the product of more training. The paper also reports Engram matching the baseline's long-context perplexity using roughly 82 per cent of the pre-training compute.

The Systems Result

Offloading a 100-billion-parameter table from GPU memory to host memory cost at most 2.8 per cent of throughput in the paper's tests. That number is the practical case for the whole approach: it says you can hold an enormous amount of learned knowledge in cheap memory and pay almost nothing for the privilege.

The caveat is that this test used dense backbones without locality caching, so it is a floor rather than a measured best case. The paper sketches a multi-level cache across GPU memory, host memory and SSD, exploiting the fact that N-gram frequencies follow a power law, but does not benchmark it.

When Does This Matter to You?

If you use DeepSeek's models through a chat interface or an API, Engram is not something you will ever see or set. It is an internal architectural choice, and the only way it reaches you is as better answers for the same money.

It matters if you are reasoning about where open-weight models are heading. The interesting claim here is not the benchmark delta, which is respectable but not revolutionary.

It is that knowledge storage and computation can be separated, because that changes what the memory on an accelerator is for. If most of a model's factual knowledge can live in system RAM, the amount of high-bandwidth memory you need stops scaling with how much the model knows.

It also matters if you are evaluating long-context claims. The needle-in-a-haystack improvements are large, and the paper's explanation is coherent: handing short-range associations to a lookup frees attention to track things across the whole window rather than spending itself on local reconstruction.

Curious what a professional SEO audit would turn up on your site? Request your free audit and find out.

What Are the Limitations Worth Knowing?

It is a research paper, not a product. Nothing about Engram is user-facing, and the secondary coverage tying it to specific shipping model versions runs well ahead of what DeepSeek itself has confirmed. Treat claims about which released model contains it as unverified unless they come from DeepSeek's own model cards.

Bigger was not reliably better. The paper's 40-billion-parameter Engram configuration does not beat the 27-billion one on every task. The authors attribute this to under-training rather than a ceiling, which is plausible and also exactly what you would say either way.

Knowledge and comprehension come apart. When Engram is suppressed after training, factual recall collapses — TriviaQA retains only 29 per cent of its performance — while reading comprehension largely survives.

That tells you the module really is carrying the facts. It also means the model's knowledge is concentrated in a component that behaves differently from the rest of the network, and the authors note this test introduces a training-inference mismatch, so read it as indicative rather than exact.

Placement is a real trade-off. Insert the module early and it offloads more work, but it gates on weaker context because less has been computed. Insert it late and the gate is better informed but there is less left to save.

The training budgets are modest. The main results use 262 billion tokens, which is small by frontier standards, and the authors note the memory tables may not have saturated. How the gains hold at ten times the data is an open question.

Hashing means collisions. Prime-sized tables and multiple hash heads reduce the damage, but distinct N-grams will sometimes land on the same row. The gating mechanism is what keeps that from becoming a visible failure, which puts a lot of weight on one component.

How Does It Compare to the Alternatives?

Versus retrieval-augmented generation. Both fetch information rather than storing it in weights, but they operate at different levels. Retrieval-augmented generation pulls documents at inference time and puts text into the prompt; Engram retrieves learned vectors during the forward pass and never touches text.

The consequence is that Engram cannot be updated by editing a database, and retrieval-augmented generation cannot give attention its layers back. They are not substitutes.

Versus mixture-of-experts. Experts are chosen by a learned router and do computation; Engram rows are chosen by a hash and do none. Experts must be resident in fast memory, Engram rows need not be. The paper treats them as complementary and spends expert budget to buy table.

Versus simply training a larger model. Scaling up buys capability across the board and costs compute proportionally. Engram's pitch is that some of that capability was being bought inefficiently, and that a cheap mechanism can deliver the knowledge part at a fraction of the cost. The iso-parameter, iso-compute framing of the experiments is what makes that argument testable rather than rhetorical.

Final Thoughts

Engram is best read as an argument about what transformer layers are for. The claim is that a meaningful share of a model's depth has always been spent simulating a lookup that could be done directly, and that giving the architecture a real retrieval primitive hands that depth back to reasoning.

The evidence for it is a matched comparison at a modest scale, plus a systems result suggesting the memory can live almost anywhere. Both are encouraging and neither is conclusive.

If the approach survives at frontier scale, the consequence is a loosening of the tie between how much a model knows and how much expensive memory it needs — which would matter considerably more than three points on MMLU.

For context on how DeepSeek's models are actually put to work once they ship, our write-up on the DeepSeek harness covers the practical side.

Ready to find out what your whole digital setup looks like from the outside? Start with a free SEO audit and get a clear picture.

Want this done for you?

SEO Stuff gets businesses cited by ChatGPT, Gemini, Perplexity and Claude, and ranking in Google. Start with the free audit, a call, or the package.

See where you stand

A free, manual SEO + AI search audit of your site, with a report within 48 hours. No credit card, no sales call.

Get my free audit

Talk it through

A free 15-minute call with the founder about whether AI search is a meaningful opportunity for your business.

Free strategy call

Have it done

The Done-For-You Package: audit, 10 pages of content, 3 DR50+ placements, dashboard. $999 once, delivered in 21 business days.

See the package