The Research Report
Amazon Built a Prompt Optimizer That Fixes What Is Already Good
Most automated prompt optimizers work on starter prompts. They take a few vague lines and turn them into something usable. Amazon took a different path. Promptimus targets prompts that are already well-engineered, the kind that took weeks of domain expertise to craft, and makes them better without breaking what works.
This distinction matters because enterprise prompts are not simple questions. They encode business logic, regulatory requirements, and domain expertise. A healthcare prompt must comply with HIPAA. A financial trading prompt must follow risk tolerance rules. These prompts evolve over weeks or months. No one wants an optimizer that strips away carefully constructed compliance clauses just to squeeze out a few more points.
How Promptimus Works
Promptimus runs a four-step loop driven by actual performance metrics, not guesswork.
First, it evaluates the existing prompt on a development set of 20 to 50 samples. A metric-analyzer agent decomposes the user-defined scoring function into checkpoint functions. These checkpoints isolate exactly where failures happen. For example, they might reveal that 98 percent of outputs have the correct JSON format, 95 percent have valid schemas, but only 88 percent have valid values. This narrows the problem to value validation, not formatting.
Second, a feedback generator diagnoses failure patterns using those checkpoints. It identifies the bottleneck checkpoint, collects representative failing and passing examples for contrast, and proposes actionable fixes. The feedback is specific, not vague. Instead of "be more creative," it says something like "model outputs descriptive text instead of enum codes, add an explicit constraint."
Third, the system generates improved candidates. In standard mode, a metaoptimizer produces task-specific strategies and full prompt rewrites. In edit mode, it generates targeted find-and-replace edits that pin changes to exact locations responsible for specific failures. Edit mode is the standout feature. For prompts with 50,000 to 100,000 tokens, a typical iteration produces three to five edits totaling 500 to 1,000 tokens instead of regenerating the entire prompt.
Fourth, each candidate runs through the dev set, and the best performer becomes the starting point for the next iteration. The loop repeats for a user-specified number of iterations, usually eight or fewer, with most gains concentrated in the first three to five.
Edit mode applies edits deterministically with a 97.3 percent success rate and zero LLM calls. It uses three match levels: exact match, whitespace-normalized fuzzy match, and similarity match near line reference.
The Numbers
Amazon tested Promptimus against six leading automatic prompt optimization methods across 20 public benchmarks. The tasks spanned reasoning, math, question answering, text-to-SQL, coding, function calling, instruction following, and multimodal work. All methods used the same optimizer model and evaluation budgets, with Claude Sonnet 4.6 as the target model, averaged over five random seeds.
Promptimus achieved the best result on 16 of 20 benchmarks and tied on one. Its average score was 0.792 versus 0.765 for the best baseline.
The biggest gains appeared on tasks with decomposable metrics. On BBH-GeoShapes, it jumped from 0.747 to 0.936. On BBH-DisambigQA, it reached 0.908 against a baseline of 0.868. On the multimodal MathVista benchmark, edit mode pushed accuracy from 0.433 to 0.644, suggesting that vision-language prompts benefit from preserving existing structure rather than rewriting it.
Edit mode also converges faster. It reaches 90 percent of its final development score in a median of about 300 metric calls. Both modes typically plateau within eight iterations. Dev-set gains transfer to held-out test sets, unlike some baselines that overfit to the dev set.
Amazon also evaluated Promptimus across proprietary and open-source models on nine enterprise tasks. Gains ranged from 3.18 percent to 90.27 percent. One complex API call generation task improved from 0.45 to 0.86 accuracy on GPT-OSS-120B. A multimodal construction defect classification task improved from 0.438 to 0.812 on Qwen3-VL-235B.
Why This Approach Is Different
Random exploration strategies fail on well-crafted prompts because the remaining improvements lie in very specific strategic directions. Generic prompts like "be more creative" or "add examples" are ineffective when the prompt already contains domain-specific constraints and compliance rules.
Promptimus uses metric checkpoints to pinpoint failures surgically. It also preserves what works. Edit mode makes targeted modifications instead of full rewrites, which is critical for prompts containing structured content like API schemas, compliance rules, or domain taxonomies. A full rewrite might silently drop a carefully crafted section. Edit mode fixes exactly what is broken.
The system is also model-agnostic. It can take a prompt optimized for one model and reoptimize it for another. This addresses a real enterprise pain point. As new models ship from Anthropic, OpenAI, Google, Meta, and others, teams face recurring prompt migration challenges. Prompts optimized for one model often underperform on another due to different instruction-following characteristics. Manual reoptimization is costly and time-consuming.
Availability
Amazon shipped Promptimus in two forms. The research is documented in an Amazon Science blog post published in May 2026. The production tool, Amazon Bedrock Advanced Prompt Optimization, launched on May 14, 2026. The Bedrock tool lets users optimize prompts for any model on the platform while comparing original and optimized versions across up to five models simultaneously. It supports multimodal inputs including PNG, JPG, and PDF for document and image analysis tasks. Users can provide an AWS Lambda function, an LLM-as-a-judge rubric, or a short natural language description to guide optimization.
The Bottom Line
Prompt engineering is entering a phase where the easy wins are gone. Starter prompts have been solved. The frontier is optimizing prompts that already encode real business logic and domain expertise. Amazon's approach, with its surgical edit mode and metric-driven diagnosis, is a practical response to that shift. It treats prompts as engineered artifacts that deserve precision, not guesswork.
The 0.792 versus 0.765 average might look modest, but the real story is the 16 of 20 benchmark wins and the preservation of existing prompt structure. For teams sitting on prompts that took months to build, that matters more than any headline number.
Suggested title: Amazon's Promptimus Fixes Good Prompts Without Breaking Them
Word count: ~950
Fact-check notes:
- All benchmark numbers verified against the Amazon Science blog post: https://www.amazon.science/blog/promptimus-improving-already-good-llm-prompts-with-zero-manual-engineering
- Amazon Bedrock Advanced Prompt Optimization release date verified against AWS News Blog: https://aws.amazon.com/blogs/aws/amazon-bedrock-introduces-new-advanced-prompt-optimization-and-migration-tool/
- 16 of 20 benchmarks best result confirmed from table in Amazon Science blog.
- Average 0.792 vs 0.765 baseline confirmed from same source.
- Edit mode 90% of final score in ~300 metric calls confirmed from convergence figure description.
- Enterprise task gains (3.18% to 90.27%) confirmed from second table in blog post.