Google ML Drift: Open-Source On-Device GPU Inference
If you keep a shortlist of the best AI tools 2026 for running models on phones, laptops, and browsers, Google’s ML Drift is the release that changes several of your assumptions. The Google AI Edge team has open-sourced a high-performance, cross-platform on-device GPU inference engine under the Apache 2.0 license, and positioned it as the direct successor to the TensorFlow Lite GPU delegate. That is a bigger deal than a routine version bump: it means the decade-old GPU delegate is officially frozen for features, and the path forward for on-device GPU compute now runs through ML Drift.
The headline claim is an order-of-magnitude performance improvement over existing open-source GPU inference engines, plus the ability to run generative models with 10 to 100 times more parameters than the on-device models that shipped before it. For anyone who has watched on-device ML get stuck at “good enough for a classifier but not for a real LLM,” that is the specific gap ML Drift is trying to close.
What ML Drift Is
ML Drift is a GPU-accelerated inference engine designed for on-device machine learning. It sits inside LiteRT as the core GPU acceleration engine, but it is also shipped as a standalone C++ library so you can build custom graphics and inference runtimes on top of it. The project targets phones (Android and iOS), web browsers, and edge servers, and it is built around one idea: abstract away the mess of on-device GPU APIs so a single kernel can run everywhere.
The engine supports four GPU backends: OpenCL (the primary path on Android), Metal (Apple devices), WebGPU via Dawn (browsers and cross-platform), and OpenGL ES 3.1 and newer. That backend coverage is what makes the “write once, run everywhere” pitch credible, and it is the practical reason the same model can run in a native Android app, an iOS app, and a browser tab without three separate kernel codebases.
Open Source AI Models on the Edge: What Changes
For the open source AI models ecosystem, ML Drift matters because it raises the ceiling on what you can run locally without a data center. On-device inference has always been the privacy-and-latency answer to cloud inference, but it has been limited by two things: the capability of small models and the raw throughput of the runtime. ML Drift attacks the second problem directly, which indirectly unlocks the first, because a faster runtime makes a bigger model viable on the same hardware.
The paper that accompanies the release, “Scaling On-Device GPU Inference for Large Generative Models” (arXiv:2505.00232), frames it as extending the capabilities of state-of-the-art GPU-accelerated inference engines so that generative workloads with far more parameters can run on resource-constrained devices. The engineering contribution is less about inventing a new model and more about removing the runtime bottlenecks that kept those models off-device in the first place.
The Three Architectural Changes That Matter
The Google AI Edge team describes the gap between the legacy TFLite GPU delegate and ML Drift in concrete architectural terms, and three of the changes explain most of the headline performance number.
Tensor virtualization and unified shaders
The legacy delegate required maintaining optimized shaders separately for each backend, because logical tensors were hardcoded to physical GPU objects like textures and buffers across OpenGL, OpenCL, and Metal. That meant three parallel shader codebases and a lot of duplicated, backend-specific work. ML Drift introduces tensor virtualization, which decouples a tensor’s logical representation from its physical allocation. Dynamic shader templates resolve and translate coordinates during the compiler’s initialization phase, so one unified shader model serves every backend with minimal runtime overhead.
Unified Compute Language (UCL)
UCL is the abstraction layer that lets you write a GPU kernel once and compile it dynamically for each backend’s shading language — GLSL, MSL, and WGSL. Instead of writing three versions of every operator, you write one and let the compiler target the backend you are actually on. For maintainers this collapses the surface area of the codebase; for users it means faster kernel coverage and fewer platform-specific bugs.
5D tensor support
This is the one that sounds academic until you hit it in production. The TFLite GPU delegate was structurally hardcoded to 4D tensors, which forced developers into layout hacks for complex models that need 5D. ML Drift adds 5D tensor support out of the box, which is what enables 3D convolutional networks for volumetric and spatial AI, and spatiotemporal models like YOLO 11n, MobileViT v2, and Swin Transformer v2 to run directly on edge GPUs instead of being pushed back to the CPU or the cloud.
Performance and Benchmarks
Google’s headline is an order-of-magnitude improvement over existing open-source GPU inference engines, and the paper’s framing — 10 to 100 times more parameters than existing on-device generative models — gives you a sense of the scale shift. The team is careful to note that classical models already running on the TFLite GPU delegate keep or exceed their previous benchmarks under ML Drift, because the decoupling from hardware-specific constraints and the improved kernel execution efficiency benefit existing workloads immediately.
There is a caveat baked into the migration story: the legacy GPU delegate is not being deleted, but it will no longer receive new feature updates. For most teams the practical takeaway is simple — new work should start on ML Drift, and existing work should migrate to it, since backwards compatibility is explicitly maintained.
ML Drift vs. the Legacy TFLite GPU Delegate
The relationship is easiest to see side by side. The legacy delegate is not being removed, but it is frozen, and the differences explain why the migration matters.
| Capability | Legacy TFLite GPU delegate | ML Drift |
|---|---|---|
| Tensor dimensionality | 4D only | 4D plus 5D |
| Shader strategy | Backend-specific codebases | Unified shaders via tensor virtualization |
| Kernel authoring | Per backend (GLSL, MSL, WGSL) | Write once via UCL |
| Backends | OpenGL ES, OpenCL, Metal | OpenGL ES, OpenCL, Metal, WebGPU |
| Generative and LLM workloads | Not designed for | Explicit target, 10-100x parameters |
| Feature updates | Frozen | Active |
The practical consequence of that table is that if your model uses 5D tensors, WebGPU, or large generative architectures, there is no “stay on the legacy delegate” option that gets you there. You migrate, or you leave those workloads on the CPU.
Getting Started
For application developers, the entry point is the LiteRT ML Drift accelerator, which gives you model partitioning, tensor virtualization, and LLM acceleration out of the box. For GPU and systems engineers, the standalone C++ API is where you build custom GpuModel compute graphs and write custom shaders. The repository ships quickstarts for OpenCL on Android and WebGPU via Dawn, so you can validate the toolchain on your own hardware before committing.
The migration path for existing TFLite GPU users is deliberately shallow. Because ML Drift maintains backwards compatibility for existing models, a workload that already runs on the legacy delegate should drop in and immediately keep or improve its numbers. That removes the usual “big rewrite” tax that normally accompanies a runtime swap. The real clock is on new features: they will only land on the ML Drift side, so teams that stay put trade a smooth transition now for a growing gap later.
Why the Timing Matters
There is a competitive angle worth spelling out. On-device inference is one of the few places where open source genuinely leads the field, because the models that run on a phone or a browser have to be small, auditable, and redistributable in a way that a closed API cannot match. A faster, cross-platform runtime like ML Drift raises the ceiling on that entire category. The reason a 10x runtime improvement is strategically significant is not just that existing models get faster — it is that the set of models you would consider running on-device expands, and every expansion of that set makes the closed-cloud-only story a little weaker.
The WebGPU backend is the sleeper detail here. It means the same inference engine that accelerates a native Android app can also drive a browser tab, which pulls on-device ML out of the app-store ghetto and into the default distribution channel on the web. Combined with the Apache 2.0 license, that is a rare combination: a genuinely open runtime with a genuinely cross-platform reach, backed by a team with the resources to keep the operator coverage moving.
Where You Would Actually Use It
The use cases span a wider range than the TFLite GPU delegate ever comfortably covered. On-device inference for mobile apps is the obvious one, but the WebGPU path makes in-browser ML acceleration a first-class target rather than an afterthought. The team also calls out running large language models and generative AI on-device as a supported workload, which is the category that was effectively out of reach before.
For Android developers shipping unbundled runtimes to keep app binary size down, ML Drift acceleration is available today in standalone LiteRT packages and is coming to LiteRT in Google Play Services. The migration path for existing TFLite GPU users is designed to be low-friction: legacy workloads should maintain or improve their numbers without a rewrite.
Who Should Use This / Who Should Not
Use ML Drift if you build on-device inference for mobile, ship browser-based ML features that could use WebGPU, or want to push larger generative models onto edge hardware. It is also the default choice if you are currently on the TFLite GPU delegate and want a supported path forward, since that delegate is now feature-frozen.
You should not rush to adopt it if your workload is trivial and already fast enough on CPU, or if you are locked into a vendor-specific runtime that already meets your latency and power budget. The order-of-magnitude gains show up on demanding workloads — high-parameter models, complex vision pipelines, generative tasks — not on a tiny classifier that runs in a millisecond either way.
Limitations and Caveats
The biggest caveat is maturity. ML Drift is new enough that the long tail of operators and edge cases is still being filled in, and the feature gap between the legacy delegate’s stable coverage and the new engine’s expanded coverage is not zero. The team explicitly welcomes contributions to add UCL operators and hardware-specific optimizations, which is another way of saying the community still needs to help finish the operator coverage.
There is also the usual on-device trade-off: performance numbers quoted in papers are measured on reference hardware, and your device’s thermal throttling, driver quality, and memory bandwidth will move the real-world number. A 10x claim on a flagship phone does not translate to 10x on a three-year-old midrange device. Benchmark on your own target hardware before you commit a migration.
Finally, the WebGPU and Play Services paths are at slightly different maturity levels — the standalone LiteRT packages are available now, while the Google Play Services integration is “coming soon,” so plan your rollout around which distribution channel you actually use.