arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.05605cs.CLcs.LG
收藏

通过训练-推理协同优化提升大语言模型的自精炼能力

Evolving LLMs' Self-Refinement Capability via Synergistic Training-Inference Optimization

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);University of Science and Technology of China(中国科学技术大学);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学耿家庄人工智能学院);University of Bristo, UK(英国布里斯托大学);Zhongguancun Academy, China(中关村学院);Huawei Noah’s Ark Lab, China(华为诺亚实验室);University College London, UK(伦敦大学学院)

Yongcheng Zeng, Xinyu Cui, Xuanfa Jin, Qirui Mi, Guoqing Liu, Zexu Sun, Mengyue Yang, Dong Li, Weiyu Ma, Ning Yang, Jian Zhao, Jianye Hao, Haifeng Zhang, Jun Wang

AI总结:

提出EVOLVE框架,通过训练与推理阶段的协同优化,迭代激发并增强大语言模型的自精炼能力,使Llama-3.1-8B超越GPT-4o,并提升数学推理性能。

摘要:

自精炼(Self-Refinement)指的是模型修改自身响应以产生更优输出的能力。这一能力还可以作为自我改进(Self-Improvement)的基本机制,例如通过使用精炼后的结果重建数据集来增强模型的内在性能。然而,我们的综合实验表明,大语言模型(LLMs)并未显示出具有内在自精炼能力的明确证据,甚至在自精炼后可能出现响应质量下降的情况。为解决这一问题,我们提出了EVOLVE,一个简单有效的框架,通过迭代训练来激发和追踪自精炼能力的演化。我们首先探索训练阶段的优化方法,以激活模型的自精炼能力。然后,在推理阶段,我们研究各种生成策略,以进一步增强和利用自精炼能力,同时为训练提供必要的数据。通过训练和推理阶段的协同优化,我们持续演化模型的自精炼能力,使其能够更好地改进自身的响应。此外,我们展示了利用自精炼来实现更广泛的内在模型能力自我改进的潜力。实验表明,演化后的自精炼能力使Llama-3.1-8B基础模型超越了GPT-4o,在AlpacaEval 2上达到了62.3%的长度控制胜率和63.3%的原始胜率,在Arena-Hard上达到了50.3%的胜率。该能力还能有效泛化到域外推理任务,提升了在GSM8K和MATH等数学推理基准上的性能。

英文摘要:

Self-Refinement refers to a model's ability to revise its own responses to produce improved outputs. This capability can also serve as a fundamental mechanism for Self-Improvement, for example, by reconstructing datasets with refined results to enhance intrinsic model performance. However, our comprehensive experiments reveal that large language models (LLMs) show no clear evidence of inherent Self-Refinement and may even experience response quality degradation after Self-Refinement. To address this issue, we propose EVOLVE, a simple and effective framework for eliciting and tracking the evolution of Self-Refinement through iterative training. We first explore optimization methods during training to activate the model's Self-Refinement capability. Then, at inference, we investigate various generation strategies to further enhance and utilize Self-Refinement while supplying the necessary data for training. Through synergistic optimization of training and inference stages, we continually evolve the model's Self-Refinement ability, enabling it to better refine its own responses. Moreover, we demonstrate the potential of leveraging Self-Refinement to achieve broader Self-Improvement of intrinsic model abilities. Experiments show that the evolved Self-Refinement ability enables the Llama-3.1-8B base model to surpass GPT-4o, achieving 62.3% length-controlled and 63.3% raw win rates on AlpacaEval 2, and 50.3% on Arena-Hard. It also generalizes effectively to out-of-domain reasoning tasks, improving performance on mathematical reasoning benchmarks such as GSM8K and MATH.

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

↑