arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.13201cs.CL
收藏

面向神经元的数据选择用于大语言模型的指令微调

Neuron-Aware Data Selection In Instruction Tuning For Large Language Models

NLP;CT Lab, Department of Computer and Information Science, University of Macau(计算机与信息科学系,澳门大学CT实验室);Artificial Intelligence Research Institute, Shenzhen University of Advanced Technology(深圳先进技术大学人工智能研究院);Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究所);Provable Responsible AI and Data Analytics Lab, KAUST(可证明责任AI与数据分析实验室,卡尔斯兰大学);National Key Laboratory for Novel Software Technology, Nanjing University(新型软件技术国家重点实验室,南京大学)

Xin Chen, Junchao Wu, Shu Yang, Runzhe Zhan, Zeyu Wu, Min Yang, Shujian Huang, Lidia S. Chao, Derek F. Wong

AI总结:

本文提出NAIT框架,通过分析神经元激活模式相似性选择高效指令微调数据,提升大语言模型特定或通用能力,实验证明其在多种任务中优于其他方法。

摘要:

指令微调(IT)已被证明是解锁大语言模型(LLMs)强大能力的有效方法。最近研究表明,过多的IT数据会降低LLMs性能,而精心选择一小部分高质量IT数据可以显著提升其能力。因此,从IT数据集中识别最有效的子集数据以有效开发LLMs的特定或通用能力已成为关键挑战。为此,我们提出了一种新颖且高效的框架称为NAIT。NAIT通过分析IT数据集与目标领域能力之间神经元激活模式的相似性来评估IT数据对LLMs性能的影响。具体而言,NAIT从目标领域能力的领域内数据集中捕获神经元激活模式,以构建可重用和可迁移的神经元激活特征。然后根据候选样本与目标能力预期激活特征之间的相似性进行评估和选择。实验结果表明,使用NAIT选择的10% Alpaca-GPT4 IT数据子集训练,一致在各种任务中优于依赖外部先进模型或不确定性特征的方法。我们的发现还揭示了神经元激活特征在不同LLMs能力之间的可迁移性。特别是,具有更多逻辑推理和编程特征的IT数据具有强大的通用可迁移性,使模型在多个任务中发展更强的能力,而稳定的基集数据足以一致激活基本模型能力并在多样化任务中普遍提升性能。

英文摘要:

Instruction Tuning (IT) has been proven to be an effective approach to unlock the powerful capabilities of large language models (LLMs). Recent studies indicate that excessive IT data can degrade LLMs performance, while carefully selecting a small subset of high-quality IT data can significantly enhance their capabilities. Therefore, identifying the most efficient subset data from the IT dataset to effectively develop either specific or general abilities in LLMs has become a critical challenge. To address this, we propose a novel and efficient framework called NAIT. NAIT evaluates the impact of IT data on LLMs performance by analyzing the similarity of neuron activation patterns between the IT dataset and the target domain capability. Specifically, NAIT captures neuron activation patterns from in-domain datasets of target domain capabilities to construct reusable and transferable neuron activation features. It then evaluates and selects optimal samples based on the similarity between candidate samples and the expected activation features of the target capabilities. Experimental results show that training on the 10\% Alpaca-GPT4 IT data subset selected by NAIT consistently outperforms methods that rely on external advanced models or uncertainty-based features across various tasks. Our findings also reveal the transferability of neuron activation features across different capabilities of LLMs. In particular, IT data with more logical reasoning and programmatic features possesses strong general transferability, enabling models to develop stronger capabilities across multiple tasks, while a stable core subset of data is sufficient to consistently activate fundamental model capabilities and universally improve performance across diverse tasks.

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

↑