ESSAYS · · 4 MIN READ AI Self-Evolution

AI Self-Evolution 07: How AI Can Improve Its Own Prompts

Textual feedback, prompt candidates, and testing offer a route to improve behavior without changing the model’s weights.

Zuliang Zhao
AI Self-Evolution 07: How AI Can Improve Its Own Prompts

Earlier in the series we looked at how AI improves its model: generate training examples, evaluate answers, learn from feedback, and update the parameters. Now I want to look at the equipment around the model. The survey calls it the scaffold: instructions, memory, tools, and the architecture that runs a task. Each is something an AI system might change about how it works.1

Start with prompts. I haven’t written a formal prompt in a long time. Usually I just give the model a job. Some of the techniques felt familiar when I read about them, and others were new to me.

Try versions and see which works

Suppose I want a model to read project announcements and tell me whether construction has started. The first instruction says just that. A second tells it to distinguish plans from events that have happened. A third tells it to find the supporting language first and treat “proposed start” as a plan.

Which is better? Try them on 100 announcements. Say they get 68, 79, and 88 right. Save the instructions and scores and ask the model for another version to test. That’s scalar feedback optimization. We use a single number such as accuracy to compare each attempt. OPRO uses the idea to generate new candidates from a history of proposed solutions and their scores.2

Write the lesson into the next instruction

An announcement says construction is planned for later this year. The AI calls it underway. Telling it that it got this wrong leaves it to guess why. Give a critic the announcement, the instruction, and the answer, and it can offer a better diagnosis. The instruction didn’t ask it to distinguish a plan from a fact. The model saw a word about starting and treated the word as evidence of a start.

The next instruction can say that “proposed,” “planned,” and “expected” starts do not count as completed events, require a quotation from the source, and allow an inconclusive answer. This is the role of a textual gradient. A gradient in mathematics gives a direction for changing numbers. Here, a criticism gives the model a direction for editing words. The analogy makes no promise of mathematical convergence.3

The error may have come from somewhere upstream. A report might go from reading an announcement to a summary to a finished analysis. If the summary dropped “planned,” the advice needs to reach the summarizer. An instruction to the writer to “be more rigorous” won’t put the word back. TextGrad extends the propagation of feedback across components of a system.4

Keep versions that know different things

Maintain a population of different prompts. One is good at finding the right passage but confuses plans with facts. Another separates the two but treats the start of the first phase as the opening of the whole project. A third notices phases. A lower total score can still hide a useful ability.

GEPA combines this sort of search with language-based reflection: inspect how the job ran, learn from successes and failures, modify prompts, and try to combine complementary strengths.5 Adding a rule about plans is like mutation. Combining how two prompts handle tense and phases illustrates crossover. An error can now teach a particular lesson as well as reduce a score. The hope is to get more information out of every evaluation.

More experience can lead to forgetting

Suppose the system learns that signing isn’t breaking ground, a planned start is still a plan, and opening phase one doesn’t mean the whole project is operating. After each batch we ask the model to rewrite the full set of accumulated instructions. With little context to spare, it compresses them. “Distinguish planned and completed work, and check phases” becomes “identify progress accurately” and finally “be rigorous.” All of those formulations sound reasonable. None can recover the original lesson on the next announcement.

ACE calls the loss of specific knowledge through whole-context rewriting context collapse. It uses structured entries and incremental updates to add a lesson where it belongs and prune redundancies. A shorter prompt can contain less of what your system has learned.6

Reading these methods made me think of Tang Jie’s comment in January that the problems of the chat generation were largely solved.7 Models still make mistakes and there’s no shortage of work on their answers. But there is now a set of methods for making answers better. It’s natural that what we ask of the next generation is whether it can get a job done.

Footnotes

  1. Zhe Ren et al., “Self-Improvements in Modern Agentic Systems: A Survey”, sections 6 and 6.1. ↩

  2. Chengrun Yang et al., “Large Language Models as Optimizers”, sections 1–2. The announcement exercise and its example scores are illustrative. ↩

  3. Reid Pryzant et al., “Automatic Prompt Optimization with ‘Gradient Descent’ and Beam Search”. ↩

  4. Mert Yuksekgonul et al., “TextGrad: Automatic ‘Differentiation’ via Text”, sections 1–2. ↩

  5. Lakshya A. Agrawal et al., “GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning”, version 2, February 14, 2026. Combining prompts is optional and sometimes produces worse results in the reported settings. ↩

  6. Qizheng Zhang et al., “Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models”, sections 2.2 and 3. ↩

  7. Tang Jie, AGI-Next Summit remarks of January 10, 2026, as transcribed by QbitAI and republished by Sina Finance. The link to these prompt-optimization methods is my own reading. ↩