{"slug": "asm-cm-compact-persistent-memory-for-ai-agents-without-keeping-the-full-history", "title": "ASM-CM: Compact Persistent Memory for AI Agents Without Keeping the Full History Active", "summary": "Felipe Maya Muniz, founder of AletheionAGI, announced ASM-CM, a compact memory model for persistent AI agents that separates memory from language, achieving 100% MQAR accuracy in a 32K streaming protocol with about 140 KiB retained state per stream and 363.66 MiB peak VRAM. The Diamond Promise experiment passed 15 out of 15 cases, including scenarios with up to 10,000 distractors per character, demonstrating that agent history can grow without proportionally increasing active computational memory.", "body_md": "Hi everyone,\n\nI’m **Felipe Maya Muniz**, founder of [AletheionAGI](https://www.aletheionagi.com) and creator of **ASM — Aletheion State Models**.\n\nI’m developing **ASM-CM**, the **Aletheion Compact Memory Model**, an experimental memory architecture for persistent AI agents.\n\nThe central research question is:\n\n**Can an agent’s history keep growing without its active computational memory growing at the same rate?**\n\nASM-CM does not attempt to replace the language model. Instead, it separates memory from language:\n\n```\nEvents and observations\n        ↓\nASM-CM\ncompact state, associative memory and retrieval\n        ↓\nMinimal relevant context\n        ↓\nLocal or remote LLM\nlanguage and interpretation\n```\n\nThe LLM produces the response. ASM-CM preserves and retrieves associations.\n\nA deterministic application or world model remains responsible for canonical truth, permissions and actions.\n\nWhat Is It Intended For?\n\nPossible applications include:\n\n- persistent NPCs and game worlds;\n- long-running AI agents;\n- customer-service continuity across sessions;\n- private organizational assistants;\n- local memory for remote LLMs;\n- robotics and long-running processes;\n- continuity controllers for long-form audio, video and interactive media;\n- per-user or per-agent isolated memory;\n- systems that need to change the LLM without losing the agent’s memory.\n\nASM-CM is not a database replacement. A practical application may still use databases, event logs, RAG and knowledge graphs.\n\nIts intended role is different:\n\nMaintain a compact active state and recover only the associations relevant to the current interaction.\n\nThe Diamond Promise Experiment\n\nTo make the behavior understandable, we created a small persistent-world experiment called **The Diamond Promise**.\n\nDay 1: Deposit\n\nAldric gives a diamond to Elana and says he will return in three days.\n\nThe deterministic world records:\n\n- Aldric remains the legal owner;\n- Elana becomes the current custodian;\n- Elana remembers the deposit and the promise.\n\nDay 2: Robbery\n\nBram threatens Elana and steals the diamond.\n\nThe world updates the canonical state:\n\n- Aldric remains the legal owner;\n- Bram becomes the canonical holder;\n- Elana no longer possesses the diamond.\n\nElana remembers the robbery because she witnessed it.\n\nAldric does not automatically acquire that knowledge because he was absent.\n\nInterference\n\nThe system then processes thousands of unrelated events per character.\n\nThese distractors test whether the relevant associations survive interference instead of being displaced by everything that happens afterward.\n\nThe memory is also persisted to a snapshot, the process is terminated and another process restores it.\n\nDay 3: Retrieval\n\nAldric returns and asks Elana:\n\n**Where is my diamond?**\n\nASM-CM retrieves two relevant memories from Elana’s state:\n\n```\nAldric deposited the diamond.\nBram threatened Elana and stole it.\n```\n\nOnly the selected memories are sent to a local **Qwen3 8B** model, which produces Elana’s response.\n\nThe LLM cannot change ownership, inventory or past events. Its output is evaluated against both the retrieved memories and the deterministic world state.\n\nThe final checks include:\n\n- deposit retrieved;\n- robbery retrieved;\n- both memories cited by the LLM;\n- Aldric’s private knowledge remained isolated;\n- the no-memory control remained empty;\n- legal ownership was preserved;\n- canonical holder was preserved;\n- memory survived process restart;\n- retrieval survived thousands of distractors.\n\nThe current matrix passed **15 out of 15 cases**, including scenarios with up to **10,000 distractors per character**.\n\nThe hardest case was subsequently evaluated with three independently trained checkpoints.\n\nLong-Streaming Results\n\nIn the frozen **32K streaming protocol**, ASM-CM achieved:\n\n**100% MQAR associative-retrieval accuracy;**\n- approval across three training seeds;\n- approximately\n**140 KiB of retained state per stream;**\n- approximately\n**363.66 MiB peak VRAM** for the evaluated ASM-CM component;\n- stable retained-state size as sequence length increased.\n\nThese numbers apply only to the evaluated memory component and protocol.\n\nA complete system—including an LLM, database, interface and application services—requires additional memory.\n\nThe result does not demonstrate infinite memory. A fixed-size state has finite capacity and may experience interference or forgetting.\n\nA more accurate description is:\n\n**The history can grow without the active neural state growing proportionally with it.**\n\nEndurance Protocol\n\nWe are also testing real elapsed-time persistence:\n\n**1-hour protocol:** passed;\n**6-hour protocol:** passed;\n**24-hour protocol:** currently being finalized;\n**72-hour protocol:** not yet demonstrated.\n\nThe endurance test includes:\n\n- sustained distractor processing;\n- periodic atomic snapshots;\n- termination of the original process;\n- restoration under a different process ID;\n- snapshot-hash verification;\n- final associative-memory probe;\n- retained-state-size gate.\n\nResults will be reported according to the frozen criteria.\n\nThe 24-hour result should not be considered approved until the run and final probe have completed.\n\nWhere Could the Savings Come From?\n\nA conventional agent may repeatedly send a large conversation history to an external LLM.\n\nA compact-memory architecture attempts to send only the relevant retrieved context.\n\nA simplified estimate is:\n\n```\nmonthly input-token savings\n=\nrequests per month\n×\n(full-history tokens − selected-context tokens)\n```\n\nFor example, consider a system with:\n\n- 10,000 persistent agents;\n- 100 interactions per agent per day;\n- 10,000 historical tokens normally resent per interaction;\n- 1,000 selected tokens sent after memory retrieval.\n\nThe difference would be:\n\n```\n10,000 × 100 × 30 × (10,000 − 1,000)\n= 270 billion fewer input tokens per month\n```\n\nThis is a scenario, not a measured customer result.\n\nActual financial savings depend on:\n\n- provider and model pricing;\n- prompt caching;\n- average context length;\n- retrieval accuracy;\n- local infrastructure;\n- request frequency;\n- how much historical context the current system already avoids.\n\nASM-CM would not eliminate all LLM or infrastructure costs.\n\nThe relevant commercial question is whether the cost of operating the memory layer is lower than the context, latency and privacy costs it avoids.\n\nComparison With Transformers and RAG\n\nA Transformer can answer the Diamond Promise correctly if it receives the relevant history.\n\nA RAG system may also retrieve the deposit and robbery from an external store.\n\nTherefore, the claim is not that only ASM-CM can remember.\n\nThe differentiating hypothesis is:\n\n- bounded active neural state;\n- associative retrieval;\n- persistence across processes;\n- isolated memory per character or agent;\n- independence from the language model;\n- minimal context disclosure to local or remote LLMs.\n\nRAG asks approximately:\n\n**Which stored documents are similar to this query?**\n\nASM-CM investigates:\n\n**Which associations should this agent recover in its current state?**\n\nThey can be complementary.\n\nA production system could use ASM-CM for active continuity and RAG or databases for durable records and open semantic search.\n\nCurrent Limitations\n\nASM-CM has not demonstrated:\n\n- universal superiority over Transformers or RAG;\n- general narrative understanding;\n- unlimited storage capacity;\n- automatic data security;\n- open-domain semantic retrieval at production scale;\n- superiority in general language modeling.\n\nIn our paired language benchmark, the Transformer baseline still achieved better cross-entropy and training throughput.\n\nThe demonstrated property is narrower:\n\n**Compact, persistent and recoverable associative memory under the evaluated protocols, capable of supplying selected context to an LLM without keeping the complete past active.**\n\nOpen Source and Collaboration\n\nThe source code, tests, reports and reproducible protocols are publicly available under **AGPL-3.0-only**:\n\nCommercial use is permitted under the AGPL-3.0-only when its obligations are satisfied.\n\nSeparate commercial licensing is available for proprietary integration, closed-source deployment, alternative terms and enterprise support.\n\nAletheionAGI is open to conversations involving:\n\n- reproducible independent evaluation;\n- paid pilots;\n- integration with games or agent platforms;\n- commercial licensing;\n- field-of-use exclusivity;\n- joint development;\n- research partnerships;\n- investment;\n- acquisition of the technology or intellectual property.\n\nA good initial pilot would use a small number of agents, a frozen no-memory or RAG baseline and measurable criteria for:\n\n- retrieval;\n- false memories;\n- latency;\n- retained state;\n- privacy;\n- cost.\n\nIf your project has persistent agents that repeatedly carry large histories, I would be interested in understanding the workload and comparing ASM-CM with your current memory architecture.\n\n**Contact:** [contact@aletheionagi.com](mailto:contact@aletheionagi.com)", "url": "https://wpnews.pro/news/asm-cm-compact-persistent-memory-for-ai-agents-without-keeping-the-full-history", "canonical_source": "https://discuss.huggingface.co/t/asm-cm-compact-persistent-memory-for-ai-agents-without-keeping-the-full-history-active/178449#post_4", "published_at": "2026-08-18 00:09:01+00:00", "updated_at": "2026-08-18 00:11:40.200837+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-research", "ai-agents", "ai-infrastructure"], "entities": ["Felipe Maya Muniz", "AletheionAGI", "ASM-CM", "Qwen3 8B", "The Diamond Promise"], "alternates": {"html": "https://wpnews.pro/news/asm-cm-compact-persistent-memory-for-ai-agents-without-keeping-the-full-history", "markdown": "https://wpnews.pro/news/asm-cm-compact-persistent-memory-for-ai-agents-without-keeping-the-full-history.md", "text": "https://wpnews.pro/news/asm-cm-compact-persistent-memory-for-ai-agents-without-keeping-the-full-history.txt", "jsonld": "https://wpnews.pro/news/asm-cm-compact-persistent-memory-for-ai-agents-without-keeping-the-full-history.jsonld"}}