Lesson 4 of 4 Model Routing and Cascading

Designing Model Cascades and Tiered Usage

This lesson describes how cascading tries a cheap model first and escalates only when needed, and how tiered usage assigns models by query complexity or business value, keeping routine work cheap while protecting quality.

Learning outcomes

After completing this lesson, you will be able to:

  • Design escalation signals for a cascade.
  • Choose models up front with tiered usage.
  • Set cost-quality thresholds from evaluation data.

How cascading works

In a cascade, every request goes first to a small, fast model. The response is checked with an escalation signal: the model's own indication that it cannot answer, a self-reported confidence, a failed validation (invalid JSON, missing fields, a grounding check below threshold), a low judge score or a classifier that flags the request as complex. If the signal fires, the request is retried on a larger model, possibly with the small model's attempt as context. Most requests stop at the first tier.

Cascading adds latency to escalated requests, which pay for two calls. It works best when most traffic is simple and the escalation signal is reliable. A cascade behind one API is transparent to clients, and metrics track the escalation rate and quality per tier.

Tiered usage by complexity and value

Tiered usage chooses the model before the first attempt, instead of trying a small model first and escalating as cascading does. Simple queries, such as greetings, frequently asked questions and short lookups, go to a small model or are answered from a cache. Standard queries go to a mid-sized model. Complex or high-value queries, such as those from enterprise customers or about legal matters, go to the largest model.

The tier is set by a classifier, by rules, or by business attributes such as the customer's subscription plan. Tiering avoids cascading's double model call for requests that end up needing the larger model, which saves latency, but it depends on predicting each request's complexity correctly; a request placed in too low a tier receives a weaker answer with no second chance.

The following diagram compares cascading with tiered usage.

Cascading compared with tiered usage. A cascade tries a small model first and escalates only when an escalation signal fires. Tiered usage chooses the model before the first attempt, by classifier, rules or customer value, sending simple queries to a small model or cache and complex or high-value queries to the largest model.
The two approaches can be combined, for example a cascade inside each tier.
Sort into groups

Assign the tier

Exam skills 2.4.4 · 4.1.2

A support assistant uses tiered usage. Assign each request to its tier before the first model call.

Log in to try this activity Interactive activities are free with an account.

Designing cost-quality trade-offs

Routing and cascading thresholds should be set from data rather than intuition. A representative evaluation set is run through each tier, and quality and cost are measured for each. The team then chooses the thresholds, such as the confidence score below which a cascade escalates or the complexity score that selects each tier, that keep overall quality at the target with the lowest average cost per request.

The design is revisited whenever model prices or capabilities change, because a new small model may handle requests that previously needed a larger one, or a price change may alter which option is cheapest. The following table compares the approaches.

ApproachDecision pointTrade-off
CascadeAfter the small model answersReliable quality; escalated requests pay twice
Tiered by complexityBefore calling any modelOne call; depends on complexity prediction
Tiered by business valueCustomer or request attributesSimple; may overspend on easy premium requests
Intelligent Prompt RoutingPredicted quality per requestManaged; limited to one model family
Fill in the number

Cost of a cascade

Exam skills 4.1.2 · 2.4.4

Work out what a cascade costs compared with sending everything to the large model.

Log in to try this activity Interactive activities are free with an account.
Worked example

Extraction with validation

An extraction service processes millions of invoices a month. A small model extracts fields correctly 94% of the time; its failures are mostly detectable as schema validation errors or totals that do not add up.

A cascade runs the small model first, validates the output with a JSON Schema and an arithmetic check, and escalates only failures to a larger model. Overall accuracy matches the large model at a fraction of the cost, because only about 6% of invoices escalate.

Check yourself

How does tiered usage differ from cascading?

Show answer

Tiered usage chooses the model up front from complexity or value; cascading starts small and escalates when a signal shows the answer is inadequate.

Exam Tips

Remember for the exam

  • Cascade: small model first, escalate on a reliable signal.
  • Validation failures make good escalation signals.
  • Tiered usage decides the model up front by complexity or value.
  • Tune thresholds with evaluation data for target quality at lowest cost.