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

LLMs-as-Instructors:从错误中学习以实现模型改进自动化

LLMs-as-Instructors: Learning from Errors Toward Automating Model Improvement

Singapore Management University(新加坡管理大学);Skywork AI(天工AI);Fudan University(复旦大学);University of Science and Technology of China(中国科学技术大学);Beijing Institute of Technology(北京理工大学)

Jiahao Ying, Mingbao Lin, Yixin Cao, Wei Tang, Bo Wang, Qianru Sun, Xuanjing Huang, Shuicheng Yan

AI总结:

本文提出LLMs-as-Instructors框架,通过教师LLM分析目标模型错误并结合两种学习策略,实现小模型训练的自动化改进,在多个基准上超越ChatGPT。

摘要:

本文提出了创新的“LLMs-as-Instructors”框架,该框架利用先进的大语言模型(LLMs)自主增强较小目标模型的训练。受“从错误中学习”理论的启发,该框架使用一个教师LLM细致分析目标模型中的具体错误,从而促进有针对性的高效训练循环。在该框架内,我们实现了两种策略:“从错误中学习”,仅关注错误响应以定制训练数据;以及“通过对比从错误中学习”,利用对比学习同时分析正确和错误响应,以更深入地理解错误。我们在多个开源模型上进行的实证研究表明,在数学推理、编码能力和事实知识等多个基准上均有显著提升。值得注意的是,经过优化的Llama-3-8b-Instruction已超越ChatGPT,证明了我们方法的有效性。通过结合两种策略的优势,我们在域内和域外基准上均取得了更均衡的性能改进。我们的代码可在https://yingjiahao14.github.io/LLMs-as-Instructors-pages/获取。

英文摘要:

This paper introduces the innovative "LLMs-as-Instructors" framework, which leverages the advanced Large Language Models (LLMs) to autonomously enhance the training of smaller target models. Inspired by the theory of "Learning from Errors", this framework employs an instructor LLM to meticulously analyze the specific errors within a target model, facilitating targeted and efficient training cycles. Within this framework, we implement two strategies: "Learning from Error," which focuses solely on incorrect responses to tailor training data, and "Learning from Error by Contrast", which uses contrastive learning to analyze both correct and incorrect responses for a deeper understanding of errors. Our empirical studies, conducted with several open-source models, demonstrate significant improvements across multiple benchmarks, including mathematical reasoning, coding abilities, and factual knowledge. Notably, the refined Llama-3-8b-Instruction has outperformed ChatGPT, illustrating the effectiveness of our approach. By leveraging the strengths of both strategies, we have attained a more balanced performance improvement on both in-domain and out-of-domain benchmarks. Our code can be found at https://yingjiahao14.github.io/LLMs-as-Instructors-pages/.

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

↑