On-device and browser AI: why it matters for privacy, not just speed

Running inference in the browser with ONNX Runtime Web isn't just a latency trick — it removes an entire category of data breach.

Presenting Annapurna on stage
Presenting Annapurna on stage

The usual pitch for on-device AI is speed — no network round trip. The pitch that matters more, especially for anything touching biometric data, is that data which never leaves the device can never leak from a server.

The architecture decision, concretely

In FaceVision, detection, embedding and liveness checks run entirely client-side via ONNX Runtime Web. The backend receives a 512-dimension embedding, never an image. If that backend is ever breached, there are no faces to steal — only vectors that can match, not reconstruct.

What you give up

Model size is constrained by what a browser can reasonably load and run, and you lose the ability to centrally update inference logic without a client update. For anything privacy-sensitive, that tradeoff is usually worth it.

Where this pattern applies beyond faces

Any input a user would reasonably not want stored — voice, handwriting, location patterns — is a candidate for on-device inference producing a derived, non-reversible representation instead of storing the raw input.

PrivacyONNXBrowser AIGuide
Pranjul Rathour
Pranjul Rathour
GenAI Engineer · India

GenAI engineer and AI product builder with 2+ years shipping production-grade AI systems: RAG pipelines, fine-tuned LLMs, hybrid retrieval and multi-modal apps across vision, speech and OCR, architected end to end from ingestion to deployment. Leads engineering for SCULT INDIA's 14-member team, founded the 500+ member TechVerse Enclave community and has mentored 200+ students. Three hackathon first prizes: Changethon 2025 (IIT Roorkee), Product Genesis at Vividhotsava 2025 (CSJMU) and BYTEBATTLE (MeetKats).

Open to GenAI roles, hackathon judging, mentorship sessions and guest talks at colleges. For campus sessions the inviting institution covers the visit end to end: travel (a First AC train ticket for journeys up to five hours, a flight for anything longer), accommodation, meals, and pickup and drop; the honorarium and workshop fees are negotiable on WhatsApp or on the call, and requests are welcome from institutions that can cover the visit this way. Email pranjulrathour41@gmail.com.

Keep reading

More on Vision & speech

All Vision & speech posts →
Campus talks · hackathon judging · mentoring

Want this as a live session at your college?

Open to GenAI roles, hackathon judging, mentorship sessions and guest talks at colleges. For campus sessions the inviting institution covers the visit end to end: travel (a First AC train ticket for journeys up to five hours, a flight for anything longer), accommodation, meals, and pickup and drop; the honorarium and workshop fees are negotiable on WhatsApp or on the call, and requests are welcome from institutions that can cover the visit this way.

Pranjul Rathour, GenAI engineer in India