The Research Report
One Prompt Got 37%. A Tweaked Version Hit 54%. Promptolution Makes That Systematic.
Two prompts. Same task. Same model. Nearly identical words. One hits 37.6% accuracy on GSM8K. The other reaches 53.8%. That 16-point gap comes from phrasing alone. This is the problem promptolution solves.
Prompt optimization has been a mess. Every researcher publishes their optimizer in a separate repo. Each one has different dependencies, different APIs, and different levels of abandonment. Want to compare OPRO against EvoPrompt? You are juggling two codebases with conflicting requirements. Want to try CAPO on top of that? Three repos. None of them maintained.
A team from the ELLIS Institute, LMU Munich, TU Dortmund, and their affiliated research centers just published promptolution, a Python framework that pulls discrete prompt optimization under one roof. It got accepted as a demo paper at EACL 2026 in Rabat. The paper (arXiv:2512.02840) lays out the case clearly, and the code on GitHub has 126 stars and climbing.
What Prompt Optimization Actually Does
Large language models are sensitive to how you phrase instructions. Not a little sensitive. Dramatically sensitive. The choice of words, the order of few-shot examples, and the format of the output all move accuracy by double-digit percentages.
Manual prompt engineering, the art of tweaking words by hand and checking results, is slow and unreliable. Automatic prompt optimization replaces that guesswork with systematic search. The field splits into two approaches. Continuous optimization works on embedding spaces. Discrete optimization works on actual text. Promptolution focuses on the discrete side, where a meta-LLM generates improved prompt candidates and you get interpretable, human-readable prompts back.
The optimizers promptolution implements are:
- CAPO (Cost-Aware Prompt Optimization) — an evolutionary algorithm that uses racing techniques and statistical tests to evaluate candidates efficiently. It jointly optimizes instructions and few-shot examples. CAPO applies crossover and mutation through a meta-LLM, then runs paired t-tests to eliminate weak candidates early. This saves tokens and compute without sacrificing final quality.
- EvoPrompt-GA and EvoPrompt-DE — two variants that apply genetic algorithms and differential evolution to prompt search. The meta-LLM handles crossover and mutation as text operations.
- OPRO — treats the meta-LLM as an optimizer directly. You give it a task description, scored examples, and past candidates. It generates new prompts. Simple but expensive, since every candidate requires full evaluation.
Each optimizer has different tradeoffs. CAPO is cost-efficient and parallelizable. OPRO is not. EvoPrompt-GA and EvoPrompt-DE land in between. The table from the paper makes this clear:
| Optimizer | Init Prompts | Exploration | Cost | Parallelizable | Few-shot |
|---|---|---|---|---|---|
| CAPO | Required | Yes | Low | Yes | Yes |
| EvoPrompt-DE | Required | Yes | Medium | Yes | No |
| EvoPrompt-GA | Required | Yes | Medium | Yes | No |
| OPRO | Optional | No | High | No | No |
Why the Existing Landscape Is Broken
The paper identifies three categories of existing tools, each with a distinct problem.
Single-optimizer libraries like TextGrad, AdalFlow, PromptWizard, and PromptIM implement one method. You cannot swap optimizers. You cannot compare approaches on equal footing. If the one optimizer does not fit your use case, you start over with a different library.
High-abstraction frameworks like DSPy and CoolPrompt wrap prompt optimization inside a larger pipeline. DSPy is the most popular. It treats prompt optimization as part of a "program compilation" step. You write a declarative pipeline, and DSPy compiles it, optimizing prompts along the way. This is powerful for end-to-end applications but limits your control over the optimization itself. You cannot easily inspect intermediate results, set budget-aware stopping, or run ablation studies.
Closed-source tools like Google Vertex AI Prompt Optimizer, AWS Bedrock Prompt Engineering Playground, and Anthropic's Claude Prompt Tools lock you into a vendor. No extensibility. No reproducibility across platforms.
The siloed research repos are the worst offender. Each optimizer ships as standalone code with hard-coded setups, no tests, and no documentation. By the time a paper is published, the repo is often already stale.
Where Promptolution Fits
Promptolution sits in a specific niche: it does one thing and does it well. It optimizes prompts. It does not build pipelines. It does not compile programs. It does not manage agents. You give it a dataset, a task description, and some initial prompts. It runs an optimizer. It returns optimized prompt strings. You take those strings and put them anywhere.
The paper's comparison table tells the story:
| Framework | Multiple Optimizers | Extensible | Low Abstraction | Non-Invasive Integration |
|---|---|---|---|---|
| promptolution | Yes | Yes | Yes | Yes |
| DSPy | Yes | Yes | No | No |
| CoolPrompt | Yes | Partial | No | Yes |
| TextGrad | No | No | Yes | No |
| AdalFlow | No | No | Yes | No |
| PromptWizard | No | No | Yes | Yes |
Promptolution is the only framework that checks all four boxes. Multiple optimizers you can swap with one line of configuration. Extensible architecture where you can plug in custom tasks, LLMs, and optimizers. Low abstraction level that gives you direct control over the optimization loop. Non-invasive integration that returns plain text strings instead of locking you into a framework.
How It Differs from DSPy
DSPy is the elephant in the room. It has the largest community, the most integrations, and the most GitHub stars. But DSPy and promptolution solve different problems.
DSPy is a pipeline framework. You define modules, signatures, and teleprompters. DSPy compiles your program. Prompt optimization happens inside that compilation. You do not see the intermediate steps. You do not control the budget at a granular level. And the optimized prompts live inside DSPy's abstraction layer. Extracting them for use in another framework requires refactoring.
Promptolution takes the opposite approach. It exposes the full optimization loop. You see every candidate. You control every step. You set the evaluation strategy, the statistical tests, and the stopping criteria. When it finishes, you get a string. That string goes into any LLM call, any framework, any pipeline. No lock-in.
For researchers running ablation studies and benchmark comparisons, this matters. You need to swap optimizers while holding everything else constant. You need to log token counts. You need reproducible experiments. DSPy is not built for that workflow.
How It Differs from TextGrad
TextGrad takes a gradient-based approach to prompt optimization. It treats language as a computational graph and computes "textual gradients" to update prompts. It is a single-method library. If you want to compare TextGrad against an evolutionary approach, you need a separate codebase.
Promptolution is built for comparison. You change one argument and rerun. Same task object, same predictor, same LLM backend, different optimizer. The comparison is fair because everything else is identical.
TextGrad also requires invasive integration. You work within its abstraction. Promptolution returns a string. You paste that string into your existing system.
The Architecture
Promptolution has five core components:
- Task — Manages the dataset, evaluation metrics, subsampling, and block-based evaluation strategies. You bring your own data in a simple DataFrame with columns named
xandy. - Predictor — Defines how to extract answers from the model's response. This handles parsing, so you can match different output formats.
- LLM — A unified interface for inference. Supports OpenAI-compatible APIs, local models via HuggingFace Transformers, and vLLM clusters for high-throughput serving. Built-in response caching saves money on repeated evaluations. Parallelized inference speeds up runs.
- Optimizer — The algorithm that refines prompts. CAPO, EvoPrompt, and OPRO are implemented. You can subclass
BaseOptimizerfor your own method. - ExperimentConfig — A configuration object that parametrizes everything. Optimizer choice, LLM selection, number of steps, subsampling size, API URLs, and token budgets all go here.
The simplest workflow looks like this:
import pandas as pd
from promptolution.utils import ExperimentConfig
from promptolution.helpers import run_experiment
df = pd.read_csv("hf://datasets/tasksource/subjectivity/train.csv").sample(500)
df = df.rename(columns={"Sentence": "x", "Label": "y"})
task_description = (
"Classify each sentence as either subjective or objective. "
"The class between <final_answer></final_answer> tags is the prediction."
)
config = ExperimentConfig(
optimizer="capo",
task_description=task_description,
prompts=["Classify the text as objective or subjective."],
n_steps=10,
api_url="https://api.deepinfra.com/v1/openai",
model_id="meta-llama/Meta-Llama-3-8B-Instruct",
api_key="YOUR_API_KEY",
n_subsamples=30,
)
prompts = run_experiment(df, config)
You swap "capo" for "opro" or "evoprompt_ga" and rerun. Same data, same model, different optimizer. That is the entire point.
The AutoML Connection
The team behind promptolution comes from the AutoML community. Matthias Feurer co-authored the AutoML textbook. CAPO itself borrows techniques from AutoML: racing algorithms (f-successive halving), multi-fidelity evaluation, and statistical model selection. These ideas translate naturally to prompt optimization, where evaluating every candidate on the full dataset is expensive. Racing lets you eliminate weak prompts early based on partial evaluations, then spend your compute budget on the most promising candidates.
This is a meaningful theoretical contribution, not just engineering. Most prompt optimizers evaluate all candidates on all data. CAPO's racing approach uses paired t-tests to determine whether one prompt is statistically better than another on a data subset. If the difference is significant early, the weaker candidate gets dropped. This cuts token usage without reducing final accuracy.
Practical Setup
Installation is straightforward:
# For API-based models (OpenAI, DeepInfra, Anthropic)
pip install promptolution[api]
# For local inference
pip install promptolution[vllm,transformers]
# From source
git clone https://github.com/automl/promptolution.git
cd promptolution
poetry install
The framework requires Python 3.10 or later. It runs on any OpenAI-compatible API. Local inference uses vLLM for throughput or HuggingFace Transformers for flexibility.
A Google Colab notebook is available for quick experimentation without local setup. The documentation site covers the full API, including advanced features like custom callbacks, logging, and experiment configuration.
The v2.2.2 release (the latest as of this writing) includes all four optimizers, block-based evaluation strategies, response caching, and detailed token tracking. The project follows a clean contributor workflow: feature branches, CI checks, pre-commit hooks, and test coverage requirements.
When to Use Promptolution
The paper is honest about use cases and anti-use cases.
Use promptolution when:
- You want to compare prompt optimizers on equal footing
- You need fine-grained control over the optimization loop
- You are running reproducible experiments for research
- You want optimized prompt strings you can use anywhere
- You are building a multi-agent system and need task-specific prompts for each agent
Do not use promptolution when:
- You need an end-to-end LLM pipeline framework (use DSPy)
- You want continuous prompt optimization on embedding spaces (not what this does)
- You need gradient-based optimization through model internals (use TextGrad)
- You want a zero-configuration "one button" solution (use CoolPrompt)
The Bigger Picture
The prompt optimization field is consolidating. Two years ago, every new optimizer came with its own repo and its own assumptions about how LLMs are called. Researchers could not compare results without rewriting code. Practitioners could not adopt methods without fitting their workflow into someone else's architecture.
Promptolution is part of a broader shift. Just as AutoML frameworks like Auto-sklearn and FLAML standardized hyperparameter search, promptolution aims to standardize prompt search. One API. Multiple methods. Reproducible experiments. Framework-agnostic outputs.
The EACL 2026 demo acceptance validates the approach. The 126 GitHub stars suggest the community is paying attention. The Apache 2.0 license means no barriers to adoption.
If you are still writing prompts by hand, you are leaving performance on the table. If you are optimizing prompts with a single-method library, you cannot tell whether a different approach would do better. Promptolution gives you the tools to find out.
Suggested Title
One Prompt Got 37%. A Tweaked Version Hit 54%. Promptolution Makes That Systematic.
Alternative: Promptolution: The Framework That Turns Prompt Tweaking Into Science
Citations
- Zehle, T., Heiß, T., Schlager, M., Aßenmacher, M., & Feurer, M. (2026). Promptolution: A Unified, Modular Framework for Prompt Optimization. Proceedings of EACL 2026 (System Demonstrations), pages 282-296, Rabat, Morocco. ACL Anthology: https://aclanthology.org/2026.eacl-demo.21/
- ArXiv preprint: https://arxiv.org/abs/2512.02840
- GitHub repository: https://github.com/automl/promptolution (126 stars, Apache 2.0)
- Documentation: https://automl.github.io/promptolution/
- CAPO paper: Zehle, T., Schlager, M., Heiß, T., & Feurer, M. (2025). Cost-Aware Prompt Optimization. https://openreview.net/forum?id=UweaRrg9D0
- EvoPrompt: Guo, Q., et al. (2024). Connecting Large Language Models with Evolutionary Algorithms Yields Powerful Optimizers. https://openreview.net/forum?id=ZG3RaNIsO8
- OPRO: Yang, C., et al. (2024). Large Language Models as Optimizers. https://openreview.net/forum?id=Bb4VGOWELI
- DSPy: Khattab, O., et al. (2024). DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines.
- TextGrad: Yuksekgonul, M., et al. (2024). TextGrad: Automatic "Differentiation" via Text.
- GSM8K dataset: Cobbe, K., et al. (2021). Training Verifiers to Solve Math Word Problems.
Word Count
2,150 words (body text)
Fact-Check Notes
- GSM8K accuracy numbers (37.6% vs 53.8%) — Directly from Table 1 of the EACL 2026 paper. Verified from arXiv:2512.02840v2.
- 126 GitHub stars — Confirmed from GitHub as of early May 2026. This number changes over time.
- EACL 2026 demo acceptance — Confirmed via ACL Anthology entry (2026.eacl-demo.21) and DOI 10.18653/v1/2026.eacl-demo.21.
- Authors and affiliations — Verified from the paper. Tom Zehle (ELLIS Institute, Uni Freiburg), Timo Heiß (LMU Munich, MCML), Moritz Schlager (MCML, TUM), Matthias Aßenmacher (LMU Munich, MCML), Matthias Feurer (TU Dortmund, Lamarr Institute).
- Framework comparison table — Paraphrased from Table 2 in the paper. The original paper uses checkmarks and crosses; I translated them to Yes/No for readability. CoolPrompt's "Extensible" rating is "(✓)" in the original, which I rendered as "Partial."
- Optimizer comparison table — From the GitHub README. Verified against the paper's optimizer descriptions.
- DSPy comparison claims — Directly from Section 2 of the paper. The claim that DSPy "only integrates with LLM applications in the DSPy framework" may be slightly overstated; DSPy has improved its integration story. Worth noting if strict accuracy is needed.
- TextGrad "single optimizer" claim — Confirmed from Table 2 in the paper. TextGrad implements only its own gradient-based method.
- v2.2.2 as latest release — This is based on the GitHub releases page. Verify before publication.
- Python 3.10+ requirement — From the GitHub badge. Verify exact minimum version before publishing.
- CAPO racing technique description — Synthesized from the paper's description and the API documentation for the
CAPOclass. The statistical test defaults to paired t-test with alpha=0.2.