通过模块化参数定位实现能力迁移与恢复
Ability Transfer and Recovery via Modularized Parameters Localization
AI总结:
ACT通过激活差异局部化能力相关通道,实现能力迁移与恢复,提升多语言数学和科学推理性能。
摘要:
大型语言模型可以通过持续预训练或微调来提高在特定领域、语言或技能上的性能,但这种专门化往往会损害其他能力并可能导致灾难性遗忘。我们通过分析在领域和语言特定输入下模块激活情况,研究能力在LLM参数中的分布。在各层和模块中,我们发现与能力相关的激活高度集中在少量通道(通常<5%),且这些通道在解耦方面具有良好的充分性和稳定性。基于这些观察,我们提出了ACT(基于激活的通道级能力迁移),通过激活差异局部化能力相关通道,并选择性地转移相应参数,随后进行轻量级微调以提高兼容性。在多语言数学和科学推理实验中,ACT能够在恢复遗忘能力的同时保持保留技能。它还能将多个专门化的模型合并,将几种能力整合到一个模型中,干扰极小。我们的代码和数据将公开发布。
英文摘要:
Large language models can be continually pre-trained or fine-tuned to improve performance in specific domains, languages, or skills, but this specialization often degrades other capabilities and may cause catastrophic forgetting. We investigate how abilities are distributed within LLM parameters by analyzing module activations under domain- and language-specific inputs for closely related models. Across layers and modules, we find that ability-related activations are highly concentrated in a small set of channels (typically <5\%), and these channels are largely disentangled with good sufficiency and stability. Building on these observations, we propose ACT (Activation-Guided Channel-wise Ability Transfer), which localizes ability-relevant channels via activation differences and selectively transfers only the corresponding parameters, followed by lightweight fine-tuning for compatibility. Experiments on multilingual mathematical and scientific reasoning show that ACT can recover forgotten abilities while preserving retained skills. It can also merge multiple specialized models to integrate several abilities into a single model with minimal interference. Our code and data will be publicly released.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。