AIToday
Amazon AI BlogPublished: Jul 31, 2026, 01:00 JST6 min read

Amazon Bedrock launches prompt optimizer for multiple models at once

Amazon Bedrock launches prompt optimizer for multiple models at once

Key takeaway

  • Amazon Bedrock now offers Advanced Prompt Optimization, which automatically tunes prompts for up to five models at once using a feedback loop driven by your chosen evaluation metric—eliminating days of manual iteration.

  • The tool provides side-by-side comparisons of quality scores, response latency (time-to-first-token), and inference costs, helping teams migrate to faster or cheaper models with confidence and avoid getting locked into older ones.

3 Key Points

  1. What happened

    Amazon Bedrock introduced Advanced Prompt Optimization, a tool that automatically optimizes prompts for up to 5 models simultaneously and compares their original and optimized performance. The system uses a reinforcement learning-style feedback loop—evaluating responses against a metric, rewriting the prompt, and repeating—without changing model weights. Results include evaluation scores, time-to-first-token (TTFT) per sample, and inference cost estimates at on-demand pricing for each model.

  2. Why it matters

    Manual prompt migration and optimization currently forces teams to spend days to weeks rewriting prompts, running test cases, comparing results, and tweaking iteratively—work that multiplies across every prompt template and model candidate. This bottleneck creates model lock-in (avoiding migration even when newer models are faster and cheaper), underperformance on capable models, regression blindness (shipping degraded outputs unknowingly), and slow iteration cycles. The tool replaces that manual cycle with a guided, metrics-driven workflow in a single job, unblocking faster model migration and optimization decisions.

  3. What to watch

    The tool supports three evaluation modes—AWS Lambda functions (for concrete metrics like accuracy or F1), LLM-as-a-Judge (for open-ended tasks like summarization), and steering criteria (for brand voice, format, or safety constraints)—plus multimodal inputs (PNG, JPG, JPEG, GIF, WebP, PDF via Amazon S3) for document analysis and visual tasks. Jobs can be created and submitted via the Amazon Bedrock console, API, or boto3 SDK. Example runs showed accuracy improving from 0.267 to 0.647 (NESTFUL function-calling task on Amazon Nova 2 Lite) and quality score rising from 0.550 to 0.743 while output tokens dropped from 51 to 28 (XSum summarization on Claude Haiku 4.5).

In Depth

Read the full story

Amazon Bedrock has introduced Advanced Prompt Optimization, a tool designed to address one of the most time-consuming aspects of building generative AI applications: migrating prompts to new models or optimizing them for current ones. The problem is acute: when a new, faster, cheaper, or more capable model becomes available, teams must decide whether to migrate—a decision that is straightforward in theory but rarely in practice. Customers currently spend days to weeks optimizing prompts and re-evaluating responses during migration, going through the same cycle repeatedly: rewrite the prompt, run it against test cases, compare results, tweak, and repeat. This manual work multiplies across every prompt template in production and every model candidate worth evaluating, creating a bottleneck that scales with business ambition.

The consequences are severe. Model lock-in develops when teams avoid migration because the re-tuning effort is too high, even when newer models would reduce latency and inference cost. Underperformance occurs when prompts tuned for one model don't unlock the full capability of another. Regression blindness—the inability to distinguish "different" from "worse"—means teams ship degraded outputs unknowingly. And slow iteration cycles keep engineers stuck in evaluation loops instead of building features, as every prompt change requires manual A/B testing.

Advanced Prompt Optimization works by operating a reinforcement learning-style feedback loop without changing model weights. You provide a prompt template, example user inputs (text or multimodal), optional ground-truth answers, and an evaluation metric. The optimizer sends your template and inputs to your chosen inference models, evaluates responses against your metric, then rewrites the prompt. This loop repeats—evaluate, rewrite, evaluate—iteratively optimizing the prompt against your metric. The output includes the original and optimized prompts, evaluation scores, time-to-first-token (TTFT) per sample, and inference cost estimates at on-demand pricing. A single job can target up to 5 models at once, giving you an optimized prompt for each candidate and a direct comparison of quality, latency, and cost.

