/ RESEARCH NOTES

Stop recomputing what you can look up.

Engram adds conditional memory to a language model. The useful question is which work deserves computation and which patterns can be retrieved.

TED TROXELL / 6 MIN READ + AN EXPERIMENT

Try the model
FIELD NOTES / 107

01 / READ THE METHOD

Some work is familiar before the sentence is finished.

An engineer reading “surface finish” does not need to rediscover the phrase every time it appears. Familiar local patterns provide a starting point; the surrounding context determines what to do with them. It is useful to distinguish storing a pattern from reasoning about the current situation.

That distinction suggests a resource question for a language model. If a frequently encountered pattern can be represented by a lookup, should expensive neural computation spend the same effort reconstructing it on every occurrence?

This is not a proposal to replace reasoning with a glossary. Consider “bearing load” in a specification and “bearing” in a navigation instruction. A stored association can help in one setting and distract in another. A memory mechanism needs a way to use context as well as an address.

02 / READ THE METHOD

Retrieve a pattern, then decide how much to use.

Engram retrieves learned embeddings using hashed token n-grams, then fuses them with the current hidden state through context-aware gating and a lightweight convolution. The paper treats conditional memory as complementary to conditional computation in mixture-of-experts models.

The authors report gains against parameter- and FLOP-matched baselines, and study how to allocate capacity between memory and computation. Their implementation resources expose a concrete route for investigating the mechanism. The browser example below is a much smaller analogy, with no trained embeddings.

A gate is worth paying attention to. Finding a memory entry does not guarantee that its contents fit the current context. Retrieval and use are two decisions. Keeping them separate makes it easier to ask what happens when the address is ambiguous or the retrieved information is unhelpful.

Teaching sketch: memory contribution = context gate × retrieved value

03 / READ THE METHOD

A small table makes collisions easy to see.

The experiment hashes eight invented engineering phrases into a table. Choose a phrase, then change the number of slots. Two different phrases can land in the same slot. The drawing shows all occupants rather than pretending that a collision is an exact semantic match.

The context gate is a manual slider. A retrieved value of two invented units is multiplied by the gate. At zero, the memory contributes nothing. At one, the whole illustrative value passes through. This is ordinary arithmetic used to explain the separation between retrieval and fusion.

The real method uses multiple hash heads, token-based keys, learned vectors and contextual computation. This single-hash phrase table omits those features. A collision count here is not an estimate of Engram’s error rate, and moving the gate does not simulate its learned judgment.

04 / READ THE METHOD

Memory capacity and compute cost are different budgets.

I would evaluate a memory-augmented model with separate measurements for model quality, memory footprint, bandwidth and latency. Table capacity is only one part of the cost. A system also has to fetch the right entries at the right time under the load it will actually serve.

A practical experiment should include frequent and rare patterns, ambiguous contexts and unfamiliar inputs. If the proposed benefit comes mainly from repeated local patterns, a test set containing only those patterns will tell an incomplete story. Include cases where blindly trusting a familiar phrase would be wrong.

Keep a conventional baseline and hold the important budgets steady. Record what changed in data, compute and infrastructure. That makes it possible to tell whether the idea improved the system or simply moved expense into a category the first comparison did not count.

05 / READ THE METHOD

Use the lookup to ask a sharper design question.

Try shrinking the table until the selected phrase shares its slot. Then lower the gate. You can suppress the contribution, but you have not made the table more discriminating. Increase the table size and observe that you changed a different part of the mechanism.

That separation is useful beyond language models. A cached calculation, retrieved document or remembered operating procedure still needs a decision about applicability. The engineering value comes from assigning each kind of work to a suitable mechanism and measuring the complete result.

I would keep the headline practical: familiar patterns may deserve a cheaper path, while the model retains responsibility for context. Whether that division pays off is an empirical question for the workload.

THE EXPERIMENT / CHANGE ONE THING

Inspect the address and the gate.

Change table size, select a phrase and decide how much of an illustrative retrieved value passes through.

SYNTHETIC EXAMPLE / LIVE RESULTS

Selected slot0
Phrases sharing that slot3
Total excess occupants3
Illustrative contribution1.60 units

Selected bucket contains: bearing load, torque limit, surface finish. A hit is not a unique match. Contribution = two invented units × manual gate; no learned gating is simulated.

Inspect every memory slot
SlotStored phrase keys
0bearing load, torque limit, surface finish
1delivery date, gate pressure
2bearing seal
3cooling time
4camera gain
What this model assumes

Eight invented phrases hashed into one small table with a simple polynomial hash. Manual scalar gate and invented value of two units. This is not Engram token hashing, multi-head collision handling, learned gating, retrieval quality or hardware timing.

SOURCES & FURTHER READING

The references behind the ideas.

The numbers in the experiment are illustrative. These references support the methods and distinctions discussed in the article.

  1. Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models ↗

    First posted 12 January 2026; revised July 2026. Research preprint. The primary source for the method and reported evidence.

  2. Authors’ implementation and supporting material ↗

    Original project resources. The browser experiment is an independent teaching illustration, not this implementation.

← All field notes

LET’S TALK

Good work starts
with a conversation.

A challenge, an opportunity, or an idea. Tell me what you have in mind.

Prefer email? ted@tedtroxell.com