SoftSkill: Behavioral Compression for Contextual Adaptation

Xijia Tao, Yihua Teng, Xinyu Fu, Ziru Liu, Kecheng Chen, Yuzhi Zhao, Suiyun Zhang, Rui Liu, Lingpeng KongarXiv 2026

TL;DR

SoftSkill introduces a method to compress long, natural-language agent instructions (Markdown files) into a compact, continuous 32-token prefix. By tuning a "soft delta" on top of text embeddings while keeping the base model frozen, it drastically reduces context token overhead (up to 63x) while matching or exceeding the accuracy of traditional text-based skill optimization on QA tasks.

What Problem Does This Paper Address?

Modern LLM agents are frequently equipped with "skills"—reusable natural-language Markdown files that outline answer policies, tool-use strategies, and task procedures. While these files are highly readable and easy for humans to edit, they are highly inefficient for models to process. At inference time, the frozen LLM must repeatedly read and internalize hundreds or thousands of tokens of instructions for every single task instance, consuming valuable context window space and generation budget.

The authors of this paper ask a fundamental question: Instead of forcing the model to reinterpret long text instructions at runtime, can we distill a natural-language skill into a compact, continuous context object that acts directly as a latent behavioral prior?

Methods

The authors propose SOFTSKILL, a frozen-backbone method that frames skill adaptation as compact contextual adaptation (or behavioral compression).

SoftSkill Framework Overview

The pipeline consists of three main phases:

  1. Initialization: A natural-language skill document is mapped into an initial embedding prefix ($p_0$) using either the token sequence embeddings or mean-pooled embeddings.
  2. NTP Training: While the base model's backbone weights remain completely frozen, a trainable "soft delta" ($\Delta p$) is optimized on top of the initialization vector ($p = p_0 + \Delta p$). Training uses a simple next-token prediction (NTP) loss based on ground-truth answers (for QA) or successful interaction trajectories (for agents).
  3. Validation-Selected Checkpointing: Because lower training loss does not always translate to higher task success, the authors implement a validation gate that evaluates checkpoints on a held-out validation split using the actual task metric, exporting only the best-performing checkpoint for deployment.

Datasets

The method was evaluated across six low-data benchmarks from the SkillOpt suite, intentionally chosen for their scarcity of training signals (only 711 nominal training instances across all six tasks):

  • Single-Round QA: SearchQA (search-style QA), LiveMath (math problem-solving), and DocVQA (document question answering).
  • Agentic Execution: OfficeQA (grounded reasoning), SpreadsheetBench (spreadsheet manipulation), and ALFWorld (embodied decision making).

Key Insights and Ideas

  • Behavioral Compression over Semantic Preservation: The continuous prefix does not simply act as a compressed text file; instead, it functions as a model-specific control vector that preconditions the model's internal dynamics, biasing it toward successful behaviors learned during training.
  • Capacity is Not the Bottleneck: A prefix-length sweep revealed that a short 32-token prefix performs just as well as (and sometimes better than) longer prefixes that match the full length of the original text. This implies that the performance gains stem from the continuous optimization rather than raw token capacity.
  • The Importance of Task-Level Validation: The correlation between lower next-token prediction loss and actual task execution success is weak, particularly in agentic settings. Selecting checkpoints based on validation task accuracy rather than training loss is essential to prevent the prefix from overfitting to surface-level formatting patterns.

Key Results

On single-round QA tasks using Qwen3.5–4B, a length-32 SOFTSKILL prefix delivered substantial performance boosts and massive token savings:

  • SearchQA: Achieved a 76.4 accuracy score, marking an 8.3-point improvement over no-skill prompting and a 5.2-point gain over SkillOpt, while reducing the skill context length by 63.6× (from 2035 tokens down to 32).
  • LiveMath: Reached 64.5 accuracy when inserted into the skill section slot, outperforming both SkillOpt (52.0) and LoRA (58.9), while achieving a 21.0× reduction in context tokens.
  • DocVQA: Improved by 1.3 points over the no-skill baseline, remaining highly competitive with text-based optimization.

However, results on agentic execution tasks (OfficeQA, Spreadsheet, ALFWorld) were mixed. While SOFTSKILL improved performance on OfficeQA (33.8 vs 26.7 for SkillOpt), it fell short of the hard-text baselines on Spreadsheet and ALFWorld, demonstrating that sparse trajectory imitation alone is not yet robust enough to compress long-horizon procedural behaviors.

Limitations and Future Work

  • Procedural Boundary Cases: SOFTSKILL struggles to robustly compress multi-step agentic workflows that require complex tool interactions and long-horizon planning.
  • White-Box Access Requirement: Unlike pure text prompt optimization, SOFTSKILL requires direct access to the model's embedding interface, making it unsuitable for closed-source, API-only models.
  • Lack of Portability and Composition: The learned continuous prefixes are highly model-specific and cannot be easily transferred to different architectures or combined/composed to handle multiple skills simultaneously. Future work will explore prefix routing, interpolation, and reward-based refinement for agentic tasks.

Summary updated

BibTeX
@misc{tao2026softskill,
  author = {Xijia Tao and Yihua Teng and Xinyu Fu and Ziru Liu and Kecheng Chen and Yuzhi Zhao and Suiyun Zhang and Rui Liu and Lingpeng Kong},
  title = {{SoftSkill: Behavioral Compression for Contextual Adaptation}},
  year = {2026},
  eprint = {2606.20333},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.20333},
}
Figure