精简冗余层以压缩大型语言模型
Streamlining Redundant Layers to Compress Large Language Models
AI总结:
本文提出LLM-Streamline,通过层剪枝移除低重要性连续层并结合轻量级网络层替换来减轻性能损失,同时引入稳定性指标,在性能和训练效率上优于现有剪枝方法。
摘要:
本文介绍了LLM-Streamline,这是关于大型语言模型(LLMs)层剪枝的先驱工作。它基于不同层对隐藏状态有不同影响的观察,从而能够识别出不太重要的层进行剪枝。LLM-Streamline包含两部分:层剪枝,根据目标稀疏度移除重要性最低的连续层;以及层替换,这是一个新颖的模块,通过训练轻量级网络来替换被剪枝的层以减轻性能损失。此外,还提出了一种名为稳定性的新指标,以解决广泛使用的准确性指标在评估模型压缩时的局限性。实验表明,LLM-Streamline在性能和训练效率方面均优于先前和同期最先进的剪枝方法。代码可在https://github.com/RUCKBReasoning/LLM-Streamline获取。
英文摘要:
This paper introduces LLM-Streamline, a pioneer work on layer pruning for large language models (LLMs). It is based on the observation that different layers have varying impacts on hidden states, enabling the identification of less important layers to be pruned.LLM-Streamline comprises two parts: layer pruning, which removes consecutive layers with the lowest importance based on target sparsity, and layer replacement, a novel module that trains a lightweight network to replace the pruned layers to mitigate performance loss. Additionally, a new metric called stability is proposed to address the limitations of the widely used accuracy metric in evaluating model compression. Experiments show that LLM-Streamline outperforms both previous and concurrent state-of-the-art pruning methods in terms of both performance and training efficiency.Our code is available at https://github.com/RUCKBReasoning/LLM-Streamline
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。