AutoHint: Automatic Prompt Optimization with Hint Generation

Hong Sun, Xue Li, Yinchuan Xu, Youkow Homma, Qi Cao +3 more
7/13/2023
cs.CLcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

This paper presents AutoHint, a novel framework for automatic prompt engineering and optimization for Large Language Models (LLM). While LLMs have demonstrated remarkable ability in achieving high-quality annotation in various tasks, the key to applying this ability to specific tasks lies in developing high-quality prompts. Thus we propose a framework to inherit the merits of both in-context learning and zero-shot learning by incorporating enriched instructions derived from input-output demonstrations to optimize original prompt. We refer to the enrichment as the hint and propose a framework to automatically generate the hint from labeled data. More concretely, starting from an initial prompt, our method first instructs a LLM to deduce new hints for selected samples from incorrect predictions, and then summarizes from per-sample hints and adds the results back to the initial prompt to form a new, enriched instruction. The proposed method is evaluated on the BIG-Bench Instruction Induction dataset for both zero-shot and few-short prompts, where experiments demonstrate our method is able to significantly boost accuracy for multiple tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sun2023autohint,
  title  = {AutoHint: Automatic Prompt Optimization with Hint Generation},
  author = {Hong Sun and Xue Li and Yinchuan Xu and Youkow Homma and Qi Cao and Min Wu and Jian Jiao and Denis Charles},
  year   = {2023},
  eprint = {2307.07415},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.07415v2}
}

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/2307.07415.svg)](https://codeofpaper.com/paper/2307.07415)

Discussion