用思维链微调小模型,让乌克兰语答题能力大幅提升。
Empowering Smaller Models: Tuning LLaMA and Gemma with Chain-of-Thought for Ukrainian Exam Tasks
- 用思维链方法高效微调小模型,仅需单张A100显卡
- 复杂匹配任务准确率提升17.4%,整体提升1.6%
- 适合资源有限但需高可解释性的低资源语言场景
大型语言模型在推理密集型任务中表现优异,但在低资源环境下训练困难。本文针对乌克兰语这一低资源语言,探索参数高效的微调方法,对LLaMA 3.1(80亿参数)、LLaMA 3.2(30亿参数)和Gemma 2(90亿参数)进行思维链微调。在复杂匹配任务上,性能最高提升17.4%,整体提升1.6%。联合任务主题与逐步解题的微调策略比标准思维链提升5.4%,显著增强模型对领域知识的召回与应用。使用2,032条思维链样本和2000万至5000万可训练参数,在单张A100 GPU上微调后,其表现超越GPT-4o mini、Mistral Large等大模型。量化适配器融合也影响生成质量。代码与模型已开源。
原文摘要 · Abstract (English)
Leading large language models have demonstrated impressive capabilities in reasoning-intensive tasks, such as standardized educational testing. However, they often require extensive training in low-resource settings with inaccessible infrastructure. Small or compact models, though more efficient, frequently lack sufficient support for underrepresented languages, leaving a performance gap in critical domains. This work explores the potential of parameter-efficient fine-tuning of compact open-weight language models to handle reasoning-intensive tasks in the underrepresented Ukrainian language, building on the findings of the ZNO-Eval benchmark. Parameter-efficient fine-tuning of LLaMA 3.1 (8 billion parameters), LLaMA 3.2 (3 billion parameters), and Gemma 2 (9 billion parameters) models on chain-of-thought solutions resulted in a modest test score improvement of up to 17.4% on complex matching tasks and 1.6% overall compared to tuning on answer letters alone, offering enhanced interpretability and robustness. In addition, the proposed tuning method with joint task topic and step-by-step solution generation outperforms standard chain-of-thought tuning in matching tasks and provides a 5.4% gain over the best LLaMA 3.2 model due to guiding the model to recall and apply domain-relevant information. Contrasting obtained results with zero-shot evaluations of leading open-weight and proprietary models such as Qwen, DeepSeek R1, OpenAI o1 and o3, Gemini, and Claude, highlight that fine-tuning LLaMA and Gemma models with 2,032 step-by-step solutions and 20 to 50 million trainable parameters on a single A100 GPU lets them outperform GPT-4o mini, Mistral Large, and larger open-weight models. This research also evaluates how merging the quantized adapter with the base model influences the generation quality. Source code and tuned models are available at https://github.com/NLPForUA/ZNO.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。