Retrieved In-Context Principles from Previous Mistakes

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Sun, Hao, Jiang, Yong, Wang, Bo, Hou, Yingyan, Zhang, Yan, Xie, Pengjun, Huang, Fei
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916039870119936
author Sun, Hao
Jiang, Yong
Wang, Bo
Hou, Yingyan
Zhang, Yan
Xie, Pengjun
Huang, Fei
author_facet Sun, Hao
Jiang, Yong
Wang, Bo
Hou, Yingyan
Zhang, Yan
Xie, Pengjun
Huang, Fei
contents In-context learning (ICL) has been instrumental in adapting Large Language Models (LLMs) to downstream tasks using correct input-output examples. Recent advances have attempted to improve model performance through principles derived from mistakes, yet these approaches suffer from lack of customization and inadequate error coverage. To address these limitations, we propose Retrieved In-Context Principles (RICP), a novel teacher-student framework. In RICP, the teacher model analyzes mistakes from the student model to generate reasons and insights for preventing similar mistakes. These mistakes are clustered based on their underlying reasons for developing task-level principles, enhancing the error coverage of principles. During inference, the most relevant mistakes for each question are retrieved to create question-level principles, improving the customization of the provided guidance. RICP is orthogonal to existing prompting methods and does not require intervention from the teacher model during inference. Experimental results across seven reasoning benchmarks reveal that RICP effectively enhances performance when applied to various prompting strategies.
format Preprint
id arxiv_https___arxiv_org_abs_2407_05682
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Retrieved In-Context Principles from Previous Mistakes
Sun, Hao
Jiang, Yong
Wang, Bo
Hou, Yingyan
Zhang, Yan
Xie, Pengjun
Huang, Fei
Computation and Language
In-context learning (ICL) has been instrumental in adapting Large Language Models (LLMs) to downstream tasks using correct input-output examples. Recent advances have attempted to improve model performance through principles derived from mistakes, yet these approaches suffer from lack of customization and inadequate error coverage. To address these limitations, we propose Retrieved In-Context Principles (RICP), a novel teacher-student framework. In RICP, the teacher model analyzes mistakes from the student model to generate reasons and insights for preventing similar mistakes. These mistakes are clustered based on their underlying reasons for developing task-level principles, enhancing the error coverage of principles. During inference, the most relevant mistakes for each question are retrieved to create question-level principles, improving the customization of the provided guidance. RICP is orthogonal to existing prompting methods and does not require intervention from the teacher model during inference. Experimental results across seven reasoning benchmarks reveal that RICP effectively enhances performance when applied to various prompting strategies.
title Retrieved In-Context Principles from Previous Mistakes
topic Computation and Language
url https://arxiv.org/abs/2407.05682