Back to Home

Sedimentation of AI memory: how to preserve the agent's personality

The article describes the sedimentation memory architecture for AI agents, which mimics biological processes of experience deposition. The approach solves the problem of losing personal continuity in long-term interaction.

Why AI forgets you — and how to fix it
Advertisement 728x90

Sedimentation of Memory in AI Agents: How to Preserve Personality in Long-Term Interactions

Modern AI agents can maintain context, but they don't truly remember. They can recall facts from previous conversations, but they lose the essence of the relationship—the emotional nuances, shifts in user motivation, and evolution of their goals over time. This renders interactions mechanical, even with millions of tokens of context. A new memory architecture based on the sedimentation principle offers a radically different approach: not storing everything, but letting the essentials settle.

The Problem of “Memory Without Recognition”

Most long-term memory systems for AI are built around Retrieval-Augmented Generation (RAG) and vector databases. These technologies excel at retrieving specific facts: “The user mentioned on March 12 that they use PostgreSQL.” However, they can't answer questions like: “How does the user feel about their project now?”, “What has changed in their priorities over the last three months?”, “What events have been turning points for them?”.

Such memory is an archive, not a personality. The agent can quote the past but doesn't grasp its significance. As a result, after a restart or model update, the user feels a disconnect: the agent “remembers,” but doesn't recognize them.

Google AdInline article slot

Sedimentation as a Biological Metaphor

Metabolic AI proposed an alternative inspired by geology and neurobiology. Memory is treated not as a single repository, but as a multi-layered structure with varying forgetting rates—akin to sedimentary rock layers:

  • Surface layer (seconds–minutes): current conversation, working context, temporary tasks. Information here gets quickly displaced to minimize noise.
  • Middle layer (days–weeks): recurring themes, emotional anchors, behavior patterns. If a user discusses refactoring their codebase for a week, the system doesn't save every message but notes the fact: “project in active development phase.”
  • Deep layer (months–years): key events shaping the agent's “personality”—first successes, major failures, shifts in user roles, system updates. This data isn't deleted; it becomes part of the internal model of world perception.

This approach lets the agent “forget details but remember the essence.”

How Sedimentation Works in Practice

The sedimentation process automatically gauges an event's “density” based on:

Google AdInline article slot
  • Frequency of mentions—the more often a topic comes up, the better its chances of settling into the middle layer.
  • Emotional valence—words with strong valence (“failure,” “breakthrough,” “joy,” “disappointment”) boost the event's weight.
  • Contextual uniqueness—rare but impactful events (e.g., switching to a new role) get priority for deep storage.

As an event sinks to a deeper layer, it sheds details but amplifies its influence on the agent's behavior. For example, instead of storing 50 messages about a bug in a microservice, the system records: “User is stressed due to infrastructure instability.” This insight then shapes the tone, recommendation choices, and even whether to suggest new tools.

Synergy with Classical Methods

Sedimentation doesn't replace RAG—it complements it. The ideal architecture merges two memory types:

  • External memory (RAG): answers “What was said?” Used for precise quoting, recovering technical details, and searching history.
  • Internal memory (sedimentation): answers “Who is speaking and why?” Builds a stable model of the user and their relationship with the agent.

Only together do they enable metabolic memory—the agent's ability not just to store data, but to evolve alongside the user.

Google AdInline article slot

Evidence of Resilience

In internal testing, Metabolic AI logged interactions between one user and a synthetic agent over 279 days. During this period:

  • Three full agent architecture updates were rolled out.
  • The language model handling generation changed twice.
  • Despite this, the agent maintained personality continuity: it recognized the user, adapted its communication style to their current emotional state, and referenced past events as shared experiences.

Key insight: state transfer happened not via weight copying or full chat history, but through the sedimentation layer—a compact representation of key events and their hierarchy.

Key Takeaways

  • Sedimentation is an architectural principle, not just a storage algorithm.
  • Different information types should fade at different rates: facts quickly, emotions slowly, pivotal events never.
  • The approach suits long-term interaction scenarios only (partnerships, mentoring, collaborative projects).
  • Classical LLMs without this memory are doomed to “session amnesia” on any update.
  • Metabolic memory demands both external (RAG) and internal (sedimentation) systems.

This paradigm is especially relevant for developers building professional AI assistants, where trust and contextual continuity outweigh citation precision.

— Editorial Team

Advertisement 728x90

Read Next