Back to Feed
Agents / Efficiency & Inference

Efficient Long Term Memory for LLM Agents

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

Listen to the summary

Uses a voice available on your device

Audio options
On this page 4 sections
Related concepts 3 concepts

Key Takeaways

  • LycheeMemory V2 achieves 89.22 percent accuracy on LoCoMo using GPT-4.1-Mini.
  • The system scores 92.20 percent on LongMemEval-S using GPT-4.1-Mini.
  • Construction token consumption drops by 86.0 percent on LoCoMo compared to A-Mem.
  • Construction token consumption drops by 75.9 percent on LongMemEval-S compared to A-Mem.

Summary & Methodology Analysis

Long-horizon LLM agents struggle to preserve historical information efficiently because eager turn-level consolidation makes memory construction expensive as conversations scale, while coarse summarization discards fine-grained details and larger retrieval contexts shift overhead to query time. LycheeMemory V2 solves this by using online semantic segmentation. This mechanism calculates semantic surprise, cohesion drop, length pressure, and turn-count pressure to batch multiple exchanges into coherent segments, followed by encoding those segments into context-independent typed memory records containing semantic statements, memory types, entities, topics, temporal scopes, and provenance links. Standard mechanics handle cosine similarity computations for incoming exchange embeddings and segment centroid updates. Encoded records go into an append-only store, and metadata updates indexes for entities, topics, entity-topic relations, temporal data, and event-frames without additional LLM calls. For retrieval, a plan-guided multi-route retrieval architecture uses an LLM planner to decompose questions into typed recall routes, followed by parallel recall channels, reciprocal-rank fusion, reranking, and diversity-aware selection.

Evaluation benchmarks include LoCoMo and LongMemEval-S alongside models such as GPT-4.1-Mini, text-embedding-3-small, bge-reranker-v2-m3, Mem0, MemoryOS, MemOS, Nemori, LightMem, TiMem, and MemU. The approach delivers substantial efficiency gains, reducing construction tokens by 86.0 percent on LoCoMo and 75.9 percent on LongMemEval-S compared with A-Mem, while reaching 89.22 percent and 92.20 percent accuracy on those respective benchmarks.

Despite these efficiency and accuracy gains, limitations remain. MemoryOS achieves higher accuracy on preference tracking on LongMemEval-S with GPT-4.1-Mini, indicating that dedicated user-profile modules can provide advantages for preference-intensive queries. Additionally, the evaluation focuses exclusively on text-only long-term conversational memory, leaving other modalities untested.

Interactive System Flowchart

Click diagram to expand and zoom

Cross-Examination & FAQs

A deeper dive clarifying mechanics, constraints, and baseline evaluations.

Q1. What is LycheeMemory V2?

It is an efficient long-term memory system for LLM agents that uses semantic segment-level consolidation.

Q2. What models and datasets are involved in the evaluation?

The paper evaluates LycheeMemory V2 alongside A-Mem, Mem0, MemoryOS, MemOS, Nemori, LightMem, TiMem, and MemU using GPT-4.1-Mini, text-embedding-3-small, bge-reranker-v2-m3, LoCoMo, and LongMemEval-S.

Q3. How does LycheeMemory V2 affect memory construction token costs?

It reduces construction tokens by 86.0 percent on LoCoMo and by 75.9 percent on LongMemEval-S compared with A-Mem.

Q4. What problem does standard turn-level consolidation cause?

It makes memory construction increasingly costly as conversations grow over long horizons.

Q5. What four factors does online semantic segmentation calculate?

Semantic surprise, cohesion drop, length pressure, and turn-count pressure.

Q6. What components are included in typed memory records?

Semantic statements, memory types, entities, topics, temporal scopes, and provenance links.

Q7. How are indexes updated in the storage step?

They are updated using record metadata without additional LLM calls.

Q8. How does the retrieval process work?

An LLM planner decomposes questions into typed recall routes followed by parallel recall channels, reciprocal-rank fusion, reranking, and diversity-aware selection.

Q9. What are the limitations noted in the paper?

MemoryOS achieves higher accuracy on preference tracking on LongMemEval-S with GPT-4.1-Mini, and the evaluation focuses exclusively on text-only long-term conversational memory.

Flag an issue

What is wrong with this summary?

What is wrong?