MemTrial: Learning When to Trust Memory in LLM Portfolio Agents
Abstract
Large language model (LLM) agents for portfolio management learn from experience: they credit each experience in their memory with the outcome of the decisions that used it. In financial markets, however, this outcome mostly reflects the market move shared by all decisions on that date, so the credit tracks the market rather than the experience, and these agents often do worse than simply holding the equal-weight (1/) portfolio. We ask how an agent can credit an experience with what it changes, and answer it by putting memory on trial: drafts of the same decision with and without an experience face the same market, so the outcome they share cancels in their difference. Our agent, MemTrial, drafts each decision with eight combinations of its retrieved experiences, chosen by a fractional factorial design, and credits each experience with its Banzhaf value, the average of these differences. As each date occurs once and each draft is a noisy LLM sample, these credits are noisy and may not hold on new dates. MemTrial therefore pools them across dates and similar experiences with a hierarchical Bayesian model, acts on them only after they have predicted unseen dates, and otherwise stays anchored at a conservative reference such as 1/. On four benchmarks, MemTrial not only benefits from experiences that matter (the best of 15 methods on a semi-synthetic benchmark with known experience quality) but also limits its losses when its values do not hold (at most 2.2\% below 1/ on PortBench and InvestorBench, against 15--38\% for the best experience-learning agent). Averaged over five settings, it improves the utility of the best experience-learning agent by 21.2\%, and with eight LLMs it beats every LLM-based baseline on InvestorBench.
Create a lesson
Related papers
Intent-Conditioned Argument Mediation for Tool-Using LLM Agents: Blocking Trusted-but-Unauthorized Arguments
Shared title terminologycs.AIYulliwas Ameur, Miqeas Pedro Mendes, Samia Bouzefrane
Forgetting is Not Always Bad: A Neuro-Inspired Memory Repair Mechanism for Poisoned LLM Agents
Shared title terminologycs.AILei Liu, Yunji Liang, Xiaowen Zhang et al.
Use and Disuse: Intent-Structured Experience Consolidation for Memory and Learning in LLM Agents
Shared title terminologycs.AIXiangyi Zeng, Baihang Liu, Xutong Wang et al.
DeltaReplay: Task-Relative Memory Reuse for Mobile GUI Agents
Shared title terminologycs.AIYudong Bai, Yihong Chen, Quanming Yao et al.
Memory Type Varies: Empowering LLM Agents for Long-Term Memory with Diverse Strategies
Shared title terminologycs.AIYi Wen, Derong Xu, Pengyue Jia et al.
What to Admit and How to Present: Governing Persistent Memory in LLM Agents
Shared title terminologycs.AIChang Liu, Deliang Ding