PASER:基于后训练数据选择的高效剪枝大语言模型恢复
PASER: Post-Training Data Selection for Efficient Pruned Large Language Model Recovery
AI总结:
PASER通过后训练数据选择方法高效恢复剪枝大语言模型的能力,显著优于传统基线方法。
摘要:
模型剪枝是一种有效压缩大语言模型(LLMs)的方法。然而,这一过程常常导致模型能力显著下降。虽然后训练技术如指令微调常被用于恢复模型性能,但现有方法往往忽视了模型能力的不均衡退化,并导致计算成本高。此外,一些无关的指令也可能对模型能力恢复产生负面影响。为了解决这些挑战,我们提出了后训练数据选择方法,用于高效剪枝大语言模型恢复(PASER)。PASER旨在识别能够恢复最受损模型能力的指令集,并在一定数据预算下进行选择。我们的方法首先应用流形学习和谱聚类将恢复指令分组到语义空间中,揭示出能力特定的指令集。然后,通过相应模型能力退化的程度,将数据预算自适应地分配到各个簇中。在每个簇中,我们优先选择导致模型性能下降最严重的数据样本。为了缓解潜在的负向微调影响,我们还检测并过滤掉冲突或无关的恢复数据。广泛的实验表明,PASER在传统基线方法上表现显著更好,能够有效恢复剪枝LLMs的一般能力,同时仅使用原始后训练数据的4%-20%。我们提供了代码库在https://github.com/BokwaiHo/PASER。
英文摘要:
Model pruning is an effective approach for compressing large language models (LLMs). However, this process often leads to significant degradation of model capabilities. While post-training techniques such as instruction tuning are commonly employed to recover model performance, existing methods often overlook the uneven deterioration of model capabilities and incur high computational costs. Moreover, some irrelevant instructions may also introduce negative effects to model capacity recovery. To address these challenges, we propose the \textbf{P}ost-training d\textbf{A}ta \textbf{S}election method for \textbf{E}fficient pruned large language model \textbf{R}ecovery (\textbf{PASER}). PASER aims to identify instructions to recover the most compromised model capacities with a certain data budget. Our approach first applies manifold learning and spectral clustering to group recovery instructions in the semantic space, revealing capability-specific instruction sets. Then, the data budget is adaptively allocated across clusters by the degree of corresponding model capability degradation. In each cluster, we prioritize data samples that lead to the most decline of model performance. To mitigate potential negative tuning effects, we also detect and filter out conflicting or irrelevant recovery data. Extensive experiments demonstrate that PASER significantly outperforms conventional baselines, effectively recovering the general capabilities of pruned LLMs while utilizing merely 4\%-20\% of the original post-training data. We provide the code repository in \href{https://github.com/BokwaiHo/PASER}{Link}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。