论文《Weighted Memory Tree》提出,让智能体在长任务中表现更好的不是记忆层级结构,而是给每条记忆打分并让未被选中的记忆衰减出提示词。该方法按记忆对应动作是否成功打分,并在记忆可被选中却未被选中时对其降权,与线性历史和未打分的树结构对比,只有打分版本在所有测试模型上都提升了准确率并降低了提示词成本。
Giving an agent a memory hierarchy is not what makes it reason better over long tasks. What helps is scoring each memory and letting unused ones decay out of the prompt.
Agents that keep everything in context lose accuracy to their own stale records. So build a rule that demotes memories the selector keeps skipping, rather than a bigger store.
For a long-horizon agent, a demotion rule buys more than a better retriever: lower a memory's standing each time the selector passes it over.
This paper separates hierarchy from scoring, and only the scored version improves accuracy and prompt cost in every model tested.
The Weighted Memory Tree scores each memory by whether its action succeeded, decays it whenever the memory is eligible but unselected, and is set against linear history and an unscored tree.
– arxiv. org/abs/2608.20631
Title: "Weighted Memory Tree: Remembering What Matters for Long-Horizon LLM Agents"
来源:@rohanpaul_ai · x.com