Skip to content

Buyer Guides

Bedrock's Prompt Shortening Changes the Return Contract

Bedrock's October 20 update can return the original prompt. Read the score condition and template-token ratio before treating shortening as savings.

Leviathan SystemsPublished 2026-10-215 min read

Amazon Bedrock's October 20, 2026 prompt-shortening release adds a second condition to Advanced Prompt Optimization: a replacement must be shorter and score at least as highly as the original on the chosen evaluation. Otherwise, the service returns the original. For buyers, the result now needs two readings: which prompt came back, and which token population the compression figure describes. A shorter template alone cannot establish lower total spending or preserved production quality.

AWS's announcement makes shortening optional; availability follows the Regions where Advanced Prompt Optimization is offered. The option is off by default and selected per template. A purchase that requires a particular size reduction needs evidence of that reduction in the returned result, rather than confirmation that shortening was requested. [1, 2]

The original can be the correct returned result

With shortening disabled, optimization pursues evaluation score without a length constraint. With it enabled, a longer, better-scoring candidate cannot qualify. Neither can a shorter candidate with a worse score. The comparison is against the original, so a promising rewrite encountered during optimization is different from the prompt ultimately delivered. [1, 2]

Consider APO-20, an original fictional comparison. The original template contains 1,000 tokens and has an invented evaluation score of 80. A candidate contains 700 tokens. Scores below are hypothetical comparison units, not Bedrock's native scoring scale, percentages of correct answers or measured model results. Keep the target model, samples and evaluator fixed across each comparison.

If that 700-token candidate scores 81, it passes both conditions and is returned. A score of 80 would also meet the score condition: improvement is not required. If it instead scores 79, the original 1,000-token template is returned. The buyer receives no template reduction in that variant, even though a shorter candidate existed.

Now change the candidate to 1,100 tokens with a score of 85 against the original 80. The original still comes back: the higher score cannot compensate for failing the length condition. These variants explain the return rule; they do not predict which candidate a real run will produce.

For shortening-enabled results, a compressionRatio of 1.0 identifies the original being returned. Treat it as an outcome to interpret, rather than silently recording the attempted rewrite as a saving. [2]

The compression figure counts the whole template

The Bedrock shortening guide defines compressionRatio as optimizedTokenCount divided by originalTokenCount. These are whole-template counts before variable substitution. Selective-optimization tag markers are excluded, while protected text still belongs to the template being counted. These three fields appear only when shortening is enabled. [2]

A large protected section still contributes to the denominator. The reduction describes the complete returned template. Shortening applies to eligible sections, with no exact token target or separate shortening switch for each section. [2]

APO-20: 30% less template becomes 7.5% less input

Return to the successful 700-token APO-20 candidate. For this arithmetic only, stipulate one tokenizer and additive template-plus-variable accounting: template tokens and substituted variable tokens add without boundary retokenization or other input overhead. Both versions receive the same 3,000 variable tokens. These assumptions define a teaching calculation, not a measurement of a real rendered prompt.

The template ratio is 700 / 1,000 = 0.7. The template reduction is (1,000 - 700) / 1,000 = 30%. The original rendered input is 1,000 + 3,000 = 4,000 tokens; the candidate's is 700 + 3,000 = 3,700. Its rendered-input reduction is therefore 300 / 4,000 = 7.5%.

Both percentages are correct because they answer different questions. A proposal describing this stipulated request as using 30% fewer input tokens would have applied the template percentage to the wrong denominator. A proposal describing a 30% template reduction and a 7.5% rendered-input reduction would preserve the distinction.

More generally, under these same additive assumptions, rendered-input reduction equals template reduction multiplied by the template's share of the original input. Here that share is 1,000 / 4,000 = 25%, so 30% × 25% = 7.5%. Variable-heavy requests dilute the percentage effect without changing the 300-token saving in this example.

For an actual proposal, request counts for the fully rendered inputs using the identified model and tokenization path. The chat-template and tokenizer guide explains the separate question of what formatting and final encoding deliver to the model. APO-20's stipulated addition cannot replace that evidence.

Input savings, response length and the total bill need different evidence

Suppose, additionally, that all input tokens in APO-20 are charged at one unchanged rate. The input charge for the constructed request would fall by 7.5%. That conditional result says nothing about the output charge or the full comparison period. Changing the price basis would require a new calculation.

Prompt shortening targets template length; response length is a separate outcome. [2] A buyer comparing total cost should ask for the applicable input and output meters, the observed request mix, and any optimization or other charges included in the offer. Connect those quantities to the same period and useful completed tasks. The template ratio supplies neither a monetary amount nor a latency percentage.

If the proposal also includes caching, use the prompt-prefix and semantic answer-cache guide to identify what is reused and how it is accounted for. Rewriting a template establishes neither a prefix-cache hit nor reuse of an earlier answer. Savings from those paths need their own evidence.

A score that passes selection still needs held-out validation

AWS's results guide describes per-model results and normalized evaluation scores. Keep each comparison attached to its target model, metric and evaluated samples. An aggregate score should be read with the underlying cases when the buyer's requirement depends on a particular exception. [3]

The evaluation-method guide explains that the chosen evaluation steers optimization and separately calls for testing on data the optimizer has not seen. The default evaluation combines accuracy, completeness and expression quality. Its preference for concise responses is distinct from the shortening setting's template-length requirement. [4]

For example, suppose a fictional support template must distinguish ordinary returns from one product's exception. An improved average across mostly ordinary questions would leave a buyer wanting evidence about the exception. Ask the evaluation owner to identify its coverage during selection and its treatment in held-out cases.

A score that meets the return condition supports the comparison performed during optimization. Evidence about new cases answers the later question of whether the returned wording remains useful beyond that selection process. If related records could cross the boundary, the group-overlap and leakage guide addresses the separate issue of what was actually withheld.

Buy evidence for the returned prompt

A useful proposal identifies the original and returned templates, whether shortening was enabled, the target model, the template counts and the score comparison. For a savings claim, add the actual rendered-input counts and applicable cost basis. For a quality claim, add the relevant case results and held-out evidence. Each item closes a specific gap that a lone compression percentage leaves open.

Where the requirement is retention of exact wording, decide whether rewriting is permissible before treating a favorable score as acceptance. The prompt-truncation and context-coverage guide addresses that original-input requirement. This release supplies a rule for returning a candidate; it does not redefine the buyer's information-retention requirement.

If a separate equipment decision calls for receiving, rack integration, onsite installation or IT cabling, Leviathan's Complete Physical Deployment service and project inquiry provide the route to discuss that physical scope. Prompt evaluation, application changes and cloud operation remain with the appointed software and platform teams.

Contact

Discuss Your Infrastructure Project

Tell us about your project, and our team will follow up to discuss the scope, requirements and availability.