Learning What to Remember: Resource-Efficient Self-Improvement for Lifelong Agents

Guannan Lai, Zi-Yang Bai, Jun-Peng Jiang, Han-Jia Ye
10/19/2026
cs.AI

Official code: AIGNLAI/TokenWorth (3 stars, Python, last commit 2026-10-25).

Abstract

Self-improving agents aim to continuously improve their behavior by learning from experience after deployment. However, accumulating and reusing more experience does not necessarily lead to better decisions, particularly when generation, interaction, and memory resources are jointly constrained.

Show full abstract

Under such stringent constraints, we find that several existing lifelong-memory methods provide limited benefits over simple retrieval or even no-memory agents. This reveals a fundamental challenge for resource-efficient self-improvement: agents must learn not only which past experiences are relevant, but which are actually worth reusing to improve future decisions. When memory capacity and opportunities for reasoning and recovery are limited, retrieving an ineffective experience can consume scarce resources and hinder downstream execution. To address this challenge, we propose TokenWorth, a lightweight feedback-driven memory adaptation framework that learns query-dependent memory worth from sparse execution feedback. Without updating the backbone model, TokenWorth uses the learned worth to guide both experience retrieval and bounded memory management, enabling the agent to continually adapt how it reuses accumulated experience. 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 under the specified resource budgets. These results suggest that effective self-improvement under resource constraints depends not on accumulating more experience, but on learning what is worth remembering. Our code is publicly available at https://github.com/AIGNLAI/TokenWorth.

View on arXivView PDF

Code Implementations(1)

AIGNLAI/TokenWorthOfficial100%

Official implementation of Learning What to Remember: Resource-Efficient Self-Improvement for Lifelong Agents. TokenWorth learns memory worth from execution feedback.

30Python, ShellAug 24, 20261 months ago
agent-memoryalfworldbigcodebenchlarge-language-modelslifelong-learning+7 more

Similar Papers

Cite this paper

@article{lai2026learning,
  title  = {Learning What to Remember: Resource-Efficient Self-Improvement for Lifelong Agents},
  author = {Guannan Lai and Zi-Yang Bai and Jun-Peng Jiang and Han-Jia Ye},
  year   = {2026},
  eprint = {2610.26453},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.26453v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.26453.svg)](https://codeofpaper.com/paper/2610.26453)

Discussion