Mem0’s scalable memory promises more reliable AI agents that remembers context across lengthy conversations

Join our daily and weekly newsletters for the latest updates and exclusive content on industry-leading AI coverage. Learn More
Researchers at Mem0 have introduced two new memory architectures designed to enable Large Language Models (LLMs) to maintain coherent and consistent conversations over extended periods.
Their architectures, called Mem0 and Mem0g, dynamically extract, consolidate and retrieve key information from conversations. They are designed to give AI agents a more human-like memory, especially in tasks requiring recall from long interactions.
This development is particularly significant for enterprises looking to deploy more reliable AI agents for applications that span very long data streams.
The importance of memory in AI agents
LLMs have shown incredible abilities in generating human-like text. However, their fixed context windows pose a fundamental limitation on their ability to maintain coherence over lengthy or multi-session dialogues.
Even context windows that reach millions of tokens aren’t a complete solution for two reasons, the researchers behind Mem0 argue.
- As meaningful human-AI relationships develop over weeks or months, the conversation history will inevitably grow beyond even the most generous context limits. Second,
- Real-world conversations rarely stick to a single topic. An LLM relying solely on a massive context window would have to sift through mountains of irrelevant data for each response.
Furthermore, simply feeding an LLM a longer context doesn’t guarantee it will effectively retrieve or use past information. The attention mechanisms that LLMs use to weigh the importance of different parts of the input can degrade over distant tokens, meaning information buried deep in a long conversation might be overlooked.
“In many production AI systems, traditional memory approaches quickly hit their limits,” Taranjeet Singh, CEO of Mem0 and co-author of the paper, told VentureBeat.
For example, customer-support bots can forget earlier refund requests and require you to re-enter order details each time you return. Planning assistants may remember your trip itinerary but promptly lose track of your seat or dietary preferences in the next session. Healthcare assistants can fail to recall previously reported allergies or chronic conditions and give unsafe guidance.
“These failures stem from rigid, fixed-window contexts or simplistic retrieval methods that either re-process entire histories (driving up latency and cost) or overlook key facts buried in long transcripts,” Singh said.
In their paper, the researchers argue that a robust AI memory should “selectively store important information, consolidate related concepts, and retrieve relevant details when needed—mirroring human cognitive processes.”
Mem0
Mem0 is designed to dynamically capture, organize and retrieve relevant information from ongoing conversations. Its pipeline architecture consists of two main phases: extraction and update.
The extraction phase begins when a new message pair is processed (typically a user’s message and the AI assistant’s response). The system adds context from two sources of information: a sequence of recent messages and a summary of the entire conversation up to that point. Mem0 uses an asynchronous summary generation module that periodically refreshes the conversation summary in the background.
With this context, the system then extracts a set of important memories specifically from the new message exchange.
The update phase then evaluates these newly extracted “candidate facts” against existing memories. Mem0 leverages the LLM’s own reasoning capabilities to determine whether to add the new fact if no semantically similar memory exists; update an existing memory if the new fact provides complementary information; delete a memory if the new fact contradicts it; or do nothing if the fact is already well-represented or irrelevant.
“By mirroring human selective recall, Mem0 transforms AI agents from forgetful responders into reliable partners capable of maintaining coherence across days, weeks, or even months,” Singh said.
Mem0g

Building on the foundation of Mem0, the researchers developed Mem0g (Mem0-graph), which enhances the base architecture with graph-based memory representations. This allows for a more sophisticated modeling of complex relationships between different pieces of conversational information. In a graph-based memory, entities (like people, places, or concepts) are represented as nodes, and the relationships between them (like “lives in” or “prefers”) are represented as edges.
As the paper explains, “By explicitly modeling both entities and their relationships, Mem0g supports more advanced reasoning across interconnected facts, especially for queries that require navigating complex relational paths across multiple memories.” For example, understanding a user’s travel history and preferences might involve linking multiple entities (cities, dates activities) through various relationships.
Mem0g uses a two-stage pipeline to transform unstructured conversation text into graph representations.
- First, an entity extractor module identifies key information elements (people, locations, objects, events, etc.) and their types.
- Then, a relationship generator component derives meaningful connections between these entities to create relationship triplets that form the edges of the memory graph.
Mem0g includes a conflict detection mechanism to spot and resolve conflicts between new information and existing relationships in the graph.
Impressive results in performance and efficiency
The researchers conducted comprehensive evaluations on the LOCOMO benchmark, a dataset designed for testing long-term conversational memory. In addition to accuracy metrics, they used an “LLM-as-a-Judge” approach for performance metrics, where a separate LLM assesses the quality of the main model’s response. They also tracked token consumption and response latency to evaluate the techniques’ practical implications.
Mem0 and Mem0g were compared against six categories of baselines, including established memory-augmented systems, various Retrieval-Augmented Generation (RAG) setups, a full-context approach (feeding the entire conversation to the LLM), an open-source memory solution, a proprietary model system (OpenAI’s ChatGPT memory feature) and a dedicated memory management platform.
The results show that both Mem0 and Mem0g consistently outperform or match existing memory systems across various question types (single-hop, multi-hop, temporal and open-domain) while significantly reducing latency and computational costs. For instance, Mem0 achieves a 91% lower latency and saves more than 90% in token costs compared to the full-context approach, while maintaining competitive response quality. Mem0g also demonstrates strong performance, particularly in tasks requiring temporal reasoning.
“These advances underscore the advantage of capturing only the most salient facts in memory, rather than retrieving large chunk of original text,” the researchers write. “By converting the conversation history into concise, structured representations, Mem0 and Mem0g mitigate noise and surface more precise cues to the LLM, leading to better answers as evaluated by an external LLM.”

How to choose between Mem0 and Mem0g
“Choosing between the core Mem0 engine and its graph-enhanced version, Mem0g, ultimately comes down to the nature of the reasoning your application needs and the trade-offs you’re willing to make between speed, simplicity, and inferential power,” Singh said.
Mem0 is more suitable for straightforward fact recall, such as remembering a user’s name, preferred language, or a one-off decision. Its natural-language “memory facts” are stored as concise text snippets, and lookups complete in under 150ms.
“This low-latency, low-overhead design makes Mem0 ideal for real-time chatbots, personal assistants, and any scenario where every millisecond and token counts,” Singh said.
In contrast, when your use case demands relational or temporal reasoning, such as answering “Who approved that budget, and when?”, chaining a multi-step travel itinerary, or tracking a patient’s evolving treatment plan, Mem0g’s knowledge-graph layer is the better fit.
“While graph queries introduce a modest latency premium compared to plain Mem0, the payoff is a powerful relational engine that can handle evolving state and multi-agent workflows,” Singh said.
For enterprise applications, Mem0 and Mem0g can provide more reliable and efficient conversational AI agents that converse fluently and remember, learn, and build upon past interactions.
“This shift from ephemeral, refresh-on-each-query pipelines to a living, evolving memory model is critical for enterprise copilots, AI teammates, and autonomous digital agents—where coherence, trust, and personalization aren’t optional features but the very foundation of their value proposition,” Singh said.