Disclosure: Amplify is an investor in Engram.

In Groundhog Day (1993), Bill Murray relives the same day of his life over and over again. Though he retains the memories of each day — a superpower which he of course only uses for good — nobody else does. At the beginning of each morning they revert to NPC factory settings, while Murray’s character Phil Connors is cursed to live within his own isolated intellectual progression.

This is basically how models work today. A lab spends a fortune training a set of weights, freezes them, and then serves that same static model to everyone. You can bark at ChatGPT about your grammatical preferences as much as you like — tomorrow it might have a note somewhere about your tirade against colons, but it won’t have truly internalized this fact about you. Every user, company, and workspace effectively talks to the same big brain.

To work around this, we have increasingly longer and better managed context windows. In-context learning (ICL) works surprisingly well, and can personalize model responses to a meaningful degree. But it’s also an expensive, brute force exercise: the same conversations get reread thousands of times, without compressing or extracting anything along the way.

More importantly, we need to think bigger! Forget the constraints of this generation of LLMs for a second, and ask: if we were designing AI from scratch, would it work this way?

Of course not. The AI of our dreams would actually know us. It would study our calendars, inboxes, and repos ahead of time, the way you’d actually prepare for a meeting (not just skimming the brief while waiting for the Zoom room to load). It would find out what music we like, where we shop, what our intellectual styles are, and it would do all of this with a graceful mix of proactivity and reactivity. It would be continually learning.

Everyone already knows this, which is why some of the brightest minds of our generation are working on memory and continual learning. It is in fact a very difficult technical problem to solve. Doing so requires multidisciplinary expertise across research (how do you teach models things?) and engineering (how do you serve personalized models?).

Many of these brightest minds work at Engram, which has raised close to $100M to build AI that learns from you. The Engram team is behind most of the seminal research in continual learning, from CartridgesCartridges: Lightweight and general-purpose long context representations via self-studySabri Eyuboglu, Ryan Ehrlich, Simran Arora, Neel Guha, Dylan Zinsley, Emily Liu + 5 moreLarge language models are often used to answer queries grounded in large text corpora (e.g. codebases, legal documents, or chat histories) by placing the entire corpus in the context window and leveraging in-context learning (ICL). Although current models support contexts of 100K-1M tokens, this setup is costly to serve because the memory consumption of the KV cache scales with input length. We explore an alternative: training a smaller KV cache offline on each corpus. At inference time, we load this trained KV cache, which we call a Cartridge, and decode a response. Critically, the cost of training a Cartridge can be amortized across all the queries referencing the same corpus. However, we find that the naive approach of training the Cartridge with next-token prediction on the corpus is not competitive with ICL. Instead, we propose self-study, a training recipe in which we generate synthetic conversations about the corpus and train the Cartridge with a context-distillation objective. We find that Cartridges trained with self-study replicate the functionality of ICL, while being significantly cheaper to serve. On challenging long-context benchmarks, Cartridges trained with self-study match ICL performance while using 38.6x less memory and enabling 26.4x higher throughput. Self-study also extends the model's effective context length (e.g. from 128k to 484k tokens on MTOB) and surprisingly, leads to Cartridges that can be composed at inference time without retraining.arXiv:2506.06266v3View paper to Sparse Memory Fine TuningContinual Learning via Sparse Memory FinetuningJessy Lin, Luke Zettlemoyer, Gargi Ghosh, Wen-Tau Yih, Aram Markosyan, Vincent-Pierre Berges + 1 moreModern language models are powerful, but typically static after deployment. A major obstacle to building models that continually learn over time is catastrophic forgetting, where updating on new data erases previously acquired capabilities. Motivated by the intuition that mitigating forgetting is challenging because trainable parameters are shared across all tasks, we investigate whether sparse parameter updates can enable learning without catastrophic forgetting. We introduce sparse memory finetuning, leveraging memory layer models (Berges et al., 2024), which are sparsely updated by design. By updating only the memory slots that are highly activated by a new piece of knowledge relative to usage on pretraining data, we reduce interference between new knowledge and the model's existing capabilities. We evaluate learning and forgetting compared to full finetuning and parameter-efficient finetuning with LoRA on two question answering tasks. We find that sparse memory finetuning learns new knowledge while exhibiting substantially less forgetting: while NaturalQuestions F1 drops by 89% after full finetuning on new facts and 71% with LoRA, sparse memory finetuning yields only an 11% drop with the same level of new knowledge acquisition. Our results suggest sparsity in memory layers offers a promising path toward continual learning in large language models.arXiv:2510.15103v1View paper and even the first, main large-scale empirical investigation of LoRALoRA Learns Less and Forgets LessDan Biderman, Jacob Portes, Jose Javier Gonzalez Ortiz, Mansheej Paul, Philip Greengard, Connor Jennings + 6 moreLow-Rank Adaptation (LoRA) is a widely-used parameter-efficient finetuning method for large language models. LoRA saves memory by training only low rank perturbations to selected weight matrices. In this work, we compare the performance of LoRA and full finetuning on two target domains, programming and mathematics. We consider both the instruction finetuning (approximately 100K prompt-response pairs) and continued pretraining (20B unstructured tokens) data regimes. Our results show that, in the standard low-rank settings, LoRA substantially underperforms full finetuning. Nevertheless, LoRA better maintains the base model's performance on tasks outside the target domain. We show that LoRA mitigates forgetting more than common regularization techniques such as weight decay and dropout; it also helps maintain more diverse generations. Finally, we show that full finetuning learns perturbations with a rank that is 10-100X greater than typical LoRA configurations, possibly explaining some of the reported gaps. We conclude by proposing best practices for finetuning with LoRA.arXiv:2405.09673v2View paper post-training. It is a stacked cast. And so I went into the office and interviewed them, for a long time, about what they’re doing.

