PREFER: Prompt Ensemble Learning via Feedback-Reflect-Refine

Chenrui Zhang, Lin Liu, Jinpeng Wang, Chuyuan Wang, Xiao Sun +2 more
8/23/2023
cs.CLcs.AI

No official code found. Best implementation: zcrwind/PREFER (22 stars, MIT, last commit 2023-12-09).

Abstract

As an effective tool for eliciting the power of Large Language Models (LLMs), prompting has recently demonstrated unprecedented abilities across a variety of complex tasks. To further improve the performance, prompt ensemble has attracted substantial interest for tackling the hallucination and instability of LLMs. However, existing methods usually adopt a two-stage paradigm, which requires a pre-prepared set of prompts with substantial manual effort, and is unable to perform directed optimization for different weak learners. In this paper, we propose a simple, universal, and automatic method named PREFER (Pompt Ensemble learning via Feedback-Reflect-Refine) to address the stated limitations. Specifically, given the fact that weak learners are supposed to focus on hard examples during boosting, PREFER builds a feedback mechanism for reflecting on the inadequacies of existing weak learners. Based on this, the LLM is required to automatically synthesize new prompts for iterative refinement. Moreover, to enhance stability of the prompt effect evaluation, we propose a novel prompt bagging method involving forward and backward thinking, which is superior to majority voting and is beneficial for both feedback and weight calculation in boosting. Extensive experiments demonstrate that our PREFER achieves state-of-the-art performance in multiple types of tasks by a significant margin. We have made our code publicly available.

View on arXivView PDF

Code Implementations(1)

zcrwind/PREFERCommunity100%
MIT
222PythonAug 23, 20232 years agoMIT

Similar Papers

Cite this paper

@article{zhang2023prefer,
  title  = {PREFER: Prompt Ensemble Learning via Feedback-Reflect-Refine},
  author = {Chenrui Zhang and Lin Liu and Jinpeng Wang and Chuyuan Wang and Xiao Sun and Hongyu Wang and Mingchen Cai},
  year   = {2023},
  eprint = {2308.12033},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.12033v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.12033.svg)](https://codeofpaper.com/paper/2308.12033)

Discussion