Schema-Mem: Structured and Evolving Memory for Long-term Conversational Knowledge

Jiajun Zhu, Kai Zhang, Meikai Bao, Ye Liu, Yalong He, Renyu Zhu, Runze WuarXiv 2026

TL;DR

Long-term AI assistants often forget or muddle details from past conversations because they store memories as clunky, utterance-level text chunks. Schema-Mem fixes this by borrowing an idea from cognitive psychology—Schema Theory—to break conversations down into crisp, fact-level "schema units" that actively link together and evolve as new information arrives. The result is a memory system that retrieves sharper evidence, uses less than half the tokens at query time, and beats existing baselines on long-term conversational benchmarks.

What Problem Does This Paper Address?

If you have ever chatted with an LLM over weeks or months, you know the frustration: it forgets what you told it earlier, or worse, confuses two different things you said. Even when developers bolt on external memory systems, those systems usually store and summarize conversations at the utterance level (chunk by chunk).

The authors point out two fundamental flaws with this approach:

  1. Fact Entanglement: A single utterance often contains multiple unrelated ideas. When stored together, irrelevant details dilute the semantic signal of the fact you actually need, making it harder to retrieve.
  2. Fact Fragmentation: Related clues—like mentioning you lost your keys in August and losing them again in December—sit in separate, disconnected chunks. Without an explicit link between them, the AI fails to recognize a recurring pattern.
Figure 1: Comparison of memory at different levels.

Methods

Inspired by Schema Theory—which posits that human knowledge is organized into structured schemas that update as new experiences arrive—Schema-Mem moves memory from the utterance level to the proposition (fact) level. It operates through four modules:

  1. Schema Extraction: For each new turn, an LLM first summarizes the utterance and extracts keywords and categorical tags. It then extracts discrete propositions (factual statements paired with predicate-argument keywords), using the previous three turns for context. Each proposition becomes a schema unit stamped with time and topic tags.
  2. Schema Linking: To connect related facts across time, Schema-Mem runs a hybrid search—combining lexical matching (BM25) and semantic similarity (embeddings)—to pull the top-$k$ ($k=5$) related historical schema units. Crucially, instead of blindly linking them, it batches the candidates and asks an LLM to verify which links are genuinely relevant.
  3. Schema Update: Facts evolve. Rather than naively appending new units and creating contradictions, Schema-Mem batches new units with their retrieved historical candidates and prompts an LLM to consolidate them—resolving conflicts and enriching missing details.
  4. Schema Retrieval & Response Generation: When a user asks a question, Schema-Mem decomposes the query into keywords and runs the same hybrid search over the schema repository, pulling in both the matching schema units and their linked neighbors. To ensure no conversational nuance is lost, it also fetches the top-$k$ most semantically similar raw utterances before generating the final answer.
Figure 2: The framework of our Schema-Mem. It consists of four modules: (1) Schema Extraction, (2) Schema Linking, (3) Schema Update, and (4) Schema Retrieval and Response Generation.

Datasets

The authors evaluate Schema-Mem on two established long-term conversational memory benchmarks (no new benchmarks are introduced):

  • LoCoMo: Features very long, multi-session dialogues testing four reasoning types: single-hop, multi-hop, temporal, and open-domain questions.
  • LongMemEval: Focuses on dynamic memory skills—information extraction, multi-session reasoning, and knowledge updates—over scalable chat histories.

Key Insights and Ideas

  • LLM verification is non-negotiable for linking: In ablation studies, removing the LLM-based link verification step (and just linking to top-$k$ retrieved candidates) actually hurt performance more than removing schema linking altogether. Noisy links poison the memory graph.
  • Lexical + Semantic beats Semantic-only: Tuning the hybrid retrieval weight $\alpha$ (where $\alpha=1.0$ is pure semantic similarity and $\alpha=0.0$ is pure BM25) showed that $\alpha=0.70$ hits the sweet spot. Exact keyword matching remains vital for pinning down specific entities and cross-turn evidence.
  • Extraction errors rarely cascade: Auditing 1,000 extracted propositions showed 86.4% were fully faithful to the source dialogue, with 9.1% mild elaborations, 1.9% context bleed, and 2.6% fabrications. Tracing 136 unsupported schemas revealed that 74.3% were never retrieved, and only a single case (0.7%) caused a harmful answer.

Key Results

Evaluated with both GPT-4o-mini and Qwen2.5-3B (using all-MiniLM-L6-v2 for embeddings), Schema-Mem consistently outperformed baselines including LoCoMo, ReadAgent, MemoryBank, MemGPT, Zep, and A-Mem:

  • LoCoMo: With GPT-4o-mini, Schema-Mem ranked #1 across every category (Multi-hop: 30.78 F1, Temporal: 51.04 F1, Open Domain: 15.09 F1, Single-hop: 49.49 F1; Avg. Rank 1.00). With Qwen2.5-3B, it achieved the best overall Avg. Rank (1.25).
  • LongMemEval: Schema-Mem led across all metrics, reaching 20.94 F1, 13.17 BLEU, and 0.66 GPT-4o accuracy with GPT-4o-mini (compared to Zep's 0.60 and A-Mem's 0.58 accuracy).
  • Inference Efficiency: While Schema-Mem spends more resources during memorization than A-Mem (3,061.30 vs. 1,953.99 tokens; 22.48s vs. 11.25s per utterance), it cuts response-phase token usage by more than half (4,584.85 vs. 10,341.29 tokens) and responds faster (2.75s vs. 3.18s per query).

Limitations and Future Work

The main trade-off is memorization overhead: extracting, linking, and updating schemas requires more tokens, LLM calls (2.71 vs. 2.00), and time per utterance than simpler baselines. The authors note that this work can be moved off the user-facing path via asynchronous or incremental processing. Additionally, while unsupported extractions rarely caused downstream harm in their audit, small rates of fabrication and context bleed still occur, leaving room for tighter extraction guardrails in future work.

Summary updated

BibTeX
@misc{zhu2026schema,
  author = {Jiajun Zhu and Kai Zhang and Meikai Bao and Ye Liu and Yalong He and Renyu Zhu and Runze Wu},
  title = {{Schema-Mem: Structured and Evolving Memory for Long-term Conversational Knowledge}},
  year = {2026},
  eprint = {2612.03541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.03541},
}
Figure