LycheeMemory V2: Efficient Long-Term Memory for LLM Agents via Semantic Segment-Level Consolidation

Dongfang Li, Zixuan Liu, Junmai Wang, Jiahe Huang, Fuhao Li, Bonian Jia, Baotian Hu, Min ZhangarXiv 2026

TL;DR

LycheeMemory V2 introduces an efficient long-term memory framework for LLM agents by replacing expensive turn-by-turn memory updates with semantic segment-level consolidation. By intelligently batching conversation exchanges using lightweight embedding-based boundary detection, it achieves state-of-the-art accuracy on long-context benchmarks while slashing memory construction token costs by up to 86%.

What Problem Does This Paper Address?

Long-horizon LLM agents (like personal assistants or customer support bots) must retain information across hundreds of interactions to remain useful. However, existing memory systems typically rely on eager consolidation—invoking an LLM to extract facts or update summaries after every single turn. As conversations scale, this high-frequency logging becomes prohibitively expensive and slow.

While compressing history into coarse summaries reduces cost, it discards fine-grained contextual details needed for complex queries. Conversely, shifting the heavy lifting to query-time (via multi-hop retrieval loops) balloons latency and costs for the end-user. LycheeMemory V2 addresses this dilemma by finding the optimal granularity for memory consolidation: processing conversations in coherent semantic chunks rather than turn-by-turn.

Figure 2: Motivation of LYCHEEMEMORY. (A) Eager turn-level consolidation incurs high construc- tion cost. (B) Coarse summarization reduces construction cost but may discard fine-grained evidence. (C) Iterative query-time compensation shifts overhead to retrieval. (D) LYCHEEMEMORY batches multiple exchanges into semantically coherent segments and encodes each finalized segment into typed evidence records for structured retrieval, reducing construction frequency while preserving fine-grained evidence without query-time expansion.

Methods

The LycheeMemory V2 architecture operates via a clean four-stage pipeline:

  1. Online Semantic Segmentation: Instead of using fixed token windows or expensive LLM calls to decide when a topic has ended, the system uses a fully embedding-based scoring function. It monitors "semantic surprise" and "cohesion drops" to detect natural conversational boundaries completely on the fly.
  2. Segment-Level Memory Encoding: Once a segment is finalized, a single LLM call processes the batched exchanges. It resolves pronouns, normalizes relative dates, and extracts context-independent, typed memory records (e.g., facts, preferences, constraints, procedures). It also outputs a lightweight "disambiguation state" to maintain continuity across boundaries.
  3. Structured Evidence Organization: The metadata from the encoded records is automatically indexed into five distinct categories (entity, topic, entity-topic, temporal, and event-frame) using deterministic database operations (SQLite and LanceDB), requiring zero additional LLM overhead.
  4. Plan-Guided Multi-Route Retrieval: At query time, an LLM planner runs exactly once to break down the user's prompt into a structured retrieval plan. Deterministic channels then fetch, fuse (via Reciprocal Rank Fusion), and filter the evidence before generating the final answer.

Datasets

The authors evaluated their framework on two prominent long-term conversational memory benchmarks:

  • LoCoMo: A companion-style casual dialogue dataset consisting of multi-session conversations (averaging ~600 turns). The evaluation focused on 1,540 QA pairs spanning single-hop, multi-hop, temporal, and open-domain reasoning.
  • LongMemEval-S: A high-load, task-oriented agent benchmark featuring significantly longer histories (averaging ~115K tokens per instance). It tests memory across 500 instances covering user/assistant facts, preference tracking, knowledge updates, and temporal duration constraints.

Key Insights and Ideas

  • Granularity is the Ultimate Efficiency Lever: The accuracy-cost trade-off in agent memory is dictated not just by what information is retained, but when it is packaged. Segment-level batching hits the sweet spot between fine-grained detail preservation and low operational frequency.
  • Cheap Embeddings Can Gate Expensive LLMs: By using lightweight vector embeddings to calculate conversational drift and cohesion, the system completely avoids using costly generative tokens just to manage memory boundaries.
  • Structured, Non-Generative Retrieval Scales Better: Instead of relying on iterative, multi-step LLM retrieval loops at query time, a single planning step followed by deterministic index lookups prevents query costs from exploding as the agent's memory store grows.

Key Results

LycheeMemory V2 demonstrates that optimizing memory construction doesn't mean sacrificing accuracy. Using GPT-4.1-Mini as a backbone, the framework achieved:

  • State-of-the-Art Accuracy: It reached 89.22% overall accuracy on LoCoMo and 92.20% on LongMemEval-S, outperforming dedicated memory baselines like A-Mem, TiMem, and MemoryOS.
  • Massive Token Savings: Compared to the previous state-of-the-art framework (A-Mem), LycheeMemory V2 slashed memory construction token costs by 86.0% on LoCoMo and 75.9% on LongMemEval-S.
  • No Cost Shifting: Query-time token usage did not increase; in fact, it dropped by 27.9% on LoCoMo and 42.6% on LongMemEval-S compared to A-Mem, proving that write-side savings weren't achieved by bloating the retrieval context.
Figure 1: LYCHEEMEMORY achieves superior accuracy with substantially lower consolidation cost under GPT-4.1-Mini. Left: Category-wise accuracy comparison on LoCoMo, covering single- hop, multi-hop, temporal, open-domain, and overall questions. Middle: Category-wise accuracy comparison on LongMemEval-S, including user, assistant, preference, multi-session, knowledge- update, temporal-reasoning, and overall questions. Right: Memory consolidation cost comparison across LoCoMo and LongMemEval-S, where lower is better.

Limitations and Future Work

Despite its strong performance, the authors note a slight weakness in handling highly preference-intensive questions. On LongMemEval-S preference tracking, LycheeMemory V2 scored 90.00%, falling behind MemoryOS (100.00%), which utilizes dedicated user-profile modules.

Additionally, the current framework is strictly text-based. The authors point to several promising future directions, including combining segment-level consolidation with explicit persona/profile modeling, extending the architecture to support multimodal memories (images, audio), and optimizing for continuous deployment challenges like database latency and storage growth.

Summary updated

BibTeX
@misc{li2026lycheememory,
  author = {Dongfang Li and Zixuan Liu and Junmai Wang and Jiahe Huang and Fuhao Li and Bonian Jia and Baotian Hu and Min Zhang},
  title = {{LycheeMemory V2: Efficient Long-Term Memory for LLM Agents via Semantic Segment-Level Consolidation}},
  year = {2026},
  eprint = {2608.12990},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.12990},
}
Figure