Back to AI Research

AI Research

SkillShapley: Boundary-Adaptive Shapley Valuation f... | AI Research

Key Takeaways

  • SkillShapley is a framework designed to quantify the contribution of individual steps within an LLM agent’s procedural skill.
  • Agent skills are crucial external instructions that enable language agents to execute long procedural tasks such as coding or document processing.
  • To address this issue, we first model skill-step attribution as a Shapley value-based contribution estimation problem, and then propose SkillShapley, a step-level attribution framework for agent skills.
  • Specifically, it first identifies informative coalitional regions, and then adaptively samples new coalitions that can yield reusable marginal evidence.
  • The authors, Chang Liu et al., frame skill-step attribution as a Shapley value-based problem.
Paper AbstractExpand

Agent skills are crucial external instructions that enable language agents to execute long procedural tasks such as coding or document processing. Existing agent skills are primarily created through human manual crafting or agent execution traces, with limited understanding of how each step contributes to overall skill performance on specific tasks; i.e., there remains an open problem in quantifying the contribution of individual steps within an agent skill. To address this issue, we first model skill-step attribution as a Shapley value-based contribution estimation problem, and then propose SkillShapley, a step-level attribution framework for agent skills. Notably, SkillShapley operates in two phases, motivated by key empirical insights, i.e., discretized benchmark rewards that create sharp performance cliffs, and step interactions that are largely additive rather than synergistic. Specifically, it first identifies informative coalitional regions, and then adaptively samples new coalitions that can yield reusable marginal evidence. Experiments on skills from the widely adopted SkillsBench demonstrate that our SkillShapley can effectively and efficiently identify high- or low-value skill steps, providing several key takeaways for agent skill creation.

SkillShapley is a framework designed to quantify the contribution of individual steps within an LLM agent’s procedural skill. By treating each step as a "player" in a cooperative game, the researchers aim to solve the problem of identifying which parts of a skill are essential for performance and which are redundant, moving beyond trial-and-error skill design.

Modeling Skill Attribution

The authors, Chang Liu et al., frame skill-step attribution as a Shapley value-based problem. In this model, a skill is segmented into semantically coherent instruction blocks. A "coalition" is defined as a specific subset of these steps, and the utility of that coalition is the agent's success rate on a benchmark task. By calculating the Shapley value for each step, the framework assigns a contribution score that reflects how much a specific step improves performance across various combinations of other steps.

The BAES Approach

Because calculating exact Shapley values is computationally expensive as the number of steps increases, the paper introduces Boundary-Adaptive Edge Shapley (BAES). This approximation method is tailored to the specific constraints of LLM agent evaluation, where executing a skill variant is costly.
BAES operates in two stages:

  • Warmup: The system evaluates a set of anchor configurations—such as the empty set, the full skill, and various singletons—to build a cache of marginal contributions. This stage establishes a baseline structure and identifies which areas of the "coalition space" are most uncertain.

  • Adaptive Acquisition: The system uses an allocation score to select and evaluate new, highly informative configurations. It prioritizes coalitions that provide the most insight into high-variance or under-sampled strata, effectively reusing cached data to refine estimates without requiring an exhaustive search.

Performance and Insights

Experiments using the SkillsBench dataset indicate that Shapley values provide a behaviorally meaningful way to rank skill steps. When the researchers removed steps ranked as "high-value" by the Shapley method, they observed a clearer degradation in agent performance compared to removing steps identified by simpler baselines like Individual or Leave-One-Out scores. The authors conclude that BAES can approximate these rankings effectively using fewer unique configuration samples than other estimators, providing a practical tool for practitioners to prune or refine agent skills.

Considerations for Use

The authors note that BAES is a budgeted active approximation method rather than a claim of finite-sample unbiasedness. Its primary goal is to provide a low-cost estimate that is accurate enough to guide decision-making—such as which steps to keep or edit—rather than to produce a perfectly precise scalar value. The framework relies on the assumption that skill rewards are often discrete and that step interactions are largely additive, which allows the algorithm to focus its limited evaluation budget on the most impactful regions of the search space.

Comments (0)

No comments yet

Be the first to share your thoughts!