arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.14919cs.CL
收藏

面向对话模型的节俭提示(Frugal Prompting)方法

Frugal Prompting for Dialog Models

IIT Kharagpur(印度理工学院卡哈拉格普尔分校);Microsoft(微软)

Bishal Santra, Sakya Basak, Abhinandan De, Manish Gupta, Pawan Goyal

AI总结:

本研究围绕大语言模型构建对话系统的提示方法展开,通过实验优化对话历史表示与提示结构,提出紧凑的节俭提示方案,在保障性能的同时降低推理API成本,助力LLM在交互式系统中的高效应用。

摘要:

大语言模型(LLM)在自然语言处理(NLP)任务中的应用正在快速增长,推动了该领域研究者解决问题方式的转变。为充分利用这些模型的能力,需要更深入地理解它们在不同输入协议下的行为。借助LLM,用户可通过文本界面直接与模型交互,定义并解决各类任务,因此,探究这些可能未专门针对对话建模训练的LLM的会话能力也十分重要。本研究从提示的多个维度出发,检验了使用LLM构建对话系统的不同方法。作为提示调优的一部分,我们对提供指令、示例、当前查询及额外上下文的多种方式开展了实验,还分析了具备最优可用信息密度的对话历史表示形式。基于研究结果,本文提出了更紧凑的对话历史信息提供方式,既能保证良好性能,又能降低模型的推理API成本。该研究有助于更好地理解如何有效利用LLM构建交互式系统。

英文摘要:

The use of large language models (LLMs) in natural language processing (NLP) tasks is rapidly increasing, leading to changes in how researchers approach problems in the field. To fully utilize these models' abilities, a better understanding of their behavior for different input protocols is required. With LLMs, users can directly interact with the models through a text-based interface to define and solve various tasks. Hence, understanding the conversational abilities of these LLMs, which may not have been specifically trained for dialog modeling, is also important. This study examines different approaches for building dialog systems using LLMs by considering various aspects of the prompt. As part of prompt tuning, we experiment with various ways of providing instructions, exemplars, current query and additional context. The research also analyzes the representations of dialog history that have the optimal usable-information density. Based on the findings, the paper suggests more compact ways of providing dialog history information while ensuring good performance and reducing model's inference-API costs. The research contributes to a better understanding of how LLMs can be effectively used for building interactive systems.

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

↑