The tool supports three evaluation modes, each serving different use cases. AWS Lambda functions are best for concrete metrics like accuracy, F1, ROUGE, or JSON match, requiring you to provide a function with compute_score logic. LLM-as-a-Judge suits open-ended tasks like summarization, reasoning, and generation, where you provide a rubric prompt and select a judge model. Steering criteria work for brand voice, format, and safety constraints, letting you specify up to 5 natural language criteria. If you omit all evaluation fields, the system applies a built-in default combining accuracy, answer completeness, and writing style scoring, though you can create composite metrics with weights for multiple objectives. Advanced Prompt Optimization also supports multimodal inputs—PNG, JPG, JPEG, GIF, WebP, and PDF files referenced through Amazon S3 URIs—enabling optimization for document analysis, image classification, visual question answering, and other tasks combining text with visual input.

Users can interact with the tool via the Amazon Bedrock console, API, or boto3 SDK. The console workflow involves five steps: creating a job, selecting inference models (baseline plus up to 4 candidates), preparing a JSONL input dataset with prompt templates and evaluation samples, uploading the file or importing from S3, and submitting the optimization. Results are displayed in a summary view showing headline before-and-after scores, and a details view showing the original and optimized prompts side by side, per-sample metrics, and full token and latency breakdowns. Example runs demonstrated substantial improvements: a NESTFUL function-calling task on Amazon Nova 2 Lite increased accuracy from 0.267 to 0.647, while an XSum summarization task on Claude Haiku 4.5 improved quality score from 0.550 to 0.743 while output tokens dropped from 51 to 28.

Context & Analysis

Prompt optimization sits at a critical bottleneck in the generative AI development lifecycle. When companies deploy a generative AI application and a faster, cheaper, or more capable model becomes available on Amazon Bedrock, teams face a difficult decision: migrate and retune, or stay locked in to the current model to avoid weeks of manual optimization work. The manual cycle—rewrite prompt, test against cases, compare results, tweak, repeat—compounds across every prompt template in production and every model candidate, creating a problem that scales with business ambition.

Amazon Bedrock Advanced Prompt Optimization breaks this cycle by automating the feedback loop. Rather than heuristic prompt rewrites, the system operates backward from the evaluation metric you define: it sends your prompt template and inputs to your chosen models, evaluates responses against your metric, rewrites the prompt, and repeats. This approach lets teams test up to five models in one job, eliminating days of manual iteration. The tool is model-agnostic and supports three evaluation methods—AWS Lambda functions for concrete metrics, LLM-as-a-Judge for open-ended tasks, and natural language steering criteria—letting teams align optimization with their actual use case. By providing side-by-side comparisons of quality scores, latency, and cost, the tool removes the guesswork from model migration decisions and unblocks faster iteration.

FAQ

What evaluation methods can I use with Advanced Prompt Optimization?
You can choose one of three: an AWS Lambda function (for concrete metrics like accuracy, F1, or ROUGE), an LLM-as-a-Judge with a rubric prompt (for open-ended tasks), or steering criteria (up to 5 natural language criteria for brand voice, format, or safety). If you omit all evaluation fields, the system uses a built-in default combining accuracy, answer completeness, and writing style.
How many models can I compare in a single job?
You can target up to 5 models at once. You can select your current model as a baseline plus up to 4 additional candidates, or optimize only your current model for same-model improvement.
What file format and inputs do I need to submit?
Your input file uses JSONL format (one JSON object per line), with each line containing a prompt template, variable placeholders, evaluation samples with optional ground-truth answers, and your chosen evaluation metric specification. Advanced Prompt Optimization also supports multimodal inputs (PNG, JPG, JPEG, GIF, WebP, PDF) referenced via Amazon S3 URIs for document analysis and visual tasks.
What does the tool output?
For each model, you receive the original and optimized prompts ready to copy and deploy, evaluation scores before and after optimization, time-to-first-token (TTFT) per sample, and inference cost estimates at on-demand pricing—all allowing direct comparison of quality, latency, and cost across candidates.
Amazon AI BlogRead Original Article

Get AI news like this every morning

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytime

Next articleZuckerberg: Banning Chinese AI Won't Help US Lead

The AI news that matters, in one minute each morning.

Sign up free