CraniMem: Cranial Inspired Gated and Bounded Memory for Agentic Systems

Pearl Mody, Mihir Panchal, Rishit Kar, Kiran Bhowmick, Ruhina Karani · 2026

Read CraniMem: Cranial Inspired Gated and Bounded Memory for Agentic Systems by Pearl Mody, Mihir Panchal, Rishit Kar, Kiran Bhowmick, Ruhina Karani (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-15642.txt.

Introduction

Mody and co-authors present CraniMem, a memory design for long-running language model agents. Many agent memory stores act like loose databases with ad hoc rules. That habit brings unstable retention and weak consolidation. CraniMem gates writes by goals and tags items by utility. A bounded short-term buffer holds recent turns. A knowledge graph holds durable facts. A replay loop moves high-value traces into the graph and prunes weak ones. Tests show smaller drops under noise than RAG and Mem0 baselines.

Catalog record

CREATORPearl Mody, Mihir Panchal, Rishit Kar, Kiran Bhowmick, Ruhina Karani
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE22832
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.15642

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

CraniMem: Cranial Inspired Gated and Bounded Memory for Agentic Systems Pearl Mody, Mihir Panchal, Rishit Kar, Kiran Bhowmick, Ruhina Karani Abstract Large language model (LLM) agents are increasingly deployed in long running workflows, where they must preserve user and task state across many turns. Many existing agent memory systems behave like external databases with ad hoc read/write rules, which can yield unstable retention, limited consolidation, and vulnerability to distractor content. We present CraniMem , a neurocognitively motivated, gated and bounded multi-stage memory design for agentic systems. CraniMem couples goal conditioned gating and utility tagging with a bounded episodic buffer for near term continuity and a structured long-term knowledge graph for durable semantic recall. A scheduled consolidation loop replays high utility traces into the graph while pruning low utility items, keeping memory growth in check and reducing interference. On long horizon benchmarks evaluated under both clean inputs and injected noise, CraniMem is more robust than a Vanilla RAG and Mem0 baseline and exhibits smaller performance drops under distraction. Our code is available at https://github.com/PearlMody05/Cranimem and the accompanying PyPI package at https://pypi.org/project/cranimem . 1 Introduction Large language model LLM agents increasingly operate over long horizons, they plan, execute tools, collaborate with other agents, and interact with users over days or weeks. In these settings, memory is no longer a simple context window, but a system component that must decide what to store, when to retrieve it, and how to keep knowledge consistent across multiple agent roles and tasks. Recent work has proposed long-term memory stacks for agents, for example production oriented persistent stores and indexing pipelines, as well as specialized agentic memory modules for retrieval and reasoning ( 1 ; 13 ; 4 ; 3 ) . However, many current designs treat memory as an external database with heuristic write/read policies, which can lead to brittle retention where important events are overwritten by noise, weak consolidation across time, and poor synchronization when multiple agents contribute partially overlapping beliefs ( 16 ; 5 ) . Motivated by findings from neuroscience and cognitive science, we argue that agentic memory should be designed as a gated, bounded, and multi-stage process, similar to how biological systems regulate encoding, consolidation, and retrieval across hippocampal cortical pathways ( 15 ; 2 ) . Building on this perspective, we introduce CraniMem , a neurobiologically inspired memory framework for agentic systems that explicitly separates transient working and episodic traces, consolidated long-term knowledge, and control gates that decide what enters memory, what is rehearsed, and what is exposed to downstream reasoning. Our key contributions are: 1. We propose CraniMem , a gated and bounded multi-stage memory architecture that supports selective encoding, consolidation, and retrieval for long horizon agent behavior. 2. We introduce a dual-store memory architecture with explicit consolidation pathways that separate episodic and semantic memory, enabling rapid adaptation alongside stable knowledge formation without unbounded growth. 3. Through comprehensive evaluation on long horizon benchmarks, we demonstrate that selective forgetting via importance weighting and temporal decay outperforms both unlimited retention and aggressive compression, yielding higher information stability and comparable resistance to distraction. 2 Related Works 2.1 Multi Agent Memory Architectures A growing body of work studies how to equip LLM agents with persistent memory beyond the prompt window. Systems such as Mem0 focus on production ready long-term memory with scalable storage, retrieval, and update mechanisms ( 1 ) . A-Mem formalizes agentic memory as a component that supports writing experiences and retrieving them for downstream planning and decision making ( 13 ) . Lightweight designs like LiCoMemory aim to reduce memory overhead while maintaining long-term reasoning ability ( 4 ) . Broader surveys highlight recurring design axes what to store between facts and experiences, how to index and retrieve, and how to prevent drift or stale information and emphasize the gap between memory as a database and memory as an adaptive cognitive process ( 3 ; 9 ) . In multi-agent settings, memory must also address synchronization and heterogeneity. Intrinsic Memory Agents introduce structured contextual memory to coordinate heterogeneous agents and improve collaboration ( 16 ) . PersonaMem-v2 targets personalization by learning implicit user personas and maintaining long-term user specific memory, which introduces additional challenges around stability and updating user models over time ( 5 ) . ( 12 ) argue that procedural memory alone is insufficient for robust agent behavior, motivating richer memory types and control mechanisms . 2.2 Neuroscience Inspired Memory Components Neuroscience inspired approaches increasingly inform how memory should be organized for LLMs and agents. HippoRAG proposes a long-term memory mechanism driven by neurobiological motivation that draws inspiration from hippocampal indexing for retrieval ( 6 ) . Other work explores hippocampal inspired multimodal memory to support long understanding of audiovisual events ( 8 ) . Position papers argue that episodic memory is a key missing ingredient for long-term agent coherence and that agents should store causally linked time stamped experiences rather than only distilled facts ( 10 ) . Complementary lines of research examine cognitive memory mechanisms in LLMs and agentic frameworks, including how memory representations might be structured, consolidated, and used for reasoning ( 11 ) . Brain inspired multi-memory agent frameworks for embodied learning further motivate separating memory stores and using control policies to regulate encoding and retrieval ( 7 ) . Our work follows this trend, but focuses specifically on gated and bounded memory operations to improve retention and consistency in long horizon agentic systems. 3 CraniMem Figure 1: CraniMem architecture. The pipeline implements ingestion via RAS inspired gating and utility tagging, short-term storage in a bounded episodic buffer, optimization through replay selection and pruning to Trash, long-term structural storage via a linkage engine that updates a knowledge graph, and dual-path retrieval using both the buffer and the graph. CraniMem is a memory component for long horizon LLM agents designed around two neurocognitive principles. First, attentional gating reduces interference by suppressing low-salience inputs before they reach memory, analogous to brainstem and thalamic control systems that regulate access to downstream processing. Second, systems consolidation stabilizes knowledge by transferring selected experiences from a fast episodic store to a slower semantic store through replay. Operationally, CraniMem maintains two bounded stores and a periodic optimization loop. Recent interaction traces are stored in an episodic buffer that supports high fidelity short range continuity and provides candidates for consolidation. Durable information such as user preferences, constraints, and stable plans is stored in a structured knowledge graph that supports consistent multi-hop retrieval. A gating module filters candidate writes and assigns utility signals that drive which items are rehearsed. During consolidation, high-utility episodic traces are integrated into the knowledge graph and low utility traces are discarded to keep memory bounded. Algorithmic details for gating, replay scoring, linkage, and retrieval are provided in Appendix B . 4 Evaluation Protocol Clean vs. Noisy evaluation In the clean setting, the agent receives only task relevant interaction traces, and the memory write stream contains only those traces. In the noisy setting, we inject distractor snippets into the same write stream to simulate context pollution. Following a fixed injection schedule, we add m irrelevant distractor memories per injection event. The distractors are unrelated to the current goal, but are written to memory using the same write policy as task

Read the complete text