The Research Report
Promptolution: A Unified, Modular Framework for Prompt Optimization
Published at EACL 2026 — GitHub: 132 stars and growing
What Is Promptolution?
Promptolution is an open-source framework that brings together multiple discrete prompt optimization algorithms under one roof. It was built for researchers and practitioners who want full control over their experimental setup, not a black-box SaaS product.
The project emerged from a simple problem: prompt optimization research is scattered across dozens of isolated codebases. If you want to compare CAPO against EvoPromptGA, you normally have to wrangle different libraries, different LLM interfaces, and different evaluation pipelines. Promptolution solves that by providing a unified, modular system where you can swap in different optimizers, different models, and different tasks without rewriting boilerplate.
It returns framework-agnostic prompt strings, which means the optimized prompts work anywhere — in your application, in LangChain, in a raw API call, wherever. The framework stays agnostic to your underlying model implementation.
The Problem It Solves
Prompt optimization has become essential for getting the best performance out of large language models. Researchers have published dozens of approaches: evolutionary algorithms, gradient-free optimization, cost-aware methods, multi-objective formulations. But practical adoption has stalled because:
- Codebases rot. Many prompt optimizer implementations are one-off research projects. They break with dependency updates, lack documentation, and never get maintained after the paper is published.
- Integration is painful. Some frameworks require you to build your entire application around their abstractions. That is a heavy price when you just want to test a different optimizer.
- Reproducibility is hard. Without a shared experimental setup, comparing results across papers is nearly impossible. Different random seeds, different evaluation pipelines, different LLM backends all add noise.
Promptolution addresses all three. It is maintained, modular by design, and ships with built-in support for systematic benchmarking and reproducible experiments.
How the Integration Works
Promptolution uses a clean modular architecture with four core components:
Task — Manages your dataset, evaluation metrics, and subsampling. You define what problem you are solving and how to score results.
Predictor — Defines how to extract an answer from the model's raw response. This handles the parsing layer so you can work with any output format.
LLM — A unified interface for inference. It handles token counting, concurrency, and supports API-based models (OpenAI, Anthropic, etc.), local HuggingFace models, and vLLM clusters. Built-in response caching saves costs on repeated runs.
Optimizer — The core component implementing the prompt refinement algorithms. This is where you plug in different strategies.
The modular design means every component has a clear interface. If you want to add a new optimizer, you only need to implement the optimizer interface. The LLM, Task, and Predictor layers stay untouched.
Supported Optimizers
The current release ships with four integrated optimizers:
- CAPO (Cost-Aware Prompt Optimization) — Incorporates cost considerations into the optimization process. Developed by Zehle et al., published at AutoML 2025.
- EvoPromptDE — Differential evolution-based prompt optimization from Guo et al., 2023.
- EvoPromptGA — Genetic algorithm-based variant from the same paper.
- OPRO — Google DeepMind's Optimization by Prompting approach, published at NeurIPS 2023.
A comparison table from the GitHub README:
| Optimizer | Paper | Init Prompts | Exploration | Costs | Parallelizable | Few-shot |
|---|---|---|---|---|---|---|
| CAPO | Zehle et al., 2025 | required | good | $ | yes | yes |
| EvoPromptDE | Guo et al., 2023 | required | good | $$ | yes | no |
| EvoPromptGA | Guo et al., 2023 | required | good | $$ | yes | no |
| OPRO | Yang et al., 2023 | optional | limited | $$ | no | no |
CAPO stands out for supporting few-shot prompting and lower cost. The evolutionary methods (DE and GA) share the same paper origin but offer different search strategies.
Benchmarking and Reproducibility
One of promptolution's key strengths is its benchmarking infrastructure. The framework includes an ExperimentConfig abstraction that streamlines large-scale scientific experiments. You configure your optimizer, task description, prompts, number of optimization steps, model, and API credentials in one object, then call run_experiment().
import pandas as pd
from promptolution.utils import ExperimentConfig
from promptolution.helpers import run_experiment
df = pd.read_csv("your_data.csv")
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)
print(best_prompts)
The framework tracks detailed logs and token usage at every step, enabling granular post-hoc analysis. Built-in response caching prevents redundant API calls during development and tuning. Parallelized inference speeds up large experiment runs.
Getting Started
Install promptolution from PyPI:
pip install promptolution[api]
For local inference, add the relevant extras:
pip install promptolution[transformers] # HuggingFace local models
pip install promptolution[vllm] # vLLM serving clusters
The getting started notebook is available on Google Colab. The full documentation is at automl.github.io/promptolution.
Ecosystem and Extensions
Promptolution has already spawned related work built on top of its framework:
- CANTANTE (2026) — Optimizing agentic systems via contrastive credit attribution. Uses promptolution's infrastructure to explore credit assignment in multi-step agent pipelines.
- MO-CAPO (2026) — Multi-objective cost-aware prompt optimization. Extends CAPO to handle trade-offs between cost and performance simultaneously.
The framework also produced several related publications on long context utilization, calibration of positional encodings, and enterprise tool-calling improvements.
Quick Takeaways
Promptolution is not trying to be an end-to-end LLM application framework. That is a deliberate choice. It focuses specifically on the optimization stage and does that one thing well. By keeping the abstraction clean and the interfaces clear, it plays nicely with whatever pipeline you already have.
The 132 GitHub stars and the EACL 2026 demo paper slot indicate the research community is paying attention. For practitioners, the real value is the ability to run rigorous, reproducible prompt optimization experiments without building the scaffolding from scratch. For researchers, it is a shared baseline for comparing new optimizer ideas against established methods under identical conditions.
If you are working on prompt engineering and want a standardized way to test different optimization strategies, promptolution is worth a look. The code is open source under Apache 2.0, and contributions are welcome.
Links
- GitHub: github.com/automl/promptolution
- PyPI: pypi.org/project/promptolution
- Docs: automl.github.io/promptolution
- Paper: aclanthology.org/2026.eacl-demo.21
- Colab: Getting started notebook
Citation
@inproceedings{zehle2026promptolution,
title={promptolution: A unified, modular framework for prompt optimization},
author={Zehle, Tom and Heiß, Timo and Schlager, Moritz and
Aßenmacher, Matthias and Feurer, Matthias},
booktitle={Proceedings of the 19th Conference of the European Chapter
of the Association for Computational Linguistics (Volume 3:
System Demonstrations)},
pages={282--296},
year={2026}
}