Manuscript Offprint

arXiv:2610.24032

Visual Causal-chain Bookmarking: Retrieval-Weighted Credit Assignment for Reinforcement Learning from Delayed Reward

Prathap Selvakumar

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

Prathap Selvakumar

University of Manchester

Abstract—Reinforcement learning (RL) agents trained with a single trajectory-level return face a structural credit-assignment problem: when a reward arrives many steps after the decision that caused it, every intermediate action receives the same learning signal, regardless of whether it was causally responsible for the outcome. This paper studies Visual Causal-chain Bookmarking (VCBM), a family of methods that concentrate credit on the specific decision points that determine an episode's return rather than spreading it uniformly across the trajectory, and develops two domain-specific instantiations of this idea. The first instantiation targets a fully observed, low-dimensional Markov decision process (a delayed-reward watch-repair task), where VCBM statistically discovers which state components are causally controlled by the agent's actions and estimates per-decision-point action values directly; it is evaluated against known ground truth as well as against RUDDER, a return-redistribution baseline built on an LSTM contribution network. VCBM converges to a 95.07% correct-decision rate in a mean of 1,532.3±1,428.01,532.3 \pm 1,428.0 episodes across 20 random seeds (range 1,196–7,757), against RUDDER's slower and more variable convergence (mean 3,327.1±2,010.93,327.1 \pm 2,010.9 episodes, median 2,829, range 1,603–10,936); this difference is statistically significant (unpaired Mann–Whitney U=19U = 19, p<0.001p < 0.001, rank-biserial r=0.91r = 0.91), and VCBM's discovered causal structure exactly matches the environment's true generative structure in all 20 seeds. The second instantiation targets a partially observed, language-based setting: an LLM agent trained with Leave-One-Out Proximal Policy Optimisation (LOOP) inside the AppWorld benchmark, where causal discovery is intractable and a structural heuristic (state-mutating tool calls) substitutes for it, with credit distributed via cosine-similarity retrieval over an episodic memory of bookmarked turns and blended with LOOP's trajectory-level advantage. Trained for 200 iterations on identical Qwen2.5-7B-Instruct/LoRA/FSDP2 configurations, VCBM-blended LOOP shows an exact improvement over plain LOOP on task success rate (0.354 vs. 0.458 overall, +29.4%, concentrated almost entirely in medium-difficulty tasks: 0.188 vs. 0.500, +166.7%), on the final-step maximum importance weight (-22.2%), and on output-token efficiency (-18.8% mean output tokens, +34.6% return per 1,000 tokens); the final-step KL estimate is a marginal exception, moving 4.1% in LOOP's favour. Taken together, the watch-repair result, run across 20 seeds with a significance test, establishes the central claim that explicitly identifying and weighting the causally relevant steps of a trajectory is a more sample-efficient credit-assignment strategy than either an undifferentiated trajectory-level baseline or a learned return-redistribution network; the AppWorld result, constrained to a single seed per arm by the 2-GPU budget available for this project, is reported as a compute-limited demonstration that the same mechanism is compatible with an improvement at a harder, partially observed, natural-language scale, not as an independent statistical confirmation of it.

Index Terms—reinforcement learning, credit assignment, causal discovery, episodic memory, retrieval, large language model agents, delayed reward

I. INTRODUCTION

Reinforcement learning (RL) agents that learn from a trajectory-level reward face a structural credit-assignment problem whenever that reward is delayed and sparse: it arrives only at the end of an episode, after many intermediate actions, most of which did not causally influence the outcome. This recurs from discrete-action control [10], through robotic control [43], [44], to RLHF post-training of large language models (LLMs) [4]–[6]: an LLM agent solving a task in AppWorld [7] executes a long tool-call sequence of which only a handful change task-relevant state, yet a policy-gradient update that assigns one scalar advantage to every action averages the delayed signal across all of them, slowing convergence and risking spurious action-outcome correlations [45], [46].

Two established families of methods address this without questioning the underlying strategy. Trajectory-level baselines, such as the leave-one-out estimator used in LOOP [3], reduce return variance by subtracting a baseline from other rollouts of the same scenario, but every token still receives an identical advantage. Return-redistribution methods such as RUDDER [1] instead train an LSTM to predict the eventual return from every trajectory prefix and redistribute reward as the difference between consecutive predictions: denser in principle, but only as reliable as the LSTM's own convergence.

An underexploited alternative is to make credit assignment structural: identify which timesteps are causally responsible and concentrate the signal there. This is the idea behind Visual Causal-chain Bookmarking (VCBM), instantiated two ways. In a fully observed, low-dimensional MDP, a hypothesis test determines which state components an action causally controls, so VCBM performs explicit causal discovery and accumulates return statistics per bookmarked decision via a Welford estimator. In a partially observed, natural-language setting such as AppWorld, this discovery is intractable, so the second instantiation substitutes a structural heuristic (state-mutating tool calls) and retrieval over an episodic memory, blended with the trajectory-level leave-one-out (LOO) advantage.

This paper designs, implements, and evaluates both instantiations against their natural baselines. Section II formalises the baselines and Section III situates VCBM in the literature. Section IV then gives the full formulation, before Section V reports the tabular and AppWorld comparisons and Section VI closes with what was achieved and where it falls short.

References (48)