# SePO: Self-Evolving Prompt Agent for System Prompt Optimization

*Wangcheng Tao, Han Wu, Weng-Fai Wong*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151189) · [OpenReview](https://openreview.net/forum?id=cJX1IpMwgF) · [alphaXiv](https://www.alphaxiv.org/abs/2606.04465) · [Open on the map](../papers.html#p151189)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Tool-Integrated Reasoning](../pgroup/257.md) · Type: new method · Keywords: prompt optimization, self-evolving agent, evolutionary search, system prompts, cross-task generalization

Areas: [LLM Reasoning](../areas/reasoning.md) › Reasoning Strategies › Self-Evolution and Improvement; [Code & Coding Agents](../areas/codegen.md) › Code Generation and Optimization › Evolutionary Search and Self-Evolution; [AI Agents](../areas/agents.md) › Agentic Decision Making › Evolutionary Search; [RL for LLMs & Agents](../areas/llm-rl.md) › Language Model Agents › Credit Assignment for Reasoning

## Summary
SePO introduces a self-evolving prompt agent that simultaneously optimizes task agents' system prompts and its own through an evolutionary search, achieving higher accuracy across multiple benchmarks.

## Explained to a 5-year-old
A little helper called an agent follows instructions called prompts. Right now, the helper's own instructions are fixed. This new idea lets the helper also learn better instructions for itself and for other helpers using a game of trying many ideas and keeping the best ones. It first learns from many different tasks, then gets better on a new task. Because of this, the helpers do better at solving puzzles, math problems, and other challenges.

## Explained to a 5-year-old, longer
Imagine you have a robot friend that does things like answer questions or solve puzzles. To make it work well, you give it a set of instructions, which we call prompts. Usually, you write these prompts by hand and they never change. The new idea is to let the robot also learn how to write better prompts for itself and for other robot friends. It does this by playing a game where it tries many different prompts, keeps the good ones, and discards the bad ones, like a treasure hunt for the best instructions. This game is called an evolutionary search because it gradually improves over time. The robot first practices on many different kinds of tasks, like math problems, reasoning puzzles, science questions, coding exercises, and Sudoku. After learning a lot, it gets fine-tuned to do a specific new task even better. Because it has learned from many tasks, it can also help with new problems it hasn't seen before. This makes the robot more useful and reduces the need for people to constantly write new prompts. The result is that the robot friends solve more problems correctly and faster. The improvement is noticeable across all the tasks they try. Overall, this approach makes AI assistants smarter and easier to work with.

## For a technical reader
The system introduces a self-referential prompt agent that learns to improve both its own and other agents' system prompts via an evolutionary search with an archive of candidates. It is trained in two phases: pre-training on a diverse multi-task set and fine-tuning on a target task. Evaluation on five benchmarks shows consistent gains, with a 4.49-point average accuracy lift over a strong baseline, and evidence of cross-task generalization.

## Problem
Existing prompt agents have a fixed, hand-engineered system prompt, limiting their ability to self-improve. Optimizing system prompts for agents while also allowing the prompt agent itself to evolve remains unsolved.

## Method
The approach uses a self-referential design where a single prompt agent refines both task agents' system prompts and its own prompt through an open-ended evolutionary search that maintains an archive of candidate prompts. Training occurs in two stages: pre-training on a multi-task pool and fine-tuning on a target task.

## Results
The approach achieved an average accuracy improvement of 4.49 points over Manual-CoT across the five benchmarks, and the learned optimization skill generalized to unseen tasks.

## Contributions
It introduces a self-evolving prompt agent that optimizes both task and its own system prompts via evolutionary search, and demonstrates strong cross-task generalization from multi-task pre-training.

## Research questions this paper is counted under

- [How can agents recursively self-improve both their behavior and underlying processes without external supervision?](../q/406.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151189)
