Modern LLMs: What the FLIP is an Engram!?

Community Article
Published August 26, 2026

Modern LLMs are built out of two primary components. Some kind of perceptron, like a MoE or a dense layer, and attention. Attention mixes in sequence information, and perceptrons do everything else. As you can probably imagine, that means perceptrons have to learn a lot of things and many of those things are quite hard. Engrams pick up the slack on some of these things, allowing the perceptrons to devote more of their parameters to the abstract witchcraft letting them capture lingustic concepts. Engrams get billed as memory but I think that's too mysterious. It's a specific kind of memory they're actually able to capture.

Lets first detour into why anyone would call an engram memory. Engrams are embeddings, literally. So, lets talk about the simpler thing, embeddings. Are embeddings memory? Sort of. If we have a token 'Dog' the embedding that token id gives represents a dog ~ you might say it's the memory of a dog. Or the concept of a dog. It's kind of abstract, and this is what we're talking about, so if I throw the word memory around, it's important to realize we're really talking about frozen learned concepts and not fungible, articulate memory. Conditional Memory is what Deep Seek calls this, it's a good enough name, probably.

Okay, I'll repeat it again, Engrams are embeddings. With extra steps. Lets consider the path a single word takes to get into the latent space of a normal language model. First, we tokenize it. Lets say the word is "Demonize". My specific tokenizer produces the tokens: "De", "mon", "ize". Each of these tokens has it's own embedding which means the concept of demonize is spread across three different unrelated token embedings. Visually:

image

The important bit here is that these three tokens are different. They're also unrelated. Now, maybe you're wondering 'How do models actually associate these three tokens with the concept of Demonize?' Great question, and the answer is that attention mixes in the sequence information and the perceptron has to just figure it out. Yes, the perceptron literally has to somehow learn the association of this conditional local sequence. That's pretty hard if we extend out that it has to learn this over all local sequences and also it's concerned with everything else, that's a lot of stuff. Engrams, primarily, alleviate the local sequence information issue and they do that by adding more embeddings. Instead of embedding one token id, we instead embed a hashed-sequence of some number of tokens. So, if we want a bigram, two tokens, we'd hash "De", "mon". Trigram, we'd hash "De", "mon", "ize".

image

This is essentially all engrams do, and we do this for every position in the context ~ so if we have the sequence "The cat ran fast" we could imagine the first trigram might be "The cat ran" and the second would be "cat ran fast".

image

In basic terms engrams are literally this simple, it's just like our embedding table, but bigger. However, there's some caveats. Typical embedding tables are equal to the vocabulary size. That is, if my tokenizer has 8,000 token vocab, then my normal embedding table is 8k rows. However, if we're doing bigrams for our engram table, you can see we have two tokens, each drawn from 8k. So we have 8k^2 possible rows, otherwise known as 64 million rows needed for every possible bigram. And that's a tiny vocabulary many modern models have 100k+ sized vocabs. And that's just bigrams! What about trigrams? Or quadgrams, or anything else? How could we possibly support that many rows? And the answer is, you can't really. So, we pick an arbitrary size for the table and accept that the hashes will collide. There's some other strategies typically employed as well, such as using more than one table and using a different hash per table. This means though each table is effectively guaranteed to collide, the aggregate information has high likelihood of being unique. Additionally, modern engram methods proposed by e.g. deep seek or meituan advise using a hierarchy of bigram + trigrams. Or even larger, but recognizing that as you add more combinations, the odds of seeing that sequence rapidly decline under normal language conditions (zipf distributed.)

Because rare sequences are rare (duh) this can become learning-starvation for some concepts of the embedding table, if you only see one or no examples of a sequence, it simply cannot be learned by the model, so if it's encountered in real language the model will likely become confused-by the engram. Remember, the concepts will collide so it's very likely something will fill the row, but maybe not the thing you're currently looking at. To deal with this, the engram typically has a confidence-gate which is intended to deal with situations where the model doesn't think this specific row is useful. Lets make this concept of gating concrete, say we have a trigram and the specific one we encountered is "Doomed Buffalo Explosion." Encountering this specific sequence in text is almost zero, even as a trigram. This means we'd expect, if we ever have this information appear in context, that the engram would give us a very low context-confidence and gate itself out. Conversly, something very common like "She looked at" would likely have extreme representation, and probably dominate it's own row.

