Abstract
Large Language Models (LLMs) are often too massive for specialized deployments, and standard pruning methods frequently "break" the model's niche expertise. This paper introduces Cus-Prun, a method that carves out compact "expert models" by identifying and removing neurons irrelevant to specific languages, domains, or tasks. The result is a smaller, faster model that retains high performance in its specialty without requiring any expensive post-training or fine-tuning.
Introduction
While LLMs are incredibly versatile, their massive parameter counts make them difficult to run on consumer hardware or in latency-sensitive environments. Existing pruning techniques—like removing entire layers or approximating weight matrices—usually aim to preserve general capabilities (like those measured by MMLU). However, a user might only need a model for a specific niche, such as "German-language medical question answering." Current pruning methods are often too coarse-grained; they might accidentally delete the very parameters that hold that specialized knowledge. To fix this, researchers usually have to perform extensive post-training to recover lost abilities. The authors of this paper argue that we should instead identify unnecessary parameters relative to the user's specific needs and prune those specifically.
Methodology: The Cus-Prun Framework
The authors propose Cus-Prun (Custom Pruning), which operates at a fine-grained neuron level rather than a structural layer level. The process follows a systematic pipeline to isolate expertise.
- Three-Dimensional Positioning: They define an expert model along three axes: Language (e.g., Thai), Domain (e.g., Finance), and Task (e.g., Summarization).
- Irrelevant Neuron Identification: For each dimension, they use a small "calibration corpus" (around 50 documents) to see which neurons have the least impact on the output. If removing a neuron barely changes the model's response, it is labeled "irrelevant" for that specific dimension.
- Intersection Pruning: This is the core innovation. To create an expert model, the algorithm identifies neurons that are irrelevant across all specified dimensions. By pruning the intersection of irrelevant neuron sets, they ensure that if a neuron is important for any of the target dimensions (even if it's useless for the others), it is preserved.
- Zero-Shot Deployment: Unlike many other pruning methods, Cus-Prun requires no post-training. Once the neurons are pruned, the model is ready for immediate deployment.
Experimental Results
The researchers evaluated Cus-Prun across a wide array of benchmarks, including multilingual reasoning (MGSM), medical knowledge (MedMCQ), and sentiment analysis. They tested the method on backbone models including Llama3-8B/70B and Mistral-12B.
Key Performance Metrics
- Superior Performance: At a 25% pruning ratio, Cus-Prun consistently outperformed state-of-the-art baselines like SliceGPT and ShortGPT. For example, on Llama3-8B in a multilingual setting, Cus-Prun achieved an average score of 38.9%, while other methods struggled to break 15.5%.
- Aggressive Pruning: The method is remarkably robust. Even when pruning 45% of the parameters, Cus-Prun maintained an MMLU score of 48.4, whereas the baseline ShortGPT collapsed to a score of 7.9.
- Qualitative Success: As shown in comparative testing, Cus-Prun maintains coherent and accurate outputs in specialized domains where other pruning methods produce gibberish or incorrect answers.
Discussion and Insights
The paper demonstrates that redundancy is contextual. A neuron that is "dead weight" for English tasks might be the "expert" neuron for Thai syntax. By treating redundancy as a relative property, Cus-Prun avoids the "blunt instrument" approach of dropping entire layers, which often destroys specialized knowledge.
While the method currently focuses on Language, Domain, and Task, future work could explore other dimensions of expertise, such as specific reasoning styles or personas. Additionally, while Cus-Prun works without post-training, the authors suggest that a small amount of fine-tuning could potentially further boost the performance of these "carved" expert models.
Summary updated