---
title: 'MemMA: Memory-Augmented Multi-Agent Framework'
url: https://www.emergentmind.com/topics/memma
type: topic
---

# MemMA: Memory-Augmented Multi-Agent Framework

Searching arXiv for the specified paper and closely related memory-agent work.
MemMA is a plug-and-play multi-agent framework for memory-augmented LLM agents that coordinates the entire memory cycle along both its forward path—construction and retrieval—and its backward path—verification and repair [2603.18718]. It is motivated by the observation that long-horizon agents maintain an external memory bank $M$ to sustain coherent interaction over many sessions, yet most existing systems treat memory construction, retrieval, and utilization as isolated subroutines. In the MemMA formulation, this isolation produces two coupled obstacles: strategic blindness on the forward path, where construction and retrieval are driven by local heuristics rather than explicit strategic reasoning, and sparse, delayed supervision on the backward path, where downstream failures rarely translate into direct repair of the memory bank. MemMA addresses these obstacles through multi-agent planning and execution, diagnosis-guided iterative retrieval, and in-situ self-evolving memory construction that converts probe failures into localized repair actions before memory is finalized [2603.18718].

## 1. Problem formulation and the memory cycle effect

MemMA is designed for long-horizon LLM agents whose memory bank $M$ stores structured entries containing text and metadata such as timestamp, source, and speaker, while a stream of chunks $C$ is organized into sessions $S$ and later queried through retrieved evidence from $M$ [2603.18718]. Its central premise is that memory construction, retrieval, and utilization are tightly coupled: poor construction constrains retrieval, retrieval outcomes constrain utilization, and utilization failures should feed back to improve construction. The paper describes this closed-loop perspective as the “memory cycle effect” [2603.18718].

The forward-path failure mode is termed strategic blindness. In construction, this appears as “Myopic Construction,” where redundant or conflicting facts are accumulated without resolution. In retrieval, it appears as “Aimless Retrieval,” where shallow, repetitive query rewrites drift without closing the true information gap. The backward-path failure mode is sparse, delayed supervision: wrong answers seldom yield direct credit assignment to earlier construction decisions, so flawed memories propagate [2603.18718].

This formulation places MemMA within a broader line of memory-agent research, but with a specific emphasis on end-to-end coordination rather than isolated optimization of storage, organization, or retrieval. The paper explicitly contrasts prior systems that optimize storage, organization, or retrieval largely in isolation with MemMA’s attempt to coordinate the entire memory cycle [2603.18718]. A plausible implication is that MemMA treats memory quality as an emergent property of the whole loop rather than of any single module.

## 2. Multi-agent architecture and formalization

MemMA decomposes memory management into four agent roles: a Meta-Thinker $\pi_p$, a Memory Manager $\pi_s$, a Query Reasoner $\pi_r$, and an Answer Agent $\pi_a$ [2603.18718]. The Meta-Thinker acts as planner. During construction it takes the current chunk $c_t$ and a bounded memory view $\tilde{M}_{t-1}$ and produces construction guidance $g_t^S$ highlighting importance, redundancy, and conflicts. During retrieval it takes the query $q$, current evidence $E_h$, query history $U_h$, and a bounded view $\tilde{M}_T$, and produces retrieval guidance $g_{q,h}^R$ that judges ANSWERABLE versus NOT-ANSWERABLE, diagnoses missing evidence slots, and specifies constraints or avoid terms for the next query [2603.18718].

The construction-side worker is the Memory Manager. It consumes $(c_t,\tilde{M}_{t-1},g_t^S)$ and chooses an atomic edit
$$
a_t^S \in \{\text{ADD}, \text{UPDATE}, \text{DELETE}, \text{NONE}\},
$$
with state transition
$$
a_t^S \sim \pi_s(\cdot \mid c_t,\tilde{M}_{t-1},g_t^S), \qquad
M_t = \mathrm{Apply}(M_{t-1}, a_t^S).
$$
The retrieval-side worker is the Query Reasoner, which generates the next query rewrite targeted to the diagnosed top gap:
$$
u_{h+1} \sim \pi_r(\cdot \mid U_h,E_h,g_{q,h}^R), \qquad
E_{h+1} = E_h \cup \mathrm{Search}(M_T,u_{h+1}).
$$
The Answer Agent receives the final evidence $E(q)=E_H$ and outputs
$$
\hat{y}(q)=F_{\pi_a}(q,E_H).
$$
It is kept frozen to decouple answer-generation capacity from memory quality; GPT-4o-mini is used as both answer agent and judge in the reported experiments [2603.18718].

