Addressing the insufficient sequential decision-making capability of large language models, this paper proposes REAPER, an experiential memory-augmented agent framework that preserves the original LLM reasoning ability and requires no modification of model weights, based on a ground-truth-verifiable evaluation setting of perfect-information two-player zero-sum games. It improves sequential decision-making performance through post-game step-wise reflection and a rule generalization mechanism.
Large language models have made remarkable progress on single-step reasoning tasks, but their performance in sequential decision-making scenarios remains insufficiently understood. This study chooses fully observable two-player zero-sum games as the core validation scenario, which offer natural ground-truth evaluation conditions: game outcomes are fully determined by the rules, the optimality of individual actions can be exactly computed or closely approximated, and evaluation requires no additional judge model. Tests across large models of different parameter counts and capability levels show that even in games with simple rules such as tic-tac-toe and Connect Four, large models' game performance falls far short of optimal play, and they can even lose to Monte Carlo Tree Search-based opponents.
Controlled validation across multiple models further confirms that this sequential decision-making performance gap is essentially a reasoning gap at decision time, and cannot be fully explained by the model not having memorized the corresponding game strategies. The study observed that after applying obfuscation that preserves the complete game tree structure and only rewrites surface-level wording, the models' game performance remained essentially unchanged; subsequent shifted obfuscation experiments also showed that when the surface wording of the game rules is pushed out of distribution, to the point that almost no model can recognize the original game, decision optimality barely declined for all models except a few small-parameter ones. This reasoning gap persists across large models at all levels and is essentially unaffected by surface-level rule obfuscation.
To achieve effective disentanglement of memorized recitation from reasoning ability and support sequential decision-making evaluation under the aforementioned obfuscation scenarios, the study designed the PlyBench evaluation benchmark. Unlike the faithful state representations provided by OpenSpiel, PlyBench's adaptation layer specifically implements a game rule obfuscation mechanism: these semantics-preserving surface transformations only modify the natural-language wording of the game rules, leaving the underlying game tree structure completely unchanged, presenting the same game through rule formulations the model could hardly have seen during pretraining. This rules out interference from pretraining memory at the evaluation-mechanism level, providing more reliable support for measuring the sequential decision-making reasoning ability of large models.
When case-based reasoning methods are directly adapted to LLM sequential decision-making scenarios, two core limitations arise that prior related methods have not resolved. The first is the adaptation of the experience unit: the basic unit of experience in sequential decision-making scenarios is a single-step action, rather than the complete task samples used in traditional case-based reasoning frameworks. The second is the allocation of delayed rewards: rewards in sequential decision-making tasks are only revealed at the end of a complete decision episode, so the final terminal outcome must be distributed across all steps of the entire trajectory. This work specifically addresses these two problems; the proposed REAPER reflective case-based reasoning framework retains the LLM as the core reasoner while supplementing it with an experiential memory module designed for sequential interaction scenarios.
On the basis of preserving the original planner-executor architecture and case memory module, the REAPER framework adds two independent components, the self-reflector and the rule extractor, specifically addressing the two core limitations exposed when prior case-based reasoning methods were adapted to sequential decision-making scenarios. You can use the accompanying figure to fully map out the framework's complete module composition and the data flow logic between modules.
The self-reflector is designed specifically to address the coarse-grained credit assignment problem of baseline methods. After a single decision episode terminates, it analyzes the complete interaction trajectory and generates per-action structured reflective content, rather than uniformly distributing a single final terminal reward to every step in the trajectory. The generated reflections score each action along two independent dimensions: one is local quality, i.e., whether the action was a reasonable choice at the moment it was taken; the other is outcome contribution, i.e., whether the action positively helped, negatively harmed, or was neutral to the final result. This decomposition is the core of the fine-grained feedback signal, allowing actions in a losing game that were locally logical in themselves to be marked as valid, rather than imposing uniform punishment on all actions.
Feedback signals generated by self-reflection alone can only cover the states the agent has actually interacted with; in task scenarios with large state spaces, this creates a multi-state exploration bottleneck requiring extensive interaction to adequately cover the entire state space. The rule extractor generalizes the experience obtained from self-reflection so that it can provide guidance to the planner even in states the agent has never seen. Every fixed number of games, the rule extractor consolidates all reflection-annotated cases accumulated since the last update, along with the current rule set, to generate a compact set of general policy rules that are inserted directly into the planner's prompt. Because a completely new rule set is generated every fixed game cycle, the rule memory is self-correcting: it can merge overlapping rules into more robust strong rules while removing invalid rules that contradict newly accumulated experience.
Component ablation experiments of the REAPER framework verified the performance contribution of the added modules. The variant retaining only self-reflection achieved an average win rate of 0.826; after adding the rule extraction component, the average win rate rose to 0.868. Although the confidence intervals of the two results overlap, a one-sided Welch t-test demonstrated that this improvement is statistically significant, with a corresponding p-value of 0.039. On the per-step decision optimality rate metric, the self-reflection-only variant scored 0.959, rising to 0.970 after adding rule extraction; this improvement also passed the significance test, with a p-value of 0.027.
The complete REAPER framework achieved an average win rate of 0.868 on the corresponding evaluation tasks, 5 percentage points higher than the baseline method, and a one-sided Welch t-test showed this performance gain is statistically significant, with a p-value of 0.018. Since REAPER shares exactly the same underlying architecture as the baseline method, this performance gain can be clearly attributed to the two added modules, post-game self-reflection and rule extraction. Statistics on the number of output tokens per decision step show that REAPER's token usage continuously declined during training, ultimately falling not only below the baseline method but even below a single-call reference approach. This confirms that the framework's performance gain does not come from longer reasoning trajectories but from more effective contextual information at the decision stage.
Under the state mode that generates embedding keys from raw observations, the case retrieval success rate for states already stored in memory can reach nearly 100%. The premise of this mechanism is that the embedded raw observation can be exactly matched with its own stored key.
If switched to the natural-language description mode, natural-language descriptions of the same state are no longer fully consistent or sufficiently close in the embedding space, causing the target case to fail to appear reliably in the top k retrieval results, with retrieval success rates below 100%. The variants of both description modes eventually plateau, and their upper bounds remain consistently lower than the corresponding state-mode method, indicating that merely switching to a natural-language description state representation cannot bring about retrieval improvements.