跳到正文
DAIR.AI· @dair_ai · X·· 11 天前AI 评分52
AI 导读

论文提出 GrepMem,把 Agent 完整历史保存为纯文本日志,需要时用 regex 搜索,无需嵌入、检索索引或额外模型。

正文

Is grep all you need?

This work claims that an append-only text log plus a regex search tool beats summarization and structured memory for long-horizon agents.

(bookmark it)

GrepMem keeps the agent's full history as plain text and lets it search that log when it needs something. It does not need embeddings, a retrieval index, or an extra model.

They trained Qwen3.5-9B with RL under five context strategies. GrepMem reaches 95-97% on ContextBench, where lossy methods reach at most 21%. It beats SUPO summarization by 8.8 points on BCP-Multi and stays on the accuracy-and-token-cost Pareto frontier on all five tasks.

Why does it hold up? Summaries decide what to keep before the agent knows what it will need later. The log keeps everything, and search finds the detail on demand.

https://arxiv.org/abs/2611.25123

Chat with Paper: https://academy.dair.ai/papers/forget-freely-grep-later-lossless-index-free-memory-for-long-horizon-llm-agents-2611.25123

来源:DAIR.AI · x.com