LycheeMemory V2:通过语义片段级整合实现LLM智能体的高效长期记忆

·

其他资讯 · 2026/08/14

长期运行的LLM智能体必须保留过去交互中的信息以支持未来任务。现有记忆系统通常采用急切整合,在每次交互后调用LLM提取、总结或更新记忆,导致对话增长时记忆构建成本增加。粗粒度总结可降低成本,但可能丢失细粒度上下文证据,而更大的检索上下文或多跳LLM推理则将开销转移到查询阶段。我们提出LycheeMemory V2,一种高效长期记忆框架,用语义段级整合取代回合级整合。LycheeMemory将多次交换批量处理为段,并将每个最终确定的段编码为上下文无关的类型化记忆记录。段级批处理降低了LLM编码频率,而语义边界检测相比固定窗口批处理有助于保留连贯的事件级和时间证据。生成的记录通过轻量级结构化索引组织,用于查询计划的证据检索。使用GPT-4.1-Mini的实验表明,LycheeMemory达到最先进性能,在LoCoMo上为89.22%,在LongMemEval-S上为92.20%。与A-Mem相比,它在LoCoMo上减少构建token 86.0%,在LongMemEval-S上减少75.9%,且不增加查询时token使用。更广泛地,我们的结果表明,长期智能体记忆的准确性与成本权衡不仅取决于保留什么信息,还取决于整合的粒度。

该论文提出了一种新颖的长期记忆框架,通过语义段级整合显著降低记忆构建成本,同时保持甚至提升性能,实验验证充分,对LLM智能体记忆设计具有重要参考价值。

Long-horizon LLM agents must preserve information from past interactions to support future tasks. Existing memory systems typically rely on eager consolidation, invoking LLMs after each interaction to extract, summarize, or update memories. This design makes memory construction increasingly costly as conversations grow. Coarse summarization can reduce construction cost but risks discarding fine-grained contextual evidence, whereas larger retrieval contexts or multi-hop LLM reasoning shift the overhead to query time. We present LycheeMemory V2, an efficient long-term memory framework that replaces turn-level consolidation with semantic segment-level consolidation. Instead of consolidating every interaction, LycheeMemory batches multiple exchanges into segments and encodes each finalized segment into context-independent typed memory records. Segment-level batching lowers LLM encoding frequency, while semantic boundary detection helps preserve coherent event-level and temporal evidence compared with fixed-window batching. The resulting records are organized with lightweight structured indexes for query-planned evidence retrieval. Experiments using GPT-4.1-Mini show that LycheeMemory achieves state-of-the-art performance, reaching 89.22% on LoCoMo and 92.20% on LongMemEval-S. Compared with A-Mem, it reduces construction tokens by 86.0% on LoCoMo and 75.9% on LongMemEval-S without increasing query-time token usage. More broadly, our results suggest that the accuracy--cost trade-off of long-term agent memory depends not only on what information is retained, but also on the granularity at which it is consolidated.

阅读原文

参与讨论