← Latest papers
💬 NLP

LiveMem: Maintaining Memory State Continuity in Long-Running LLM Inference

The paper introduces LiveMem, an intrinsic memory method for pretrained full-attention LLMs that maintains a persistent, load-bearing memory state independent of the active context window, thereby enabling state continuity and long-term information retention in long-running inference scenarios where historical evidence is no longer present in the immediate context.

Original authors: Zhichen Liu, Ruihan Sun, Hengjie Yang, Zipeng Wu, Zhaohan Chen, Xiaofan Zhang, Yang Xu

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

Original authors: Zhichen Liu, Ruihan Sun, Hengjie Yang, Zipeng Wu, Zhaohan Chen, Xiaofan Zhang, Yang Xu

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

Imagine you are talking to a very smart friend who remembers everything you've ever said. In the world of artificial intelligence, this friend is a "Large Language Model" (LLM). Usually, these models are like students taking a test: they read a specific set of instructions and a story, answer a question, and then the test is over. But what if you wanted this friend to be a lifelong companion, chatting with you for years, helping you plan a trip, remember your favorite songs, and solve problems over hundreds of conversations?

The problem is that these AI friends have a "working memory" that is surprisingly small. Think of it like a whiteboard in a classroom. The teacher (the AI) can only see what's written on the board right now. If the class goes on too long, the teacher has to erase the old notes to make room for new ones. Once erased, those old notes are gone from the board. Traditional AI systems try to solve this by keeping a giant notebook of everything ever said and flipping through it whenever a question comes up. But this is slow and clunky; it's like having to stop the conversation to look up a fact in a library instead of just remembering it. The big question scientists are asking is: Can we give the AI a way to keep a "feeling" or a "summary" of the past on its whiteboard, even after the specific words have been erased, so it never loses the thread of the conversation?

This is exactly what the paper "LiveMem" tackles. The researchers, led by Zhichen Liu and Ruihan Sun, propose a new way for AI to handle long conversations without losing its mind. They introduce a system called LiveMem, which acts like a magical, permanent "backpack" for the AI's thoughts.

Here's how it works: Imagine the AI has two ways of thinking. The first is its "Main Brain," which looks at the current conversation on the whiteboard. This whiteboard is limited in size; when it gets full, the oldest notes are erased to make space for new ones. This is normal. But LiveMem adds a second part: a "Side Brain" or a Recurrent Memory State. This side brain is like a backpack that the AI wears at all times. As the AI reads new words, it updates this backpack. When the whiteboard gets full and old notes are erased, the important information from those erased notes isn't lost; it gets packed into the backpack.

The researchers trained this system using a special technique. They didn't just let the AI read long stories; they forced it to practice "forgetting" the whiteboard while keeping the backpack full. They used a method called "context turnover," where they would take a long conversation, show the AI the beginning, then erase the beginning from the whiteboard, and ask the AI a question about it. If the AI only relied on the whiteboard, it would fail because the notes were gone. But because LiveMem had packed the key details into its backpack, the AI could still answer correctly.

The paper shows that LiveMem is very good at this. In their tests, when the evidence for a question was completely erased from the AI's immediate view (the whiteboard), LiveMem could still answer the question with high accuracy. For example, in a test called "LongMemEval," when the supporting evidence was pushed far away from the current conversation window, LiveMem significantly outperformed other methods. While models without this "backpack" (like the standard Qwen3-4B) dropped to extremely low accuracy, LiveMem achieved results more than ten percentage points higher. This suggests that the AI isn't just guessing; it's actually carrying the history forward in its memory state.

However, the authors are careful to note that this "backpack" isn't a perfect recording studio. It doesn't store every single word exactly as it was spoken. If you ask the AI to recite a specific sentence that was erased three days ago, it might not get it 100% right. It's more like a summary or a feeling of what happened. The paper explicitly rules out the idea that this system is a perfect, lossless archive of every token. Instead, it's a "lossy" state that keeps the useful parts of the memory alive.

The team also found that how you train the AI matters a lot. If you just mix all kinds of data together, the AI might not learn to use the backpack effectively. They discovered that a specific training schedule—starting with long stories to "wake up" the memory side, and then switching to a mix of different tasks—worked best. This allowed the AI to learn how to write to and read from its backpack efficiently.

In short, LiveMem suggests a new way to build AI assistants that can truly remember their history. Instead of just looking up old notes in a library or relying on a tiny whiteboard, LiveMem gives the AI a persistent state that evolves with every conversation. While it's not a perfect archive of every word, it successfully keeps the "story" of the interaction alive, allowing the AI to stay coherent and helpful even after the specific details of the past have been erased from its immediate view. This brings us one step closer to AI agents that can truly be lifelong companions, maintaining a continuous sense of self and history over time.

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 →