Two nearly identical prompts for the same math task. One scores 37.6% accuracy. The other scores 53.8%. The only difference is a handful of words.

That gap is why prompt optimization exists. It is also why the field has been a mess.

Every major optimizer. OPRO, EvoPrompt, CAPO. Each one lives in its own GitHub repo. Each one has its own setup, its own assumptions, its own way of talking to LLMs. Trying to compare them means maintaining three experimental setups that do not talk to each other. That is the problem Promptolution solves.

What Promptolution Is

Promptolution is a unified, modular Python framework for discrete prompt optimization. It dropped at EACL 2026 as a demo paper from researchers at LMU Munich, TU Dortmund, the ELLIS Institute, and the University of Freiburg. The repo has 132 stars on GitHub and counts CANTANTE, MO-CAPO, and the original CAPO paper among its lineage.

The goal is straightforward. Take every major discrete prompt optimizer, put them under one roof, and let you swap between them like swapping out a database driver.

Existing implementations are buried in research code that no one maintains. The authors of the paper put it plainly. These repos lack proper tests, documentation, and robustness. They were written to prove a point in a paper, not to ship tooling that teams actually use.

What It Unifies

Promptolution ships with three discrete prompt optimizers built in.

OPRO uses an LLM as the optimizer itself. You feed it a task description, examples, and the best-performing prompts it has seen so far. The meta-LLM proposes new candidates. Rinse. Repeat. It works. It also costs money on every iteration because the meta-LLM calls do not come free.

EvoPrompt takes an evolutionary approach. There are two variants. One uses a genetic algorithm. The other uses differential evolution. In both cases, the meta-LLM performs crossover and mutation on prompt candidates. You generate a population, score them, breed the best ones, and keep iterating.

CAPO is the newest arrival. It also uses a genetic algorithm but borrows AutoML techniques to cut cost. CAPO jointly optimizes both the instruction text and the few-shot examples. That is the key difference. Most optimizers tune the instruction only. CAPO treats the full prompt as one searchable artifact. The paper shows it outperforming OPRO and EvoPrompt on several benchmarks.

The table in the paper tells you what matters for your setup. CAPO requires an initial prompt. EvoPrompt requires one. OPRO does not but costs more per step. CAPO and EvoPrompt run in parallel. OPRO does not. CAPO supports few-shot. EvoPrompt does not. If you need to optimize examples too, CAPO is your only option among the three.

The Four Components

The framework is built from four swappable parts. Each one has a base class. Each one can be extended or replaced.

Task manages the dataset, evaluation metrics, and subsampling. You plug in your data. Promptolution handles the splitting and the scoring.

Predictor defines how to extract an answer from the model response. This matters more than it sounds. A model might output a correct answer buried in a paragraph. The predictor is what decides what counts.

LLM is the inference interface. Promptolution connects to API-based models, local HuggingFace models, and vLLM clusters through a unified interface. Token counting and concurrency are handled here.

Optimizer is the core algorithm. This is where OPRO, EvoPrompt, and CAPO live. You pick one. The framework handles the rest.

The authors call this a low-abstraction design. That is a deliberate choice. Researchers want to see inside the process. Practitioners want hooks for logging, callbacks, and mid-run inspection.

How Benchmarking Works

The authors ran systematic comparisons across all implemented optimizers on GSM8K, LogiQA, and BIG-Bench Hard tasks using Llama-3.3-70B.

The typical flow looks like this. You provide a development set. You optionally provide few-shot examples. You set a task description and a token budget. The chosen optimizer runs for a fixed number of steps. It evaluates candidate prompts against the dev set at each iteration. It refines the prompt using the meta-LLM. You get back a list of the best prompts found.

What comes out is not a compiled artifact locked into a framework. It is a plain text string. You copy it. You paste it into your existing pipeline. Promptolution does not care what you built your application around. The output is framework-agnostic.

That is the key distinction from DSPy. DSPy compiles prompts and traces into a declarative program. You need DSPy to run DSPy-optimized prompts. Promptolution gives you text. You decide what to do with it.

The Benchmark Comparison Table

The paper publishes a comparison across seven axes for each existing tool. Promptolution scores checks across the board.

Multiple optimizers. Extensible. Low abstraction. Non-invasive integration.

