3SPO: State-Score-Supervised Policy Optimization for LLM Agents

Yu Han, Kailing Li, Yang Jiao, Yulin Dai, Yuqian Fu +2 more
6/8/2026
2 citations
cs.LGcs.AI
rl

Official code: genalyu/3SPO (22 stars, Python, Apache-2.0, last commit 2026-06-10).

Abstract

Training large language models (LLMs) as autonomous agents via reinforcement learning (RL) has enabled frontier models to achieve superhuman performance in long-horizon tasks. However, existing RL algorithms operate at the trajectory level, performing policy optimization only after collecting complete episode rollouts.

Show full abstract

This coarse-grained approach faces fundamental challenges in multi-turn agent settings where rewards are sparse, delayed, and credit assignment across individual steps is critical. In this work, we propose \textbf{State-Score-Supervised Policy Optimization (3SPO)}, a novel RL algorithm that performs post-step policy optimization with dynamic state score supervision. At each step, 3SPO computes the state score based on historical success rates, supervising step-wise credit assignment, adaptive rollout and post-step policy optimization without requiring value function estimation or additional auxiliary models. Theoretically, under a per-state bandit abstraction, we show that the proposed score-supervised allocation mechanism achieves logarithmic allocation regret and provide sample-complexity guarantees for action identification, score distinguishability, and filtering stability. Experiments on ALFWorld and WebShop with Qwen2.5-1.5B/7B-Instruct show that 3SPO consistently outperforms GRPO by $+22.6\%$ on ALFWorld and $+15.6$ points on WebShop, while using comparable resources to achieve $2.4\times$ more state exploration and $1.8\times$ faster convergence. Code is available at https://github.com/genalyu/3SPO.

View on arXivView PDF

Code Implementations(1)

genalyu/3SPOOfficial100%
Apache-2.0
223Python, Jupyter NotebookApr 5, 20265 months agoApache-2.0

Similar Papers

Cite this paper

@article{han2026spo,
  title  = {3SPO: State-Score-Supervised Policy Optimization for LLM Agents},
  author = {Yu Han and Kailing Li and Yang Jiao and Yulin Dai and Yuqian Fu and Linhai Zhuo and Tianwen Qian},
  year   = {2026},
  eprint = {2606.09961},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.09961v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.09961.svg)](https://codeofpaper.com/paper/2606.09961)

Discussion