ProCAP: Decomposing Credit Assignment for Long-Horizon Agentic Reinforcement Learning

Weihong Zhong, Xuan Luo, Mao Zheng, Mingyang Song, Xiaocheng Feng, Bing QinarXiv 2026

TL;DR

Training AI agents over dozens of steps using a single pass/fail outcome is like grading a 50-step chemistry lab solely on whether the final beaker exploded: the agent never learns which intermediate steps helped or hurt. Even step-by-step grading falls flat when a single score obscures the difference between moving forward and breaking a core rule. ProCAP fixes this by splitting turn-level evaluation into three distinct behavioral checks and applying strict, rule-based caps—yielding smarter, more reliable agents that generalize better to brand-new tasks.

What Problem Does This Paper Address?

When language-model agents tackle complex, multi-turn tasks—like writing code, querying APIs, and debugging—they typically only get a reward at the very end. Today’s go-to reinforcement learning (RL) method, Group Relative Policy Optimization (GRPO), takes that final score, compares it across a batch of attempts, and broadcasts one uniform grade to every single token in the trajectory. Bad turns in winning runs get praised; brilliant debugging in losing runs gets punished. Worse, if every attempt in a batch fails equally, the relative advantage is zero, and learning stalls completely.

Researchers have tried grading individual turns with "process rewards," usually asking an LLM judge for a single score or label per step. But real-world actions aren't one-dimensional. Imagine asking an agent to delete old songs from every playlist. It deletes a song from Playlist A (genuine progress!), but overwrites its memory and forgets the song is also in Playlist B (information misuse!). Forcing a judge to collapse mixed signals into a single number leaves the trade-off murky and implicit.

A turn showing mixed behavioral signals: partial progress alongside information misuse.

Methods

ProCAP retains GRPO’s standard episode-level outcome advantage, but augments each turn with a finely tuned, zero-mean process credit. Its core innovation is decomposing credit assignment into two separate stages: behavioral assessment (what happened?) and credit attribution (how should that change the policy?).

Figure 2: Overview of ProCAP. A frozen causal judge assigns categorical labels for Com- pliance, Adaptation, and Progress; programmatic detectors flag execution and repetition failures. Explicit rules fuse these signals, apply caps, and center credits for GRPO.
  1. Multidimensional Assessment: Inspired by organizational psychology models of human job performance, a frozen LLM judge (Qwen3.8-27B) looks at the task, up to five prior turns, and the current turn—Crucially, no future turns, so it runs online—and assigns scale-free categorical labels across three dimensions:
  2. Compliance ($c$): Did it respect core task rules and boundaries? (aligned, deviation, or violation)
  3. Adaptation ($a$): Did it faithfully use previously observed facts? (effective, intermediate, misuse, or not applicable)
  4. Progress ($p$): Did it make net retained forward movement? (progress, intermediate, or regression)
  5. Programmatic Detectors: Lightweight regex and string checks run alongside the judge to flag runtime execution crashes ($e$) and consecutive identical failing retries ($b$).
  6. Rule-Based Attribution & Centering: Instead of adding scores together—which double-counts correlated good behavior—ProCAP fuses Progress and Adaptation using an idempotent extremum rule: $\max(p, a, 0) + \min(p, a, 0)$. Two positives take the higher value (+0.5, not +0.8), while mixed signs preserve both (+0.5 and -0.6 sum to -0.1). Next, Compliance and execution flags act strictly as non-compensatory upper-bound caps. Breaching a core rule caps the turn’s raw credit at $-0.9$, meaning clever progress can never offset breaking the rules. Finally, credits are centered across the rollout group to remain strictly zero-mean under GRPO's token weighting.

Datasets

The authors train and evaluate Qwen3.5-4B and Qwen3.5-9B models across three existing multi-turn agent benchmarks (no new benchmarks are introduced):

  • AppWorld: Interactive application ecosystems testing normal and challenge splits on both individual Task Goal Completion (TGC) and strict multi-task Scenario Goal Completion (SGC).
  • ClawGym-Bench: Diverse workflows across Office, Tech, and Analysis domains, scored via a hybrid of programmatic checks and rubrics.
  • PinchBench: 147 tasks held out completely from training to test zero-shot, out-of-distribution (OOD) generalization using the ClawGym-trained checkpoints.

Key Insights and Ideas

  • Hard constraints shouldn't be tradable: Making Compliance and execution validity upper-bound ceilings rather than additive penalties teaches agents that cutting corners on task scope is never worth local subgoal progress.
  • Rescuing tied rollouts: Because turn credits vary even when every trajectory in a GRPO group gets the exact same final score (e.g., all 0s), ProCAP still extracts rich learning gradients where standard GRPO collapses.
  • Hindsight + verbose reasoning = confusion: Surprisingly, giving the LLM judge future turns (hindsight) actually hurt RL performance when agent reasoning chains were visible (dropping AppWorld SGC from 37.9% to 29.2%). Concatenating ten surrounding reasoning traces diluted local blame; a compact, strictly causal 5-past-turn window worked best and ran faster.

Key Results

Across both 4B and 9B scales, ProCAP consistently beats outcome-only GRPO, structural graph credit (G2PO), and single-label semantic judging (TRIAGE):

  • Overall Averages: Reaches 50.4% (4B) and 65.1% (9B), beating GRPO by +4.1 and +9.9 points, and beating the best process-reward baseline by +5.9 and +5.4 points.
  • Near-Miss Elimination: On AppWorld’s unforgiving Scenario Goal Completion (where every task in a scenario must pass), ProCAP jumps over GRPO by +8.2 points at 4B (37.9% vs. 29.7%) and +16.4 points at 9B (59.0% vs. 42.6%).
  • True Generalization: On OOD PinchBench at 4B, standard GRPO actually degrades below the initial base model (50.2% vs. 51.6%) due to overfitting, whereas ProCAP is the only method to improve (55.0%), and leads by +7.5 points over GRPO at 9B (61.7% vs. 54.2%).

Limitations and Future Work

Not discussed in the paper. (Though readers may note from the qualitative case study that the deterministic execution-failure cap conservatively penalizes runtime crashes at $-0.1$ even when a crash usefully exposes a hidden bug.)

Summary updated

BibTeX
@misc{zhong2026procap,
  author = {Weihong Zhong and Xuan Luo and Mao Zheng and Mingyang Song and Xiaocheng Feng and Bing Qin},
  title = {{ProCAP: Decomposing Credit Assignment for Long-Horizon Agentic Reinforcement Learning}},
  year = {2026},
  eprint = {2611.37624},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37624},
}
Figure