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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Ying, Jiahao, Lin, Mingbao, Cao, Yixin, Tang, Wei, Wang, Bo, Sun, Qianru, Huang, Xuanjing, Yan, Shuicheng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911938379776000
author Ying, Jiahao
Lin, Mingbao
Cao, Yixin
Tang, Wei
Wang, Bo
Sun, Qianru
Huang, Xuanjing
Yan, Shuicheng
author_facet Ying, Jiahao
Lin, Mingbao
Cao, Yixin
Tang, Wei
Wang, Bo
Sun, Qianru
Huang, Xuanjing
Yan, Shuicheng
contents 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/.
format Preprint
id arxiv_https___arxiv_org_abs_2407_00497
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LLMs-as-Instructors: Learning from Errors Toward Automating Model Improvement
Ying, Jiahao
Lin, Mingbao
Cao, Yixin
Tang, Wei
Wang, Bo
Sun, Qianru
Huang, Xuanjing
Yan, Shuicheng
Computation and Language
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/.
title LLMs-as-Instructors: Learning from Errors Toward Automating Model Improvement
topic Computation and Language
url https://arxiv.org/abs/2407.00497