arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.06488cs.CLcs.LG
收藏

通过检测与探索任务特定神经元理解大语言模型的多任务学习(泛化)

Towards Understanding Multi-Task Learning (Generalization) of LLMs via Detecting and Exploring Task-Specific Neurons

College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部)

Yongqi Leng, Deyi Xiong

AI总结:

该研究从神经元视角解析大语言模型多任务学习机制,通过梯度归因识别任务特定神经元,发现其重叠度与泛化相关,据此提出仅微调当前任务特定神经元的持续微调方法,提升多任务可解释性与持续学习效果。

摘要:

尽管大语言模型(LLMs)已展现出卓越的多任务能力,但其背后的学习机制仍是一个具有挑战性的研究问题。本文从神经元视角尝试解析这类机制,具体而言,通过在任务特定数据上进行梯度归因,检测LLMs中的任务敏感神经元。通过大量失活与微调实验,证明检测到的神经元与给定任务高度相关,将其命名为任务特定神经元。基于识别出的任务特定神经元,深入探究多任务学习与持续学习中的两个常见问题:泛化与灾难性遗忘。研究发现,任务特定神经元的重叠度与任务间的泛化和特化程度强相关。有趣的是,在LLMs的特定层中,不同任务特定神经元的参数存在高度相似性,且这种相似性与泛化性能高度相关。受这些发现启发,提出一种神经元级持续微调方法,在持续学习过程中仅微调当前任务的特定神经元,大量实验证明了该方法的有效性。本研究为LLMs在多任务学习中的可解释性提供了新见解。

英文摘要:

While large language models (LLMs) have demonstrated superior multi-task capabilities, understanding the learning mechanisms behind this is still a challenging problem. In this paper, we attempt to understand such mechanisms from the perspective of neurons. Specifically, we detect task-sensitive neurons in LLMs via gradient attribution on task-specific data. Through extensive deactivation and fine-tuning experiments, we demonstrate that the detected neurons are highly correlated with the given task, which we term as task-specific neurons. With these identified task-specific neurons, we delve into two common problems in multi-task learning and continuous learning: Generalization and Catastrophic Forgetting. We find that the overlap of task-specific neurons is strongly associated with generalization and specialization across tasks. Interestingly, at certain layers of LLMs, there is a high similarity in the parameters of different task-specific neurons, and such similarity is highly correlated with the generalization performance. Inspired by these findings, we propose a neuron-level continuous fine-tuning method that only fine-tunes the current task-specific neurons during continuous learning, and extensive experiments demonstrate the effectiveness of the proposed method. Our study provides insights into the interpretability of LLMs in multi-task learning.

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

↑