arXiv:2610.30041cs.AIOct 2026

Manuscript Offprint

arXiv:2610.30041

Robust Soft Skill Adaptation via Behavioral Localization in Tool-Using Agents

Zijian Jiang, Xilu Wang

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

Abstract

Text skills can extend the capabilities of tool-using agents, but long skill descriptions increase computational costs. Soft prompts provide a compact alternative, yet learning from entire successful trajectories may also introduce unnecessary behavioral changes. We find that the useful effect of a text skill is highly concentrated in a small subset of trajectory positions. Based on this observation, we propose Behavioral Localization, which compares the frozen agent with and without the text skill to identify positions where the skill both increases the likelihood of successful tokens and meaningfully changes the next token distribution. We use these localized positions to supervise a short soft prompt. Experiments on Spreadsheet-Bench with a frozen Qwen3.6-35B-A3B agent show that the top 10% of trajectory positions capture 96.12% of the total positive skill gain. In the shared prompt setting, selective supervision improves success from 30.36% with full trajectory to 36.79%. Under task-specific conditions, using the top 10% localized positions achieves 57.38%, outperforming both the full text skill and the on-policy OPCD baseline. These results show that a small set of behaviorally relevant trajectory positions can provide effective supervision of soft skills.

1 Introduction

As agents are increasingly deployed across diverse domains, tasks often differ substantially in their knowledge requirements, operational procedures, and behavioral patterns. These task-specific differences are difficult to address efficiently through repeated retraining or modification of the underlying agent Liu et al. [2024]. A flexible solution is to provide agents with task-specific guidance that helps them develop more effective task behaviors Li et al. [2026].

A direct approach to task adaptation is known as an agent skill, where natural language prompts are used to specify task goals, operational rules, and expected behaviors, allowing the model to perform new tasks without updating its parameters Anthropic [2025]. However, this approach often relies on lengthy and carefully designed prompts, and its effectiveness can be sensitive to wording and example selection. As tasks become more complex, the prompts typically grow longer, increasing both context usage and inference cost Mu et al. [2023].

To obtain more compact and learnable skill representations, prior work has explored directly optimizing prompts in continuous representation spaces. Compared with natural language instructions, soft prompts typically require less storage and can support task adaptation by updating a small set of trainable prompt embeddings Tao et al. [2026], Lester et al. [2021]. However, these continuous vectors lack clear counterparts in natural language Deng et al. [2022]. As a result, while learning a target skill, a soft prompt can also introduce unexpected behavioral changes Ma et al. [2022].

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Self-Evolving Diversity-Driven Search for Robust AI Systems.

For agents, because generation is sequential, even small shifts in early predictions can propagate and amplify over subsequent steps, leading to incorrect tool selection, malformed outputs, or task execution failures Bengio et al. [2015], Li et al. [2023]. Thus, acquiring new capabilities may come at the cost of degrading abilities that the base model already possesses Zhu et al. [2022].

We find that the behavioral effect of a skill is highly concentrated in a small number of critical decision points, while much of the remaining trajectory is already correctly handled by the base agent. This suggests that robust soft skill adaptation should focus on which behaviors truly need to be learned. Based on this observation, we propose Behavioral Localization, which identifies the trajectory positions where a text skill meaningfully changes the predictions of base agent and selectively uses these positions to train a compact soft skill. At the same time, we constrain selected preservation positions toward the base distribution to reduce unnecessary behavioral drift.

Our contributions are shown below.

First, through token-level distributional analysis, we find that skill induced behavioral changes are highly sparse.

Second, we show that training a soft prompt using only selected positions by Behavioral Localization in the trajectory as supervision outperforms training on the full trajectory.