Google announced the release of ML Drift, an open-source GPU compute engine built to simplify the development of on-device AI and machine learning across fragmented hardware environments. The engine abstracts different GPU architectures and low-level APIs, supporting OpenGL ES, OpenCL, Metal and WebGPU. It serves as the core GPU acceleration engine for LiteRT, the successor to TensorFlow Lite.
The company says ML Drift delivers “stability for traditional ML and peak performance for the most advanced generative AI”. It introduces technical improvements over the legacy TFLite GPU delegate, including unified shaders through tensor virtualization, extensible custom operations and five-dimensional tensor support. ML Drift incorporates hardware-specific optimisations for GPUs from Arm, Intel and Qualcomm Technologies. For desktop inference, it supports Windows and Linux through Dawn, Chromium's WebGPU implementation, while retaining native Metal backend support on macOS.
Google benchmarked ML Drift using Gemma models on developer-grade workstation hardware and reported 12 per cent lower memory overhead compared to other frameworks including llama.cpp and MLX LM. The company highlighted that ML Drift is already in production across its own products and partners. In YouTube Shorts, it achieves up to a 40 per cent reduction in average frame latency for segmentation-based effects on Android and iOS. Google Photos sees speedups of up to two seconds for computational photography and segmentation pipelines. Adobe Lightroom and Photoshop benefit from performance improvements of up to 30 per cent for AI-powered features such as Select Subject and Select Sky, while Snapchat reports a 30 per cent reduction in model latency for ML-powered face and style-generation effects on Android.
Commenting on the announcement on LinkedIn, AI/ML engineer Pavithra Agraharam argued that “native 5D tensor support without layout hacks is a massive win for running spatial and transformer models on edge GPUs”, and that decoupling logical tensors from physical memory should “significantly cut down on memory fragmentation during live inference”. Matthew Charles Vladislav Busel, founder and sole developer of Tensorust, questioned “how it compares with Core ML on recent iPhones for latency and memory, since that is what most of us ship against today”, a comparison Google has not yet provided.
With the release of ML Drift, Google will stop updating the legacy TensorFlow Lite GPU delegate. The company recommends that developers migrate to the LiteRT ML Drift GPU accelerator for backward compatibility with existing models. GPU and system engineers can also access the engine's lower-level C++ API to construct custom GpuModel compute graphs and write custom shaders.
