How AI systems are being redesigned to decide what knowledge is worth keeping.
Every conversation with a chatbot ends the same way. The model answers, the session closes, and whatever understanding it built dissolves completely. Large language models are stateless during inference, their weights frozen between requests, which means the machine that seemed to understand your problem a moment ago retains nothing once you leave. The defining engineering challenge of the past two years has not been making these systems smarter. It has been figuring out what they should keep, what they should throw away, and whether that decision can be made deliberately rather than by accident.
Memory in a computing system is never free. It costs storage, the compute required to search it, and the risk that stale information will corrupt future reasoning. A system that keeps everything drowns in noise and latency. A system that keeps nothing cannot build on anything it has already done. The interesting designs live in the narrow band between those two failure modes, where retention becomes a governed decision rather than a passive default. What follows is a tour of how that decision is being made across the field, from the millisecond mechanics of a single inference pass to architectures designed to accumulate knowledge over months.
Transformer models depend on a structure called the key-value cache, a transient inference-time memory that stores attention keys and values for every token already processed so they do not need to be recomputed at each new step. Without it, a model generating text one word at a time would have to reconstruct its entire prior output on every forward pass. The cache is what makes long outputs practical, and it is the first place the retention question bites, because it grows linearly with context length and quickly becomes expensive.
The obvious fix, keeping only the most recent tokens in a sliding window and discarding everything older, fails in an unexpected way. A collaboration among MIT, Meta AI, Carnegie Mellon University, and NVIDIA traced the failure to a phenomenon they named the attention sink. Because softmax forces attention scores to sum to one, models learn to deposit surplus attention onto the earliest tokens in a sequence regardless of whether those tokens carry semantic content. Remove them and the arithmetic that stabilizes attention collapses. Output degrades into incoherence not because the model lost important facts but because it lost the structural anchors that made its attention mechanism function correctly.
Their solution, StreamingLLM, permanently preserves a small number of initial tokens as sinks and slides a rolling window across everything else. A model trained on a few thousand tokens can process more than four million without resetting the cache, running up to 22 times faster than alternatives on the same hardware. The lesson is not about content. A tiny fraction of positions carry weight far beyond their semantic meaning, and any useful retention policy has to account for the role a memory plays in the system's mechanics, not only in its reasoning.
When a neural network trained on one task is retrained on another, it tends to overwrite the parameters that encoded the first. Knowledge does not fade gracefully. It is clobbered, because gradient descent has no incentive to respect prior learning unless the training procedure forces it to. The field has called this catastrophic forgetting since the late 1980s, and the name is accurate.
Research from DeepMind addressed the problem with elastic weight consolidation. The method estimates how important each parameter is to a previously learned task using the Fisher information matrix, a measure of how sensitive the model's outputs are to changes in each weight. Parameters identified as critical are penalized if they drift too far from their trained values during subsequent learning, while unimportant ones are left free to change. The algorithm selects, parameter by parameter, what must survive. A 2025 evaluation on knowledge-graph link prediction found that it cut forgetting by 45 percent against naive sequential training while measurably improving task performance.
A separate approach refuses to overwrite at all. Progressive neural networks, also from DeepMind, freeze the network trained on each task and grow a fresh column of neurons for the next, connecting them with lateral links that allow new columns to read learned features from old ones without disturbing their weights. The architecture cannot forget by construction, but pays for that guarantee by growing with every new task. The contrast captures the field's core tension cleanly: protect prior knowledge by constraining change, or protect it by walling it off entirely. Both are legitimate. Neither is free.
Neurosymbolic systems split the retention problem by design. The neural component handles perception and statistical pattern, fluid and approximate. The symbolic component holds explicit, structured knowledge that can be inspected, edited, and reasoned over precisely. Because the two halves store information in fundamentally different formats, they can operate under different rules about what persists, and that asymmetry is proving useful.
IBM Research has built much of this program into production systems. Its Neuro-Symbolic QA architecture translates a natural-language question into a logical form, then reasons over a persistent external knowledge graph to answer it. The neural component parses each incoming question fresh and discards that work immediately. The symbolic knowledge graph endures unchanged across every query. IBM reported competitive benchmark performance without the dataset-specific end-to-end training that purely neural systems require, and the reasoning step remains fully inspectable throughout.
A more recent design makes retention rules explicit rather than implicit. The NeuSymMS architecture uses a language model only to extract facts from conversation, then passes them to a rule-based engine that classifies, deduplicates, and manages them under defined lifecycle policies. Facts are promoted from short-term to long-term storage only after being accessed three times. Unused short-term facts are pruned after 24 hours. Candidates below a confidence threshold are rejected on write. The design treats retention not as an emergent property of learning but as a set of engineering decisions written down and enforced, with the language model acting as a parser and the rules engine acting as a memory manager.
A researcher's working diagram of the selective memory problem: ephemeral inference cache at the bottom, session working memory in the middle, long-term governed store at the top. The retention policy governs what earns a place at each tier. Daice Labs.
The most consequential recent shift treats memory as a resource managed by a dedicated layer, the same way an operating system manages the boundary between RAM and disk. MemGPT, introduced in late 2023, gave a language model a small main context analogous to physical memory and a large external store analogous to disk, with the model issuing function calls to page information between them. The context window stopped being a hard ceiling and became a managed resource with defined semantics for what moves in and what moves out.
MemOS, released in 2025, formalized this into a dedicated memory operating system. It wraps plaintext storage, activation-level state, and parameter-level knowledge in a unified structure called a MemCube, which carries provenance metadata and can be scheduled, migrated, or retired as a unit. On standard long-conversation benchmarks, MemOS reported improvements of more than 150 percent in temporal reasoning over baseline approaches alongside a substantial reduction in token overhead. Production systems have taken a leaner path: the memory layer Mem0 extracts only salient facts from each exchange and discards conversational scaffolding entirely, cutting tail latency from over 17 seconds to under 1.5 and reducing token consumption by roughly 90 percent.
What these systems share is that the retention decision has become explicit and inspectable rather than buried inside model weights or context length limits. Memory is now a designed object with named components, measurable tradeoffs, and its own emerging benchmarks. Machine unlearning has emerged alongside it as the mirror discipline, a set of methods for surgically removing specific information from a trained model to honor deletion requests without retraining from scratch. Retention and erasure are becoming two sides of one design problem.
The attention sink, the consolidated weight, the frozen network column, the promoted fact, and the paged MemCube are all answers to the same question asked at different resolutions: what earns a place in finite memory, and by what rule does everything else get released? What has changed is that the field has stopped treating memory as a passive side effect of computation and started treating it as a governed resource with policies, budgets, and defined lifecycles.
The hard part is that the right policy depends on what the future will ask, which no system knows in advance. Keep too much and costs compound in latency, storage, and contaminated reasoning. Keep too little and the system rebuilds what it already knew, session after session, unable to accumulate anything. Every technique here is a bet about which information will matter later, made under uncertainty, with real consequences for getting it wrong. That is why the same problem keeps surfacing across scales rather than being solved once and closed.
The systems likely to feel most reliable over the coming years will not necessarily be the ones trained on the most data. They will be the ones with the clearest answer to a question that turns out to be harder than it looks: out of everything this run produced, what was actually worth keeping?
Key references: Xiao, G. et al., "Efficient Streaming Language Models with Attention Sinks," ICLR 2024 (MIT, Meta AI, CMU, NVIDIA). Kirkpatrick, J. et al., "Overcoming catastrophic forgetting in neural networks," PNAS 2017 (DeepMind). Rusu, A. et al., "Progressive Neural Networks," arXiv 2016 (DeepMind). IBM Research, Neuro-Symbolic QA and Logical Neural Networks, 2021. iVedha Corporation, "NeuSymMS: A Neuro-Symbolic Memory Management System," arXiv 2026. Packer, C. et al., "MemGPT: Towards LLMs as Operating Systems," arXiv 2023 (UC Berkeley / Letta). MemOS: Memory Operating System for AI, arXiv 2025. Mem0 AI, ECAI 2025 benchmark results.
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.