On-device AI is criminally underrated
There is a language model inside your browser right now. Not connected to your browser — inside it, running on your laptop's silicon, working when the wifi doesn't. Almost nobody is building with it, which tells me it's exactly the right time to.
I added a small toy to my personal site recently: a voice-memo widget that titles, tags and files what you dictate. The parsing runs three tiers deep — regex heuristics always, Web Speech API where available, and when Chrome's built-in Gemini Nano is present, the model refines titles and tags fully on-device. No API key. No network call. No data leaving the machine. The feature costs me, the site owner, exactly zero per request, forever.
Building it rewired some assumptions, because the constraints are inverted from everything we've learned about cloud models.
The inversions
- Marginal cost is zero, so waste is free. With a cloud model you batch, cache, and agonize over token counts. On-device you can call the model on every keystroke if you like. Whole interaction patterns that are economically absurd via API — speculative suggestions, always-on classification, retry-until-pretty — become the obvious default.
- Privacy stops being a policy and becomes a property. "We don't store your data" is a promise; the data physically cannot leave is a fact. For a whole class of features — anything touching notes, messages, health, finances — that distinction is the product. In my anti-trafficking work I've watched investigators refuse genuinely useful cloud tools because their threat model can't tolerate the round trip. On-device isn't a degraded tier for them. It's the only acceptable tier.
- The model is small, so the prompt is the engineering. Nano-class models don't reward the kitchen-sink prompts that frontier models absorb. Tight task, few-shot examples, strict output shape, and a validator that rejects garbage — you're back to writing careful code, and honestly, it's refreshing.
"We don't store your data" is a promise. "The data cannot leave" is a property.
The design pattern: progressive intelligence
The architecture I'd defend from experience: heuristics first, local model when present, cloud only by explicit choice. The widget works for everyone via regex; it gets smarter, silently, on machines that carry a model; and the little "✦ nano" badge that appears next to AI-refined results has proven weirdly delightful to users — intelligence as progressive enhancement, exactly like we once treated JavaScript itself.
This pattern has a strategic property that I think is underpriced: it's ratchet-shaped. Local models only get better, and they're distributed by browser and OS updates you don't pay for. Features built this way appreciate on their own, like a house in a neighbourhood where someone else keeps building parks.
Why nobody's doing it
Partly API instability — the browser interfaces are still moving. Partly habit: a generation of AI engineering has equated "model" with "endpoint." But mostly, I suspect, because small models are unglamorous. Nobody demos a 3-billion-parameter model tagging a grocery note. The frontier gets the keynotes; the edge gets the users. If your feature can survive on a small model's IQ — and far more features can than we admit — the edge is where it should live.