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

通过脚本生成增强面向任务的提示

Task-oriented Prompt Enhancement via Script Generation

York University(约克大学)

Chung-Yu Wang, Alireza DaghighFarsoodeh, Hung Viet Pham

AI总结:

本文提出TITAN策略,通过后退提示和思维链提示提取任务规范与步骤,结合零样本学习生成并执行脚本,无需人工干预即在多项任务上显著提升了LLMs的表现。

摘要:

大型语言模型(LLMs)利用先进的推理能力,在各种任务中展现出了卓越的能力。然而,由于缺乏对任务答案的特定先验知识,它们在处理面向任务的提示时仍然存在困难。当前最先进的方法PAL利用代码生成来解决这一问题。但是,PAL依赖于手动制作的提示模板和示例,同时仍然会产生不准确的结果。在本研究中,我们提出了TITAN——一种旨在增强LLMs在面向任务提示上表现的新策略。TITAN通过使用通用方法和零样本学习生成脚本来实现这一目标。与现有方法不同,TITAN消除了对详细任务特定指令和大量人工操作的需求。TITAN通过在一个简化的流程中利用LLMs的分析和代码生成能力,提升了其在各种任务上的表现。TITAN采用了两项关键技术:(1)后退提示以提取任务的输入规范,以及(2)思维链提示以识别所需的程序步骤。这些信息被用于改进LLMs的代码生成过程。TITAN通过后处理进一步优化生成的脚本,并执行该脚本以获取最终答案。我们的综合评估表明,TITAN在多种任务中均表现出有效性。平均而言,在与GPT-3.5和GPT-4配合使用时,TITAN分别比最先进的零样本方法高出7.6%和3.9%。总体而言,在无需人工标注的情况下,TITAN在11个案例中的8个达到了最先进的性能,仅在3次以微弱劣势落后于需要人工干预的少样本方法。这项工作代表了在处理面向任务提示方面的重大进展,为在日常生活中有效利用LLMs提供了一种新颖的解决方案。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable abilities across various tasks, leveraging advanced reasoning. Yet, they struggle with task-oriented prompts due to a lack of specific prior knowledge of the task answers. The current state-of-the-art approach, PAL, utilizes code generation to address this issue. However, PAL depends on manually crafted prompt templates and examples while still producing inaccurate results. In this work, we present TITAN-a novel strategy designed to enhance LLMs' performance on task-oriented prompts. TITAN achieves this by generating scripts using a universal approach and zero-shot learning. Unlike existing methods, TITAN eliminates the need for detailed task-specific instructions and extensive manual efforts. TITAN enhances LLMs' performance on various tasks by utilizing their analytical and code-generation capabilities in a streamlined process. TITAN employs two key techniques: (1) step-back prompting to extract the task's input specifications and (2) chain-of-thought prompting to identify required procedural steps. This information is used to improve the LLMs' code-generation process. TITAN further refines the generated script through post-processing and the script is executed to retrieve the final answer. Our comprehensive evaluation demonstrates TITAN's effectiveness in a diverse set of tasks. On average, TITAN outperforms the state-of-the-art zero-shot approach by 7.6% and 3.9% when paired with GPT-3.5 and GPT-4. Overall, without human annotation, TITAN achieves state-of-the-art performance in 8 out of 11 cases while only marginally losing to few-shot approaches (which needed human intervention) on three occasions by small margins. This work represents a significant advancement in addressing task-oriented prompts, offering a novel solution for effectively utilizing LLMs in everyday life tasks.

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

↑