Reproduce “Structured Memory for Edge Language Models: Persistent Context and Corpus Retrieval via O(1) SSM State Injection” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Anusha Madan Gopal, Aras Pirbadian, Kristofor D. Carlson, M Anthony Lewis, Jonathan Tapson

A framework utilizing State-Space Models (SSMs), PRECOG, and SMC, fundamentally refactors Retrieval-Augmented Generation (RAG) and persistent memory systems for edge language models. This approach reduces RAG prefill latency by 4500x and enables O(1) session initialization, allowing interactive, context-aware AI on neuromorphic edge platforms.

Key insights

  • State-Space Models (SSMs) with time-translation invariant recurrences enable exact context state injection, allowing a mathematical refactoring of RAG that eliminates the linear prefill cost seen in Transformers.
  • Lower SSM layers are critical for context aggregation, with injecting states into the bottom 12 layers preserving 99% of RAG performance while halving state storage per chunk.
  • A hierarchical memory architecture can effectively organize and consolidate diverse episodic memories into semantic states, providing a flexible trade-off between memory fidelity and storage, all managed through SSM state injection.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.