MemCredit: From Relevance to Utility for Decision-Time Memory in Long-Horizon Web Agents
Quanjiang Guo, Sijie Wang, Qianyang Zhu, Ben Zhang, Jinchuan Zhang, Ke Yan, Zhao Kang
Abstract
Large language model (LLM) agents increasingly operate over long Web interaction histories, making memory management critical for reliable and efficient decision making. Existing methods primarily optimize storage, retrieval, or compression, but the memories most semantically relevant to the current state are not necessarily those that most improve the agent's action. We introduce MemCredit, a decision-centric memory framework that shifts memory selection from semantic relevance to decision utility. MemCredit estimates the state-, reference-context-, and policy-conditional marginal contribution of individual memories through controlled counterfactual interventions, and distills these intervention-derived credits into a lightweight utility estimator. At inference time, semantic relevance is used only for high-recall candidate generation, while predicted utility arbitrates which memories are retained under a fixed token budget, without modifying the underlying agent policy or requiring additional environment interaction. We evaluate MemCredit on ALFWorld and WebShop against representative memory baselines. On ALFWorld, MemCredit achieves 86.57 SR@50 under a 500-token historical-memory budget, compared with 65.67% for BM25 retrieval. Counterfactual analysis further shows that memory utility is sparse, strongly state dependent, and poorly captured by semantic relevance. These results suggest that decision utility provides a more effective principle than relevance alone for long-horizon agent memory management.
Create a lesson
Related papers
Actor, Judge, or Teacher? Understanding Decision Models in Long-Horizon Agents
Shared title terminology · Haochen Liu, Qianhao Zhu, Zixuan Wang et al.
OutfitterBench: Evaluating LLM Agents on Long-Horizon Resource Allocation and Commitment Coordination
Shared title terminology · Jie Huang, Yuecheng Hong, Yao Chen et al.
Co-Sight Harness: Externalized Control Assets and Deterministic Enforcement for Long-Horizon Business Agents
Shared title terminology · Luyao Wang, Xijun Zhu, Zhaohui Hao et al.
A Push Down the Mountain: Framing Effects and Internal State Interventions on Collusive Behavior in a Long-Horizon LLM Agent
Shared title terminology · Harrison C. Margolin
Folio: Recoverable Multi-Resolution Context Folding for Long-Horizon Language Agents
Shared title terminology · Yubo Ruan, Tao Peng, Jiao Zhang et al.
Dependable Long-Horizon LLM Agents: A Trajectory-Centered Empirical Study of Where Errors Enter and Which Controls Reach Them
Shared title terminology · Shaohuang Wang, Jinghao Wen, Xulei Zhang et al.