External Semantic Memory Architecture for Multi-Agent LLM Systems
github.com·5d·
Discuss: DEV
💸Affordable LLMs
Preview
Report Post

A Formal Framework Enabling Cost-Efficient Semantic Code Transformation through Hybrid Deterministic-Probabilistic Processing

Abstract

Large Language Models (LLMs) demonstrate impressive reasoning capabilities but lack persistent, structured external memory. Existing agent paradigms (ReAct, Tree-of-Thoughts, Plan-and-Execute) encode world state implicitly within context windows, causing O(n²) context growth, state drift, and architectural unsuitability for large-scale semantic tasks.

We introduce External Semantic Memory Architecture (ESMA), a formal framework where world state is externalized into typed, hierarchical state machines with semantic namespaces. Under ESMA, snapshots encode state i...