@xiaogaifun: https://x.com/xiaogaifun/status/2124750080779710561
Summary
The author interprets Anthropic's blog post on Agent Memory, putting forward the idea that "memory is a prediction of future needs," and introduces in detail the MemT project, which natively integrates memory capabilities into base models. Its MemT-1.0-Pro, developed in partnership with NVIDIA and built on Nemotron 3 Ultra, ranks first on relevant benchmarks; the author believes that native memory is the mainstream approach for the next generation of Agent Memory.
View Cached Full Text
Cached at: 11/23/26, 01:04 PM
Yes, Memory Should Be a Native Capability of the Model
Over the weekend I read Anthropic’s blog post about Agent Memory — a really well-written piece. It raised a very thought-provoking idea:
Memory can be a prediction about what the future will need.
What does that mean?
Their argument is that the core challenge in current Agent Memory approaches is deciding which information is worth committing to long-term memory. And that decision should be made by the model itself rather than relying entirely on an external harness. The model needs to predict, based on the current context, which pieces of information the user is likely to need again in the future.
Through experiments, Anthropic’s researchers found that the more capable the model is, the more accurate its judgment tends to be in this area.
So at least within Anthropic’s current memory architecture, even though the memories themselves are still stored in external files, the decisions about what should become a memory and how to organize and maintain those memories increasingly rely on the model’s own capabilities.
This reminded me of another project I came across a while ago called MemT. Its approach is similar to Anthropic’s but more radical — it integrates memory capability directly into the base model’s computation.
I’ve actually discussed Agent Memory with quite a few people in the industry. The general consensus is to draw inspiration from how the human brain works.
Hinton made a point a couple of years ago. He argued that humans can even be seen as a kind of large language model.
I won’t go into that today, but I do think humans are remarkably sophisticated organisms. For instance, in embodied AI, when people explore fine-grained robot control, they also draw on the mechanisms of the human brain and cerebellum.
Memory is the same.
The human brain has evolved over a long period to develop a memory mechanism that is both complex and elegant.
Think about it — in our daily lives, we’re constantly forming new memories while also constantly forgetting. The hippocampus helps us quickly record current experiences. But the brain doesn’t permanently store everything that happens each day exactly as it occurred.
During sleep and rest, the brain reprocesses recent experiences. Through mechanisms like memory replay, some information gradually gets consolidated into more stable long-term memory.
I feel that the MemT project is already very similar to the brain’s mechanisms when it comes to memory formation and use.
It integrates memory directly into the model, adding a dedicated memory processing module to the original Transformer. After each conversation round, this module updates the internal memory state through operations like writing, erasing, and forgetting, based on the just-completed exchange.
At the next interaction, the model can read the accumulated memories from the past and participate directly in the current computation. Since Memory is a native module of the model, it doesn’t need to retrieve relevant memories from external sources and load them into the Context like other Agent Memory systems do.
These aren’t just concepts — they’ve been put into practice.
I just did a quick search and found that they’ve partnered with NVIDIA, building on NVIDIA’s own 550B-parameter model, Nemotron 3 Ultra, to add MemT-1.0’s native memory module to the existing architecture, producing MemT-1.0-Pro.
The results are quite good. MemT-1.0-Pro ranks first on relevant benchmarks, and it has essentially no negative impact on the model’s overall intelligence.
I’ve included the paper at the end. Take a look when you have time — it’s definitely eye-opening. Personally, I believe MemT’s approach is the major trend of the future.
Next, let me share my own understanding of this technology.
Parameterized memory isn’t something only MemT is working on. The reason I bring it up is that they’re already the leader in this category.
Many people might wonder when they hear about parameterized memory: does the base model’s weights need to be modified every time the model finishes a conversation with a user and updates memory?
No.
Let me explain. MemT splits memory into two parts.
One part is called Hyper Memory.
Simply put, it’s responsible for teaching the model how to handle memory — including how to write, erase, forget, and read it.
This capability is acquired through training. Once training is complete, the relevant parameters remain fixed during normal use and won’t be modified just because the model had a conversation with a user.
This is actually quite similar to the brain’s memory mechanism we discussed earlier.
We don’t record everything we experience each day. Some things gradually fade away, while some memories are continuously updated by new experiences.
For example, if you originally thought someone was really handsome, but then you met them in person and found it wasn’t all that impressive, you’d need to update your impression.
The other part is called Local Memory.
It’s responsible for storing the specific memories the model accumulates during interactions with users.
Here’s an example.
Suppose today I tell the AI that I like Americano coffee and don’t like lattes. After this round of conversation ends, MemT uses the read/write mechanisms learned in Hyper Memory to write this information into Local Memory.
When I talk to the AI tomorrow, it can directly read the information stored in Local Memory and know what kind of coffee I like.
In other words, Local Memory stores information that accumulates and updates over time through interactions. Moreover, different users have their own independent Local Memories that don’t interfere with each other. Everyone shares the same base model, but the memories each person accumulates are completely isolated.
So how do they decide which memories should be forgotten and which information should enter long-term memory?
As I mentioned earlier, MemT has a module called Hyper Memory that’s specifically responsible for learning how to process memory. Because it’s built into the model itself, it can directly learn through training which information is worth keeping, which can be forgotten, and how to update and read memories.
I went through the paper and found that they use the distillation approach we’re all very familiar with. This approach is indeed the most cost-effective — it allows the model to quickly acquire native memory capabilities without retraining the entire large model.
Let me explain their distillation method in plain language.
Suppose we provide the model with a very long historical conversation containing a lot of information — the user’s profession, interests, food preferences, along with all sorts of trivial small talk.
During training, there are two models.
One is the teacher model, which can see the full historical conversation. The other is the student model — that is, MemT — which can only see the current input and the information previously accumulated in Local Memory.
Then they’re asked to answer the same question.
Suppose the question is: what kind of coffee does this user usually like? The teacher model can see the full history, so it knows the user previously said they like Americano.
But if the student model didn’t effectively save that piece of information earlier, or saved it but failed to read it correctly, it might answer incorrectly.
What happens then?
The training system compares the teacher model’s output with the student model’s output, and based on the gap between the two, adjusts the parameters of the MemT memory module accordingly.
Note that the teacher model doesn’t directly tell the student “you forgot to save that the user likes Americano.”
Instead, it provides training signals through its outputs, enabling the student model to learn through many such training rounds how to retain important information, update past memories, and accurately retrieve them when needed.
Looking back, from the beginning of this year to now, the native memory technical approach has been progressing quite fast.
The MemT paper included some tests at the end, finding that in Coding Agent scenarios, native memory can already achieve results comparable to traditional text-based memory.
Actually, I think as long as this technology matures enough, native memory will definitely have significant advantages over the current bolt-on memory mechanisms. That’s without question.
Because in its implementation, it’s closer to how the human brain forms, updates, and uses memories. And it doesn’t need to repeatedly load memories into the context.
After all, its memory is stored in the form of internal state and can directly participate in the Transformer’s computation. I think there’s a lot of room for imagination in terms of efficiency and flexibility. Meanwhile, the model can continuously improve its ability to store, update, and read memories through training.
Of course, this technology is definitely not mature enough yet. But I firmly believe it is the mainstream technical path for the next generation of Agent Memory.
Similar Articles
@xiaogaifun: https://x.com/xiaogaifun/status/2123710596139139286
An in-depth analysis of Anthropic’s research article on Agent Memory, focusing on its four-layer memory architecture (Transcripts, Memory Notes, Memory Memories Representations, and Injected Context) and the Dreaming mechanism for organizing memories during idle time, inspired by memory replay in the human brain. It also highlights long-term memory as the key to building an effective Personal Agent.
@yyyole: Agent memory entrepreneurship is booming! Many teams are working on it, with several mainstream approaches: The first, most brute-force: context expansion. The second, most common: RAG/vector database route, embedding historical content into a vector store for retrieval. The third is product-oriented: memory API route, packaging memory as an API for direct calls. Each approach has its clear pros and cons!
Introduces several mainstream approaches to Agent memory entrepreneurship, recommends the EverMind team's open-source project EverOS, which provides a Markdown-sourced local memory OS supporting dual-track memory, multimodal ingestion, and self-evolution capabilities.
@Pluvio9yte: Finally, someone is seriously tackling the pain point where models start losing their memory once the context gets long. There's a default assumption the industry has always taken for granted — but is actually deeply flawed: the moment a large model ships, its capabilities are completely frozen. Today, all the engineering effort to make models "remember" happens almost entirely outside the model...
The MemTensor team releases MemT 1.0, pushing memory mechanisms from bolt-on RAG and Agent Memory into the core of model computation, allowing models to accumulate experience while solving tasks. Official tests show improvements of over 5% in Coding and Working scenarios, and the source code is now open-sourced on Hugging Face.
@meow2149: How Should You Design a Long-Term Memory System When Building Your Own Agent? Recently I studied the memory mechanisms behind Codex, Claude Code, OpenClaw, Hermes Agent, and other products, along with research in the Agent Memory field. If I were to design one, I would build a dedicated memory subsystem (Memory Subsystem) in the Harness, consisting mainly of the following nine parts. 1、Memory Admission Use an LLM with Structured Output to extract user preferences, historical decisions, domain knowledge, and execution experience from authorized historical conversations and task execution records. Filter memories based on long-term value, applicability, and evidence quality, distinguishing between explicit user statements, external observations, and model inferences. Unverified inferences are kept only as candidate memories and are not treated as confirmed facts. Every memory retains its original source and source category. Sensitive information that should not be retained is filtered during the data collection stage, and authorization for retaining historical records is managed separately from authorization for using cross-session memories. 2、Hierarchical Memory Use a three-tier memory structure: ▪︎ L0: Core memory and navigation index. ▪︎ L1: Structured facts, domain knowledge, and task experience. ▪︎ L2: Raw conversations, tool calls, and execution records. Combined with Progressive Disclosure, new sessions load a permission-filtered L0 by default, L1 is retrieved on demand, and L2 is used to trace back to raw evidence the agent has permission to access. A fixed token budget is set for core memory to prevent the resident context from growing continuously as memory volume increases. Memory tier determines how information is loaded, not its credibility. 3、Dual-path Writing When a user explicitly requests saving, correcting, or deleting a memory, changes are submitted synchronously; for normal sessions that have been granted cross-session memory usage authorization, a background Worker extracts memories asynchronously. Each memory contains fields such as ID, content, source, scope, version, and status. Duplicate submissions and concurrent updates are handled through transactions, idempotency keys, and optimistic locking. Fact conflicts are identified by subject, attribute, applicability conditions, and effective time, then adjudicated based on sources and evidence; if no resolution is possible, the disputed status is retained. Borrowing Hermes Agent's Frozen Snapshot mechanism, memory persistence is decoupled from Prompt updates, keeping the prompt prefix containing core memory as stable as possible within a session to facilitate Prompt Cache reuse. Key corrections are synced through incremental context, with snapshot rebuilding when necessary. After a synchronous submission, subsequent reads open a new database read transaction to fetch the latest records. Full-text and vector indexes use eventual consistency — new memories may appear in search results with a delay, but outdated versions can no longer be returned as current facts. 4、Active Memory Retrieval Use Hybrid Retrieval combining BM25 full-text search with Embedding-based vector similarity search, fusing the two ranked result sets via RRF (Reciprocal Rank Fusion). Structured fields are precisely looked up through database indexes. First, define the candidate scope based on current permissions, scope, and usage authorization from authoritative data sources, letting these constraints participate directly in each retrieval path's Top-K recall rather than relying on potentially stale indexed permission fields or post-filtering after a full-database search. Expose three memory tools to the Agent: ▪︎ memory_search: retrieve relevant memories. ▪︎ memory_read: read detailed content of a specified memory. ▪︎ session_search: search historical conversations and raw evidence. The Agent initiates retrieval autonomously based on the current task, supporting multi-turn queries and evidence trace-back, with retrieval budgets in place. Retrieval relevance and memory credibility are evaluated separately. Recall results are also assessed against applicability conditions, target time, evidence quality, and version status to determine whether they apply to the current task. 5、Background Memory Consolidation (Dreaming) Borrowing the idea of Sleep-time Compute, introduce an independent Memory Worker to asynchronously organize cross-session memories. It is mainly responsible for four types of tasks: ▪︎ Consolidation: merging duplicate memories and organizing related knowledge. ▪︎ Reflection: tracing back to raw evidence and correcting erroneous generalizations. ▪︎ Promotion: moving stable, well-evidenced memories that need frequent use into the core layer. ▪︎ Demotion: removing memories no longer suitable for the resident context from the core layer while retaining on-demand retrieval capability. Use a persistent task queue and incremental cursors to process new and changed data, tracing back related memories on demand to avoid repeatedly scanning the entire history. Memory changes and their corresponding background tasks are committed in the same transaction, with task retries, idempotent processing, and recoverable incremental cursors ensuring that even if the process exits abnormally, committed changes can still be reprocessed by the Worker. Memory promotion is based on evidence support and reuse demand rather than simply recall count. Consolidated memories retain their original source and derivation relationships. Provenance Tracking identifies evidence from the same source, preventing a Recall Feedback Loop where the same memory is mistaken for having gained new independent evidence through repeated extraction and consolidation. 6、Temporal Memory & Forgetting For facts that change over time, reference the bitemporal model used by Zep / Graphiti. ▪︎ Valid Time: the time interval during which the fact holds true in the real world. ▪︎ Transaction Time: the time interval from when the fact version was recorded by the system until it is superseded or retracted. Maintain fact evolution through versions and supersedes relationships, supporting queries for current facts, historical facts, and what the system knew at a past point in time. Fact versions are selected based on the time point specified in the query, but access permissions, usage authorization, and deletion status always reflect the current effective state at read time. Introduce decay and fact invalidation mechanisms to handle changes in memory retrieval priority and fact validity, respectively. Memory deletion uses a Tombstone mechanism: first, mark the deletion synchronously to block subsequent reads and context injection, then asynchronously clean up memory content, associated summaries, indexes, caches, and other derived data. Deletion constraints not only reference memory IDs but must also cover excluded raw evidence snippets and their derivation relationships. Background tasks must validate deletion status and current authorization at both the extraction and commit stages, with final validation and writes completed in the same transaction to prevent stale tasks launched before a deletion from rewriting the same memory with a new ID afterward. 7、Memory Scoping & Governance Organize memories along four dimensions — User, Agent, Project, and Team — using composite access control to achieve sharing and isolation across different scopes. The Harness uniformly enforces permission and usage authorization checks for memory writes, retrieval, context injection, background consolidation, and derived data access. When deleting or revoking authorization, affected context snapshots and file views are invalidated synchronously, and context is rebuilt before the next model call, removing restricted memories from historical messages and tool returns. Separate fact credibility from instruction execution authority. Derived memories inherit the original source category and permission constraints; external statements not confirmed by the user cannot be directly converted into user preferences, and memory content cannot elevate its own instruction authority. Through source validation, structured extraction, and controlled writes, reduce the risk of Prompt Injection escalating through memory extraction, background consolidation, and cross-session recall into persistent memory poisoning. 8、Procedural Memory Through Reflection, distill task execution experience that has been practically validated and has stable reuse value into reviewable Skills. Organize SKILL.md according to the Agent Skills specification, along with on-demand scripts and reference resources, clearly defining applicable environments, prerequisites, operation flows, verification methods, and success criteria. Manage reviewed Skill files and version history — free of personal memories and sensitive information — through Git; meanwhile, use SQLite to uniformly maintain each Skill's effective version, enabled status, scope, and authorization information. The Harness loads Skills on demand via Progressive Disclosure based on the effective version recorded in SQLite. File changes in Git do not directly change the Skill version the Agent is currently using. 9、Storage Architecture Use a local-first unified storage architecture. ▪︎ SQLite: the single source of truth for memory records, permissions, and effective status. ▪︎ Markdown: reconstructable views of core memory and detailed knowledge. ▪︎ FTS5: full-text search with BM25 ranking. ▪︎ sqlite-vec: vector storage and similarity search. ▪︎ RRF: fusing ranked results from full-text and vector retrieval. ▪︎ SQLite-backed Task Queue: background task scheduling, incremental processing, and failure retries. ▪︎ Git: Skill file and version history management. All memory records and effective status changes are uniformly committed to SQLite, with Markdown and search indexes updated asynchronously as derived views. All derived views are read through a controlled access layer. Before returning results, fact versions are validated against the query time point, and deletion markers and access authorizations are cross-checked against the latest database state. Derived views may be eventually consistent, but deletions, authorization revocations, and usage authorization changes must take effect immediately in subsequent new reads, avoiding reuse of stale database read transactions or context snapshots. In this local-first architecture, memory storage, full-text search, vector search, and the persistent task queue all run on SQLite, with the Harness managing the memory lifecycle uniformly — no need to deploy a separate vector database, search engine, or message queue service.
作者在研究 Codex、Claude Code、OpenClaw、Hermes Agent 等产品的记忆机制后,提出了一套包含九个模块的 Agent 长期记忆子系统设计方案,涵盖记忆准入、分层记忆、双路径写入、混合检索、后台整合、时序遗忘、安全治理、程序性记忆与本地优先存储架构。
@AdinaYakup: Hy Memory New memory model for AI agents from @TencentHunyuan - 30B MoE / 3B active - Apache 2.0 - Extracts important m…
腾讯混元发布面向 AI 智能体的新记忆模型 Hy Memory:30B MoE 架构(3B 激活参数),Apache 2.0 开源,可从对话中提取重要记忆并自动更新过时记忆。