SKIM: Pruning Large Language Model Agents via Selective Knowledge Informed Masking
Moonseok Choi, Jongwon Jeong, Minki Kang, Giung Nam, Juho Lee
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.
Create a lesson
Related papers
Automatic keyphrase extraction and annotation: modern theoretical approaches and practical solutions for text and speech
Daria Guseva, Olga Mitrofanova
Compression Through a Context Lens: Evaluating Adaptation, Quantization, and Distillation in Arabic Legal LLMs
Md. Rafiul Biswas, George Mikros, Wajdi Zaghouani
Beyond the Keyword: A Human-Annotated Benchmark for Arabic Anxiety-Related Discourse
Shimaa Ibrahim, Mabrouka Bessghaier, Md. Rafiul Biswas et al.
CardioLM: A multilingual suite of small language models for the cardiology domain
Manuela-Daniela Danu, Miguel Rodríguez-Ortega, Alberto Becerra-Tome et al.
AraEngage: Interpretable Linguistic Correlates of Engagement in Arabic Facebook News
Shimaa Ibrahim, Nour Elhouda Dalloua, Md. Rafiul Biswas et al.
Do Recommenders Need to Think in Words? Latent Reasoning for Efficient LLM-Based Recommendation
Hongyang Su, Beibei Kong, Lei Cheng et al.