Hybrid Edge-Cloud Inference › The three control decisions, kept separate

Michael BrenndoerferDecember 1, 20263 min read
Language AI HandbookAll chapters
Part 43 of 67Small and On-Device Language Models
Chapter 330Hybrid Edge-Cloud Inference › The three control decisions, kept separate
Reading section 3 of 13 · The three control decisions, kept separate · 3 minSection 3 of 13 · 3 min

Section 3 of 13 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

The most common design error is to blur routing, partitioning, and fallback into one tangled "if the model is unsure, call the cloud" rule. That makes the system hard to reason about, test, or measure. When the three mechanisms are fused, a bug in any one of them looks like a quality problem, and you cannot tell which component to fix. Keep them as three distinct mechanisms with clear interfaces, each with its own inputs, outputs, and evaluation.

Term: Routing (per-request dispatch)

Choosing a single execution site for an entire request before generation begins. The request is fully served by either the edge model or the cloud model. Routing does not split a request across both.

Term: Partitioning (split execution)

Dividing one inference pass across edge and cloud. Examples: early transformer layers on device and later layers remotely; edge drafts tokens and cloud verifies them; edge handles retrieval or prefill while cloud handles decode. The output is produced by a joint computation, not one site alone.

Term: Fallback (degraded operation)

The predetermined behavior when a primary path is unavailable or fails: network down, cloud timeout or error, device thermal throttling, quota exhausted. Fallback is about resilience, not optimization; it must be deterministic and tested.

Why separate them? Because they have different failure modes, different measurement, and different privacy implications.

MechanismDecision granularityPrimary goalPrivacy exposureWhen it fails
Routingwhole requestcost/quality tradeoffsends the approved model inputmisclassification
Partitioningper layer / per tokenlatency + qualitysends activations or draftcoordination + network fragility
Fallbackon error conditionavailabilitydepends on the fallback targetuntested path returns wrong output

When the router chooses the cloud, the application sends the approved input. A layer split instead sends the hidden activation at the split boundary. That can still disclose information about the original text. If a stream falls back to a different model after output has started, specify whether it restarts or continues and how the already displayed prefix is handled.

Routing decisions can be logged and tested per request under the applicable data policy. Partitioning adds distributed state and timing, so test prefix and cache consistency. Test fallback with deliberately injected faults as well as recorded failures.

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