Routing, Fallbacks, and Graceful Degradation › The Economic and Reliability Case for Routing

Michael BrenndoerferDecember 2, 20262 min read
Language AI HandbookAll chapters
Part 64 of 67Compound AI System Design
Chapter 486Routing, Fallbacks, and Graceful Degradation › The Economic and Reliability Case for Routing
Reading section 2 of 10 · The Economic and Reliability Case for Routing · 2 minSection 2 of 10 · 2 min

Section 2 of 10 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Query routing chooses a first tier using information known before generation, such as the intent or whether the model supports the required context length. A cascade escalates after examining a candidate. FrugalGPT is an example of an LLM cascade. Here every eligible, available tier is tried in a fixed order until one passes an acceptance gate.

A route is an application policy written around a service contract. A request for the shipping schedule can go to a small model if that model accurately recognizes the narrow task. An order-status request might need a model capable of combining structured order data with a short explanation. In either case the workload determines whether a second tier is useful. Compare costs after defining which information the caller is permitted to send to each tier.

Model Cascades

One common policy starts with the least expensive candidate generator and gives it the opportunity to answer. If the result passes the gate, the expensive generator does no work. If the result fails, the next generator receives the request. The gate controls whether you pay for one tier, several, or every tier. An invalid output that requires a more expensive second call incurs both costs.

Model cost and correctness vary by request. A cascade can save inference cost when enough requests pass an inexpensive tier. Even when it saves cost in aggregate, an individual request that escalates through several sequential calls waits for those calls in sequence.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy