Engram
Research preview · Phase 0

Engram

A language model that remembers you in its weights, not in a prompt.

Engram is an open research project to put long-term memory inside the network: a fast memory that learns while you talk, a nightly “sleep” that consolidates it into your own adapter, and a log for exact facts. Your memory lives in a module you can detach, encrypt, or delete.

license: Apache-2.0 status: research preview base: open weights, 8–32B

Why

Retrieval remembers text. People expect a model to remember them.

Today’s assistants “remember” by pasting notes back into the prompt. That recalls quoted facts well, but it does not let the model learn how you think, what you’ve already decided, or which of your facts have changed. Engram asks whether memory written into the network can do better.

Memory in the harness

  • Retrieves snippets; the model itself never changes.
  • Recall depends on the search query matching how you said it.
  • Every remembered item spends context on every turn.
  • Preferences and habits have to be written down to be used.

Memory in the network

  • The model learns from each session, so it adapts with use.
  • Knowledge is used implicitly, without being retrieved first.
  • Constant per-token cost, however long the history grows.
  • A per-user module: drop it and the memory is gone.

How it works

Two speeds of memory around a frozen model.

Inspired by how the brain pairs fast hippocampal learning with slow cortical consolidation. The base model never changes, so everything Engram learns about you sits in parts that belong to you.

Engram architecture A session feeds a frozen base model. Inside a per-user memory module, a fast neural memory is read and written during inference, a sleep step consolidates it into a per-user LoRA adapter that adapts the base model, and a retrieval log serves exact lookups. Session context wiped after Frozen base model open weights · 8–32B · never updated Fast memory neural module learns as you talk Slow memory per-user LoRA trained in sleep read · write (surprise-gated) adapts sleep exact lookups Retrieval log exact facts · provenance · audit Your memory module encrypted · detachable · delete = drop it
  1. Frozen base model

    An open-weights model in the 8–32B range supplies language and world knowledge. Its weights are shared by everyone and never trained on any user, which keeps users isolated from each other.

  2. Fast memory

    A small neural memory, in the style of Titans and test-time training, is updated by gradient steps while the model reads. Writes are driven by surprise: what the model failed to predict is what it stores.

  3. Sleep consolidation

    Periodically, offline, what the fast memory has learned is distilled into a per-user LoRA adapter, using replay and self-generated rehearsal so new knowledge settles without overwriting the old.

  4. Retrieval log

    An append-only record of sessions acts as a backstop for exact details (numbers, names, dates) and as an audit trail of where each memory came from.

  5. Detachable, per-user modules

    Fast memory, adapter and log form one encrypted module per user. Forgetting someone means deleting their module rather than trying to scrub weights.

Roadmap

Measure first, then build.

Each phase ends with a decision. Compute figures in the experiment plan are assumptions until measured.

  1. Phase 0 · now

    Evals and baselines

    • Multi-session benchmark with context wiped between sessions
    • Recall, updates, forgetting, cross-user leakage
    • Frontier model + retrieval baselines
  2. Phase 1

    Memory module

    • Attach a neural memory to a frozen base
    • Continued pretraining on chunked documents
    • First sleep-consolidation recipe
  3. Phase 2

    Synthetic users

    • Simulated people over months-long timelines
    • SFT, then RL on memory-dependent rewards
    • Ablations of each memory tier
  4. Phase 3

    Private deployment

    • Encrypted per-user modules on local hardware
    • Deletion and audit tooling
    • Small opt-in pilot

Research

What we have read, and what we will test.

Every source in these notes was opened and checked. Summaries are our own words.

Where the evidence points (October 2026). Titans-style memory has just been retrofitted onto a frozen pretrained model, but only at 1B. Distilling rehearsal data from a teacher with the memories in context beats training on raw text. Sparse memory slots forget far less than LoRA. Gradient unlearning hides data rather than removing it, so dropping a per-user module is the stronger deletion. No one has yet combined these on a frozen 8–32B model across sessions. That gap is what Engram sets out to test.

Across about 100 sources, every citation was opened and checked against its source. See the synthesis.

Status

Research preview. Benchmark code, no model weights yet.

Engram is at Phase 0. The repository includes the engram-bench synthetic-user generator, probes, scorers, baseline runners, and cross-user leakage checks. The neural-memory architecture remains proposed; no trained model weights are released. Follow the current implementation and experiment status.

Landscape survey Eval design draft Benchmark generator Baseline runners Memory module prototype

Contributing

Help us find out if this works.

The most useful contributions now are careful reading, sharp questions, and small reproducible experiments. Never contribute real personal data; Engram uses synthetic users.

Citation

Cite Engram

@misc{engram2026,
  title        = {Engram: Language Models with Memory in the Network},
  author       = {Mangano, Matthew and {Engram contributors}},
  year         = {2026},
  howpublished = {\url{https://github.com/alinaos-org/engram}},
  note         = {Research preview}
}