TensorX
返回文献探索

Paper · arXiv 2502.04295

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

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

13 upvotesFebruary 6, 2025arXiv 预印本
AI 摘要

CFPO, an integrated optimization method for both content and formatting of prompts, enhances LLM performance across tasks.

Large Language Modelsprompt optimizationcontent-format integrated optimizationnatural language mutationsdynamic format exploration

Abstract

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 will be available at https://github.com/HenryLau7/CFPO.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Beyond Prompt Content: Enhancing LLM Performance via Content-Format Integrated Prompt Optimization | TensorX