arXiv:2610.29427cs.LGOct 2026

Manuscript Offprint

arXiv:2610.29427

One Act, Many Masks: Effect-Marginal Policy Optimization for Long-Horizon Agents

Shaojin Ma, Ruitao Wang, Pengyi Li, Jie Yang, Liangyu Chen, Gangyi Zhao, Hongyao Tang, Yan Zheng, Jianye Hao

ABSTRACT

Recent advances in multi-turn reinforcement learning (RL) have substantially improved the performance of LLM agents on complex, long-horizon interactive tasks. However, despite progress in fine-grained credit assignment, policy optimization still applies these learning signals through response-specific probability ratios. Different textual responses can induce the same executable effect, yet credit differences arising from subsequent outcomes remain tied to their individual textual realizations. We identify this mismatch as credit-update misalignment. Our analysis reveals that credit-text pairing directly shapes policy-update directions, even when the policy context and executable effect are held fixed. Motivated by this finding, we propose Effect-Marginal Policy Optimization (EMPO), which aligns policy optimization with execution-level equivalence through an effect-level surrogate that couples updates across alternative textual realizations. EMPO preserves the original credit signals, integrates with both trajectory-level and step-level credit estimators, and requires no additional critics or rollouts. Experiments on ALFWorld, WebShop, and Sokoban show that EMPO outperforms strong baselines in both task performance and learning efficiency.

1 INTRODUCTION

Large language models (LLMs) are increasingly deployed as interactive agents for embodied decision making, computer use, tool use, and coding. Unlike single-turn reasoning, these tasks require agents to repeatedly perceive, reason, and act over extended interaction horizons, often under partial observability, sparse feedback, and delayed rewards. Reinforcement learning (RL), which directly improves policies through environment feedback, has therefore become an important paradigm for post-training long-horizon LLM agents.

Credit assignment remains a central challenge in long-horizon agent RL, where delayed outcomes must supervise many intermediate decisions. PPO (Schulman et al., 2017) typically relies on a learned value function for advantage estimation, while group-based methods such as GRPO (Shao et al., 2024) replace the critic with relative comparisons among sampled trajectories. Recent work further improves the granularity and reliability of credit through local state comparisons, hierarchical or graph-structured attribution, and action-level calibration (Feng et al., 2025; He et al., 2026; Cheng et al., 2026). Despite their different constructions, these methods share the goal of providing more informative credit for individual decisions along a trajectory.

Yet credit estimation is only one part of policy learning, as the resulting signal must still be translated into a policy update. An LLM agent generates a textual response containing reasoning and an eventual action, while an execution interface maps that response to the command that actually affects the environment. The mapping from textual responses to executable effects is generally many-to-one. Responses that differ in reasoning, wording, or length may still induce the same immediate executable effect. Standard PPO-style objectives nevertheless retain realization-specific probability ratios, so credit differences among execution-equivalent responses are translated into distinct

†^{\dagger}Contact me at shaojin.ma01@gmail.com

∗^{*}Correspondence to: Pengyi Li (lipengyi@tju.edu.cn) and Jianye Hao (jianye.hao@tju.edu.cn)

Figure

Figure 1: Execution-equivalent responses may receive different credit and undergo divergent response-wise policy updates despite inducing the same immediate effect. Such within-effect variation can propagate into inconsistent ratio changes and unstable policy updates over training.

response-level probability updates. As illustrated in Figure 1, textual variation can therefore introduce substantial update variation even when the resulting environment-level decision is unchanged.

We refer to this mismatch between execution-level equivalence and realization-specific credit-gradient pairing as credit-update misalignment. Credit assignment determines the learning signal associated with a sampled decision, whereas policy optimization determines how that signal is coupled to changes in the model distribution. We find that conventional response-wise optimization contains a within-effect covariance term coupling supplied credit with realization-specific response scores. The covariance term captures the sample-wise credit-gradient pairing retained by independent response-level optimization, revealing an update-level source of variation that is distinct from the quality of the underlying credit estimator.

Based on this view, we propose Effect-Marginal Policy Optimization (EMPO), which reorganizes policy updates around executable effects rather than individual textual realizations. EMPO identifies locally comparable responses that induce the same canonical effect and shares their length-normalized policy ratios during optimization while retaining the original advantage assigned to each response. This factorizes effect-conditioned policy change from realization-specific credit pairing without modifying the underlying credit estimator. EMPO operates entirely on existing rollout data and introduces no additional critic, auxiliary model, reward model, or environment interaction, making it applicable to both trajectory-level and fine-grained credit estimators.

We evaluate EMPO on ALFWorld, WebShop, and Sokoban(Shridhar et al., 2021; Yao et al., 2022; Schrader, 2018) with both GRPO and GiGPO, covering trajectory-level and step-level credit estimation. Across environments and model scales, EMPO improves the overall task performance of the corresponding base algorithms. Controlled analyses further connect the optimization objective to its intended mechanism. Effect-ratio sharing changes within-cell gradient coupling and leads to measurable differences in response-probability updates after a controlled policy step, while introducing only small additional actor-side computation.

The main contributions of this work are summarized as follows. (1) We identify credit-update misalignment, a policy-optimization problem arising when execution-equivalent textual responses retain realization-specific credit-gradient pairing, and characterize it through an exact decomposition of the response-wise update. (2) We propose Effect-Marginal Policy Optimization (EMPO), which shares policy ratios across locally comparable, execution-equivalent responses while preserving the original advantages and requiring no additional rollouts, critics, or auxiliary models. (3)

We validate EMPO across three long-horizon agent environments, multiple model scales, and both trajectory-level and step-level credit estimators, with controlled analyses connecting the proposed objective to gradient coupling and realized policy updates.

References (57)