Instruction-Following Pruning for Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Hou, Bairu, Chen, Qibin, Wang, Jianyu, Yin, Guoli, Wang, Chong, Du, Nan, Pang, Ruoming, Chang, Shiyu, Lei, Tao
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908390315261952
author Hou, Bairu
Chen, Qibin
Wang, Jianyu
Yin, Guoli
Wang, Chong
Du, Nan
Pang, Ruoming
Chang, Shiyu
Lei, Tao
author_facet Hou, Bairu
Chen, Qibin
Wang, Jianyu
Yin, Guoli
Wang, Chong
Du, Nan
Pang, Ruoming
Chang, Shiyu
Lei, Tao
contents With the rapid scaling of large language models (LLMs), structured pruning has become a widely used technique to learn efficient, smaller models from larger ones, delivering superior performance compared to training similarly sized models from scratch. In this paper, we move beyond the traditional static pruning approach of determining a fixed pruning mask for a model, and propose a dynamic approach to structured pruning. In our method, the pruning mask is input-dependent and adapts dynamically based on the information described in a user instruction. Our approach, termed "instruction-following pruning", introduces a sparse mask predictor that takes the user instruction as input and dynamically selects the most relevant model parameters for the given task. To identify and activate effective parameters, we jointly optimize the sparse mask predictor and the LLM, leveraging both instruction-following data and the pre-training corpus. Experimental results demonstrate the effectiveness of our approach on a wide range of evaluation benchmarks. For example, our 3B activated model improves over the 3B dense model by 5-8 points of absolute margin on domains such as math and coding, and rivals the performance of a 9B model.
format Preprint
id arxiv_https___arxiv_org_abs_2501_02086
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Instruction-Following Pruning for Large Language Models
Hou, Bairu
Chen, Qibin
Wang, Jianyu
Yin, Guoli
Wang, Chong
Du, Nan
Pang, Ruoming
Chang, Shiyu
Lei, Tao
Computation and Language
With the rapid scaling of large language models (LLMs), structured pruning has become a widely used technique to learn efficient, smaller models from larger ones, delivering superior performance compared to training similarly sized models from scratch. In this paper, we move beyond the traditional static pruning approach of determining a fixed pruning mask for a model, and propose a dynamic approach to structured pruning. In our method, the pruning mask is input-dependent and adapts dynamically based on the information described in a user instruction. Our approach, termed "instruction-following pruning", introduces a sparse mask predictor that takes the user instruction as input and dynamically selects the most relevant model parameters for the given task. To identify and activate effective parameters, we jointly optimize the sparse mask predictor and the LLM, leveraging both instruction-following data and the pre-training corpus. Experimental results demonstrate the effectiveness of our approach on a wide range of evaluation benchmarks. For example, our 3B activated model improves over the 3B dense model by 5-8 points of absolute margin on domains such as math and coding, and rivals the performance of a 9B model.
title Instruction-Following Pruning for Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2501.02086