arXiv:2505.05946cs.CLcs.AI2025-05被引 4

用EWC保护知识,让Gemma2学会立陶宛语且不丢原有能力。

Full-Parameter Continual Pretraining of Gemma2: Insights into Fluency and Domain Knowledge

  • 全参数微调时用EWC结合MMLU数据缓存重要权重
  • 立陶宛语流畅度提升,英文任务准确率未下降
  • 适合想低成本适配小语种的开发者参考

本技术报告通过实验研究大语言模型持续学习中语言流畅性与领域知识的关系。我们针对立陶宛语,对Gemma2模型进行自回归全参数预训练,使用CulturaX数据集中前10%的立陶宛语数据。为防止灾难性遗忘,采用弹性权重巩固(EWC)方法,利用MMLU基准数据估算的费雪信息来保护关键权重。评估结果显示,经训练后模型在立陶宛语上的困惑度降低,表明语言流畅性提升;同时在包括ARC-Easy、Belebele、GSM8K、HellaSwag、MMLU、TruthfulQA和Winogrande在内的多语言理解基准上,英文任务性能保持稳定甚至略有提升。这些结果表明,EWC能有效维持模型原有的领域知识,并实现对低资源语言的高效适配。代码已公开于https://github.com/Neurotechnology/LLM_EWC。

原文摘要 · Abstract (English)

In this technical report, we empirically investigate the relationship between linguistic fluency and domain knowledge in the context of continual learning with large language models (LLMs). Specifically, we enhance the linguistic fluency of the Gemma2 LLM for the Lithuanian language by autoregressively pretraining its full parameter set on the first 10\% of the Lithuanian language component of the CulturaX dataset. To prevent catastrophic forgetting of the model's existing domain knowledge, we apply Elastic Weight Consolidation (EWC), leveraging Fisher information estimated using data from the Massive Multitask Language Understanding (MMLU) benchmark. In the post-training evaluations, we assess linguistic fluency through perplexity and evaluate domain knowledge using accuracy on a suite of language understanding benchmarks, including ARC-Easy, Belebele, GSM8K, HellaSwag, MMLU, TruthfulQA, and Winogrande, in both English and Lithuanian. The empirical results demonstrate that EWC not only mitigates catastrophic forgetting by preserving the model's performance in terms of both linguistic fluency and domain knowledge but also improves or maintains these capabilities for the newly added Lithuanian language. These findings highlight the potential for more efficient adaptation of general-purpose LLMs to under-represented languages without requiring access to the original training data. The accompanying codebase is openly accessible at https://github.com/Neurotechnology/LLM_EWC.

持续学习小语种EWCGemma2

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。