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

SCULPT:长提示的系统化调优

SCULPT: Systematic Tuning of Long Prompts

Microsoft Corporation(微软公司)

Shanu Kumar, Akhila Yesantarao Venkata, Shubhanshu Khandelwal, Bishal Santra, Parag Agrawal, Manish Gupta

AI总结:

SCULPT将长提示优化建模为分层树细化问题,通过Critic-Actor框架进行结构化修改,在保留关键信息的同时提升LLM性能、鲁棒性和可解释性。

摘要:

提示优化对于在各种任务中有效利用大语言模型(LLMs)至关重要。虽然现有的优化方法在优化短提示方面很有效,但它们在处理更长、更复杂的提示时存在困难,往往面临信息丢失的风险,并且对小扰动很敏感。为了解决这些挑战,我们提出了SCULPT(Systematic Tuning of Long Prompts,长提示的系统化调优),这是一个将提示优化视为分层树细化问题的框架。SCULPT将提示表示为树结构,从而能够在保持上下文完整性的同时进行有针对性的修改。它采用Critic-Actor框架,生成反思并应用动作来细化提示。评估结果表明,SCULPT在长提示上具有有效性,对对抗性扰动具有鲁棒性,并且即使没有任何初始人工编写的提示,也能生成高性能的提示。与现有的最先进方法相比,SCULPT通过在应用结构化细化的同时保留关键任务信息,持续提升LLM性能。定性和定量分析均表明,SCULPT能产生更稳定、更可解释的提示修改,从而确保跨任务更好的泛化能力。

英文摘要:

Prompt optimization is essential for effective utilization of large language models (LLMs) across diverse tasks. While existing optimization methods are effective in optimizing short prompts, they struggle with longer, more complex ones, often risking information loss and being sensitive to small perturbations. To address these challenges, we propose SCULPT (Systematic Tuning of Long Prompts), a framework that treats prompt optimization as a hierarchical tree refinement problem. SCULPT represents prompts as tree structures, enabling targeted modifications while preserving contextual integrity. It employs a Critic-Actor framework that generates reflections and applies actions to refine the prompt. Evaluations demonstrate SCULPT's effectiveness on long prompts, its robustness to adversarial perturbations, and its ability to generate high-performing prompts even without any initial human-written prompt. Compared to existing state of the art methods, SCULPT consistently improves LLM performance by preserving essential task information while applying structured refinements. Both qualitative and quantitative analyses show that SCULPT produces more stable and interpretable prompt modifications, ensuring better generalization across tasks.

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

↑