LiveMem: Maintaining Memory State Continuity in Long-Running LLM Inference
Zhichen Liu, Ruihan Sun, Hengjie Yang, Zipeng Wu, Zhaohan Chen, Xiaofan Zhang, Yang Xu
cs.CL, cs.LG
Submitted: 2026-08-07
Updated: 2026-08-10
Code: https://github.com/cafeii/LiveMem
License: http://creativecommons.org/licenses/by/4.0/
The gist: Long-running assistants and agents consume interaction streams that eventually outgrow the context.
Terminology
Abstract
Long-running assistants and agents consume interaction streams that eventually outgrow the context. Existing context retention, summarization, and retrieval preserve access to selected history, but do not provide a persistent state over the full lifecycle when working context changes. We formulate this missing inference capability as state continuity under context turnover: carrying computation forward through a fixed-capacity memory state whose lifetime is independent of the active context. We introduce an intrinsic memory method, LiveMem, which augments a pretrained full-attention LLM with a memory state that preserves the historical information over the whole lifecycle while the main attention path retains a bounded KV window. Context turnover and memory state maintaining, memory-oriented post-training, and state-aware serving jointly make this memory state load bearing after its originating tokens are released. Our experiments show that LiveMem achieves leading overall performance among evaluated systems and other intrinsic memory methods. Experiments on LongMemEval show that LiveMem is able to answer the question based on the memory state, even when the supporting evidence has been removed from the current context, and evidence-distance analysis shows that useful information persists beyond the active window. LiveMem thus establishes state continuity as a distinct and complementary abstraction for continual LLM inference.
Sources
- Titans: Learning to Memorize at Test Time
- Recurrent Memory Transformer
- Flex Attention: A Programming Model for Generating Optimized Attention Kernels
- Mamba: Linear-Time Sequence Modeling with Selective State Spaces
- Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention
- RULER: What's the Real Context Size of Your Long-Context Language Models?
- Kimi Linear: An Expressive, Efficient Attention Architecture
- Efficient Memory Management for Large Language Model Serving with PagedAttention
- Hindsight is 20/20: Building Agent Memory that Retains, Recalls, and Reflects
- delta-mem: Efficient Online Memory for Large Language Models
- MemOS: A Memory OS for AI System
- Jamba: A Hybrid Transformer-Mamba Language Model
- Benchmarking Natural Language Understanding Services for building Conversational Agents
- Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention
- MemGPT: Towards LLMs as Operating Systems
- DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
- RoFormer: Enhanced Transformer with Rotary Position Embedding
- Efficient Streaming Language Models with Attention Sinks
- Qwen3 Technical Report
- Gated Delta Networks: Improving Mamba2 with Delta Rule
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering