arXiv:2610.27227cs.CLOct 2026

Manuscript Offprint

arXiv:2610.27227

Which Agent's Skill Should Change? Group-Relative Credit Assignment for Evolving Multi-Agent Teams

Yanan Ma, Yang Wang, David Le, Chenhan Yuan, Yizheng Sun, Guangwei Zhang, Chenghao Xiao, Chenghua Lin, Imon Banerjee

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

Abstract

Cooperative language-model agents can improve without weight updates by revising reusable skills, but only if a shared team reward is traced to the responsible agent and skill. Existing methods credit the skills present in each trajectory, yet presence is not responsibility: a harmful skill active in successful runs still earns positive credit. We present GRSE, Group-Relative Skill Evolution, which assigns behavioral credit by comparison: inspired by GRPO, it executes each question several times under the same skill libraries and contrasts the executions to credit agent–skill pairs, with structured diagnosis of failures. On HotpotQA and LoCoMo with two open-weight actors, GRSE outperforms MASKills, the closest prior method, on HotpotQA and every LoCoMo category except open-domain, with the largest gains on multi-hop questions (+6.7 and +3.2 F1). Its gains rest on better-grounded retrieval rather than answers given without evidence, and its learned skills transfer between the multi-hop tasks. GRSE is robust to corrupted libraries: starting from planted harmful skills, it credits every planted skill with the correct sign and recovers the score of a clean library (+6.3 points), whereas MASKills misattributes two and falls below its starting point.

1 Introduction

Language-model agents increasingly work in teams: one agent collects evidence, another reasons over it, and the team is judged by a single outcome (Cemri et al., 2026; Ghareeb et al., 2026; Tran et al., 2025; Dang et al., 2026; Zhang et al., 2026a; Xia et al., 2026b; Hong et al., 2024; Wu et al., 2023; Li et al., 2023). Improving such a team requires answering a credit assignment question: which agent's behavior, and which step of it, produced a success or a failure? The question is classical in multi-agent reinforcement learning, where a shared reward is decomposed with difference rewards or counterfactual baselines (Wolpert and Tumer, 2001; Foerster et al., 2018; Rashid et al., 2020), and it has recently been posed for language-model teams as automated failure attribution (Zhang et al., 2025). A wrong answer may stem from evidence collection, an incomplete handoff, or downstream reasoning (Wang et al., 2026; Zhang et al., 2025), and the agent whose output is wrong is often not the agent whose behavior needs to change. For example, reasoner answers wrongly when the retriever misses the evidence.

We study this problem in a setting where model parameters stay fixed and each agent's behavior is specified by natural-language skills, reusable procedures that the agent reads and follows (Zhao et al., 2024; Wang et al., 2023; Alzubi et al., 2026; Yao et al., 2026). Skills make behavior editable, so credit becomes actionable: once responsibility is located, the responsible procedure can be revised. Existing experience- and skill-learning methods, however, assign credit coarsely, which often distill lessons from whole trajectories, and mainly focus on single-agent setting (Shinn et al., 2023; Xu et al., 2026; Ouyang et al., 2026). Meanwhile MASKill, the recent two-agent SOTA, credits each skill from single trajectory in isolation (Yao et al., 2026). However, without a contrast, a skill that is present in every execution also receives credit for the successes it did not cause: in our robustness study, MASKills raises the utility of a planted harmful skill over three iterations, whereas our method labels it harmful and prunes it (Appendix C). Comparison between executions already guide experience distillation, skill refinement, and prompt optimization (Cai et al., 2025; Chen et al., 2026; Li et al., 2026; Zehle, 2026), but they have not been used to localize a team's outcome to individual agents' behaviors.

Behavioral credit assignment in agent teams poses two challenges. First, attribution must look

*Corresponding authors' email addresses: {ma.yanan;banerjee.imon}@mayo.com. Our code is available at https://github.com/yananma1029/GRSE-Skills.

Figure

Figure 1: Each iteration (1) samples a group of team executions per question ( §\S3.1), (2) credits agent–skill pairs by contrasting these executions and diagnoses failures in a structured form ( §\S3.2), and (3) aggregates the credit across questions into skill edits, each kept only if it does not lower the validation score ( §\S3.3–3.4). The example is from one training run on LoCoMo single-hop questions, in which Agent 1 retrieves evidence and Agent 2 answers. In iteration 1, a failure that surfaces in Agent 2’s answer is traced to Agent 1’s retrieval, and a new retrieval skill is induced. In iteration 3, this skill is credited as harmful in the shown group but helpful across the iteration’s 16 groups, so it is refined rather than pruned. In Agent 1’s search queries, | denotes OR.

past where an error surfaces. In Figure 1, Agent 2 answers “not mentioned” in three of four executions of the same question, yet Agent 2 behaves correctly given its input. The decisive difference lies in Agent 1’s search query, which retrieves the answer only in the successful execution. Second, an attribution must be specific and checkable before it can drive a revision. A defective procedure, a missing capability, and a tool failure call for different responses, and an explanation that cites no execution step cannot be verified. Across questions, attributions must also be aggregated without counting repeated executions of one question as independent evidence.

We introduce GRSE, Group-Relative Skill Evolution, a training-free framework that evolves cooperative agents' skills through group relative behavioral credit assignment. Following GRPO (Shao et al., 2024), GRSE samples multiple complete team rollouts of the same question under fixed skill libraries and compute relative within-group advantages ( §3.1§3.1). A group-relative critic compares agent behavior and handoffs across these rollouts to assign feedback to individual agent–skill pairs. A structured diagnosis grounds each attribution in a failure type, cited failed and successful steps, and an edit action, and reference checks reject attributions that the executions do not support ( §3.2§3.2). The accepted attributions are aggregated across questions ( §3.3§3.3) and applied as skill updates through the editing operators and validation gate of MASkills ( §3.4§3.4). Figure 1 shows both levels of attribution within a single run: across agents, responsibility shifts from the answering agent to the retrieving agent; within an agent, a previously learned skill is later credited as harmful and diagnosed as a skill defect. Our contributions are threefold:

• We formulate skill evolution for cooperative agents as behavioral credit assignment: with model parameters fixed and skills as editable units, a shared team outcome must be attributed to the agent and skills responsible for it. We address this by jointly comparing same-question team executions, which produces agent–skill feedback while preserving the handoffs needed to interpret each agent’s behavior and the proposed revision.

• We make these attributions verifiable and actionable: a structured failure analysis links each attribution to a failure type, checked step references, and an edit action, and cross-question aggregation weighs attributions by the number of distinct questions that support them.

• We evaluate GRSE on HotpotQA and Lo-CoMo with two open-weight actors. GRSE outperforms MASkills on HotpotQA and every LoCoMo category except open-domain. Its credit identifies and removes harmful skills that MASkills retains. Answer-transition and learned-skill analyses show that GRSE’s gains come from fewer broken answers and better-grounded retrieval.