Manuscript Offprint

arXiv:2610.20256

Long-Horizon RL Needs Muon

Kai Ruan, Jinghao Lin, Tao Chen, Ziqi Zhou, Qianshan Wei, Zihe Huang

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

Abstract

Long-horizon agents must coordinate reasoning, tool use, and environment feedback over extended interactions. Learning from sparse outcome rewards requires weighting trajectories of different lengths and updating the policy while rollouts are still being collected. We examine a single-rollout asynchronous recipe combining Muon, token-averaged loss, truncated importance sampling, and auxiliary length and tool-error penalties. Single-rollout sampling allows asynchronous learning without waiting for multiple trajectories for the same issue. We study optimizer choices and recipe components for repository-level issue resolution across two model families. The evaluated training runs show higher training success with the full recipe than with the baselines.

1 Introduction

Repository-level issue resolution requires an agent to interpret an issue description, navigate and edit the codebase, and validate a candidate patch (Jimenez et al., 2023; Yang et al., 2024). Such workflows require coordinated execution across dependent steps, a defining feature of long-horizon agents (Wu et al., 2026a). Executable tests make these interactions a source of reinforcement-learning feedback (Jain et al., 2025; Luo et al., 2025; Song et al., 2026). Trajectory lengths vary, and asynchronous collection introduces a gap between rollout and learner policies. We study how optimizer choice affects learning from sparse outcomes under these conditions.

We compare Adam (Kingma and Ba, 2014) and Muon (Jordan et al., 2024) within Single-stream Policy Optimization (SPO) (Xu and Ding, 2025), then study how Muon combines with SPO++ (Ruan et al., 2026b), reward shaping, and importance correction. Ablations examine the length penalty (Yu et al., 2025), tool-error penalty, and update rules using the same training success rate metric.

The full recipe achieves higher training success than the SPO baselines in the selected runs from

(a) Software-repair interaction

Figure

(b) Training recipe

Figure 1: Overview of the training recipe. (a) A software engineering agent inspects, edits, and tests a repository; final tests provide the binary outcome reward. (b) Length and tool-error penalties shape advantages, TIS reweights token-level policy losses, and token-level averaging aggregates the policy loss before the Muon update.

Work in progress

Figure

Figure 2: Recipe comparisons for the selected training runs in Figures 4 and 5. Bars summarize unsmoothed training success rates. Pale green highlights the full recipe.

both model families (Figure 2).

References (21)