The Bitter Lesson: Agent Memory Should Stay Simple
In Christopher Nolan's Memento, Leonard Shelby has to find his wife's killer while suffering from anterograde amnesia. He can't form new memories, so he builds his own system: Polaroids, notes, tattoos. It's elaborate and human and it mostly works. It also reminds me of how we handle memory in AI agents.
Models have anterograde amnesia. They don't remember anything that wasn't in their weights or their context window, so we've built an entire cottage industry of specialized memory modules, retrieval pipelines, vector stores, and graph databases to bolt memory on from the outside. The engineering is impressive. I'm just not sure it's the right engineering.
Here's the thing that caught my attention. A group of researchers let an agent do something much simpler. They gave it access to its own event log and let it run SQL queries and search over that log. No specialized memory architecture. And it beat or matched every specialized memory system on the major benchmarks, and it gets better as the model gets smarter.
Richard Sutton would probably nod at this. In The Bitter Lesson, he argued that general methods like search and learning eventually outperform systems built on human domain knowledge. I think this is what that looks like in practice. But I'm also wondering whether we're about to see a wave of "just use SQL" overcorrection, and whether that wave will miss something important about long-horizon reasoning. That's what I want to figure out.
Sutton's lesson, applied to memory
Sutton's bitter lesson says general methods that leverage computation win over hand-engineered domain knowledge, and memory systems have spent years ignoring it. We built episodic buffers, semantic graphs, procedural stores, and typed schemas because they felt like the right abstraction. They mostly just encoded our assumptions about what a model should remember.
The gap shows up in practice. A specialized architecture assumes you know the shape of the useful memory in advance. A general method stores raw text, retrieves by embedding similarity, and lets the model sort it out. The first wins when the domain is stable and narrow. The second wins when the domain shifts, because the model keeps adapting to new inputs instead of breaking against a schema you wrote last quarter.
My take: start with the general version. It's cheaper to reason about and easier to debug. Add specialization only after you've measured a specific failure mode, not because the architecture diagram looked cleaner.
One gotcha the papers don't mention: general memory gets expensive fast. Storing everything and retrieving top-k still burns tokens on every call, and the savings you expected from "just use the model" evaporate when context windows fill up. Specialized stores still earn their keep in high-volume pipelines where cost per request matters.
from sentence_transformers import SentenceTransformer
import faiss, numpy as np
model = SentenceTransformer("all-MiniLM-L6-v2")
store = faiss.IndexFlatL2(384)
texts = []
def remember(text):
vec = model.encode([text])
store.add(vec.astype("float32"))
texts.append(text)
def recall(query, k=3):
vec = model.encode([query])
_, idx = store.search(vec.astype("float32"), k)
return [texts[i] for i in idx[0]]
Sleep time compute
Letta researchers call it "sleep time compute" , the idea that an agent does its useful work not during the conversation, but in the gaps between conversations, when it's effectively offline. The analogy to brain consolidation during sleep is apt enough that I'll use it, but only loosely: sleeping humans aren't running LLM inference, they're replaying and compressing the day's experiences into long-term structure. The agent version is more literal. It takes its own interaction history, re-reads it, and produces something smaller and more durable , updated memory, revised beliefs, compacted context , so that the next session starts from a better place than the last one ended.
What actually happens during that offline pass depends on the implementation, but the shape is consistent: the agent gets handed its own transcript (or a window of it), runs inference over it, and writes the output back into its memory store. That's the part I find genuinely interesting and also slightly unsettling. The agent is editing its own dossier. There's no human in the loop deciding what counts as important, and the "importance" function is just another prompt. If you've ever wondered how an agent ends up with a confidently wrong belief about you, this is one of the places it learns it.
My take: sleep time compute is worth trying if your agent sessions are long and stateful, because context windows are expensive and summarization at session boundaries is a hack that loses detail. The cost is that you're now running inference twice , once for the user, once for the agent's homework , and the second run bills against the same budget. It also doesn't fix bad memory architecture; it just makes bad memory cheaper to maintain.
from openai import OpenAI
client = OpenAI()
transcript = open("session_log.txt").read()
summary = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role": "system", "content": "Extract durable facts, preferences, and open tasks from this conversation. Be concise."},
{"role": "user", "content": transcript},
],
)
print(summary.choices[0].message.content)
The gotcha the announcement won't mention: consolidation quality degrades with transcript length. A 200-turn session gets summarized worse than five 40-turn sessions, and there's no signal in the output telling you which facts got dropped. You only find out weeks later, when the agent confidently contradicts something you told it in March.
SQL over an event log wins
The through-line here is a question about engineering budget. Sutton's point is that general methods such as search and learning tend to beat systems built around human domain knowledge. Applied to agent memory, that suggests the winning approach may be less about crafting memory taxonomies and more about making logs searchable, then letting the model infer structure at query time. The community complaints line up with that: poor retrieval and context bloat look like symptoms of systems that inject too much opinion before retrieval happens.
I think that's partly right, but it underestimates where structure still helps. Raw logs are great for auditability and for "what happened" questions, but poor retrieval and conflation of memory types often come from missing correlation, not just missing search. If every memory becomes a row, you still need good keys, time ranges, and ownership boundaries. Minimal context helps token budgets, yet minimal context can also mean the model re-derives relationships on every call. So the tradeoff isn't memory versus no memory; it's where to spend complexity: ingestion, indexing, or prompt-time retrieval.
The practical takeaway I see is to start with an append-only event log and a boring search interface, then add memory categories only when you can point to a repeated failure. That keeps systems debuggable and avoids premature taxonomy. What I don't know is whether search over raw logs stays cheap once agents run for weeks and ingest multimodal artifacts; cost and latency may reintroduce memory engineering through the back door. Are teams willing to pay that cost for auditability, or will they collapse back into summary caches?
What to actually build
The honest answer is that the field doesn't have a settled one yet, and Sutton's Bitter Lesson looms over the whole conversation as a warning. The systems that have shipped so far lean heavily on human-designed structure — typed memories, retrieval pipelines, injection heuristics — and the commenters pointing out "conflation of memory types" are, I think, describing a symptom of that. When you hand-design categories, you get edge cases where the categories bleed into each other, and the system has no way to resolve the ambiguity because the ambiguity lives in the design. A general method wouldn't try to resolve it at all; it would just store the raw event and let search figure out relevance later.
My read is that the community's preference for searchable raw logs and minimal context injection points in the right direction, but it's only half the lesson. Raw logs give you the data, and minimal injection keeps the context clean, but neither one is learning. Sutton's argument isn't "store everything and grep it." It's that computation applied at scale beats clever representation. A searchable log without a learning loop is just a bigger haystack. I think the systems that actually matter will look more like a search engine over an append-only event store, with a model trained to rank and compress — and that's a fundamentally different engineering bet than what most teams are making today.
The gotcha nobody mentions in these debates: raw logs don't compress themselves. The Bitter Lesson assumes you have enough compute and enough data for general methods to win. Most teams building agent memory have neither. They have a few thousand sessions and a latency budget. For them, a hand-tuned retrieval pipeline may genuinely outperform the general approach, and pretending otherwise is how you end up with a demo that works in the lab and falls apart in production. I don't think that's failure — I think it's just the honest tradeoff, and the teams that win will be the ones who know which regime they're in.
Which leaves one question I can't answer from the available evidence: at what scale of agent usage does the Bitter Lesson actually kick in? Is it ten thousand sessions, a million, ten million? Nobody seems to have measured it. Until someone does, every architecture decision in this space is a bet on a threshold that hasn't been located yet.
Conclusion
The simple version is winning. If an agent can run SQL and search over its own event log and beat or match specialized memory systems across the major benchmarks, most of the clever memory architecture is probably overhead. I'm still not sure what sleep time compute is worth once the base model just gets better at holding and searching the raw log—maybe it becomes indispensable, maybe it's another clever layer the bitter lesson grinds away. Either way, I'd build the SQL-and-search version first and make specialized memory earn its complexity.