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

我们能否在提示中仅使用指南而不用示例?

Can we only use guideline instead of shot in prompt?

Fudan Univeristy(复旦大学);Microsoft Azure AI(微软 Azure 人工智能);Monash university(莫纳什大学)

Jiaxiang Chen, Song Wang, Zhucong Li, Wayne Xiong, Lizhen Qu, Zenglin Xu, Yuan Qi

AI总结:

针对提示中示例方法的设计难题,提出 FGT 框架,通过 Feedback、Guideline 和 Tree-gather 智能体自动学习任务特定指南以替代示例,并引导模型生成与指南一致的推理过程,在多任务上取得优越性能。

摘要:

目前,提示技术主要分为两类:1)示例方法通过模仿给定示例中的步骤来隐式启发模型回答问题,例如 few-shot CoT。2)指南方法通过遵循包含简明任务特定知识的指南来显式指导模型推理。示例方法在示例类型选择、示例数量和推理步骤设计方面容易遇到困难,因此产生了一个问题:我们能否在提示中仅使用指南而不用示例?为此,我们提出了 FGT 框架,从数据集中自动学习任务特定指南,该框架由 Feedback、Guideline 和 Tree-gather 智能体组成。首先,反馈智能体被设计用于评估每次问答的正确和错误结果,以收集指导更有效优化策略的见解。接下来,指南智能体的任务是从每条反馈中推导指南并将其存储在本地内存中。最后,树聚合智能体通过树结构分层聚合所有指南,最终从全局视角获得所有不重复的指南。此外,我们引导模型生成中间过程,以确保推理与指南一致。实验结果表明,我们的方法在多个任务上取得了优越的性能,从而突显了在提示中使用指南的有效性。

英文摘要:

Currently, prompting techniques can be mainly divided into two categories:1)shot method implicitly inspires the model to answer the question by mimicing the steps in the given example, e.g., the few-shot CoT. 2) Guideline method explicitly instructs the model to reason by following guidelines, which contains succinct and concise task-specific knowledge. Shot method is prone to difficulties in terms of selection of shots type, the number of shots, and the design of the reasoning steps, so a question arises: can we only use guideline instead of shot in the prompt? To this end, we propose the FGT framework to automatically learn task-specific guidelines from dataset consisting of Feedback, Guideline, and Tree-gather agents. First, the feedback agent is designed to evaluate the outcomes, both right and wrong, of each Q&A to gather insights guiding more effective optimization strategies. Next, the guideline agent is tasked with deriving guidelines from each piece of feedback and storing them in local memory. Lastly, the tree-gather agent aggregates all guidelines hierarchically through a tree structure, ultimately obtaining all unduplicated guidelines from a global perspective. In addition, we induce the model to generate intermediate processes to ensure the reasoning consistent with the guidelines. Experimental results demonstrate that our approach achieves superior performance across multiple tasks, thereby highlighting the effectiveness of using the guidelines in prompt.

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

↑