Self-Supervised Prompt Optimization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xiang, Jinyu, Zhang, Jiayi, Yu, Zhaoyang, Liang, Xinbing, Teng, Fengwei, Tu, Jinhao, Ren, Fashen, Tang, Xiangru, Hong, Sirui, Wu, Chenglin, Luo, Yuyu
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916910368555008
author Xiang, Jinyu
Zhang, Jiayi
Yu, Zhaoyang
Liang, Xinbing
Teng, Fengwei
Tu, Jinhao
Ren, Fashen
Tang, Xiangru
Hong, Sirui
Wu, Chenglin
Luo, Yuyu
author_facet Xiang, Jinyu
Zhang, Jiayi
Yu, Zhaoyang
Liang, Xinbing
Teng, Fengwei
Tu, Jinhao
Ren, Fashen
Tang, Xiangru
Hong, Sirui
Wu, Chenglin
Luo, Yuyu
contents Well-designed prompts are crucial for enhancing Large language models' (LLMs) reasoning capabilities while aligning their outputs with task requirements across diverse domains. However, manually designed prompts require expertise and iterative experimentation. While existing prompt optimization methods aim to automate this process, they rely heavily on external references such as ground truth or by humans, limiting their applicability in real-world scenarios where such data is unavailable or costly to obtain. To address this, we propose Self-Supervised Prompt Optimization (SPO), a cost-efficient framework that discovers effective prompts for both closed and open-ended tasks without requiring external reference. Motivated by the observations that prompt quality manifests directly in LLM outputs and LLMs can effectively assess adherence to task requirements, we derive evaluation and optimization signals purely from output comparisons. Specifically, SPO selects superior prompts through pairwise output comparisons evaluated by an LLM evaluator, followed by an LLM optimizer that aligns outputs with task requirements. Extensive experiments demonstrate that SPO outperforms state-of-the-art prompt optimization methods, achieving comparable or superior results with significantly lower costs (e.g., 1.1% to 5.6% of existing methods) and fewer samples (e.g., three samples). The code is available at https://github.com/FoundationAgents/SPO.
format Preprint
id arxiv_https___arxiv_org_abs_2502_06855
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Self-Supervised Prompt Optimization
Xiang, Jinyu
Zhang, Jiayi
Yu, Zhaoyang
Liang, Xinbing
Teng, Fengwei
Tu, Jinhao
Ren, Fashen
Tang, Xiangru
Hong, Sirui
Wu, Chenglin
Luo, Yuyu
Computation and Language
Artificial Intelligence
Machine Learning
Well-designed prompts are crucial for enhancing Large language models' (LLMs) reasoning capabilities while aligning their outputs with task requirements across diverse domains. However, manually designed prompts require expertise and iterative experimentation. While existing prompt optimization methods aim to automate this process, they rely heavily on external references such as ground truth or by humans, limiting their applicability in real-world scenarios where such data is unavailable or costly to obtain. To address this, we propose Self-Supervised Prompt Optimization (SPO), a cost-efficient framework that discovers effective prompts for both closed and open-ended tasks without requiring external reference. Motivated by the observations that prompt quality manifests directly in LLM outputs and LLMs can effectively assess adherence to task requirements, we derive evaluation and optimization signals purely from output comparisons. Specifically, SPO selects superior prompts through pairwise output comparisons evaluated by an LLM evaluator, followed by an LLM optimizer that aligns outputs with task requirements. Extensive experiments demonstrate that SPO outperforms state-of-the-art prompt optimization methods, achieving comparable or superior results with significantly lower costs (e.g., 1.1% to 5.6% of existing methods) and fewer samples (e.g., three samples). The code is available at https://github.com/FoundationAgents/SPO.
title Self-Supervised Prompt Optimization
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.06855