paper-with-me

Papers

PAT: Pruning-Aware Tuning for Large Language Models

2024-08-27 · Yijiang Liu, Huanrui Yang, Youxin Chen, Rongyu Zhang, Miao Wang, Yuan Du, Li Du

Large language models (LLMs) excel in language tasks, especially with supervised fine-tuning after pre-training. However, their substantial memory and computational requirements hinder practical applications. Structural pruning, which reduces less significant weight dimensions, is one solution. Yet, traditional post-hoc pruning often leads to significant performance loss, with limited recovery from further fine-tuning due to reduced capacity. Since the model fine-tuning refines the general and chaotic knowledge in pre-trained models, we aim to incorporate structural pruning with the fine-tuning, and propose the Pruning-Aware Tuning (PAT) paradigm to eliminate model redundancy while preserving the model performance to the maximum extend. Specifically, we insert the innovative Hybrid Sparsification Modules (HSMs) between the Attention and FFN components to accordingly sparsify the upstream and downstream linear modules. The HSM comprises a lightweight operator and a globally shared trainable mask. The lightweight operator maintains a training overhead comparable to that of LoRA, while the trainable mask unifies the channels to be sparsified, ensuring structural pruning. Additionally, we propose the Identity Loss which decouples the transformation and scaling properties of the HSMs to enhance training robustness. Extensive experiments demonstrate that PAT excels in both performance and efficiency. For example, our Llama2-7b model with a 25\% pruning ratio achieves 1.33$\times$ speedup while outperforming the LoRA-finetuned model by up to 1.26\% in accuracy with a similar training cost. Code: https://github.com/kriskrisliu/PAT_Pruning-Aware-Tuning

📄 PDF Abstract BibTeX arXiv:2408.14721

Code (2)

kriskrisliu/pat 공식 구현 jax
kriskrisliu/pat_pruning-aware-tuning 공식 구현 jax

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
Pruning 설명 없음

Similar Papers 제목 키워드 기반

Wanda++: Pruning Large Language Models via Regional Gradients

2025-03-06 · ICLR Workshop on Sparsity in LLMs 2025 3 · Yifan Yang, Kai Zhen, Bhavana Ganesh, Aram Galstyan 외

Large Language Models (LLMs) pruning seeks to remove unimportant weights for inference speedup with minimal performance impact. However, existing methods often suffer from performance loss without full-model sparsity-awa…

DecoderGPULanguage ModelingLanguage Modelling

Prior Gradient Mask Guided Pruning-Aware Fine-Tuning

2022-02-15 · AAAI 2022 2 · Linhang Cai, Zhulin An, Chuanguang Yang, Yangchun Yan 외

We proposed a Prior Gradient Mask Guided Pruning-aware Fine-Tuning (PGMPF) framework to accelerate deep Convolutional Neural Networks (CNNs). In detail, the proposed PGMPF selectively suppresses the gradient of those ”un…

image-classificationImage Classification

All-in-One Tuning and Structural Pruning for Domain-Specific LLMs

2024-12-19 · Lei Lu, Zhepeng Wang, Runxue Bao, Mengbing Wang 외

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 o…

All

Sparsity-Aware Low-Rank Representation for Efficient Fine-Tuning of Large Language Models

2026-01-08 · Longteng Zhang, Sen Wu, Shuai Hou, Zhengyu Qing 외 arxiv

Adapting large pre-trained language models to downstream tasks often entails fine-tuning millions of parameters or deploying costly dense weight updates, which hinders their use in resource-constrained environments. Low-…

Model Compression

EfficientXpert: Efficient Domain Adaptation for Large Language Models via Propagation-Aware Pruning

2025-11-25 · Songlin Zhao, Michael Pitts, Zhuwei Qin arxiv

Large language models (LLMs) are increasingly adapted into domain-specific variants for applications in law, healthcare, and finance. Their scale, however, limits deployment in resource-constrained settings, and existing…

Domain Adaptation