Contextual Credit Policy Optimization
Huiwen Han, Ziyao Zeng, Zihao Zhu, Sisong Bei, Hao Wang, Hongyu Xu, Yan Han, Degui Zhi,
Key points
From the paper's conclusion- To address these two challenges, we propose Contextual Credit Policy Optimization (CCPO).
Abstract
Group-based reinforcement learning enables large language model agents to learn from sparse outcome rewards in long-horizon tasks. Recent methods derive step-level credit by comparing observation-matched experiences across trajectories. However, identical observations can occur in different contexts, and matched peers are not equally informative for a given decision. Moreover, favorable terminal outcomes can obscure redundant actions or detours within successful trajectories. To address these two challenges, we propose Contextual Credit Policy Optimization (CCPO). For the first, CCPO weights observation-matched peers from other trajectories by contextual similarity, computed from frozen LLM representations and accumulated trajectory statistics, allowing peers from similar contexts to contribute more to a step's baseline. For the second, CCPO pairs historical credit, which compares the realized return against the weighted peer baseline, with future credit, which measures the change in contextual outcome value over a short realized continuation. A step is thus credited for the progress it makes, not only for its trajectory's eventual outcome. Both credits are computed in hindsight from rollouts already collected for training, enabling CCPO to address these challenges without an auxiliary value critic. Across two Qwen2.5-Instruct backbones (1.5B and 7B), CCPO achieves up to 97.4% success on ALFWorld and 79.4% on WebShop and outperforms GRPO by up to 21.6 and 18.5 points. Ablations show that contextual weighting outperforms uniform weighting, and that historical and future credit serve as complementary learning signals.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Matched-Context Group Policy Optimization for LLM Agent TrainingarXiv · 2026
- BLPO: Beyond-Local Policy Optimization for Long-Horizon LLM AgentsarXiv · 2026
- Action-Value Calibration via Continuation Sharing for Long-Horizon Agentic Reinforcement LearningarXiv · 2026
- One Act, Many Masks: Effect-Marginal Policy Optimization for Long-Horizon AgentsarXiv · 2026
- RELACE: retrospective likelihood-based action credit estimation for long-horizon language agentsarXiv · 2026
- FOCUS: Active Critic Learning for Long-Horizon Language Model AgentsarXiv · 2026