Retrieval itself is backend-specific but abstracted by a common search interface. A simple formalization given in the paper is
$$
s(u,m)=\cos(e(u),e(m)), \qquad
\mathrm{Search}(M,u)=\mathrm{top}\text{-}k_{m\in M}\; s(u,m),
$$
where top-$k$ entries are returned according to the backend’s retrieval scoring, such as cosine similarity over embeddings for vector backends [2603.18718]. This abstraction is what enables MemMA’s plug-and-play integration across different memory stores.

## 3. Forward-path coordination: construction, retrieval, and answerability diagnosis

On the forward path, MemMA coordinates both memory construction and iterative retrieval. During construction, the Meta-Thinker inspects each chunk $c_t$ against a bounded memory view and produces guidance that highlights important factual units to preserve, including names, dates, and objects, while also identifying redundancy and potential conflicts. The Memory Manager then applies backend-specific edits under that guidance [2603.18718]. The explicit purpose is to preserve answer-bearing details and avoid destructive merges.

During retrieval, the process begins with $u_0=q$ and $E_0=\mathrm{Search}(M_T,u_0)$. The Meta-Thinker then performs answerability diagnosis on $(q,E_0,U_0)$ with bounded $\tilde{M}_T$. If the evidence is sufficient, it returns ANSWERABLE; otherwise it returns NOT-ANSWERABLE and emits guidance specifying the top gap, constraints, and avoid terms. The Query Reasoner then generates one orthogonal rewrite targeting that gap, retrieves again, and the loop repeats until the Meta-Thinker returns ANSWERABLE or a refinement budget $H$ is reached, with $H$ typically 1–3 [2603.18718].

The answerability check uses a blocking-gap test: NOT-ANSWERABLE is returned only when a missing fact or contradiction would change the final short answer; otherwise the system should return ANSWERABLE at best-supported granularity [2603.18718]. This criterion is supplemented by explicit decision rules. The anti-stall rule states that if there are at least three queries and the gap is non-blocking, the system should prefer ANSWERABLE at best granularity. For time questions, exact day is required only when asked; otherwise unambiguous granularity such as month or year is acceptable. For “who/what” questions, one clearly supported entity is enough unless exhaustive enumeration is requested [2603.18718].

The case studies reported in the paper clarify the role of this coordination. In a museum-date example, unguided rewrites such as “visit,” “trip,” and “history” drift, whereas the Meta-Thinker diagnoses a missing date and directs the Query Reasoner toward the exact evidence. In a case involving “transgender” versus “LGBTQ conference,” guidance disambiguates event names and temporal scope. In a “rainbow sidewalk” example, construction guidance preserves an object-level detail that unguided memory would reduce to vague “cool stuff.” In an instruments example, guidance prevents destructive overwriting between “clarinet” and “violin” by preserving parallel facts [2603.18718].

## 4. Backward-path self-evolution and memory repair

MemMA’s backward path introduces in-situ self-evolving memory construction. After a session $s_\tau$, an initial construction pass produces provisional memory $M_\tau^{(0)}$, after which the system synthesizes a probe set
$$
\mathcal{Q}_\tau=\{(q_j,y_j)\}_{j=1}^{J}
$$
grounded in the current session and relevant historical memory [2603.18718]. The reported probes cover Single-hop Factoid, Multi-session Reasoning, and Temporal Reasoning, targeting failure modes such as missing entities, incomplete details, weak cross-session links, and temporal inconsistency.

Verification is then performed by retrieving top-$k$ evidence for each probe and answering with the frozen answer agent:
$$
E_j=\mathrm{Search}(M_\tau^{(0)},q_j), \qquad
\hat{y}_j=F_{\pi_a}(q_j,E_j).
$$
Failures are identified when $\hat{y}_j$ is judged incorrect relative to $y_j$ by an LLM judge [2603.18718]. For failed probes, reflection produces candidate repairs $r_j$ conditioned on $(q_j,y_j,\hat{y}_j,E_j,M_\tau^{(0)})$, explicitly diagnosing “missing info” versus “hard-to-retrieve as written,” and proposing a concrete, retrieval-friendly fact with names, dates, distinctive details, and a target speaker [2603.18718].

