Manuscript Offprint

arXiv:2610.08586

MINDSET: Energy-based Schema Evolution for Long Conversational Agent Memory

Sujato Dutta, Sreekruthy Tummala, Shashank Vanga, Ayushmi Pavani

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Long conversational agents have become essential in our daily lives. They must remember what was said long back in order to help us efficiently complete a task without needing the user to repeat instructions and context repeatedly. However, the main issue is that instructions and context change over time and so the agents must be able to adapt accordingly. A useful memory system should preserve both current and historical states, distinguish stale information from active knowledge, retrieve evidence appropriate to the query and avoid repeatedly invoking a large language model to rewrite prior interactions. We introduce MINDSET, a memory controller that stores a conversation as immutable episodes and organizes them into versioned schemas through minimum-energy state transitions. Each incoming episode may reinforce, supersede, split or create a schema. The transition decision balances representation distortion, contradiction, historical damage, fragmentation and internal inconsistency, while hysteresis prevents isolated contradictions from prematurely rewriting stable memory.

We evaluate MINDSET against 5 memory systems on a reproducible sample of 850 questions (700 LoCoMo + 150 MemoryAgentBench). MINDSET obtains the highest observed LoCoMo answer F1 while significantly improving retrieval ranking (Recall@8, MRR and nDCG@8) over the second best method LightMem (p<0.01 after Holm correction). It obtains the highest observed scores on MemoryAgentBench although the relative difference is low. Ablations identify controlled fragmentation and schema-aware assignment as the largest contributors to answer quality. Additionally, a 700-question cross-model evaluation with GLM-4.7 and Gemma-4-31B supported model independence. These results show that long-term memory can be better handled as constrained state management rather than continual summarization.

1 Introduction

A conversational agent must remember not only what was said, but also what changed over time. With changing preferences, retaining only the original preference will produce stale answers, while retaining only the latest statement erases the context required to answer questions about the transition. Storing both in an undifferentiated vector index leaves the model to resolve the contradiction repeatedly. Full-history prompting preserves the complete record, but incurs recurring inference cost and remains vulnerable to context limits and the “lost in the middle” effect (Liu et al., 2024). Summarization reduces context length but may blur the context needed to verify an answer.

This problem is common in agent memory. Retrieval-augmented generation (RAG) (Lewis et al., 2021) provides language models with external evidence, while dense passage retrieval (Karpukhin et al., 2020) and sentence embeddings (Reimers and Gurevych, 2019) make semantic access efficient. Memory-based agents have introduced reflection (Park et al., 2023; Shinn et al., 2023), virtual context management (Packer et al., 2024), forgetting (Zhong et al., 2023), graph-based organization (Gutiérrez et al., 2025), learned memory operations (Yu et al., 2026) and benchmark-specific consolidation (Zhang et al., 2026; Ma et al., 2026). These systems show the importance of memory but lack in a core area. The central challenge in long conversational agents is state evolution under contradiction i.e. deciding whether new evidence should update an existing one, coexist as a contextual branch or be stored as a new memory.

MINDSET addresses this problem directly. It maintains immutable conversational episodes and a compact layer of versioned schemas. A schema is not a generated summary; it is a structured index over supporting and exceptional episodes, with temporal validity, active or historical status and predecessor-successor links. For each incoming episode, MINDSET evaluates four possible actions - REINFORCE, SUPERSEDE, SPLIT and NEW under a local energy function. The energy penalizes representation distortion, unresolved contradiction, historical damage, unnecessary fragmentation, and internal inconsistency. Temporal and contextual signals determine action feasibility, while hysteresis prevents isolated contradictions from prematurely rewriting stable memory. This design separates two responsibilities that are often conflated. The memory controller determines how experience should be organized and which episodes are relevant, while the language model receives a bounded evidence packet and produces the final answer.

Our main contributions are:

  1. We formulate conversational memory evolution as minimum-energy selection over explicit state-transition actions.

  2. We introduce provenance-preserving versioned schemas that distinguish active states, historical states, contextual branches and exceptions without replacing the underlying episodes.

  3. We provide a thorough and fair evaluation across LoCoMo and MemoryAgentBench, covering six memory systems, ablations and 3 answer models to show generalization.

Our results show that MINDSET achieves the best retrieval-ranking performance along with best overall answer F1. It also lowers token usage by up to 10 times when compared with long context.

References (13)