Google has released ML Drift, an open-source GPU compute engine built for on-device artificial intelligence and machine learning inference, the company announced this week. Licensed under Apache 2.0, the cross-platform tool masks the intricacies of varied GPU hardware and low-level programming interfaces, working across OpenGL ES, OpenCL, Metal, and WebGPU. The engine already operates on millions of devices through apps including Chrome, YouTube Shorts, Photos, and Meet, Google said.

According to the announcement, ML Drift delivers a 12% lower memory overhead compared to other frameworks, including llama.cpp and MLX LM, when benchmarked using Gemma models on developer-grade workstation hardware. In YouTube Shorts, the engine achieves up to a 40% reduction in average frame latency for segmentation-based effects on Android and iOS. Google Photos sees computational photography and segmentation pipelines speed up by as much as two seconds. Adobe Lightroom and Photoshop gain performance improvements of up to 30% for selected AI-powered photo-editing features such as Select Subject, Select Sky, and Adaptive Portrait, while Snapchat experiences a 30% reduction in model latency for ML-powered face and style-generation effects on Android, allowing the use of larger diffusion models.

The release aims to simplify access to the diverse GPU hardware that developers face when building applications for edge devices, Google stated. Developers confront a wide range of GPU architectures, driver versions, and low-level APIs, without knowing in advance on which specific hardware the application will run. The company said ML Drift seeks to establish a new foundation for portability and performance, delivering "stability for traditional ML and peak performance for the most advanced generative AI." Google noted that by open-sourcing the engine, which serves as the core GPU acceleration engine powering LiteRT, it's enabling developers to build custom graphics and inference runtimes for applications spanning traditional computer vision, audio, and depth processing through to generative AI.

ML Drift introduces several technical improvements over the legacy TFLite GPU delegate, including unified shaders through tensor virtualization, extensible custom operations, and five-dimensional tensor support, according to the company. It also incorporates hardware-specific optimizations for GPUs from Arm, Intel, and Qualcomm Technologies to maximize hardware utilization across modern GPUs. The engine extends desktop support for inference on Windows and Linux through Dawn, Chromium's WebGPU implementation, while retaining native Metal backend support on macOS. Dawn provides a unified API model leveraging WebGPU's hardware abstraction layer, avoiding the need to interface directly with platform-specific graphics APIs such as DirectX and Vulkan. AI and ML engineer Pavithra Agraharam commented on LinkedIn that native 5D tensor support without layout hacks is a massive win for running spatial and transformer models on edge GPUs, adding that decoupling logical tensors from physical memory allocations should significantly cut down on memory fragmentation during live inference.

With the release of ML Drift, Google will stop updating the legacy TensorFlow Lite GPU delegate, the company said. For backward compatibility with existing models, Google recommends migrating to the LiteRT ML Drift GPU accelerator. Application developers can use the LiteRT ML Drift accelerator, while GPU and system engineers can access its lower-level C++ API to construct custom GpuModel compute graphs and write custom shaders. The open-source release positions Google to expand its influence in the increasingly competitive on-device AI space, where efficiency and cross-platform compatibility have become critical differentiators. By offering a unified abstraction layer that works across disparate hardware ecosystems, the company may be betting that standardization at the infrastructure level will prove more valuable than proprietary performance advantages.