arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.04295cs.CL
收藏

超越提示词内容:通过内容-格式一体化提示词优化提升大语言模型性能

Beyond Prompt Content: Enhancing LLM Performance via Content-Format Integrated Prompt Optimization

Fudan University(复旦大学);Microsoft Research Asia(微软亚洲研究院)

Yuanye Liu, Jiahang Xu, Li Lyna Zhang, Qi Chen, Xuan Feng, Yang Chen, Zhongxin Guo, Yuqing Yang, Peng Cheng

AI总结:

针对现有提示词优化多侧重内容、忽略格式的问题,提出内容-格式一体化提示词优化方法CFPO,通过迭代联合优化内容与格式,在多任务和开源LLM上性能优于仅内容优化方法,且具模型无关性。

摘要:

大语言模型(LLM)已在各类任务中展现出强大能力,其实际应用效果往往由提示词设计驱动。近期研究多聚焦于优化提示词内容,但提示词格式这一关键却常被忽视的维度,尚未得到系统性研究。本文提出内容-格式一体化提示词优化(CFPO)方法,这是一种通过迭代优化过程联合优化提示词内容与格式的创新方法。CFPO利用自然语言变异探索内容变体,并采用动态格式探索策略系统性评估多种格式选项。我们在多个任务和开源LLM上开展了广泛评估,结果表明,与仅优化内容的方法相比,CFPO带来了可量化的性能提升。这凸显了内容-格式一体化优化的重要性,并为提升LLM性能提供了一种实用的、模型无关的方法。代码可在https://github.com/HenryLau7/CFPO获取。

英文摘要:

Large Language Models (LLMs) have shown significant capability across various tasks, with their real-world effectiveness often driven by prompt design. While recent research has focused on optimizing prompt content, the role of prompt formatting, a critical but often overlooked dimension, has received limited systematic investigation. In this paper, we introduce Content-Format Integrated Prompt Optimization (CFPO), an innovative methodology that jointly optimizes both prompt content and formatting through an iterative refinement process. CFPO leverages natural language mutations to explore content variations and employs a dynamic format exploration strategy that systematically evaluates diverse format options. Our extensive evaluations across multiple tasks and open-source LLMs demonstrate that CFPO demonstrates measurable performance improvements compared to content-only optimization methods. This highlights the importance of integrated content-format optimization and offers a practical, model-agnostic approach to enhancing LLM performance. Code is available at https://github.com/HenryLau7/CFPO.

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

↑