The more you talk to researchers, the more you realize that what they’re uniquely good at is asking questions (do not try to get answers, as this is impossible). So we’ve organized this piece as a researcher would, focusing primarily on the problems that make continual learning hard, and ergo, interesting:

  • The many meanings of continual learning
  • What should the model actually learn?
  • How do you change the weights without breaking the model?
  • What goes where?
  • The infrastructure required to serve multitudes of slightly different models at once

We hope you…learn something…

What we talk about when we talk about continual learning

People who work on memory and continual learning are very particular about nomenclature. Instead of the fool’s errand of defining the domain, one might try instead collating the different research areas that touch on how LLMs learn, store, and access knowledge.

  1. Harness and notes and retrieval – the model writes text to itself (structured knowledge graphs or even just unstructured Markdown files) and searches it later, with the harness around it deciding when those notes get read back (Engram wrote about this recently). This is what the memory features in Claude or ChatGPT do today: saved notes about you get pulled into the context window at the start of each chat, and the weights never change.
  2. Full fine-tuning – this is the extreme version of literally personalizing a model. It works, but it’s expensive, and can have the unintended consequence of making a model forget what it used to know (more on this later).
  3. LoRA and parameter-efficient fine-tuning (PEFT) – here, you freeze the base weights and train a small low-rank delta that rides alongside them, typically 1 to 5% of the model’s size. This makes it cheaper to train, and the delta can be swapped per user.
  4. Cartridges – a trainable KV cache. Instead of re-reading a corpus every time, you train a compact cache that stands in for it (introduced in a paperCartridges: Lightweight and general-purpose long context representations via self-studySabri Eyuboglu, Ryan Ehrlich, Simran Arora, Neel Guha, Dylan Zinsley, Emily Liu + 5 moreLarge language models are often used to answer queries grounded in large text corpora (e.g. codebases, legal documents, or chat histories) by placing the entire corpus in the context window and leveraging in-context learning (ICL). Although current models support contexts of 100K-1M tokens, this setup is costly to serve because the memory consumption of the KV cache scales with input length. We explore an alternative: training a smaller KV cache offline on each corpus. At inference time, we load this trained KV cache, which we call a Cartridge, and decode a response. Critically, the cost of training a Cartridge can be amortized across all the queries referencing the same corpus. However, we find that the naive approach of training the Cartridge with next-token prediction on the corpus is not competitive with ICL. Instead, we propose self-study, a training recipe in which we generate synthetic conversations about the corpus and train the Cartridge with a context-distillation objective. We find that Cartridges trained with self-study replicate the functionality of ICL, while being significantly cheaper to serve. On challenging long-context benchmarks, Cartridges trained with self-study match ICL performance while using 38.6x less memory and enabling 26.4x higher throughput. Self-study also extends the model's effective context length (e.g. from 128k to 484k tokens on MTOB) and surprisingly, leads to Cartridges that can be composed at inference time without retraining.arXiv:2506.06266v3View paper from Engram co-founder Sabri Eyuboglu).
  5. Sparse memory fine-tuning – this approach (also introduced in a paperContinual Learning via Sparse Memory FinetuningJessy Lin, Luke Zettlemoyer, Gargi Ghosh, Wen-Tau Yih, Aram Markosyan, Vincent-Pierre Berges + 1 moreModern language models are powerful, but typically static after deployment. A major obstacle to building models that continually learn over time is catastrophic forgetting, where updating on new data erases previously acquired capabilities. Motivated by the intuition that mitigating forgetting is challenging because trainable parameters are shared across all tasks, we investigate whether sparse parameter updates can enable learning without catastrophic forgetting. We introduce sparse memory finetuning, leveraging memory layer models (Berges et al., 2024), which are sparsely updated by design. By updating only the memory slots that are highly activated by a new piece of knowledge relative to usage on pretraining data, we reduce interference between new knowledge and the model's existing capabilities. We evaluate learning and forgetting compared to full finetuning and parameter-efficient finetuning with LoRA on two question answering tasks. We find that sparse memory finetuning learns new knowledge while exhibiting substantially less forgetting: while NaturalQuestions F1 drops by 89% after full finetuning on new facts and 71% with LoRA, sparse memory finetuning yields only an 11% drop with the same level of new knowledge acquisition. Our results suggest sparsity in memory layers offers a promising path toward continual learning in large language models.arXiv:2510.15103v1View paper from Engram co-founder Jessy LinContinual Learning via Sparse Memory FinetuningJessy Lin, Luke Zettlemoyer, Gargi Ghosh, Wen-Tau Yih, Aram Markosyan, Vincent-Pierre Berges + 1 moreModern language models are powerful, but typically static after deployment. A major obstacle to building models that continually learn over time is catastrophic forgetting, where updating on new data erases previously acquired capabilities. Motivated by the intuition that mitigating forgetting is challenging because trainable parameters are shared across all tasks, we investigate whether sparse parameter updates can enable learning without catastrophic forgetting. We introduce sparse memory finetuning, leveraging memory layer models (Berges et al., 2024), which are sparsely updated by design. By updating only the memory slots that are highly activated by a new piece of knowledge relative to usage on pretraining data, we reduce interference between new knowledge and the model's existing capabilities. We evaluate learning and forgetting compared to full finetuning and parameter-efficient finetuning with LoRA on two question answering tasks. We find that sparse memory finetuning learns new knowledge while exhibiting substantially less forgetting: while NaturalQuestions F1 drops by 89% after full finetuning on new facts and 71% with LoRA, sparse memory finetuning yields only an 11% drop with the same level of new knowledge acquisition. Our results suggest sparsity in memory layers offers a promising path toward continual learning in large language models.arXiv:2510.15103v1View paper) updates only a small set of KV entries (we can think of these as “memory slots”) per fact, so the rest of the model stays untouched.
  6. Added experts – bolt a per-user or per-domain expert onto a mixture-of-experts model.
  7. Synthetic data – generating high-quality, realistic, and diverse samples to use at different stages of training, so the model has something worth studying.
  8. The actual learning – what you train the model to do with all of the above. You can train it to reproduce exact text (supervised fine-tuning), to solve a task and get rewarded for it (reinforcement learning), or something in between.

When people talk about continual learning, they might mean any combination of the above things, from something baked in at pre-training (an architecture designed to keep learning after the training run ends), to test-time training, to good old fashioned in-context learning. The Engram team’s philosophy is that good continual learning is probably going to involve both methods that update weights, and methods that do not.

Having said that…methods that update the weights are where most of the interesting research is going on right now. To get to a future where models not only learn from you, but change their physical brains to integrate that information, we have some problems to solve.

Problem one: what should the model actually learn?

The best assistants, human or otherwise, are able to process a deluge of information about you every day, knowing exactly what’s important to internalize forever and what’s just a one-off. Half of the stuff you say to LLMs on a given day is just noise, and a model learning from it indiscriminately could actually get worse at helping you instead of better.

Even once the model knows how to sift through what pieces of information are signal vs. noise, there is the question of what “learn” even means. Certainly the model should know facts, like when your birthday is and what town you’re from. But it also needs to be able to distill and reduce the dimensionality of text that you’re giving it, retaining the essence of the piece of information instead of the verbatim reproduction of it. The model needs to know that Obama was born in Hawaii; not that the words “Obama was born in Hawaii” should go together.

Here Engram proposes a hybrid approach: redundancy and rewards.

How do you manufacture redundancy?

Pre-trained models “know” things on two levels: next-token prediction (which word tends to follow which), and facts (Obama was born in Hawaii). Much of the learning happens through redundancy: training on the entire internet means that certain truths about the world appear many times, in many phrasings, and that repetition is what lets a model learn a fact rather than just autocompleting a sentence. This is precisely why pre-training scaling laws work!

Now imagine you take this model and put it in a company (like in Engram’s work with Harvey). In a single person’s workspace, a model gets a lot of information like emails, files, preferences, and one-offs to parse. It’s a lot of data for mere humans like us…but compared to the gigantor pre-training corpus it’s a rounding error. If you were to run a training process with that data and attempt to continually learn via weight updates, you would dramatically overfit the model because there is no built-in redundancy. The model wouldn’t so much learn the facts as learn to make things up convincingly: fine-tuning with little data is a known recipe for hallucinationDoes Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?Zorik Gekhman, Gal Yona, Roee Aharoni, Matan Eyal, Amir Feder, Roi Reichart + 1 moreWhen large language models are aligned via supervised fine-tuning, they may encounter new factual information that was not acquired through pre-training. It is often conjectured that this can teach the model the behavior of hallucinating factually incorrect responses, as the model is trained to generate facts that are not grounded in its pre-existing knowledge. In this work, we study the impact of such exposure to new knowledge on the capability of the fine-tuned model to utilize its pre-existing knowledge. To this end, we design a controlled setup, focused on closed-book QA, where we vary the proportion of the fine-tuning examples that introduce new knowledge. We demonstrate that large language models struggle to acquire new factual knowledge through fine-tuning, as fine-tuning examples that introduce new knowledge are learned significantly slower than those consistent with the model's knowledge. However, we also find that as the examples with new knowledge are eventually learned, they linearly increase the model's tendency to hallucinate. Taken together, our results highlight the risk in introducing new factual knowledge through fine-tuning, and support the view that large language models mostly acquire factual knowledge through pre-training, whereas fine-tuning teaches them to use it more efficiently.arXiv:2405.05904v3View paper.

So you’re chasing a Goldilocks target: you want an intense ability to internalize a fact from a single instance (where pre-training would need to see it a million times), and at the same time you can’t overfit to that one instance, or the model decides you only ever want meetings at 9am.

Engram is exploring a new data recipe to build redundancy artificially. The old continual learning literature assumed you got an input, trained on it, and moved on. Engram’s approach to LLM training has a synthetic data step in between: generate questions, conversations and rephrasings about the corpus, and train on those. The approach draws on research from

In this regime you’re effectively manufacturing the repetition the internet used to give you for free, which gives you a control point over what gets learned at all (useful when we get to permissions, below). Cartridges’ “self-study” is one version of this. Engram’s current recipe is more elaborate: an agent explores the workspace through thousands of rollouts, writes its own training data as it goes, and that data trains small knowledge modules through a mix of distillation on the model’s own outputs and RL on problems the model sets for itself.

How do you manufacture rewards?

There is a second layer to the “what to learn” problem. Where pre-training gives you a feedback loop in the form of next-token loss, post-training grades itself with rewards. For tasks like coding, those can be verifiable (did the tests pass?), for most other domains they’re rubrics: criteria scored by heuristics (does this legal draft cite the primary source it should?).

But the real world doesn’t offer rewards naturally (just participation trophies), so you have to invent proxies: e.g. getting better at predicting what will happen inside the company, or resolving a user’s request in fewer turns with fewer interventions.

In essence Engram must synthesize the answer key as well as the questions:

  1. A synthetic data step generates what to study,
  2. and the proxy reward decides whether the studying worked.

Whether the model ends up learning the facts or simply learning to fabricate them is a function of how good the proxy is, and you can only tell which happened if you have ground truth to check against. This is precisely why Harvey built a synthetic law firm to evaluate against rather than trusting anything the model said about a real one: with a real firm’s data there’s no way to separate learning from fabrication.

This is (one of) the perennial challenge(s) of taking research from academia into the real world. While they were researchers, Engram’s cofounders had public datasets for sequences of tasks, trivia questions, fact-learning benchmarks, but what they did not have was an actual stream of user interactions from real human people. This is precisely why the first phase of the company has been all about embedding with customers like Harvey and figuring stuff out. Because their data is real!

The vision of “learn anything, anytime” based on live user feedback is still the north star, but a much more tractable problem in the shorter term is large enterprise workspaces. These are mostly static, with only a small fraction of the workspace changing each day. Can we drop a model inside the Harvey team’s workspace and have it learn everything it needs to know about law? About open cases, preferences of the individual teams, and how the company operates?

Perhaps, which brings us to:

Problem two: how do you change the weights without breaking the model?

Say you’ve figured out what the model should learn. Now you have to integrate that knowledge into a model that already knows a lot, about everything, and you’d like it to keep knowing those things. In practice, if you take an open-source model that Qwen, Kimi or DeepSeek has post-trained to code and call tools and write in a certain format and receive messages a certain way, it turns out that once you start having it also regurgitate a large corpus, you destroy a lot of those capabilities — the model forgets what it already knows.

The field has known about catastrophic forgetting since the 1980s, when the researchers building the first neural networks noticed that if you trained a network to classify zeros and ones, and then trained it on twos, it forgot the zeros. Michael McCloskey and Neal Cohen gave the phenomenon its name in 1989 with a version of exactly that experiment. In over 40 years, the mechanism hasn't changed: you're updating the same weights that used to do the old job and so you risk overwriting what was already there (AKA “there’s no free lunch”).

The obvious question then is: why not just add more weights? Making the weights higher-dimensional can help, because some of this is a capacity limitation. But just because you’re only adding, not changing, weights doesn’t guarantee that you don’t degrade model performance. Your new weights can change model behavior in any number of unpredictable ways, causing it to generate new and very incorrect responses, which in practice if not in code is equivalent to forgetting.

You can mitigate catastrophic forgetting in a few ways:

  • Replay – keep the old (good) capabilities active during training by re-mixing old data into the new batches. Suppose the model is the best coder in the world and you want to teach it about the runbooks for a legacy Kafka cluster everyone is scared to touch. Rather than feeding it only that, you build a data mix, so that in the same batch it answers a question about your cursed Kafka runbooks, it also writes something in TypeScript.
  • Regularization – constrain the update so the weights don't move too far, and especially not in the directions that mattered for the old tasks.
  • Capacity – more weights, as above.

Then there’s parameterization, or cleverly choosing where the new numbers live. This is where Engram is playing.

For their customers today, they train on open-source base models with parameter-efficient methods and combine LoRA, trainable KV caches, and added experts, plus a novel approach their team pioneeredContinual Learning via Sparse Memory FinetuningJessy Lin, Luke Zettlemoyer, Gargi Ghosh, Wen-Tau Yih, Aram Markosyan, Vincent-Pierre Berges + 1 moreModern language models are powerful, but typically static after deployment. A major obstacle to building models that continually learn over time is catastrophic forgetting, where updating on new data erases previously acquired capabilities. Motivated by the intuition that mitigating forgetting is challenging because trainable parameters are shared across all tasks, we investigate whether sparse parameter updates can enable learning without catastrophic forgetting. We introduce sparse memory finetuning, leveraging memory layer models (Berges et al., 2024), which are sparsely updated by design. By updating only the memory slots that are highly activated by a new piece of knowledge relative to usage on pretraining data, we reduce interference between new knowledge and the model's existing capabilities. We evaluate learning and forgetting compared to full finetuning and parameter-efficient finetuning with LoRA on two question answering tasks. We find that sparse memory finetuning learns new knowledge while exhibiting substantially less forgetting: while NaturalQuestions F1 drops by 89% after full finetuning on new facts and 71% with LoRA, sparse memory finetuning yields only an 11% drop with the same level of new knowledge acquisition. Our results suggest sparsity in memory layers offers a promising path toward continual learning in large language models.arXiv:2510.15103v1View paper called sparse memory fine-tuning. It touches only a handful of memory slots per fact but shows dramatic improvements in performance: teaching a model new facts with full fine-tuning dropped its score on NaturalQuestions by 89%, LoRA dropped it 71%, and sparse memory fine-tuning dropped it just 11% (!) while learning just as much.

Forgetting isn’t the only way to fail

Alas, forgetting is not our only problem. You can degrade model performance with weight additions/updates in other ways: for example, you might talk to the model about hair salons yet it invariably brings up Kafka clusters. A conversation with the model about your stimulant regimen also seems to steer towards Kafka clusters. Then one day, instead of the granola clusters you asked for, the model buys you some MSK on AWS.

It’s a version of the Golden Gate Claude failure mode, in that nothing was damaged per se, but one feature got turned up and so every conversation eventually became about the bridge. There are really two questions at play here, whether the knowledge exists in the model, and whether the model invokes it at the right time.

Which leads to another question…do you even want everything captured in the weights?

Once something is in the weights, you can’t take it out of the weights — which sounds like a good thing until you venture out of the lab into the enterprise, and start thinking about permissions. Different people can see the same data in different ways. Should they share one model or does each person get their own? In many ways there are huge advantages to having a model with zero memory. Every method in this post that distills user data into something more compact raises the same question, which is how you make sure certain things don’t get distilled, or at least stay scoped to the person they belong to.

The complexity of all these mitigations makes one wonder if we are barking up the wrong architecture tree. Could we potentially design models from scratch whose architectures were fundamentally built for continual learning? There’s a lot of literature on exactly that now, like architectures that update themselves at test time. For now though, Engram is banking on off-the-shelf models sufficing (which happens to be a lot cheaper).

Lest this section give the impression that continual learning is all about not losing what you once had, let us disabuse you of this notion. It’s about adding capabilities and, as the model meets new people, learning to work in their workspace and use the tools in their harness. Which brings us to the third problem.

Problem three: what goes where?

There are very different kinds of knowledge that an agent needs to be useful to you. There are:

  1. Facts about the world in which it works (now, the workspace it inhabits)
  2. Procedural knowledge about how to use the tools in that workspace

And these lend themselves to different memory systems. Some of this knowledge belongs in context, some in weights, some in the adapters you bolt onto a model, and some belongs in the non-parametric memory of notes and tools that the agent accesses through its harness.

So what goes where, when does it get updated, and how does the model fall back gracefully when a fact isn’t in the weights and it needs to go looking for it?

Where much academic work was focused on maximizing the amount of new knowledge in the model with less concern for how this complements everything else the model can do, the version of continual learning Engram is developing now is based on the idea that models should remember things…but they shouldn’t only remember things. They should also use tools!

One (perhaps brain blast) way to think of this is that in essence, both text memory and parametric memory are just ways to cache views of the underlying data, a modern form of the materialized views you’d build in a database. Parametric memory captures the diffuse, open-ended stuff that would be hard to write down losslessly, like the structure of a multi-party contract. By training end-to-end inside the harness, an agent learns to use both types of knowledge: what to search for, and how to combine search results with what it already knows. Then, as knowledge hardens, the agent moves it from notes into weights. As the queries people ask evolve, the agent adjusts what it studies. (Engram’s own post, Learning in a world of notes, goes deeper on how notes and weights share this work.)

By supplementing its workspace knowledge with grounded search, Engram’s agent solves tasks more effectively at a significantly lower cost-per-query ($0.13 / 30% all-pass for their agent, vs. $1.32 / 25% all-pass for Opus 4.8).

Legal is full of large hubs of documents that reward this kind of study. Harvey’s matter-centric product is one: a lawyer gets a workspace built around a case or a thread of cases, with its history, its memory and the lawyer’s own preferences, and the kind of model Engram builds could know the matter the way the lawyer does and learn alongside them as the case develops. Public case law is another: a model that deeply understands Supreme Court decisions, or Delaware corporate law, and acts as a search or data layer over it. Engram’s approach fits either.

Researchers, assemble

You may have noticed that there are a lot of links to papers in this post. That is because continual learning is very much cutting edge research, with little agreed upon and much being actively tested in the wild.

You may also have noticed that many of these papers share the same authors. That is because Engram has a positively cracked research squad. Everything discussed in this post, from LoRAs to sparse memory fine-tuning to Cartridges, has academic lineage with this founding team.

The first thing that happened when I went into the Engram office was that Dan Biderman (CEO) offered to make me a coffee (this was unusual, as CEOs do not usually do this). Dan did his PhD at Columbia in Theoretical Neuroscience (with an internship at Mosaic along the way), won Columbia’s Titus M. Cowan dissertation prize in biomedical research, and then went to Stanford for a postdoc split between Chris Ré’s lab and Scott Linderman’s (more on Scott in a moment). In between these things he found time to hang out with monks in Thailand for a few months but I also promised him I wouldn’t write this so please don’t say anything.

By the time I finished my Americano I began to understand that Dan is the connector. He is the people person, the one who sees talent for what it is and also what it could be, and the reason that this Engram team is all together in San Francisco working on this crazy problem. The organizer of the heist, if you will.

About 8 years ago, Dan met Scott Linderman. Scott is like the wise oracle at Engram, a Stanford professor and progenitor of the aptly named Linderman Lab. He is quiet and collected, but when he speaks everyone hushes up quickly.

You will never guess who sat next to Dan in Chris Ré’s lab — it was Sabri Eyuboglu (Engram CTO), the primary author on the now highly influential Cartridges paperCartridges: Lightweight and general-purpose long context representations via self-studySabri Eyuboglu, Ryan Ehrlich, Simran Arora, Neel Guha, Dylan Zinsley, Emily Liu + 5 moreLarge language models are often used to answer queries grounded in large text corpora (e.g. codebases, legal documents, or chat histories) by placing the entire corpus in the context window and leveraging in-context learning (ICL). Although current models support contexts of 100K-1M tokens, this setup is costly to serve because the memory consumption of the KV cache scales with input length. We explore an alternative: training a smaller KV cache offline on each corpus. At inference time, we load this trained KV cache, which we call a Cartridge, and decode a response. Critically, the cost of training a Cartridge can be amortized across all the queries referencing the same corpus. However, we find that the naive approach of training the Cartridge with next-token prediction on the corpus is not competitive with ICL. Instead, we propose self-study, a training recipe in which we generate synthetic conversations about the corpus and train the Cartridge with a context-distillation objective. We find that Cartridges trained with self-study replicate the functionality of ICL, while being significantly cheaper to serve. On challenging long-context benchmarks, Cartridges trained with self-study match ICL performance while using 38.6x less memory and enabling 26.4x higher throughput. Self-study also extends the model's effective context length (e.g. from 128k to 484k tokens on MTOB) and surprisingly, leads to Cartridges that can be composed at inference time without retraining.arXiv:2506.06266v3View paper. Sabri was there doing his PhD, focused on language model memory and continual learning. Much of his work helped researchers understand things like linear attention, looped language models, multi-agent systems, and test-time training. Between Cartridges, MinionsMinions: Cost-efficient Collaboration Between On-device and Cloud Language ModelsAvanika Narayan, Dan Biderman, Sabri Eyuboglu, Avner May, Scott Linderman, James Zou + 1 moreWe investigate an emerging setup in which a small, on-device language model (LM) with access to local data communicates with a frontier, cloud-hosted LM to solve real-world tasks involving financial, medical, and scientific reasoning over long documents. Can a local-remote collaboration reduce cloud inference costs while preserving quality? First, we consider a naive collaboration protocol where the local and remote models simply chat back and forth. Because only the local model reads the full context, this protocol achieves a 30.4x reduction in remote costs, but recovers only 87% of the performance of the frontier model. We identify two key limitations of this protocol: the local model struggles to (1) follow the remote model's multi-step instructions and (2) reason over long contexts. Motivated by these observations, we study an extension of this protocol, coined MinionS, in which the remote model decomposes the task into easier subtasks over shorter chunks of the document, that are executed locally in parallel. MinionS reduces costs by 5.7x on average while recovering 97.9% of the performance of the remote model alone. Our analysis reveals several key design choices that influence the trade-off between cost and performance in local-remote systems.arXiv:2502.15964v1View paper, ZoologyZoology: Measuring and Improving Recall in Efficient Language ModelsSimran Arora, Sabri Eyuboglu, Aman Timalsina, Isys Johnson, Michael Poli, James Zou + 2 moreAttention-free language models that combine gating and convolutions are growing in popularity due to their efficiency and increasingly competitive performance. To better understand these architectures, we pretrain a suite of 17 attention and "gated-convolution" language models, finding that SoTA gated-convolution architectures still underperform attention by up to 2.1 perplexity points on the Pile. In fine-grained analysis, we find 82% of the gap is explained by each model's ability to recall information that is previously mentioned in-context, e.g. "Hakuna Matata means no worries Hakuna Matata it means no" $\rightarrow$ "??". On this task, termed "associative recall", we find that attention outperforms gated-convolutions by a large margin: a 70M parameter attention model outperforms a 1.4 billion parameter gated-convolution model on associative recall. This is surprising because prior work shows gated convolutions can perfectly solve synthetic tests for AR capability. To close the gap between synthetics and real language, we develop a new formalization of the task called multi-query associative recall (MQAR) that better reflects actual language. We perform an empirical and theoretical study of MQAR that elucidates differences in the parameter-efficiency of attention and gated-convolution recall. Informed by our analysis, we evaluate simple convolution-attention hybrids and show that hybrids with input-dependent sparse attention patterns can close 97.4% of the gap to attention, while maintaining sub-quadratic scaling. Our code is accessible at: https://github.com/HazyResearch/zoology.arXiv:2312.04927v1View paper, DominoDomino: Discovering Systematic Errors with Cross-Modal EmbeddingsSabri Eyuboglu, Maya Varma, Khaled Saab, Jean-Benoit Delbrouck, Christopher Lee-Messer, Jared Dunnmon + 2 moreMachine learning models that achieve high overall accuracy often make systematic errors on important subsets (or slices) of data. Identifying underperforming slices is particularly challenging when working with high-dimensional inputs (e.g. images, audio), where important slices are often unlabeled. In order to address this issue, recent studies have proposed automated slice discovery methods (SDMs), which leverage learned model representations to mine input data for slices on which a model performs poorly. To be useful to a practitioner, these methods must identify slices that are both underperforming and coherent (i.e. united by a human-understandable concept). However, no quantitative evaluation framework currently exists for rigorously assessing SDMs with respect to these criteria. Additionally, prior qualitative evaluations have shown that SDMs often identify slices that are incoherent. In this work, we address these challenges by first designing a principled evaluation framework that enables a quantitative comparison of SDMs across 1,235 slice discovery settings in three input domains (natural images, medical images, and time-series data). Then, motivated by the recent development of powerful cross-modal representation learning approaches, we present Domino, an SDM that leverages cross-modal embeddings and a novel error-aware mixture model to discover and describe coherent slices. We find that Domino accurately identifies 36% of the 1,235 slices in our framework - a 12 percentage point improvement over prior methods. Further, Domino is the first SDM that can provide natural language descriptions of identified slices, correctly generating the exact name of the slice in 35% of settings.arXiv:2203.14960v3View paper, and Based, he is obviously the one in the group who knows how to name things.

If you travel slightly northeast from Stanford you will arrive at Berkeley, which is where Jessy Lin did her PhD. Her research on sparse memory fine-tuningContinual Learning via Sparse Memory FinetuningJessy Lin, Luke Zettlemoyer, Gargi Ghosh, Wen-Tau Yih, Aram Markosyan, Vincent-Pierre Berges + 1 moreModern language models are powerful, but typically static after deployment. A major obstacle to building models that continually learn over time is catastrophic forgetting, where updating on new data erases previously acquired capabilities. Motivated by the intuition that mitigating forgetting is challenging because trainable parameters are shared across all tasks, we investigate whether sparse parameter updates can enable learning without catastrophic forgetting. We introduce sparse memory finetuning, leveraging memory layer models (Berges et al., 2024), which are sparsely updated by design. By updating only the memory slots that are highly activated by a new piece of knowledge relative to usage on pretraining data, we reduce interference between new knowledge and the model's existing capabilities. We evaluate learning and forgetting compared to full finetuning and parameter-efficient finetuning with LoRA on two question answering tasks. We find that sparse memory finetuning learns new knowledge while exhibiting substantially less forgetting: while NaturalQuestions F1 drops by 89% after full finetuning on new facts and 71% with LoRA, sparse memory finetuning yields only an 11% drop with the same level of new knowledge acquisition. Our results suggest sparsity in memory layers offers a promising path toward continual learning in large language models.arXiv:2510.15103v1View paper as well as learning facts at scaleLearning Facts at Scale with Active ReadingJessy Lin, Vincent-Pierre Berges, Xilun Chen, Wen-Tau Yih, Gargi Ghosh, Barlas OğuzLLMs are known to store vast amounts of knowledge in their parametric memory. However, learning and recalling facts from this memory is known to be unreliable, depending largely on the prevalence of particular facts in the training data and other factors which are poorly understood. Practitioners are lacking tools which will allow them to ensure that the models learn a given body of knowledge reliably and consistently. To this end, we propose Active Reading: a framework where we train models to study a given set of material with self-generated learning strategies. First, we demonstrate models trained with Active Reading on expert domains absorb significantly more knowledge than vanilla finetuning and other data augmentations. We train expert 8B models that achieve 66% on a Wikipedia-grounded subset of SimpleQA (+313% relative over vanilla finetuning) and 26% on FinanceBench (+160% relative over vanilla finetuning) by applying Active Reading to the source documents for each benchmark. Finally, we show that Active Reading can be utilized at pre-training scale to build more factual models. As a demonstration of this, we release Meta WikiExpert-8B, a Wikipedia-expert model trained on 1 trillion generated tokens, which outcompetes models with hundreds of billions of parameters on factual QA.arXiv:2508.09494v1View paper is foundational to the work Engram is doing. And if you’re someone like me, who isn’t very good at understanding academic papers, you can just read her excellent blog where she breaks down some of these ideas in simpler, more practical terms.

How did we arrive at Berkeley exactly? That would be thanks to my host for the day, Jack Morris, who worked with Jessy at FAIR. You may know him as the poaster of the group or from his Substack on AI research (of which he has also publishedHow much do language models memorize?John X. Morris, Chawin Sitawarin, Chuan Guo, Narine Kokhlikyan, G. Edward Suh, Alexander M. Rush + 2 moreWe propose a new method for estimating how much a model knows about a datapoint and use it to measure the capacity of modern language models. Prior studies of language model memorization have struggled to disentangle memorization from generalization. We formally separate memorization into two components: unintended memorization, the information a model contains about a specific dataset, and generalization, the information a model contains about the true data-generation process. When we completely eliminate generalization, we can compute the total memorization, which provides an estimate of model capacity: our measurements estimate that GPT-style models have a capacity of approximately 3.6 bits per parameter. We train language models on datasets of increasing size and observe that models memorize until their capacity fills, at which point "grokking" begins, and unintended memorization decreases as models begin to generalize. We train hundreds of transformer language models ranging from $500K$ to $1.5B$ parameters and produce a series of scaling laws relating model capacity and data size to membership inference.arXiv:2505.24832v3View paper). His PhD (they all have them) is from Cornell where he worked closely with Sasha Rush, who sat on Dan’s PhD committee. Jack confronted Engram with perhaps its greatest challenge: getting someone to move from New York to SF.

These are Engram’s cofounders (plus Chris Ré, obviously). But they are not their only researchers. Mayee Chen sat next to Sabri throughout her PhD and joined as the first hire, followed by Howard Chen. A full 30% of this team is in hardcore research!

Combining research with the real world also requires great product builders. But you cannot simply bolt product onto a research team like this and hope for the best. You need product thinkers who deeply understand the research, who live in the research. One of those people is Tom Alcorn, who comes from many years building the notebook product at Databricks after co-founding an ML inference chip startup.

And another one, which was coincidentally (or was it?) announced yesterday, is the prolific Linus Lee. If you’ve spent time reading about human/AI interaction and interpretability, you’ve probably come across his blog or perhaps seen one of his many talks (like recently at Cursor Compile). Linus has spent his career researching and building in this space, most recently at Thrive Capital as an EIR/engineer and before that as an early member of Notion’s AI team.

So you’ve got research, and you’ve got product. There is still one more important thing that it’s going to take to make continual learning work: engineering.

Inference by 1,000 cuts

Picture this, a world of infinite AI models, each personalized to highly idiosyncratic users and preferences. A researcher’s dream…but an inference engineer’s nightmare!

Everything the inference industry has optimized for so far is based on the idea of one monolithic model. Around it you add a few replicas, you load-balance traffic, and try to keep every replica busy at all times. The foundation labs have done a very good job of this: they train once, serve the exact same copy to everyone, hyper-optimize it with quantization and custom kernels, and everybody gets value.

Many pieces of this assembly line are poor fits for per-user models, and we will need to rebuild a lot of it from scratch.

Compute

There is prior art here in multi-LoRA serving, which Engram’s Cade Daniel worked on at Databricks. With this approach, you have a base model that’s 90% or more common across every user, and a 1-5% delta per-user alongside it. The base gets the exact same optimized stack as today, but the delta means that every step of the forward pass carries additional math, and inference stacks are nowhere near as tuned for that as they are for the base case. Scaling that to fully agentic workloads, with one adapter per user (or per document, or per team), and composing them inside the same inference replica, is new territory.

Memory

When you have not one, but one million models to serve, where do they all live? Currently, on the same infrastructure that already caches prompt prefixes. Providers keep billions of tokens of KV state in tiered storage and load it onto the GPU when there’s a hit, which is what lets you have a very long conversation with Claude or Codex.

In theory, these delta adapters can ride the same tiers, but now you're no longer moving a few kilobytes of text around a cluster — you’re loading a lot of numbers from disk into GPU memory. Every user adds their own KV cache and their own adapter to the pile, so the working set grows with the user count rather than the model size.

Scheduling

Expanding the definition of inference as we know it! When OpenAI or a neocloud deploys a model, the fleet does basically one job. Engram’s fleet on the other hand has to interleave training and serving, because the models are changing all the time, and how often they change dictates what the serving loop has to tolerate. They are exploring a couple of possible architectures here, including one shared backbone with many per-user adapters, or a dedicated expert per person in a mixture-of-experts layout.

Verification

Every one of those per-user models needs to be eval-d before it serves traffic. The minimum bar to meet is no degradation from the base model, but we obviously want to do a lot better than that. Under the hood, that means an eval must run automatically, per model, every time an adapter changes.

More important (and harder to manage) is safety. Engram is modifying the weights of open-source models that, by the end of the year, will be catching up to frontier capability. Frontier labs manage the risk of a capable model by releasing one checkpoint and having dozens of people red-team it full-time before it ships (among other things). How do you do this when every user’s model is different?

~

The work going on to ensure that models learn from you, and that you aren’t doomed to become Bill Murray in 1993, is incredibly promising.

But continual learning is a really hard problem, combining everything from research to engineering. And if those problems are interesting to you, you should consider working at Engram! They’re hiring for research, platform/infra, systems/perf, and even just plain old people who like the mission.