arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.14691cs.CLcs.AI
收藏

探究任务无关前缀提示对指令跟随的有效性

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

KAIST(韩国科学技术院);UCL(伦敦大学学院);LG AI Research(LG AI 研究院)

Seonghyeon Ye, Hyeonbin Hwang, Sohee Yang, Hyeongu Yun, Yireun Kim, Minjoon Seo

AI总结:

本研究提出任务无关前缀提示(TAPP)作为固定前置提示,显著提升多种大语言模型在推理时的指令跟随能力,平均提升34.58%(基础模型)和12.26%(指令微调模型),并假设其通过增强对指令的关注来改善输出分布估计。

摘要:

在本文中,我们提出了一项发现:在输入前添加任务无关前缀提示(Task-Agnostic Prefix Prompt, TAPP)能够提升多种大型语言模型(LLMs)在推理过程中的指令跟随能力。TAPP与LLMs的典型提示不同,它是一个固定的提示,无论目标任务如何,都会在零样本泛化时被前置到每个输入的开头。我们观察到,基础LLMs(即未经过微调以遵循指令的模型)和经过指令微调的模型均能从TAPP中获益,平均分别提升了34.58%和12.26%。这表明,通过使用简单启发式构造的固定提示,可以在推理时提升LLMs的指令跟随能力。我们假设TAPP通过使语言模型在推理时更加关注目标任务中的指令,从而帮助其更好地估计输出分布。换句话说,这种能力在基础LLMs以及许多经过指令微调的LLMs中似乎未被充分激活。所有实验均可从https://github.com/seonghyeonye/TAPP复现。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