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

基于单语义神经元激活的指令微调任务特定数据选择方法

Task-Specific Data Selection for Instruction Tuning via Monosemantic Neuronal Activations

X-LANCE Lab, Department of Computer Science and Engineering(X-LANCE实验室,计算机科学与工程系);MoE Key Lab of Artificial Intelligence, SJTU AI Institute(人工智能MOE实验室,SJTU人工智能研究所);Shanghai Jiao Tong University(上海交通大学);AISpeech Co., Ltd.(AISpeech公司);School of Computer Science and Engineering, Central South University(计算机科学与工程学院,中南大学)

Da Ma, Gonghu Shang, Zhi Chen, Libo Qin, Yijie Luo, Lei Pan, Shuai Fan, Lu Chen, Kai Yu

AI总结:

针对指令微调中任务特定数据选择的难题,提出基于稀疏自编码器解耦的单语义神经元激活表征及专用相似性度量方法,在多场景下稳定性和性能均优于现有基线。

摘要:

指令微调提升了大语言模型(LLM)遵循各类人类指令的能力,但要在特定目标任务上取得优异性能仍颇具挑战,核心瓶颈在于如何筛选最相关的数据以最大化任务特定性能。现有数据选择方法包括稳定性不足的基于影响的方法,以及稳定性更强的分布对齐方法,后者的效果关键依赖于底层的样本表征。实际应用中,从浅层特征(如BM25)到神经嵌入(如BGE、LLM2Vec)的多数分布对齐方法,都难以捕捉模型内部对样本的处理机制。为弥补这一缺口,本文采用以模型为中心的策略:用样本在模型中的神经元激活模式表征样本,直接反映模型的内部计算过程。但由于神经元存在多语义性(即单个神经元可能对多个不相关的概念产生响应),直接使用原始神经元激活会导致不相关样本间出现虚假相似性。为解决该问题,本文利用稀疏自编码器将多语义激活解耦为稀疏的单语义表征,并针对该表征空间设计了专用的相似性度量指标,以更精准地识别任务相关数据。在多个指令数据集、模型、任务及数据选择比例下开展的综合实验表明,本文方法在稳定性和任务特定性能两方面均持续优于现有数据选择基线方法。

英文摘要:

Instruction tuning improves the ability of large language models (LLMs) to follow diverse human instructions, but achieving strong performance on specific target tasks remains challenging. A critical bottleneck is selecting the most relevant data to maximize task-specific performance. Existing data selection approaches include unstable influence-based methods and more stable distribution alignment methods, the latter of which critically rely on the underlying sample representation. In practice, most distribution alignment methods, from shallow features (e.g., BM25) to neural embeddings (e.g., BGE, LLM2Vec), may fail to capture how the model internally processes samples. To bridge this gap, we adopt a model-centric strategy in which each sample is represented by its neuronal activation pattern in the model, directly reflecting internal computation. However, directly using raw neuron activations leads to spurious similarity between unrelated samples due to neuron polysemanticity, where a single neuron may respond to multiple, unrelated concepts. To address this, we employ sparse autoencoders to disentangle polysemantic activations into sparse, monosemantic representations, and introduce a dedicated similarity metric for this space to better identify task-relevant data. Comprehensive experiments across multiple instruction datasets, models, tasks, and selection ratios show that our approach consistently outperforms existing data selection baselines in both stability and task-specific performance.

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

↑