# Ewolucyjne ulepszanie poleceń dla modeli językowych

EN: **Evolutionary prompt optimisation** · id `evoprompt` · aliases: evolutionary prompt optimization, reflective prompt evolution, prompt evolution, ewolucyjna optymalizacja promptów, ewolucja promptów

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Obliczenia ewolucyjne i inteligencja roju](https://aiatlasgraph.com/t/evolutionary.md) › [Ewolucja z modelami językowymi](https://aiatlasgraph.com/t/llmevolution.md) › Ewolucyjne ulepszanie poleceń dla modeli językowych

## Description

- PL: Optymalizacja tekstu promptów algorytmem ewolucyjnym, w którym model językowy wykonuje mutacje i krzyżowanie, a selekcja opiera się na wyniku na zbiorze walidacyjnym.
- EN: Optimising prompt text with an evolutionary algorithm where a language model performs mutation and crossover and selection uses validation scores.

## In one sentence

- PL: Program hoduje kolejne wersje polecenia dla modelu językowego, sprawdza je na przykładach i rozwija te, które dają najlepsze odpowiedzi.
- EN: Software breeds new versions of an instruction for a language model, tests them on examples and develops those that get the best answers.

## Problem it solves

- PL: Dopracowywanie poleceń dla modelu metodą prób i błędów trwa godzinami, a drobna zmiana słów potrafi mocno zmienić wyniki.
- EN: Polishing instructions for a model by trial and error takes hours, and a small wording change can swing results a lot.

## What it does

- PL: Sam model pełni rolę hodowcy: miesza dwa dobre polecenia, przeredagowuje je albo czyta zapis błędów i pisze poprawioną wersję.
- EN: The model itself acts as the breeder: it mixes two good instructions, rewrites them, or reads an error log and writes a fixed version.

## Everyday example

- PL: Sklep internetowy używa asystenta do klasyfikowania reklamacji; nocny proces próbuje dziesiątek wersji instrukcji i rano wdraża tę, która myli się najrzadziej.
- EN: An online shop uses an assistant to sort complaints; an overnight job tries dozens of instruction versions and deploys the one that errs least.

## This concerns you if you…

- PL: piszesz polecenia dla modelu i chcesz je mierzalnie poprawić
- PL: masz kilkadziesiąt przykładów z dobrą odpowiedzią
- EN: write model instructions and want measurable gains
- EN: have a few dozen examples with correct answers

## Keywords

EvoPrompt · Promptbreeder · GEPA · DSPy · MIPROv2 · OPRO · reflective mutation · Pareto selection

## How it works

- PL: Populacja promptów jest oceniana na zbiorze przykładów. Model generuje potomków przez operatory w stylu algorytmu genetycznego lub ewolucji różnicowej, a niektóre metody ewoluują też same polecenia mutujące. Mutacja refleksyjna analizuje ślady wykonania i informację zwrotną oceniającego, a selekcja paretowska zachowuje kandydatów najlepszych choć na jednym przykładzie.
- EN: A population of prompts is scored on an example set. The model generates offspring with genetic-algorithm or differential-evolution style operators, and some methods also evolve the mutation instructions themselves. Reflective mutation reads execution traces and evaluator feedback, and Pareto selection keeps candidates best on at least one example.

## Limits

- PL: Wymaga zbioru przykładów z wiarygodną oceną i wielu wywołań modelu. Polecenie może przeuczyć się do małego zbioru, a zysk często nie przenosi się na inny model ani na zmienione dane.
- EN: It needs an example set with reliable scoring and many model calls. A prompt can overfit a small set, and gains often do not carry over to another model or shifted data.

## Key terms

- PL: **mutacja refleksyjna**: Model czyta zapis porażki i na tej podstawie poprawia polecenie.
- PL: **prompt mutujący**: Instrukcja mówiąca modelowi, jak zmienić inne polecenie.
- PL: **zbiór walidacyjny**: Przykłady z odpowiedziami, na których mierzy się jakość polecenia.
- EN: **reflective mutation**: The model reads a failure trace and improves the instruction from it.
- EN: **mutation prompt**: An instruction telling the model how to change another prompt.
- EN: **validation set**: Examples with answers used to measure prompt quality.

## Know first

- [Programowa optymalizacja promptów (Programmatic prompt optimisation)](https://aiatlasgraph.com/t/promptopt.md)

## Sources

- [GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning](<https://arxiv.org/abs/2507.19457>) `gepa-2025` · by Lakshya A. Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumb Shandilya, Michael J. Ryan, Meng Jiang, Christopher Potts, Koushik Sen, Alexandros G. Dimakis, Ion Stoica, Dan Klein, Matei Zaharia, Omar Khattab
- [Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution](<https://arxiv.org/abs/2309.16797>) `promptbreeder-2023` · by Chrisantha Fernando, Dylan Banarse, Henryk Michalewski, Simon Osindero, Tim Rocktäschel

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/evoprompt · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
