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

面向大语言模型的MoL:在保留通用能力的同时增强领域专业性的双损失优化方法

MoL for LLMs: Dual-Loss Optimization to Enhance Domain Expertise While Preserving General Capabilities

Wired Product Operation Division, ZTE Corporation(中兴通讯无线产品运营部);Beijing University of Posts and Telecommunications(北京邮电大学)

Jingxue Chen, Qingkun Tang, Qianchun Lu, Siyuan Fang

AI总结:

针对大语言模型领域适配时通用能力下降及语料比例难调的问题,提出双损失优化框架MoL,解耦领域与通用语料的优化目标,实验验证1:1语料比例最优,在数学基准上取得显著性能提升。

摘要:

尽管大语言模型(LLMs)在通用任务中表现出色,但在领域特定应用中仍存在幻觉问题和准确率受限的情况。持续预训练(CPT)方法面临两个关键问题:(1)领域偏向性数据会降低通用语言技能;(2)语料混合比例不当会限制有效适配。为解决这些问题,我们提出了一种名为Mixture of Losses(MoL,损失混合)的新型框架,该框架将领域特定语料和通用语料的优化目标解耦。具体而言,我们对领域语料应用交叉熵(CE)损失以确保知识获取,同时通过Kullback-Leibler(KL)散度使通用语料训练与基础模型的基础能力对齐。这种双损失架构在增强领域专业性的同时保留了通用技能,避免了灾难性遗忘。实验验证表明,领域语料与通用语料1:1的比例可最优地平衡训练效果与过拟合问题,无需大量调参或资源密集型实验。此外,我们的实验显示,相较于常出现通用语言能力下降问题的传统CPT方法,所提方法实现了显著的性能提升:在非思考推理模式下,模型在Math-500基准上的准确率提高了27.9%;在思考模式下,在颇具挑战性的AIME25子集上提升了83.3%,凸显了该方法的有效性。

英文摘要:

Although large language models (LLMs) perform well in general tasks, domain-specific applications suffer from hallucinations and accuracy limitations. Continual Pre-Training (CPT) approaches encounter two key issues: (1) domain-biased data degrades general language skills, and (2) improper corpus-mixture ratios limit effective adaptation. To address these, we propose a novel framework, Mixture of Losses (MoL), which decouples optimization objectives for domain-specific and general corpora. Specifically, cross-entropy (CE) loss is applied to domain-corpus to ensure knowledge acquisition, while Kullback-Leibler (KL) divergence aligns general-corpus training with the base model's foundational capabilities. This dual-loss architecture preserves universal skills while enhancing domain expertise, avoiding catastrophic forgetting. Empirically, we validate that a 1:1 domain-to-general corpus ratio optimally balances training and overfitting without the need for extensive tuning or resource-intensive experiments. Furthermore, our experiments demonstrate significant performance gains compared to traditional CPT approaches, which often suffer from degradation in general language capabilities; our model achieves 27.9% higher accuracy on the Math-500 benchmark in the non-think reasoning mode, and an impressive 83.3% improvement on the challenging AIME25 subset in the think mode, underscoring the effectiveness of our approach.

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

↑