Repairs are consolidated through discrete actions. Each $r_j$ is checked against $M_\tau^{(0)}$ and assigned SKIP, MERGE, or INSERT. SKIP marks redundancy; MERGE adds a missing detail to an existing entry about the same event or attribute; INSERT is used for a novel entry, with an explicit rule that different event or time implies INSERT and never MERGE [2603.18718]. Finalization is
$$
M_\tau^{*}=\mathrm{Refine}(M_\tau^{(0)},\mathcal{R}_\tau).
$$
The paper also gives the conceptual objective
$$
\min_{M \in \mathcal{U}(M_\tau^{(0)},\mathcal{R}_\tau)}
\sum_{j=1}^{J} \ell\big(F_{\pi_a}(q_j,\mathrm{Search}(M,q_j)),y_j\big),
$$
implemented non-parametrically through prompting and discrete actions rather than gradient optimization [2603.18718].

The examples emphasize that this backward loop repairs memory before errors propagate. A probe failure about the artist at Melanie’s daughter’s birthday concert inserts “Matt Patterson,” enabling later answers such as “Summer Sounds” and “Matt Patterson.” A camping-trip probe repairs “Perseid meteor shower,” replacing a generic description with a precise detail. Pottery probes add “colorful bowl” and “black-and-white bowl,” converting vague downstream retrieval into complete lists [2603.18718]. This suggests that MemMA’s self-evolution mechanism improves both semantic correctness and retrieval friendliness.

## 5. Storage backends, prompting, and deployment model

MemMA is explicitly plug-and-play across three storage backends: Single-Agent, A-Mem, and LightMem [2603.18718]. In the Single-Agent backend, memory is a simple vector-store with top-$k$ cosine retrieval and straightforward ADD/UPDATE/DELETE operations. In A-Mem, the backend uses a note-based Zettelkasten organization with activation-based retrieval, so atomic edits map to note updates and inter-note links. In LightMem, the backend uses a multi-stage memory inspired by Atkinson–Shiffrin—sensory, short-term, and long-term—with efficient filtering; here, construction guidance prioritizes long-term promotion and retrieval uses stage-aware search [2603.18718].

The key interfaces are backend-agnostic. $\mathrm{Apply}(M,a^S)$ translates MemMA’s atomic actions into backend-specific updates, and $\mathrm{Search}(M,u)$ calls the backend retrieval API while MemMA controls query formulation and evidence consolidation independently of the store [2603.18718]. The paper further notes backend-specific preferences: Single-Agent benefits most from large $k$ and more refinement rounds; LightMem is a stronger baseline and thus prefers moderate $k$ and small $H$ to avoid noise; A-Mem’s structure supports richer MERGE/INSERT decisions during consolidation [2603.18718].

Deployment requires no gradient-based training or reinforcement learning. MemMA is prompting-based: the Meta-Thinker, Memory Manager, and Query Reasoner are all LLMs, specifically GPT-4o-mini or Claude-Haiku-4.5, steered by carefully designed prompts [2603.18718]. Prompt templates are structured: construction guidance extracts atomic facts and flags redundancy or conflict; answerability prompts enforce the blocking-gap test and output decision, reason, key-gaps, missing-speaker, time-need, and retrieval-guidance; repair prompts produce ADD_FACT with confidence and then SKIP/MERGE/INSERT with strict date and event rules [2603.18718]. Dense self-supervision comes from probes, while LLM-as-a-Judge provides correctness labels for accepting or declining repairs.

## 6. Experimental evidence, ablations, and sensitivity

The primary evaluation is on LoCoMo, a benchmark for very long-term conversational memory. The reported evaluation subset is conv-26, consisting of 19 sessions, 419 turns, and 152 non-adversarial QA pairs across single-hop, multi-hop, temporal, and open-domain categories [2603.18718]. Baselines are Full Text, Naive RAG, LangMem, A-Mem, and LightMem, with metrics F1 (token), BLEU-1, and ACC (LLM-as-a-Judge) [2603.18718].

With a GPT-4o-mini backbone, the reported overall LoCoMo results are: Full Text at F1 34.13, B1 24.63, ACC 61.18; Naive RAG at F1 27.14, B1 20.41, ACC 46.05; LangMem at F1 18.46, B1 14.05, ACC 30.26; A-Mem at F1 37.90, B1 28.85, ACC 52.63; LightMem at F1 44.58, B1 36.66, ACC 75.66; and MemMA\_LM at F1 49.40, B1 38.28, ACC 81.58 [2603.18718]. Category-level gains include Multi-Hop ACC improving from 65.62 to 78.12 and Single-Hop ACC from 78.57 to 82.86 when moving from LightMem to MemMA\_LM [2603.18718].

