Investigating the Effectiveness of Task-Agnostic Prefix Prompt for Instruction Following

Seonghyeon Ye, Hyeonbin Hwang, Sohee Yang, Hyeongu Yun, Yireun Kim +1 more
2/28/2023
cs.CLcs.AI

Official code: seonghyeonye/TAPP (79 stars, MIT, last commit 2024-09-13).

Abstract

In this paper, we present our finding that prepending a Task-Agnostic Prefix Prompt (TAPP) to the input improves the instruction-following ability of various Large Language Models (LLMs) during inference. TAPP is different from canonical prompts for LLMs in that it is a fixed prompt prepended to the beginning of every input regardless of the target task for zero-shot generalization. We observe that both base LLMs (i.e. not fine-tuned to follow instructions) and instruction-tuned models benefit from TAPP, resulting in 34.58% and 12.26% improvement on average, respectively. This implies that the instruction-following ability of LLMs can be improved during inference time with a fixed prompt constructed with simple heuristics. We hypothesize that TAPP assists language models to better estimate the output distribution by focusing more on the instruction of the target task during inference. In other words, such ability does not seem to be sufficiently activated in not only base LLMs but also many instruction-fine-tuned LLMs. All experiments are reproducible from https://github.com/seonghyeonye/TAPP.

View on arXivView PDF

Code Implementations(1)

seonghyeonye/TAPPOfficial100%
MIT

[AAAI 2024] Investigating the Effectiveness of Task-Agnostic Prefix Prompt for Instruction Following

792Shell, PythonFeb 28, 20232 years agoMIT
deep-learninglarge-language-modelsnlpprompt

Similar Papers

Cite this paper

@article{ye2023investigating,
  title  = {Investigating the Effectiveness of Task-Agnostic Prefix Prompt for Instruction Following},
  author = {Seonghyeon Ye and Hyeonbin Hwang and Sohee Yang and Hyeongu Yun and Yireun Kim and Minjoon Seo},
  year   = {2023},
  eprint = {2302.14691},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.14691v2}
}

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

Discussion