arXiv:2610.11732cs.AIOct 2026

Manuscript Offprint

arXiv:2610.11732

MemTrial: Learning When to Trust Memory in LLM Portfolio Agents

Guanghao Wu, Zhuo Cai, Shoujin Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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/N) portfolio. We ask how an agent can measure what an experience changes, and answer 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, generates eight drafts of each decision with subsets of its retrieved experiences chosen by a fractional factorial design, and estimates each experience's contribution as its Banzhaf value, the average of these differences. As each date occurs once and each draft is a noisy LLM sample, these contributions are noisy and may not hold on unseen dates. MemTrial therefore pools them into values across dates and similar experiences with a hierarchical Bayesian model, acts on the values only after they have predicted unseen dates, and otherwise stays anchored at a conservative reference such as 1/N. On four benchmarks, it not only benefits from experiences that matter (the best of 15 methods on a semi-synthetic benchmark with known experience quality) but also, through its anchor, limits its losses when its values do not hold (at most 2.2% below 1/N on PortBench and InvestorBench, against 15–38% for the best experience-learning agent). Averaged over five benchmark settings, its utility is 21.2% higher than that of the best experience-learning agent, and with eight LLMs it beats every LLM-based baseline on InvestorBench. Our code is available here.

Keywords

LLM agents; agent memory; experience learning; credit assignment; counterfactual attribution; portfolio management

References (24)