arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.01267cs.LGcs.CL

剖析语言模型:基于选择性剪枝的机器遗忘

Dissecting Language Models: Machine Unlearning via Selective Pruning

King’s College London(伦敦国王学院)

Nicholas Pochinkov, Nandi Schoots

AI总结:

本文提出一种针对大型语言模型的选择性剪枝机器遗忘方法,通过基于神经元在目标能力与整体网络性能上的相对重要性来移除特定神经元,以高效识别并消除特定行为。

摘要:

随着应用变得更强大且更频繁地被采用,理解和塑造大型语言模型(LLMs)的行为变得愈发重要。本文介绍了一种专为LLMs设计的机器遗忘方法。我们提出了一种针对LLMs的选择性剪枝方法,该方法根据神经元在特定目标能力上的相对重要性(相较于整体网络性能)来移除神经元。这种方法在识别和移除实现特定行为的神经元时,具有计算和数据高效性。我们的研究结果表明,LLMs中的前馈和注意力神经元均具有专门化特性;也就是说,对于特定任务,某些神经元比其他神经元更为关键。所有实验的代码可在 https://github.com/nickypro/selective-pruning 获取。

英文摘要:

Understanding and shaping the behaviour of Large Language Models (LLMs) is increasingly important as applications become more powerful and more frequently adopted. This paper introduces a machine unlearning method specifically designed for LLMs. We introduce a selective pruning method for LLMs that removes neurons based on their relative importance on a targeted capability compared to overall network performance. This approach is a compute- and data-efficient method for identifying and removing neurons that enable specific behaviours. Our findings reveal that both feed-forward and attention neurons in LLMs are specialized; that is, for specific tasks, certain neurons are more crucial than others. Code from all experiments is available at https://github.com/nickypro/selective-pruning

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