← Back to article

Equation 4 · Shipping an On-Device AI Feature That Actually Works in the Field

What does this equation mean?

E[C]=clocal+(1−p) ccloud.E[C] = c_{\mathrm{local}} + (1-p)\, c_{\mathrm{cloud}}.

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

Inputs and operationsc_local + (1-p) c_cloud
Result or conditionE[C]
How to read the two sides of this formula. Follow the article passage for the meaning of each quantity.

This equation states an equality: the expressions on both sides have the same value under the article’s assumptions. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

EE

Symbol E

E is part of the quantity the equation computes from the expression on the right.

Understand this part →

CC

Symbol C

C is part of the quantity the equation computes from the expression on the right.

Understand this part →

clocalc_{\mathrm{local}}

Symbol c_local

the write.

Understand this part →

pp

Symbol p

p is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

ccloudc_{\mathrm{cloud}}

Symbol c_cloud

ccc_cloud is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

=

=

The expressions on both sides represent the same quantity under the stated assumptions.

Understand this part →

See an illustrated explanation →
addition

addition

Add the term after the plus sign to the term or group before it.

Understand this part →

subscript

subscript

The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.

Understand this part →

How to interpret it

Read it with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

That example is useful precisely because it exposes what a “local-agent-with-fallback” architecture actually costs, which is easy to gloss over in a design review. Escalation is additive, not a substitution: a request that ultimately needs the cloud still pays for the local attempt first. Write clocalc_{\mathrm{local}} for the cost — in latency, energy, or both — of attempting the request locally, ccloudc_{\mathrm{cloud}} for the marginal cost of the network round trip once escalation is triggered, and p for the probability a request is judged solvable without escalating. If the local attempt always runs before the decision to escalate is made, the expected cost per request is E[C]=clocal+(1−p) ccloudE[C] = c_{\mathrm{local}} + (1-p)\, c_{\mathrm{cloud}}. The…
Read the full surrounding passage
That example is useful precisely because it exposes what a “local-agent-with-fallback” architecture actually costs, which is easy to gloss over in a design review. Escalation is additive, not a substitution: a request that ultimately needs the cloud still pays for the local attempt first. Write clocalc_{\mathrm{local}} for the cost — in latency, energy, or both — of attempting the request locally, ccloudc_{\mathrm{cloud}} for the marginal cost of the network round trip once escalation is triggered, and p for the probability a request is judged solvable without escalating. If the local attempt always runs before the decision to escalate is made, the expected cost per request is E[C]=clocal+(1−p) ccloudE[C] = c_{\mathrm{local}} + (1-p)\, c_{\mathrm{cloud}}. The consequence is structural rather than a tuning detail: clocalc_{\mathrm{local}} appears in every request’s cost regardless of p , so a router only pays for itself if the local attempt is cheap relative to what it saves, and a router that is expensive to run locally can lose to simply escalating difficult-looking requests immediately based on a cheap, coarse signal computed before committing to the full local attempt.

Read the equation in its article →

Sources cited in the article section

These citations give research context. Read each source to check which claims it supports.

Return to Shipping an On-Device AI Feature That Actually Works in the Field

See this formula across 1 published context →

Browse the mathematical compendium →