Adaptive Multi-Resolution Procedural Knowledge Compression for Large Language Models

Changyue Wang, Weihang Su, Qingyao Ai, Yichen Tang, Runzhong Qiao, Xuancheng Li, Min Zhang, Yiqun LiuarXiv 2026

TL;DR

As Large Language Model (LLM) agents increasingly rely on reusable natural language "skills" (workflows and tool protocols) to execute complex tasks, injecting full-text instructions into every prompt introduces massive token overhead and latency. This paper introduces SKIM (SKIll coMpression), an adaptive framework that compresses procedural skills into compact "soft tokens" (30% to 60% of their original length). By utilizing a multi-resolution design and a progressive three-stage training paradigm, SKIM successfully preserves critical execution logic and workflow dependencies while significantly slashing inference costs.

What Problem Does This Paper Address?

LLM agent frameworks frequently use natural language files (like SKILL.md) to store reusable procedural knowledge, detailing how and when an agent should invoke a tool or follow a specific workflow. Because popular skills are called repeatedly across diverse tasks, placing their full text into the context window for every single turn creates a massive computational bottleneck during the prefill phase.

While prompt compression is a known remedy, existing methods fall short for agent skills:

  1. Factual vs. Procedural Knowledge: Traditional text compression methods (like ICAE or LLMLingua) are designed for documents or generic prompts. They prune text or map it to continuous spaces by preserving salient facts. However, skills contain procedural logic (conditional steps, tool arguments, and sequential dependencies). Severing even a single logical link can completely break an agent's execution path.
  2. Dynamic Ecosystems: Community-driven skills are updated frequently. Compression must be computationally lightweight and offline, ruling out expensive online gradient-based optimization methods.
  3. Varying Complexity: A fixed compression rate cannot adapt to both simple single-step lookups and highly complex multi-skill workflows.
Figure 1: A ToolQA example. Factual information can be recovered from compressed skills, but the procedural question requires preserving workflow specified by skill.

Methods

The authors present SKIM (SKIll coMpression), a dual-model architecture consisting of a compressor (an autoregressive LLM backbone) and a projector (a Multi-Layer Perceptron). The compressor reads the skill text alongside learnable "slot tokens" to generate a latent representation, which the projector then maps directly into the target LLM's embedding space as continuous "soft tokens."

SKIM introduces two core innovations to make this process viable for procedural workflows:

1. Multi-Resolution Truncation

Instead of training a separate model for every token budget, SKIM optimizes the compressor across multiple token budgets (resolutions) simultaneously. Because it uses a prefix-truncation strategy, a single high-resolution soft token artifact can be safely truncated to lower resolutions (e.g., from 512 tokens down to 256) without recomputing the representation.

2. Progressive Three-Stage Training

To ensure the soft tokens retain strict executable logic, the framework is trained progressively:

  • Stage 1: Skill Reconstruction: The model learns a general representation by trying to reconstruct the original skill text from the soft tokens.
  • Stage 2: Procedural QA Warm-Up: The compressor is trained on weakly supervised "how-to" data (repurposed from the WikiHow dataset) to align the continuous representations with procedural question answering.
  • Stage 3: Skill Task Alignment: The target LLM is adapted via a parameter-efficient Low-Rank Adaptation (LoRA) module. Using synthesized ReAct-style execution traces (Thought-Action-Observation loops) and multi-skill composition data, the target model learns to execute actual downstream tasks using only the compressed soft tokens.

Before deployment, an Offline Self-Judgment mechanism runs diagnostic questions on the target LLM, automatically selecting the lowest-budget resolution that maintains execution accuracy.

Figure 2: Overview of SKIM. The upper panel illustrates the training process and offline resolution selection, where the compressor (consisting of slot tokens, an LLM-based compressor, and an MLP projector) learns to convert skills into soft-token prefixes aligned with the target LLM’s embedding space. The lower panel shows the inference architecture, where SKIM selects the soft-token prefix corresponding to the offline-determined optimal resolution and prepends it to the target LLM.

Datasets

  • Training: Stage 1 uses an open-source skill dataset scraped from GitHub repositories. Stage 2 utilizes a cleaned version of the WikiHow procedural QA dataset. Stage 3 relies on a synthesized dataset of ~60k training examples generated using a high-capacity evaluator model (GPT-5.2) to simulate tool usage and multi-skill composition.
  • Evaluation: SKIM was evaluated across five distinct benchmarks spanning various reasoning types: BigCodeBench (code generation), CHAMP (math reasoning), LogicBench (logical reasoning), TheoremQA (theorem QA), and ToolQA (multi-turn tool interaction).

Key Insights and Ideas

  • Factual Compression Fails on Procedures: Traditional soft compression baselines like ICAE and 500xCompressor often perform worse than a "Naive" baseline (no skills loaded at all) on procedural tasks. This highlights that preserving factual keywords is fundamentally insufficient for maintaining execution logic.
  • Target-Distribution Supervision is Crucial: Ablation studies showed that training the target model's LoRA adapter using its own generated answers yields significantly better performance than training it on high-quality teacher answers from a stronger model. Aligning the soft tokens with the target model's specific parametric distribution is key.
  • Prefix-Truncation Safety: By averaging the loss across multiple resolutions during training, the prefix of a high-resolution soft token sequence naturally retains core utility when truncated, allowing flexible, on-the-fly budget adjustments.

Key Results

  • Token Reduction: SKIM successfully compresses skills to 30% to 60% of their original token length.
  • Accuracy-Token Tradeoff: SKIM consistently achieves a superior accuracy-to-token tradeoff compared to hard-token compression methods like LLMLingua-2, approaching or sometimes matching the performance of uncompressed "Full Text" prompts while using a fraction of the tokens.
Figure 3: Average token accuracy tradeoff across the two target models and five datasets. For LLMLingua-2 and SKIM, settings are first sorted by added skill tokens within each model dataset pair, and the same rank is then averaged across the ten pairs. Lines connect settings from the same method family.
  • Long-Context Robustness: In stress tests where distractor skills were introduced to inflate context length, higher-resolution SKIM variants actually outperformed the Full Text baseline on the Phi-4 model. This demonstrates that compressing skills effectively alleviates context window pressure, preventing the model from getting lost in the prompt.

Limitations and Future Work

  • Model Scale: Due to resource constraints, the authors only evaluated SKIM on moderate-sized target models (Qwen3-8B and Phi-4-14B). The scaling behavior of procedural compression on frontier-class models (100B+ parameters) remains an open question.
  • Storage Overhead: SKIM requires model-specific projectors and LoRA adapters. In a centralized repository supporting many different target LLMs, this necessitates storing multiple model-specific artifacts for a single skill. The authors suggest that future work should explore unified compressors paired with lightweight, target-specific mapping layers to mitigate storage costs.

Summary updated

BibTeX
@misc{wang2026adaptive,
  author = {Changyue Wang and Weihang Su and Qingyao Ai and Yichen Tang and Runzhong Qiao and Xuancheng Li and Min Zhang and Yiqun Liu},
  title = {{Adaptive Multi-Resolution Procedural Knowledge Compression for Large Language Models}},
  year = {2026},
  eprint = {2606.12203},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.12203},
}
Figure