DSPy has multiple optimizers. It is extensible. But it is high abstraction and invasive to integrate. You refactor your app or you do not use it.

TextGrad, AdalFlow, PromptWizard, and PromptIM each implement a single optimizer. They are low abstraction and non-invasive. But one optimizer limits your options when you need to compare methods.

Prompt-ops implements two optimizers. It is low abstraction and non-invasive. But it is built for Llama models specifically.

Promptolution sits in a cell that no other tool occupies. Multiple optimizers and low abstraction and non-invasive integration.

Why It Matters

Prompt engineering is still largely hand-tuning. A developer writes a prompt. They test it. They tweak it. They test it again. The process is manual, slow, and hard to reproduce.

Automated prompt optimization has existed for years. It works. The problem is trust and overhead. You have to believe in the optimizer enough to invest time setting up its environment. Most developers do not. They try one run and move on.

Promptolution brings the tooling to where practitioners already live. Python. Pip install. ExperimentConfig. run_experiment. A DataFrame in. A list of optimized prompts out.

The focus on reproducibility matters here. The framework logs everything. Token usage. Intermediate candidates. Step-by-step scores. If you want to write a paper or write a report, the data is there.

What You Can Do With It Today

Install it with a pip command. Point it at a CSV with input and output columns. Configure the optimizer, the model, the task description, and the step count. Run it.

from promptolution.utils import ExperimentConfig
from promptolution.helpers import run_experiment

config = ExperimentConfig(
    optimizer="capo",
    task_description="Classify each sentence as subjective or objective.",
    prompts=["Classify the text as objective or subjective."],
    n_steps=10,
    api_url="https://api.openai.com/v1",
    model_id="gpt-4o-mini",
    api_key="YOUR_API_KEY",
)

best_prompts = run_experiment(df, config)

This is the getting-started example from the docs. It works. CAPO is the default for a reason. It is cost-efficient and handles both instructions and few-shot examples.

You can also run local models.

pip install promptolution[api]
pip install promptolution[transformers]
pip install promptolution[vllm]

The vLLM path matters for teams running inference on their own hardware. You plug in the same ExperimentConfig but with a local endpoint instead of an API URL.

What Promptolution Does Not Do

It does not run your agent. It does not build your RAG pipeline. It does not manage your context window.

Promptolution is a point solution for one part of the stack. You bring the data. You bring the model. You bring the pipeline. Promptolution finds the best instruction and examples for your specific task.

That is a feature, not a limitation. It means Promptolution slots in next to whatever you already built. You do not have to rewrite your application to use it.

The Larger Signal

The field is consolidating around the uncomfortable truth that hand-tuned prompts are an artifact. Systematic optimization works. The question has never been whether. It is always been whether you can afford to set it up.

Promptolution lowers the cost of entry. One repo. Multiple optimizers. Reproducible benchmarks. Framework-agnostic output.

The real value of the paper is the comparison table. Every practitioner asking which optimizer to try should read it twice. CAPO requires init prompts. OPRO does not. EvoPrompt is parallelizable. OPRO is not. CAPO handles few-shot. EvoPrompt does not.

These are not abstract differences. They determine whether your experiment finishes in your budget or burns through your API quota before converging.

Where to Start

The GitHub repo is at github.com/automl/promptolution. The docs are at automl.github.io/promptolution. A getting-started notebook runs on Google Colab.

Cite it if you build on it.

@inproceedings{zehle2026prompt,
  title={promptolution: A unified, modular framework for prompt optimization},
  author={Zehle, Tom and Heiß, Timo and others},
  booktitle={EACL 2026},
  pages={282-296},
  year={2026}
}

Bottom Line

Prompt engineering tools keep silos for the same reason research code keeps silos. Prompts are treated as magic. The right words matter enormously. But the process of finding them has been treated as one-off work instead of engineering.

Promptolution treats it as engineering. Low-level. Swappable. Reproducible.

For practitioners, that means you can stop hand-tuning and start systematizing. For researchers, that means you can stop rebuilding the same infrastructure for every paper.

The prompt sensitivity on GSM8K (37.6% vs 53.8%) is not a fluke. It is the baseline problem. Promptolution is one answer to it.