image

In this way, engrams end up acting as a memory for typical sequences and concepts and the model will still have to rely on attention and perceptrons for rarer, unusual, or out of distribution things. Engrams are embeddings. Just instead of one token, they embed a hashed group of multiple tokens.

There's more to the story on a technical level, of course, but the main concept is actually very simple as you see. I'd recommend these excellent papers for more on the subject:

Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models Scaling Embeddings Outperforms Scaling Experts in Language Models

Community

While this article provides some neat visuals, it unfortunately wraps a highly flawed and inefficient architecture in a shiny paper of a "breakthrough". Let’s look past the textbook theory and address why this engram implementation is a structural dead-end in real-world deployments:The Out-of-Distribution Brain-Freeze:The author notes that because of Zipf’s law and mathematical impossibility of mapping (Vocab^{N}) permutations, these tables rely heavily on confidence gating. But here is the architectural catch: when a model is trained to rely on an engram table for its semantic foundations, its core attention and perceptron layers are essentially "spoiled" by the crutch.
The moment the model encounters highly abstract, non-linear, or completely out-of-distribution reasoning (deeply nested code, intricate logical paradoxes, custom corporate APIs), the confidence gate shuts down. The model is suddenly forced to think for itself, but its underlying token representations have been hollowed out. It doesn't just "get confused"—it undergoes a catastrophic collapse in reasoning capability because it was optimized to read answers from a static cheat-sheet rather than synthetically computing relationships on the fly.The Memory Tax and the PCIe Bottleneck:The marketing pitches for these models claim they are "cheap because they only activate a few billion parameters."
This is a massive illusion. Storing tens of millions of bi-gram and tri-gram hashes requires a massive memory footprint (often 30GB to 50GB of static weight tables). In a local consumer deployment, you cannot fit this dead weight into VRAM alongside a decent context window. The only solution is offloading these tables to system RAM or NVMe SSDs.
Even with asynchronous pre-fetching, you are forcing the execution pipeline to perform constant, random, non-contiguous memory lookups over a slow PCIe bus. The computational efficiency gained by skipping attention layers is completely eaten alive by hardware latency and cache misses. You aren't saving resources; you are just moving the bottleneck from the GPU cores to the system's memory channels.The Utility Cap: Optimized for French Fries, Blind to Chaos:Ultimately, engrams are only efficient if your target deployment is a low-cost, cloud-hosted customer service bot designed to spit out highly predictable text, standard corporate policies, or recipes for french fries. In those narrow boundaries, matching pre-hashed chunks works wonders.
But for heavy, creative, open-ended inference, or multi-layered logic where meaning is non-local and distributed across thousands of tokens, this approach is a dead-end. You cannot build genuine cognitive capability by expanding the dictionary.
A model that relies on a 50GB index of pre-baked phrases will always be structurally inferior to a clean, dense transformer that computes full-context attention matrices natively.Thanks to the author for writing this "fanfiction" without actually digging into how this mess breaks under hardware constraints and shifts in data distribution, all while proudly displaying a PRO badge on the profile. We must be careful not to mistake a highly bloated lookup table for a genuine evolutionary step in architecture.

·

"The moment the model encounters highly abstract, non-linear, or completely out-of-distribution reasoning (deeply nested code, intricate logical paradoxes, custom corporate APIs), the confidence gate shuts down."

It's funny to me you'd make this argument, because engrams make models much better at abstract reasoning, because the things responsible for reasoning don't have to reconstruct all the local features. The way you've framed this as "Embeddings aren't intelligence" is true, but it's also missing the point of what engrams do. They free up the parameters that are doing those things. Anyway, the actual measurements disagree with your assertions, and they're right their in the linked papers for you to actually research yourself.

Sign up or log in to comment