When Not to Run AI in the Browser

When Not to Run AI in the Browser

The case against client-side inference, stated as clearly as the case for it — task shapes, device inequality, and the costs a demo does not show.

Client-side inference is an earned optimization, not a default architecture or an ideology — it belongs on features where frequency, latency, privacy, and offline actually matter and the evaluation evidence actually passes. This article states the case against as clearly as the rest of this topic states the case for, because the demo that impressed everyone in the room is not the same thing as a task fit.

Task shapes that do not belong on the client

Mirroring this topic's sweet-spot profile in reverse produces a concrete anti-profile. Long-context synthesis does not belong on the client because of the memory arithmetic this topic's loading and memory coverage already worked out — the KV-cache grows with context length, and WebLLM's own prebuilt model configurations set the context window at 4,096 tokens or fewer (as of November 2026). Quality-critical generation runs into the small-model ceiling this topic's evaluation coverage names directly. Multi-step reasoning and tool use plausibly hit a capability limit, not just a memory one — a working hypothesis, not a documented rule. And any task where a wrong answer costs more than the round-trip to a server would have cost does not belong on a client model just because it technically fits.

There is a trap worth naming before anything else: a small model producing fluent, confident output on a demo prompt is not evidence of task fit. Fluency can mask the failure modes this topic's evaluation coverage names — instruction drift, hallucination under narrowness, format breakage — and a demo can overstate how competent a small model is on the messier inputs it will see in production.

The mechanism behind this is worth understanding rather than just accepting as a rule of thumb. A demo prompt is, almost by construction, the kind of input the person building the demo expected the model to handle well — a clean, well-formed example chosen precisely because it works. Production traffic is not curated that way. It arrives with typos, unusual phrasing, edge-case lengths, and inputs the model's training data underrepresented, and a model's confident, fluent tone is not evidence that the content of its answer is correct on that harder distribution. A working hypothesis, not a documented rule, is that this gap between confidence and correctness is wider for a small model than for a frontier one.

The model sizes that run practically in a browser today are part of what sets this task boundary. The WebLLM paper (WebLLM paper, arXiv:2412.15803 v2, April 2026) describes capable small models in the 1–8B-parameter range as what open-weight providers now routinely ship, and its throughput table covers two 4-bit quantized models, 3.8B and 8B, measured in Chrome Canary on a single Apple MacBook Pro M3 Max. WebLLM's own prebuilt model list places its 70B builds, which need about 31 GB of VRAM, under a code comment that labels the entries below it as older versions or not as practical (as of November 2026). Those sizes move as hardware and runtimes improve — this is not pessimism about the technology, just an honest statement of where it currently sits.

Device inequality is a product decision

The distribution of experience across real devices is worth being honest about before shipping. A client-side feature is brilliant on the developer's own workstation, acceptable on a recent flagship phone, and absent or meaningfully degraded on low-end and older devices — and how large that share of the audience is depends on the product, which is what device telemetry is for. Shipping client-side AI is, in effect, shipping a tiered experience by device.

The equity question deserves to be stated plainly rather than glossed over: when those tiers correlate with device price, the product ends up serving its wealthiest users best. That is a legitimate reason to keep a feature entirely server-side even in cases where the client route works technically fine for a meaningful chunk of the audience.

There is a support-cost ledger underneath the equity question. Every rung of the capability ladder is a distinct behavior that a support team has to understand, be able to reproduce, and be able to explain to a confused customer. "Works on my machine" stops being the engineer's private joke and becomes the sentence a customer says when their tier's degraded experience does not match what they saw in a screenshot or a colleague's demo.

Telemetry closes the loop honestly: rung-distribution data — what share of real users actually lands on which capability tier — is the evidence that either justifies keeping the tiering in place or argues for retiring a feature that most of the real audience never gets to use in its best form.

The recurring costs demos leave out

Battery and thermal load are a physical cost the user pays, not an abstraction. Sustained local inference that noticeably warms a phone or drains its battery can turn whatever delight the feature produced into a reason to stop using it, however clever the underlying engineering was.

Recurring costWho pays itWhere it shows up
Battery / thermal loadEvery user, every sessionDevice warmth, battery drain complaints
Asset weight (download + resident memory)Every user, every deviceFirst-run download time, memory pressure
Model / runtime maintenanceThe engineering teamBreaking changes, frequent churn
Server hosting (the alternative)The team's infrastructure budgetInfrastructure bill, centralized ops load

Asset weight has to be weighed against the feature's actual value, not assumed away. The first-run download and the memory it occupies afterward are paid by every user on every device the feature reaches — the retention economics this topic's loading coverage already established apply here as a genuine veto: a marginal feature cannot justify a model-sized footprint just because the technology exists to add one.

The maintenance ledger deserves an itemized look rather than a vague sense of upkeep. Models churn. Quantization recipes evolve. Runtimes ship breaking changes. Browser support for the relevant APIs keeps moving. Every as-of caption this topic has attached to a capability claim is, from the other side, a maintenance obligation that lands on whichever team shipped the feature.

The comparison worth making honestly is total cost of ownership, stated structurally rather than with invented numbers on either side: the server path pays an infrastructure bill, but it centralizes maintenance to one environment the team fully controls. Neither side of that trade is free — it is a real comparison a team can reason through, not a slogan for either architecture.

A useful way to frame that comparison for a specific feature is to ask where the cost actually lands and who has to act on it. Server-side cost shows up as a predictable line item on an infrastructure bill that one team can monitor and optimize centrally. Client-side cost shows up scattered across every user's device, in battery, in support tickets, and in the engineering hours spent chasing runtime and model churn — costs that are real but far harder to see on a single dashboard, which is exactly why they get underweighted in a decision made by looking only at the infrastructure bill.

The server-first default

The decision posture that keeps this entire topic honest is server-first unless the sweet-spot properties — frequency, latency sensitivity, privacy, and offline need — are genuinely present for this specific feature, and the evaluation evidence this topic's task-evaluation coverage requires actually passes. Client-side inference is an optimization a feature earns, not the default architecture a team reaches for because the capability exists.

A reversal in the other direction — moving a feature back to the server after quality complaints or unmanageable support load — is a legitimate outcome rather than a failure to be embarrassed about. That reversibility is exactly why the shared seam this topic's hybrid-inference coverage describes exists in the first place — it is designed to make the reversal cheap.

One boundary is worth restating for a temptation that looks adjacent but is not: this judgment concerns shipped inference features running in a product. Whether to delegate development work itself to a coding agent is a different decision about a different subject, covered by this site's dedicated AI-assisted-development literature — not a restatement of this article's task-fit judgment.

The browser earned its place as a legitimate inference runtime over the course of this topic. The craft that remains is knowing precisely which features that place is actually for.

Project Inquiry