English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

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

Forum topic · ✨步子哥 · 2026-11-30

Summary

A step in an AI agent's trajectory can be both good and bad: it may advance the task while ignoring information already observed. Tencent Hunyuan and Shanghai AI Lab's ProCAP paper tackles this credit-assignment dilemma in long-horizon agentic RL. Instead of collapsing each step into a single scalar like prior process-reward methods, ProCAP decomposes every step into three non-exclusive dimensions—Compliance, Adaptation, and Progress—inspired by organizational psychology's multidimensional job-performance models. A frozen LLM judge scores steps causally (no future peeking), deterministic detectors catch execution errors and repeated failures, an idempotent signed-extremum operator fuses scores without double-counting, a non-compensatory ceiling prevents local progress from offsetting constraint violations, and group-centered step credits remain zero-sum while fixing GRPO's zero-gradient collapse. ProCAP yields consistent gains over GRPO and the strongest process-reward baselines across AppWorld, ClawGym, and PinchBench at 4B and 9B scales (+4.1 and +9.9 overall).

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

The Delete-a-Song Paradox

Imagine telling an AI assistant: "Remove this song from all my playlists."

The agent executes a deletion—cleanly removing the song from one playlist. But it had previously seen the song in two playlists. It deleted one and forgot the other.

Should this step be rewarded or punished?

  • From a progress standpoint: reward. It completed part of the work; the deletion succeeded and persisted.
  • From an information utilization standpoint: penalize. It discarded the already-observed association with the second playlist.
  • This is the core problem addressed by ProCAP, a new paper from Tencent Hunyuan and Shanghai AI Lab: *Decomposing Credit Assignment for Long-Horizon Agentic Reinforcement Learning*.

    GRPO's "Equal Share" Dilemma

    Long-horizon agents suffer from a classic RL problem: credit assignment. A task may require dozens of tool calls, but the outcome is a single binary success/failure signal. GRPO (Group Relative Policy Optimization) broadcasts the final outcome reward uniformly to every step—like praising the whole class, including the sleeping student, because one student aced the exam.

    This causes:

    1. Bad steps in successful trajectories get rewarded—redundancies and errors are never unlearned 2. Good steps in failed trajectories get punished—valuable intermediate progress goes unrewarded 3. Worse: when all sampled episodes in a group share the same outcome, GRPO's advantage is zero and gradients vanish entirely

    Process rewards help, but existing methods compress each step into one scalar or one label—which runs back into the paradox above.

    ProCAP's Insight: Decompose, Don't Merge

    ProCAP draws on organizational psychology: Borman and Motowidlo's (1997) two-dimensional job-performance model (task vs. contextual performance), which cannot be meaningfully merged into one score.

    ProCAP decomposes each step into three non-exclusive dimensions:

    | Dimension | Meaning | Analogy | |-----------|---------|---------| | Compliance | Respects task constraints and boundaries | Chef uses only the specified ingredients | | Adaptation | Correctly exploits available information | Chef reads the handoff notes | | Progress | Advances task state | The dish moves one step forward |

    The key is "non-exclusive": one step can be positive on Progress and negative on Adaptation simultaneously.

    Four-Layer Architecture: Evaluation Separated from Attribution

    Layer 1: A Frozen LLM Judge

    A frozen Qwen3-8B/27B judge sees the task description and prior interaction history only (a causal window), labeling each step on the three dimensions. Ablations show that with reasoning enabled, causal 5+0 beats hindsight 5+5 windows (TGC 51.5 vs. 49.7, SGC 37.9 vs. 29.2)—long hindsight context dilutes attribution signal. A causal window also enables online scoring.

    Layer 2: Programmatic Fault Detectors

    LLM judges can be fooled by eloquence; code crashes cannot. Deterministic checks for execution errors and repeated failures directly cap the credit.

    Layer 3: Idempotent Fusion + Non-Compensatory Ceiling

    Naive addition of dimension scores double-counts correlated behavior and inflates credit. ProCAP uses an idempotent signed-extremum operator:

    \[u = \max(p, a, 0) + \min(p, a, 0)\]
  • Same signs take the max: +0.5 and +0.3 → +0.5 (not +0.8)
  • Mixed signs keep both ends: +0.5 and -0.6 → -0.1
  • A non-compensatory ceiling then truncates credit when execution fails or Compliance is violated—local progress cannot offset core constraint violations.

    Layer 4: GRPO-Aligned Group Centering

    \[z_{ik} = \mathbb{1}[\chi_x = 1] \cdot (q_{ik} - \mu_x)\]

    Step credits are zero-meaned within the same task group, so the sum stays zero and the GRPO objective is preserved. Crucially, when all episodes in a group share the same outcome (\(A_i^{out} = 0\)), distinct step credits still provide valid gradients—fixing GRPO's zero-gradient collapse. The final advantage is \(\tilde{A}_{ik} = A_i^{out} + \lambda z_{ik}\) (\(\lambda=1\) by default), degrading gracefully to standard GRPO when needed.

    Experiments

    | Method | 4B Overall | 9B Overall | |--------|-----------|------------| | GRPO (baseline) | baseline | baseline | | Strongest process-reward baseline | -1.8 | +4.5 | | ProCAP | +4.1 | +9.9 |

    Across AppWorld, ClawGym, and PinchBench at 4B and 9B scales, ProCAP beats the strongest process-reward baseline by 5.9 and 5.4 points respectively.

    Training dynamics over 100 steps (12,475 scored steps) show all three dimensions improving together: on AppWorld, Progress rose 0.345 → 0.470 (4B); on ClawGym, Compliance jumped 0.730 → 0.878 (4B); raw credit rose 0.266 → 0.430 (4B) and 0.283 → 0.439 (9B). Multidimensional decomposition lets the model learn multiple things at once rather than trading one dimension for another.

    Case Study: A Four-Constraint Debugging Task

    In a ClawGym task requiring filtering local home inspectors by distance, budget, experience, and certification:

  • The ProCAP agent (28 steps): duplicate setup scored 0.0 (neutral), a syntax-error draft got -0.9 (execution-failure ceiling), and correct ZIP-code type-mismatch diagnosis earned +0.5 per step; 8/9 environment checks passed with correct distance calculations (1.12 and 6.91 miles).
  • The comparison agent (49 steps, budget exhausted): repeatedly patched a data reader while treating inspector coordinates as seller coordinates, reporting all distances as 0 miles; 7/9 checks passed.
  • The critical contrast: at steps T8 and T19, the comparison agent's steps executed cleanly but propagated silent logic errors. A single scalar score would reward them as "successful executions"—ProCAP's Compliance check catches the logical violation.

    Engineering Takeaways

    1. Separating evaluation from attribution is the key architectural decision: the LLM handles semantic assessment; deterministic rules handle numeric attribution. Each layer can be improved independently. 2. Idempotent fusion prevents credit inflation—applicable to any multi-metric aggregation scenario (multi-objective optimization, multi-dimensional evaluation). 3. Non-compensatory ceilings are safety guardrails: safety and compliance become non-tradable hard constraints rather than tradeable quantities. 4. Causal windows beat hindsight windows (with reasoning)—counterintuitive, but long context dilutes attribution signal, and causal windows enable online scoring. 5. Solving zero-gradient collapse matters most for high-failure-rate long-horizon tasks, where all-fail groups are the norm.

    Closing Thoughts

  • Dimensions shouldn't be additively merged: when multiple evaluation dimensions are orthogonal, collapsing them loses information. ProCAP balances information preservation with decision simplicity.
  • Single-scalar scores mask multidimensional step quality—an "executed successfully" step can spread logic errors, echoing prior findings about evaluation blind spots.
  • Give deterministic parts back to determinism: LLMs do semantic reasoning; programmatic checks enforce hard constraints.
  • Open question: whether three dimensions suffice, and how to automatically discover suitable evaluation dimensions for different task families.
  • Paper Info

  • Title: ProCAP: Decomposing Credit Assignment for Long-Horizon Agentic Reinforcement Learning
  • Authors: Weihong Zhong, Xuan Luo, Mao Zheng, Mingyang Song, Xiaocheng Feng, Bing Qin
  • Institutions: Tencent Hunyuan, Shanghai AI Lab, Shenzhen RingLab
  • arXiv: 2611.37624
  • HTML: https://arxiv.org/html/2611.37624v1
  • Code: no public release at time of writing
*When one step is both good and bad, don't rush to assign a single score—decompose it and let each dimension speak independently.*

Tags

#reinforcement-learning#ai-agents#credit-assignment#grpo#process-rewards#llm-judge#long-horizon-tasks#procapt

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178637533