All-in-One Tuning and Structural Pruning for Domain-Specific LLMs
Preprint
Abstract
Existing pruning techniques for large language models (LLMs) targeting domain-specific applications typically follow a two-stage process: pruning the pretrained general-purpose LLMs and then fine-tuning the pruned LLMs on specific domains. However, the pruning decisions, derived from the pretrained weights, remain unchanged during fine-tuning, even if the weights have been updated. Therefore, such a combination of the pruning decisions and the finetuned weights may be suboptimal, leading to non-negligible performance degradation. To address these limitations, we propose ATP: All-in-One Tuning and Structural Pruning, a unified one-stage structural pruning and fine-tuning approach that dynamically identifies the current optimal substructure throughout the fine-tuning phase via a trainable pruning decision generator. Moreover, given the limited available data for domain-specific applications, Low-Rank Adaptation (LoRA) becomes a common technique to fine-tune the LLMs. In ATP, we introduce LoRA-aware forward and sparsity regularization to ensure that the substructures corresponding to the learned pruning decisions can be directly removed after the ATP process. ATP outperforms the state-of-the-art two-stage pruning methods on tasks in the legal and healthcare domains. More specifically, ATP recovers up to 88% and 91% performance of the dense model when pruning 40% parameters of LLaMA2-7B and LLaMA3-8B models, respectively.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive SurveyACM Computing Surveys, 2025
- Automating Research Synthesis with Domain-Specific Large Language Model Fine-TuningACM Transactions on Knowledge Discovery From Data, 2025
- InfuserKI: Enhancing Large Language Models with Knowledge Graphs via Infuser-Guided Knowledge Integration2024
- MultiLegalPile: A 689GB Multilingual Legal Corpus2024
- Full Parameter Fine-tuning for Large Language Models with Limited Resources2024
- LoRAPrune: Structured Pruning Meets Low-Rank Parameter-Efficient Fine-Tuning2024
- Distributed contrastive learning for medical image segmentationMedical Image Analysis, 2022
- P-Tuning: Prompt Tuning Can Be Comparable to Fine-tuning Across Scales and Tasks2022
- The Power of Scale for Parameter-Efficient Prompt Tuning2021
- Enabling On-Device CNN Training by Self-Supervised Instance Filtering and Error Map PruningIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2020