用模型融合提升多语言模型在混语任务中的表现
Adapting Multilingual Models to Code-Mixed Tasks via Model Merging
- 通过合并预训练后检查点与基础模型,提升混语理解能力
- 融合模型在情感和仇恨言论分类上比全微调高2-5个百分点
- 适合低资源混语对迁移,尤其在仅有标签数据时效果更优
我们研究模型融合作为代码混合自然语言处理任务的一种实用替代方案。从多语言基础模型出发,依次进行无标注混语文本的持续预训练(CPT)、检查点与基础模型的合并、以及下游任务微调。在英语-印地语(En-Hi)和英语-西班牙语(En-Es)的句子分类任务中,使用XLM-R和Llama-3.2-1B模型进行评估。结果表明,融合模型始终优于全微调和CPT→FT方法,在F1上比全微调高出2–5点,比CPT→FT高出约1–2点,说明融合能更有效地利用无标注数据。使用更大模型(如Llama-3.3-70B)的零样本/少样本提示性能落后于微调和融合模型,凸显上下文学习在混语输入上的局限性。进一步测试跨语对迁移:在En-Hi上训练并在En-Ta和En-Ml上评估,融合检查点的迁移能力更强,相比单语英文基线(如TV/TIES变体达0.65–0.68 F1,而全微调为0.61–0.63),表明混语知识是低资源语对更可靠的迁移基础。最后,提出适配不同数据场景(仅标签、标签+无标签、仅迁移)的适应策略,并讨论扩展至更大模型和更广泛任务的限制与缩放考量。
原文摘要 · Abstract (English)
We study model merging as a practical alternative to conventional adaptation strategies for code-mixed NLP. Starting from a multilingual base model, we: (i) perform continued pre-training (CPT) on unlabeled code-mixed text to obtain an adapted checkpoint, (ii) merge checkpoint with the base model, and (iii) fine-tune (FT) on the downstream task data. We evaluate our approach for sentence classification (sentiment and hate speech) task in English-Hindi (En-Hi) and English-Spanish (En-Es) using XLM-R and Llama-3.2-1B models. Our results show that merged models consistently outperform full fine-tuning and CPT->FT. We observe gains of 2--5 points in F1 over full fine-tuning and ~1-2 points over CPT->FT, indicating that unlabeled data is leveraged more effectively via merging than via CPT alone. Zero-/few-shot prompting with larger LLMs (e.g., Llama-3.3-70B) lags behind fine-tuned and merged checkpoints, underscoring limits of in-context learning for code-mixed inputs. We further test cross-pair transfer by training on En-Hi and evaluating on En-Ta and En-Ml: merged checkpoints transfer more strongly than monolingual-English baselines (e.g., TV/TIES variants reaching 0.65-0.68 F1 vs 0.61-0.63 for full fine-tuning), suggesting that code-mixed knowledge is a more reliable substrate for low-resource pairs. We conclude with adaptation recipes matched to common data regimes (labeled only; labeled+unlabeled; transfer-only) and discuss limitations and scaling considerations for broader tasks and larger models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。