← Latest papers
💬 NLP

To Know is to Construct: Schema-Constrained Generation for Agent Memory

Inspired by constructivist epistemology, the paper proposes SCG-MEM, a schema-constrained generative memory architecture that reformulates memory access as a structured generation process to eliminate structural hallucinations and retrieval noise while enabling long-term adaptation and multi-hop reasoning, thereby outperforming dense retrieval baselines on the LoCoMo benchmark.

Original authors: Lei Zheng, Weinan Song, Daili Li, Yanming Yang

Published 2026-04-23
📖 5 min read🧠 Deep dive

Original authors: Lei Zheng, Weinan Song, Daili Li, Yanming Yang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Idea: Building a Library vs. Guessing the Book

Imagine you are an AI assistant trying to remember a long conversation with a user over several days. The goal is to answer questions like, "What did we say about the solar panel last Tuesday?"

The Old Way (Dense Retrieval):
Think of this like a librarian who has a massive pile of unorganized books. When you ask a question, the librarian looks at the words in your question and grabs the books that have the most similar words.

  • The Problem: If you ask about "solar panels," the librarian might grab a book about "sunlight" or "energy" just because the words match, even if the book is about a different conversation entirely. It's like grabbing a book because the cover looks similar, not because the story inside is relevant. This leads to noise (wrong information).

The "Wild Guess" Way (Unconstrained Generation):
Imagine asking the librarian to just imagine the title of the book you need and write it down.

  • The Problem: The librarian might write down "The Solar Panel of 2099." But that book doesn't actually exist in the library! This is called "Structural Hallucination." The AI makes up a memory key that leads to a dead end.

The New Way (SCG-MEM):
This paper proposes a smarter system. Instead of guessing or just matching words, the AI builds a dynamic mental map (a "Schema") of everything it knows. It's like having a strict, organized filing system where every folder has a specific, pre-approved name.


How SCG-MEM Works: The Three Magic Tools

The authors built a system called SCG-MEM that uses three main tricks to solve the memory problems.

1. The "Valid Key" Rule (The Cognitive Schema)

Imagine the AI has a giant Lego structure representing all the topics it knows (e.g., "Sun," "Light," "Solar," "Energy").

  • The Rule: When the AI needs to find a memory, it is only allowed to build a "key" (a search term) using the Lego bricks it already has.
  • Why it helps: It physically cannot invent a new word like "Solar-Panel-2099" because that brick doesn't exist in its structure yet. This guarantees that every search term it generates points to a real, existing memory. No more dead ends!

2. The "Growing Brain" (Assimilation & Accommodation)

The system is inspired by how human babies learn (a theory by Jean Piaget).

  • Assimilation (Fitting In): When the AI hears something new, it tries to fit it into its existing Lego structure. If you mention "solar," it adds weight to the existing "Solar" brick.
  • Accommodation (Building New): If the AI hears a totally new concept (like "Quantum-Flux"), it realizes it doesn't have a brick for that. So, it builds a new brick and adds it to the structure.
  • Why it helps: The memory system grows and adapts over time without breaking its own rules. It stays organized even as the conversation gets complex.

3. The "Friendship Network" (The Associative Graph)

Just having a list of topics isn't enough; you need to know how they connect.

  • Imagine the Lego bricks are people at a party. The "Associative Graph" is a map of who is friends with whom.
  • If you ask about "Sun," the system doesn't just look at "Sun." It sees that "Sun" is friends with "Solar," and "Solar" is friends with "Panel."
  • The Magic: Even if you didn't ask about "Panel," the system can "walk" from Sun → Solar → Panel to find the right memory. This allows the AI to connect dots across different conversations (Multi-hop reasoning).

The Results: Why It Matters

The researchers tested this system on a tough benchmark called LoCoMo (which simulates very long, complex conversations).

  • The Winner: SCG-MEM beat all the other systems (like the "Librarian" and the "Guessers") by a huge margin.
  • The Superpower: It was especially good at Multi-hop tasks (connecting ideas across different days) and Adversarial tasks (where the user tries to trick the AI with confusing questions).
  • The Reason: Because it never hallucinates a fake memory key, and because it can "walk" through its memory map to find hidden connections, it gives much more accurate answers.

Summary Analogy

  • Old Systems: Like a search engine that guesses the URL or a librarian grabbing books by cover color.
  • SCG-MEM: Like a master architect who has a blueprint of the entire building.
    1. They can only open doors that exist on the blueprint (No fake keys).
    2. If a new room is needed, they draw it on the blueprint immediately (Growth).
    3. They know exactly which hallway leads to which room, even if the room isn't directly next to the door (Connecting the dots).

In short, this paper teaches AI to construct its knowledge carefully, rather than just retrieving it blindly, resulting in a smarter, more reliable memory.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →