记忆是有代价的:在资源约束下学习记忆价值

·

研究论文 · 2026/10/20

终身智能体在部署后不断积累和重用经验以提升性能,但实际中常面临生成、交互和内存预算的严格限制。在这种联合约束下,现有终身记忆方法可能失效,一些复杂方法相比简单检索甚至无记忆智能体优势甚微。这揭示了一个更根本的问题:资源稀缺使每个记忆决策更加关键。当只能保留或重用少量过去经验且推理和恢复机会有限时,检索相关但无效的记忆会消耗稀缺上下文并阻碍下游执行。因此关键挑战不仅是检索相关经验,而是确定哪些经验真正值得保留和重用。为此,我们提出TokenWorth,一个轻量级在线记忆框架,从稀疏执行反馈中学习查询相关的记忆价值,并将其一致地应用于记忆检索和有界记忆管理。在三个LifelongAgentBench环境和本地及基于API的部署中,TokenWorth在评估方法中实现了最高任务成功率,同时使用最少的输出令牌。这些结果表明,资源约束下的有效终身适应不在于记住更多,而在于学习什么值得记住。代码公开于https://github.com/AIGNLAI/TokenWorth。

该研究针对资源受限下终身智能体的记忆管理问题,提出了新颖的TokenWorth框架,通过实验证明其高效性,对实际部署具有重要指导意义。

Lifelong agents continually accumulate and reuse experience to improve after deployment, yet in practice they often operate under tight generation, interaction, and memory budgets. Under such stringent joint constraints, we find that existing lifelong-memory methods can become ineffective, with several sophisticated approaches offering little advantage over simple retrieval or even no-memory agents. This reveals a more fundamental problem: resource scarcity makes each memory decision more consequential. When only a small amount of past experience can be retained or reused and opportunities for reasoning and recovery are limited, retrieving a relevant but ineffective memory can consume scarce context and hinder downstream execution. The key challenge is therefore not simply to retrieve relevant experience, but to determine which experiences are actually worth retaining and reusing. To address this challenge, we propose TokenWorth, a lightweight online memory framework that learns query-dependent memory worth from sparse execution feedback and applies it consistently to memory retrieval and bounded memory management. Across three LifelongAgentBench environments and both local and API-based deployments, TokenWorth achieves the highest task success rate while using the fewest output tokens among the evaluated methods. These results suggest that effective lifelong adaptation under resource constraints depends not on remembering more, but on learning what is worth remembering. Our code is publicly available at https://github.com/AIGNLAI/TokenWorth.

阅读原文

参与讨论