Across backends, MemMA improves all three integrated stores in a plug-and-play manner. On GPT-4o-mini, Single-Agent improves from F1 22.64, B1 17.24, ACC 52.60 to MemMA\_SA at F1 23.64, B1 12.94, ACC 84.87; A-Mem improves from F1 37.90, B1 28.85, ACC 52.63 to MemMA\_AM at F1 46.23, B1 35.13, ACC 78.29; and LightMem improves from F1 44.58, B1 36.66, ACC 75.66 to MemMA\_LM at F1 49.40, B1 38.28, ACC 81.58 [2603.18718]. With a Claude-Haiku-4.5 backbone, LightMem reports F1 44.69, B1 37.77, ACC 73.03 and MemMA\_LM reports F1 45.10, B1 36.53, ACC 76.97 [2603.18718].

Ablation results support the three principal components. On the Single-Agent backend, removing iterative retrieval reduces ACC from 84.87 to 70.39 under GPT-4o-mini and from 88.82 to 81.58 under Claude-Haiku-4.5; removing self-evolution reduces ACC from 84.87 to 73.68 under GPT-4o-mini; removing construction guidance reduces ACC from 88.82 to 83.55 under Claude-Haiku-4.5 [2603.18718]. Budget sensitivity shows that MemMA\_LM peaks at $k=30$–$40$ with ACC 81.58 and declines at $k=50$, whereas MemMA\_SA rises from 75.66 at $k=10$ to 84.21 at $k=50$. For refinement depth, MemMA\_SA improves from 78.95 at $H=0$ to 85.53 at $H=2$, then falls to 81.58 at $H=4$, indicating fast convergence and retrieval drift under excessive iterations [2603.18718]. Probe quality also matters: on MemMA\_LM with a Claude-Haiku-4.5 construction backbone, Haiku probes yield F1 44.98, B1 35.69, ACC 74.34; Sonnet probes yield F1 43.30, B1 32.74, ACC 74.34; Opus probes yield F1 45.10, B1 35.66, ACC 76.97, and the paper states that longer, cross-session probes yield stronger repairs than short keyword probes [2603.18718].

## 7. Distinctions, limitations, and reproducibility

MemMA should be distinguished from similarly named frameworks. “MMA: Multimodal Memory Agent” is a reliability- and abstention-aware multimodal memory agent that combines source credibility, temporal decay, and conflict-aware network consensus into a per-item reliability score and uses selective prediction; it is centered on multimodal reliability and abstention rather than planner–worker coordination of the memory cycle [2602.16493]. “MEMA: Measurement Error in Meta-Analysis” is a Bayesian framework for continuous outcome data in statistical meta-analysis, addressing non-differential classical measurement error in covariates and individual participant data; it is unrelated to memory-augmented LLM agents despite the similar acronym [2011.07186].

The limitations stated for MemMA are specific. It assumes that streams can be organized into sessions and that synthetic probes provide useful localized supervision, so less structured interactions may require adaptation. The reported evaluation is dialogue-centric, based on LoCoMo, and broader settings such as tools, web, or embodied agents require additional integration. The paper also raises ethical considerations: memory retention and repair must respect privacy, consent, and controllability, and automated repairs can risk persisting incorrect information without guardrails [2603.18718].

Reproducibility details are explicit. Code is available at the public repository listed by the paper. The key configuration uses GPT-4o-mini or Claude-Haiku-4.5 for the Meta-Thinker, Memory Manager, and Query Reasoner; GPT-4o-mini as Answer Agent and judge; text-embedding-3-small for embeddings; retrieval top-$k=30$; refinement budget $H=3$; and $J=5$ probes per session, often generated by Claude-Opus-4.5 [2603.18718]. Storage backends are Single-Agent, A-Mem, and LightMem, while Meta-Thinker prompts implement construction guidance plus answerability diagnosis with the blocking-gap test and anti-stall rule, and repair prompts implement ADD_FACT or NOOP followed by SKIP/MERGE/INSERT under strict date and event rules [2603.18718]. Taken together, these details define MemMA as a prompting-based, backend-agnostic framework for coordinating construction, retrieval, verification, and repair across the memory cycle.

Source: https://www.emergentmind.com/topics/memma