通过提取和组合跨语言能力权重,无需训练即可提升多语言大模型性能。
Extracting and Combining Abilities For Building Multi-lingual Ability-enhanced Large Language Models
- 从大模型中提取与语言无关的能力权重,实现跨语言迁移。
- 在低资源语言上达到与PaLM相当的数学与科学任务表现。
- 适合需要低成本多语言能力扩展的研究者与开发者使用。
多语言能力迁移对大语言模型的广泛应用至关重要。现有方法高度依赖多语言相关数据训练,而低资源语言可能缺乏此类数据。为此,我们提出多语言能力提取与组合方法MAEC。核心思想是从大模型中分解并提取与语言无关的能力相关权重,并通过加减操作在不同语言间组合,无需重新训练。MAEC包含提取与组合两个阶段:提取阶段定位与特定能力强相关的关键神经元,进而提取可迁移的能力权重;组合阶段筛选能减轻语言影响的能力张量,结合语言特异性权重设计组合策略,构建增强型多语言大模型。我们在LLaMA-3 8B上针对高/低资源语言场景,在数学与科学任务上进行了广泛实验。结果表明,MAEC能高效提取并组合先进能力,性能接近PaLM。代码与资源已开源:https://github.com/RUCAIBox/MAET。
原文摘要 · Abstract (English)
Multi-lingual ability transfer has become increasingly important for the broad application of large language models (LLMs). Existing work highly relies on training with the multi-lingual ability-related data, which may not be available for low-resource languages. To solve it, we propose a Multi-lingual Abilities Extraction and Combination approach, named as MAEC. Our key idea is to decompose and extract language-agnostic ability-related weights from LLMs, and combine them across different languages by simple addition and subtraction operations without training. Specifically, our MAEC consists of the extraction and combination stages. In the extraction stage, we firstly locate key neurons that are highly related to specific abilities, and then employ them to extract the transferable ability-related weights. In the combination stage, we further select the ability-related tensors that mitigate the linguistic effects, and design a combining strategy based on them and the language-specific weights, to build the multi-lingual ability-enhanced LLM. To assess the effectiveness of our approach, we conduct extensive experiments on LLaMA-3 8B on mathematical and scientific tasks in both high-resource and low-resource lingual scenarios. Experiment results have shown that MAEC can effectively and efficiently extract and combine the advanced abilities, achieving comparable performance with PaLM. Resources are available at https://github.com/RUCAIBox/MAET.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。