SKIM: Pruning Large Language Model Agents via Selective Knowledge Informed Masking
Moonseok Choi, Giung Nam, Jongwon Jeong, Minki Kang, Juho Lee
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › KV Cache Optimization · Type: new method · Keywords: LLM agents, structured generation, pruning, distillation, token role, category-aware compression
Areas: AI Agents › Agent Systems and Interactions › Efficient Agent Inference
Summary
SKIM introduces a pruning and distillation framework for LLM agents under structured generation, using token role categories to preserve decision-relevant parameters and align student and teacher on valid tokens.
Explained to a 5-year-old
Big talking computers, called language model agents, are used to help with tasks. Sometimes they need to answer in a special format, like following a grammar or a set of rules. When they follow those rules, there are only a few possible answers, so not all parts of the computer are needed all the time. The new idea splits the work into three parts: listening, choosing, and formatting. It keeps the most important parts of the program and teaches a smaller copy how to do the same using simple matching. This helps the smaller program answer correctly while using less computer power.
Explained to a 5-year-old, longer
Big talking computers, called language model agents, are used to help with many tasks. Sometimes they need to answer in a special format, like following a grammar or a set of rules. When they follow those rules, there are only a few possible answers, so not all parts of the computer are needed all the time. Existing ways to make these computers smaller were designed for when they could say anything, not just a limited set of answers. This new idea notices that the important moments are when the computer decides which answer to give. It divides the work into three kinds of parts: parts that just read the question, parts that pick the answer, and parts that shape the answer to fit the rules. By looking at these parts, the method can cut away less important pieces of the computer while keeping the decision parts. It also teaches a smaller copy of the computer how to act, using simple matching between the big and small versions. The smaller copy learns to give the same correct answers as the big one, especially for the important decision steps. This helps the computer run faster and use less memory, which is useful when we want to run it on a single machine. The approach works well on tasks where the computer must call tools or go through several steps to finish a job. Overall, it makes big talking computers more efficient for real-world uses where answers must follow strict formats.
For a technical reader
The paper addresses the inefficiency of existing compression methods for LLM agents when they must generate structured outputs under grammar constraints. It observes that under such constraints, only a few token positions (decision points) carry most of the model’s output distribution, making traditional pruning ineffective. SKIM introduces a token-role partitioning (context, decision, format) to compute category-aware saliency scores and preserve critical parameters. It also employs an on-policy distillation that aligns a student model with the teacher on valid tokens, using category-aware feature matching. Experiments on tool-calling benchmarks and multi-step agent loops show consistent accuracy gains, especially at high sparsity levels, demonstrating the value of role-aware compression.
Problem
Adapting large language model agents to produce structured outputs under grammar constraints is challenging because existing compression methods assume unconstrained generation and do not account for the reduced output distribution, leading to suboptimal performance.
Method
The approach partitions token positions into context, decision, and format categories, computes category-aware pruning saliency to retain parameters crucial for decision positions, and applies an on-policy distillation that aligns student and teacher on valid tokens with category-aware feature matching.
Results
The approach consistently improves accuracy over baselines, especially in high-sparsity regimes where conventional methods struggle.
Contributions
It identifies the mismatch between existing compression and structured generation, introduces token-role-based partitioning, and proposes category-aware pruning saliency and on-policy distillation for LLM agents under grammar constraints.
Practical relevance
The work enables more efficient deployment of LLM agents in settings requiring structured outputs, reducing computational cost while maintaining performance.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction