通过识别并保留大模型中的功能网络实现高效压缩。
Pruning Large Language Models by Identifying and Preserving Functional Networks
- 将大模型视为数字大脑,分解出类脑功能网络。
- 保留功能网络中的关键神经元,实现结构化剪枝。
- 在不破坏模型功能架构的前提下提升压缩效率。
结构化剪枝是压缩大型语言模型(LLMs)以降低GPU内存占用并加速推理速度的代表性技术,在实际应用中具有重要价值。现有方法通常基于结构单元的重要性评估进行剪枝,但忽略了人工神经元间的相互作用与协作,这些对模型功能至关重要,导致大模型宏观功能架构被破坏,进而引发性能下降。受人工神经网络与人脑功能神经网络之间内在相似性的启发,本文提出通过识别并保留大模型中的功能网络来实现剪枝。具体地,将大模型视为数字大脑,将其分解为功能网络,类似于神经影像学中识别脑功能网络的方法;随后通过保留这些功能网络中的关键神经元实现剪枝。实验结果表明,该方法能有效识别和定位大模型中的功能网络及关键神经元,实现高效且低损的模型压缩。代码已公开于 https://github.com/WhatAboutMyStar/LLM_ACTIVATION。
原文摘要 · Abstract (English)
Structured pruning is one of the representative techniques for compressing large language models (LLMs) to reduce GPU memory consumption and accelerate inference speed. It offers significant practical value in improving the efficiency of LLMs in real-world applications. Current structured pruning methods typically rely on assessment of the importance of the structure units and pruning the units with less importance. Most of them overlooks the interaction and collaboration among artificial neurons that are crucial for the functionalities of LLMs, leading to a disruption in the macro functional architecture of LLMs and consequently a pruning performance degradation. Inspired by the inherent similarities between artificial neural networks and functional neural networks in the human brain, we alleviate this challenge and propose to prune LLMs by identifying and preserving functional networks within LLMs in this study. To achieve this, we treat an LLM as a digital brain and decompose the LLM into functional networks, analogous to identifying functional brain networks in neuroimaging data. Afterwards, an LLM is pruned by preserving the key neurons within these functional networks. Experimental results demonstrate that the proposed method can successfully identify and locate functional networks and key neurons in LLMs, enabling efficient model pruning. Our code is available at https://github.com/WhatAboutMyStar/LLM_ACTIVATION.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。