PACE: 基于Actor-Critic编辑的大语言模型提示优化方法
PACE: Improving Prompt with Actor-Critic Editing for Large Language Model
AI总结:
针对人工提示词质量参差、优化成本高的问题,提出基于强化学习actor-critic思想的PACE方法,让LLM兼具演员和评论家角色自动优化提示,在多类任务上大幅提升中低质量提示性能,效果媲美高质量人工提示。
摘要:
大语言模型(LLM)凭借提示词的引导在各类任务中展现出显著潜力,但不同人工撰写的提示词质量差异会导致LLM性能出现大幅波动,且优化提示词通常需要大量人力和专业知识。为此,本文提出面向大语言模型的Prompt with Actor-Critic Editing(PACE,基于演员-评论家编辑的提示优化方法),实现自动提示编辑。受强化学习中actor-critic算法启发,PACE将LLM同时充当演员和评论家双重角色,将提示词概念化为一种策略。PACE结合执行提示的演员反馈与评判响应的评论家反馈来优化提示词,借助LLM的真实响应与思考过程,使提示词更好地适配特定任务。我们在24个指令归纳任务和21个big-bench任务上开展了大量实验。结果表明,PACE可将中等/低质量人工提示词的相对性能提升最高98%,性能与高质量人工提示词相当。此外,PACE在提示生成方面也表现出显著效果。
英文摘要:
Large language models (LLMs) have showcased remarkable potential across various tasks by conditioning on prompts. However, the quality of different human-written prompts leads to substantial discrepancies in LLMs' performance, and improving prompts usually necessitates considerable human effort and expertise. To this end, this paper proposes Prompt with Actor-Critic Editing (PACE) for LLMs to enable automatic prompt editing. Drawing inspiration from the actor-critic algorithm in reinforcement learning, PACE leverages LLMs as the dual roles of actors and critics, conceptualizing prompt as a type of policy. PACE refines prompt, taking into account the feedback from both actors performing prompt and critics criticizing response. This process helps LLMs better align prompt to a specific task, thanks to real responses and thinking from LLMs. We conduct extensive experiments on 24 instruction induction tasks and 21 big-bench tasks. Experimental results indicate that PACE elevates the relative performance of medium/low-quality human-written prompts by up to 98\%, which has comparable performance to high-quality human-written prompts. Moreover, PACE also exhibits notable efficacy for prompt generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。