Grafy News
Try Grafy free

Schema-Mem introduces factual-level memory for AI agents

Researchers propose Schema-Mem, a framework that uses structured schema units to help AI agents maintain accurate long-term conversational memory.

Illustration for the news story: Schema-Mem introduces factual-level memory for AI agentsSource: Grafy Research Lab

Researchers have proposed a new memory framework designed to solve the persistent problem of "forgetfulness" and factual inaccuracy in long-term AI conversations. By moving away from storing raw text chunks and instead using structured "schema units," the system aims to help conversational agents maintain a more coherent and accurate understanding of users over extended periods.

What are the limitations of current AI memory systems?

According to the research paper authored by Jiajun Zhu and colleagues, current Large Language Model (LLM) memory solutions typically rely on storing flat text or coarse summaries of previous interactions. These methods often suffer from two primary issues: fact entanglement and fact fragmentation.

Fact entanglement occurs when multiple, potentially conflicting pieces of information are stored within a single memory unit, making it difficult for the model to retrieve only the relevant detail. Fact fragmentation happens when related pieces of information are scattered across different parts of a conversation history without any explicit links. The authors note that these limitations can lead to degraded reasoning and inconsistent responses as a conversation grows longer, as the model may struggle to connect disparate clues into a single, coherent fact.

How does the Schema-Mem framework work?

Schema-Mem is inspired by Schema Theory in cognitive psychology, which suggests that human knowledge is organized into structured patterns that are refined as new information is acquired. Instead of treating dialogue as a simple stream of text, Schema-Mem represents conversational knowledge as discrete, fact-level schema units.

The framework operates through four primary modules, as described in the methodology section of the paper:

  1. Schema Extraction: The system extracts key factual content and salient elements from each dialogue turn.
  2. Schema Linking: It uses a hybrid strategy—combining lexical matching with semantic similarity—to identify related historical units. An LLM then validates these links to ensure they are truly relevant.
  3. Schema Update: Rather than just appending new data, the system uses LLM-based verification to consolidate new information with existing units. This allows the memory to evolve, filling in missing details and resolving contradictions.
  4. Schema Retrieval and Response Generation: When a user asks a question, the system retrieves the relevant schema units along with their linked context, providing the LLM with grounded evidence for its answer.

Does factual-level memory improve AI performance?

To test the effectiveness of this approach, the researchers conducted extensive experiments using the LoCoMo and LongMemEval datasets. The results indicated that Schema-Mem consistently outperformed existing strong baselines in long-context conversational settings.

By organizing information at the proposition level rather than the utterance level, the system was able to maintain better long-term memory and produce more reliable responses. The researchers found that the ability to incrementally build and refine a connected memory graph allowed the agent to better handle evolving information, such as changes in a user's preferences or the correction of previously stated facts.

Why is structured memory important for the future of agents?

The transition from unstructured text storage to structured knowledge scaffolds represents a shift toward more autonomous and reliable AI agents. As agents move from simple chatbots to complex assistants that manage long-term projects or personal relationships, the ability to reason over evolving information becomes critical.

Without a way to resolve conflicts and integrate new details into a cohesive structure, agents are prone to "hallucinating" or relying on outdated information. Schema-Mem provides a blueprint for how agents might move toward a more human-like way of organizing knowledge—not just by remembering what was said, but by understanding the underlying facts and how they relate to one another over time.

How can you explore these concepts in Grafy?

While Schema-Mem is a research framework for conversational memory, the concept of interacting with complex, structured information is central to modern AI workflows. If you are interested in analyzing research papers like this one or exploring how structured data influences AI outputs, you can use Reader to perform deep research over PDFs and academic papers. For those interested in seeing how different models handle complex prompts and historical context, Chat allows you to interact with multiple models side by side to compare their reasoning capabilities.

Frequently asked questions

What is the main difference between Schema-Mem and traditional LLM memory?

Traditional memory systems often store dialogue as flat text chunks or coarse summaries, which can lead to fragmented or entangled facts. In contrast, Schema-Mem stores information as structured, fact-level schema units that are explicitly linked and updated over time to maintain consistency.

How does Schema-Mem handle conflicting information in a conversation?

Schema-Mem uses an LLM-based verification process during the schema update module. When new information is introduced, the system compares it against existing schema units to resolve potential conflicts and incorporate new details, allowing the memory to evolve rather than just accumulating redundant data.

What inspired the design of the Schema-Mem framework?

The framework was inspired by Schema Theory in cognitive psychology. This theory posits that human knowledge is organized into structured schemas that are incrementally refined as new information arrives, a principle the researchers applied to represent conversational knowledge as an evolving graph of facts.


Source: Grafy Research Lab — Schema-Mem: Structured and Evolving Memory for Long-term Conversational Knowledge