1. Deep Dive: How VoiceMem Builds a "Dual-Brain" Memory Architecture for Real-Time Voice Agents
In human-computer interaction, voice agents have become increasingly natural and fluent at "listening" and "speaking". Since GPT-4o, models such as Moshi, Qwen2.5-Omni, Qwen3-Omni, and Step-Audio2 have continued to push the boundaries of end-to-end real-time conversation. With Qwen3-Omni, first-packet latency (the time between a user finishing their request and the AI producing its first audio output) has reached 234 ms, making any noticeable pause almost imperceptible. Yet memory and emotional awareness remain weak points for voice agents. This is precisely what VoiceMem aims to address: giving voice agents long-term memory. Open-sourced by Shuicheng Yan's team in August, the project has already garnered more than 1.1k+ stars on GitHub.

How Do We Measure an AI's Memory?
Long-term memory is particularly important for voice agents designed to provide companionship over time. Crucially, true long-term memory does not mean saving every chat log verbatim; rather, it requires teaching a model what is worth recording, when to recall it, and how separate memories connect.
These questions have made long-term memory an increasingly active area of AI research, with a growing number of benchmarks designed to evaluate memory capabilities. LoCoMo, introduced at ACL 2024, and PersonaMem, presented at COLM 2025, are two examples that seek to make "how much a model actually remembers" measurable.
LoCoMo contains 10 long conversations, each averaging 600 turns across 32 sessions. According to the benchmark results, even the best-performing models still lag behind human performance by around 36%, with the gap widening to 41% in temporal reasoning. In other words, models may struggle to distinguish between something mentioned last week and something mentioned last month.
PersonaMem goes a step further. It tests not only whether an AI can "remember facts", but also whether it can "retain a user's persona". The benchmark covers 20 personas and more than 180 interaction histories, with the longest spanning 60 sessions and context lengths reaching one million tokens. The results are still underwhelming: even when given the entire conversation history, GPT-4.1, o4-mini, GPT-4.5, o1, and Gemini-2.0 achieve only around 50% accuracy.
Two Bottlenecks in Existing Memory Systems
LoCoMo and PersonaMem show just how challenging long-term memory can be. Yet text-based models have already developed relatively mature memory solutions through several rounds of iteration, allowing them to gradually build user profiles over extended interactions. So why do voice agents still need dedicated memory research?
The answer lies in the stricter requirements of real-time voice interaction. Text-based models can rely on larger context windows and more retrieval resources to improve memory coverage, but voice interaction is much more sensitive to latency. A single memory retrieval that takes too long can interrupt the flow of conversation. When applied to voice scenarios, existing memory systems face two major bottlenecks: latency and memory dimensionality.
The first bottleneck is latency. A single memory retrieval in Mem0 takes around 1.4 seconds, while the first-packet latency of voice models has already reached 234 ms. After a user finishes speaking, Voice Activity Detection (VAD) takes only a few hundred milliseconds to determine that the turn has ended. If memory retrieval adds another 1.4 seconds, it can significantly slow down the real-time interaction.
The second bottleneck is memory dimensionality. Systems like Mem0 work by extracting facts, storing them as vectors, and retrieving them through similarity search. They are good at remem bering discrete facts such as "you are allergic to nuts", but less effective at capturing emotional states such as "you were overwhelmed by work last week", let alone understanding a person's long-term preferences, emotions, and priorities. For voice agents designed for long-term companionship, remembering what happened is only the first step. What really matters is gradually understanding "who the person is".
VoiceMem addresses both challenges: speeding up memory retrieval to keep pace with real-time speech, while extending memory beyond "factual" dimension alone. How does it do this? Let's take a closer look at its technical architecture.
VoiceMem's Architecture: A "Left Brain" and a "Right Brain"

