# SKIM: Pruning Large Language Model Agents via Selective Knowledge Informed Masking

DevFeed: [SKIM: Pruning Large Language Model Agents via Selective Knowledge Informed Masking](<https://devfeed.tech/articles/skim-pruning-large-language-model-agents-via-selective-knowledge-informed-masking-120210.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.07558>)

Author: Moonseok Choi, Jongwon Jeong, Minki Kang, Giung Nam, Juho Lee

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>), [function calling](<https://devfeed.tech/topics/function-calling.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [compression](<https://devfeed.tech/tags/compression.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [distillation](<https://devfeed.tech/tags/distillation.md>), [grammar](<https://devfeed.tech/tags/grammar.md>), [inference](<https://devfeed.tech/tags/inference.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [loops](<https://devfeed.tech/tags/loops.md>), [masking](<https://devfeed.tech/tags/masking.md>), [pruning](<https://devfeed.tech/tags/pruning.md>), [sparsity](<https://devfeed.tech/tags/sparsity.md>), [structured-generation](<https://devfeed.tech/tags/structured-generation.md>), [tool-calling](<https://devfeed.tech/tags/tool-calling.md>)

## AI overview

SKIM targets a mismatch between standard model compression and grammar-constrained LLM agents: grammar limits outputs to valid tokens, while action quality depends especially on decision positions. It labels positions as context, decision, or format, then uses those roles to guide pruning toward parameters relevant to decisions and to distill the student against the teacher on valid tokens, with category-aware feature matching. The abstract reports higher accuracy than baselines on tool-calling benchmarks and multi-step agent loops across model scales and sparsity levels, with the strongest gains at high sparsity. The supplied text does not give numerical results or implementation details.

## Source excerpt

arXiv:2611.07558v1 Announce Type: cross Abstract: Large Language Model (LLM) agents are increasingly deployed under structured generation, where grammar constraints enforce output format at inference time. Whereas existing compression methods target unconstrained generation, we first identify a fundamental mismatch: under structured generation, grammar constraints reduce the model's output distribution to valid tokens, and the logits matter most at the small set of positions that decide the agent's action. Motivated by this finding, we propose SKIM (Selective Knowledge-Informed Masking), the first pruning and distillation framework for LLM agents under structured generation, with both stages guided by token role. SKIM partitions token positions into context, decision, and format categories, and this partition drives two complementary axes: (1) category-aware pruning saliency scores that preserve parameters most relevant for decision positions; and (2) an on-policy distillation objective that aligns student and teacher on valid tokens, paired with category-aware feature matching. We evaluate SKIM on tool-calling benchmarks and within multi-step agent loops, across multiple model scales and sparsity levels. SKIM consistently improves accuracy over baselines, with its superiority becoming most striking in high-sparsity regimes where conventional methods struggle, demonstrating the potential of category-aware compression for deployment-time grammar-constrained agents.