Every new AI conversation starts the same way. You explain yourself again. You list your preferences. You describe your work context. You re-establish information that the system already had last week.The AI did not forget. It never learned how to remember correctly.I manage multiple clients as a freelancer. Each client has a different voice, different preferences, and a history that builds over months. When I open a new AI conversation, all of that collapses into one flat layer. My global preferences sit next to a specific client's brand rules. Last week's context sits next to permanent identity facts. The system treats all of it as equal.Nothing decays. Nothing is scoped. When I switch clients, the context does not switch with me.This is not a memory failure. This is a design failure.Operating systems solved this decades ago The solution already exists. It is called memory management. Memory management is not about storing more data. It is about governing what gets stored, at what level, for how long, and why.Operating systems use four mechanisms. Garbage collection removes data that nothing references anymore. Cache eviction removes low-priority data when storage fills. The two standard eviction policies are Least Recently Used (LRU), which removes data not accessed recently, and Least Frequently Used (LFU), which removes data not accessed often. Memory compaction reorganizes fragmented data into continuous blocks. Namespacing separates memory into isolated regions, one per process, so they do not interfere with each other.AI products have none of these.They can persist information across sessions. That capability is called persistent memory. But they have no policies governing what to persist, at what scope, for how long, or why. They store. They do not manage.A database and a managed memory system are different architectures. A database asks: Can we store this? A managed system asks: should we store this, at what level, for how long, and under what conditions? AI products answer the first question. They ignore the second.There is a prior problem. Before memory management can work, AI products need to solve something more fundamental. They need to know what time it is. Not just the date. What the date means.Most AI products receive the current date in their context. Receiving the date is not the same as reasoning about it. An AI product can know the date is July 2026 and still answer using information from eight months ago without flagging the gap. It does not recognize that the gap exists.Temporal access and temporal reasoning are different capabilities.Every principle in this framework depends on temporal reasoning. Relevance decay requires knowing when a memory was last reinforced. Provenance requires knowing how old an inference is. The difference between a current fact and a stale one is meaningless without a reliable sense of now.This is the foundational problem. The five principles below assume AI products solve it.Five principles for managed AI memory. 1. Scope memory, do not flatten it Current AI products store everything at one level. A fact about your preferred writing style sits next to a specific client's formatting rules, next to the time of your next meeting. The system treats them as equal. They are not equal. A managed system uses three levels.Global memory holds facts that apply across all contexts. Preferred writing style. Timezone. Default tools. These facts do not change between clients or projects.Contextual memory holds facts that apply to one client or project. A client's brand voice. A project's open decisions. A specific relationship's history. These facts belong to that context and should not bleed into others.Ephemeral memory holds facts that apply to one conversation. A draft in progress. A question is being worked through. A meeting time. These facts expire when the session ends.Scoped memory applies different persistence rules at each level. Flat memory applies none.2. Decay by relevance, not by default Some facts are stable. "User prefers formal prose" may stay true for years. Some facts expire fast. "User is traveling to Japan next month" becomes irrelevant in weeks. Time-based expiration treats both the same. That is wrong. Relevance decay tracks two signals. First, the type of information. Second, whether recent interactions have reinforced it. When a user stops referencing a piece of information, that absence is a signal. The system reduces the weight of unreinforced memories. It does not delete them immediately. It lowers the confidence with which it uses them.The difference between certain and uncertain is not binary. It is a score that changes over time.3. Tag every memory with its origin A user asks one Python question. The system stores "user prefers Python." A user mentions running once. The system stores "user is a runner." Neither is an observed fact. Both are inferences stored as facts. The system does not distinguish between them. Every memory should carry one of three origin tags.Observed means the user stated this fact directly. Inferred means the system derived it from behavior. Confirmed means the user reviewed an inference and validated it.Only confirmed memories should be durable. Inferred memories should carry lower confidence. Before an inference influences a consequential response, the system should verify it with the user. Storing an inference as a fact is not memory. It is an assumption.4. Replace, do not accumulate A user mentions three different cities over two years. A flat system stores all three and holds the contradiction. A managed system recognizes that the current city is an identity attribute with one current value. When the value changes, the system updates it. Version history can exist in the background for audit purposes. The active memory holds the current state. It does not accumulate every previous state alongside it.This is the equivalent of memory compaction. Consolidate contradictory information into one current representation. Do not preserve fragments that no longer reflect reality.5. Make retrieval justify retention A memory that has not influenced any response over an extended period should not persist by default. The governing question is not whether the memory exists. The governing question is whether the memory has been useful. Utility-based retention means inactive memories lose their claim to storage over time. A memory earns its place by being retrieved and used. When it stops being retrieved, its claim weakens.This is the equivalent of garbage collection applied to knowledge. Not every unused memory gets deleted. But every memory must earn its continued existence.The stakes are not abstract. These principles are not design preferences. The consequences scale with the sensitivity of the domain. In mental health AI, a stale context is not an inconvenience. A system holding a prior crisis disclosure as a current fact has no mechanism to recognize that the person's situation has changed. It applies the old clinical context to current interactions. That is not a minor error. I examined this directly in an earlier piece on the context problem in mental health AI [link]. Unmanaged memory is one of the mechanisms producing that safety gap.Mental health is the extreme case. The principle applies everywhere. The higher the stakes, the more the cost of unmanaged memory compounds.The policy question nobody has answered AI products treat memory as a feature. The next stage is treating it as a system. A feature is added. A system is governed. Governance requires policies that answer specific questions. What qualifies for storage? At what scope? With what provenance? Under what decay conditions? Subject to what retention criteria?Most AI products have answered the capacity question. They have not answered the policy questions.The software industry learned this with databases, with caches, and with operating system memory allocation. The hard problem was never storage. The hard problem was always policy. What gets kept. What gets replaced. What gets dropped. Who decides.AI memory needs the same reckoning.
AI Products Have Memory - They Don't Have Memory Management
Full Article
Original Source
Read the full article at Hackernoon →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.