(Figure: Dual-Brain Architecture)
(1) Left Brain: Factual Memory
The left brain handles factual memory, organizing information through Schema (structured facts) and Entity.Specifically, Rather than storing each memory as a standalone text snippet, it breaks it down into an entity-attribute structure and places it in a memory graph. An Entity identifies who or what is involved—for example, you or your cat—while a Schema records searchable attributes, such as dietary restrictions, schedules, and preferences. Retrieval takes place in two stages: first, routing by Entity and Schema narrows the search to a small pool of candidates; then, those candidates are ranked, and only the Top-K most relevant entries are injected into the model's context, rather than loading everything at once.
Under the hood, VoiceMem builds on Mem0's vector storage and retrieval capabilities, adding its own routing and ranking mechanisms on top. This two-stage "route-then-rank" design is key to retrieving relevant memories with a much smaller context budget. The results are striking: on LoCoMo, Top-5 retrieval achieves 91.2%, while Mem0 reaches only 61.68% even with Top-200. VoiceMem thus outperforms Mem0 by nearly 30 percentage points while using just one-fortieth of the context.
For engineers, this makes context budgeting a parameter that can be adjusted and quantified. Every additional memory entry consumes part of the context window, increases inference costs, and raises the risk of distracting the model with irrelevant information.
(2) Right Brain: Emotional and Persona Memory
The right brain handles emotional intelligence, and this is one of VoiceMem's most distinctive features. It manages emotional memory through short- and long-term affective attribution, using cross-entity nodes to link emotions with factual memories stored in the left brain. It tags memories with emotional states and separates them into two layers: short-term fluctuations within the current conversation and long-term personality traits that accumulate over time. Attribution then links each emotional shift to specific entities and events. Within the graph, two types of nodes serve different purposes: standalone nodes store persona and emotional states, while cross-entity nodes connect these emotions to the corresponding entities in the left brain. Emotions are therefore not isolated tags, but are linked to who was involved and what happened. The paper calls this approach dual-node persona modeling.
A factual memory in the left brain, such as "allergic to nuts", can therefore be linked to an emotional memory in the right brain, such as "health-conscious and anxious when discussing food". The next time the conversation turns to diet, the model knows not only what the restriction is, but also how to respond in an appropriate tone. On PersonaMem, the right brain achieves 69.44%, with its combined score across the three persona benchmarks exceeding the previous best system by 4.29 points.
(3) Streaming: Keeping Memory in Sync with Real-Time Conversation
Streaming, in this context, means that memory retrieval begins while the user is still speaking. The entire pipeline—including VAD, streaming ASR, fact extraction, graph updates, and query routing—starts running before the user finishes their sentence. Audio is fed in 32 ms frames, while VAD continuously outputs partial transcripts. Once the text crosses a certain length threshold, the backend initiates speculative prefetching, retrieving relevant memories based on the incomplete utterance. By the time the user finishes speaking, those memories are already largely in place.
Another easily overlooked design choice is the separation of memory reads and writes. Writing memories takes relatively more time, as it involves fact extraction, tagging, graph construction, and LLM calls. Reading memories, by contrast, can be completed quickly. VoiceMem therefore handles writes asynchronously in the background while incorporating reads into the real-time conversation, allowing the two processes to run without blocking each other.
Ultimately, VoiceMem brings median memory retrieval latency down to 12 ms and end-to-end latency to 134 ms. Both are achieved before VAD detects the end of the user's turn, adding virtually no perceptible delay to the response.

(Figure: Streaming Pipeline)
Additionally, another long-term challenge for memory systems is that the longer a user interacts with them, the more memories accumulate—and the more cluttered the repository becomes. To address this, the team introduced a Cluster Emergence mechanism in the left brain. Memories that are semantically similar and repeatedly activated together during queries first form candidate clusters. An LLM then scores these candidates based on relevance, importance, and other factors, promoting those that meet the criteria into new memory clusters (Schema). The process draws on three signals: the current state of the left brain, semantic similarity, and query frequency. Its goal is to balance the number of memory clusters with retrieval accuracy over time, preventing memories from becoming fragmented into too many small clusters or accumulating into an increasingly disorganized repository.
2. Observations and Reflections: The Potential of Real-Time Speech Memory
Giving AI memory and emotional awareness has long been an aspiration in the field. VoiceMem brings memory mechanisms that have traditionally been offline, text-based, and fact-centric into real-time voice interaction, enabling streaming retrieval while also taking emotions and interpersonal relationships into account. Its open-source release also allows the community to use, evaluate, and build on the project directly, making it worth following.
Still, several figures should be viewed with caution. The 91.2% recall rate, 134 ms latency, 430-token footprint, and comparisons with Mem0 and other baselines all come from the authors' own technical report and evaluations, and have yet to be independently reproduced. The project is also relatively new, and its ecosystem, documentation, and production stability still have room to develop.
From an engineering perspective, VoiceMem may be a good fit for voice agents that need to "understand users better over time". Whether you're building digital humans, companion robots, or full-duplex voice interaction systems, if long-term memory is a core capability of your project, VoiceMem is worth considering as part of your technical architecture and benchmark evaluation.
