Google Research launches on-device grammar correction in Gboard on Pixel 6
Composing longer text on smartphones is cumbersome; grammatical errors frequently creep in and are time-consuming to correct on a small display. Building an on-device grammar correction feature required addressing memory size limitations, latency requirements, and the challenge of handling partial sentences.
The on-device grammar correction model requires only 20MB of storage and performs inference under 22ms on 60 input characters on the Pixel 6 CPU, processing text entirely on-device to preserve privacy, with hard distillation producing significantly higher quality suggestions than training on the original cloud model data.
Frequently asked questions
What did this team achieve with this AI workflow?
The on-device grammar correction model requires only 20MB of storage and performs inference under 22ms on 60 input characters on the Pixel 6 CPU, processing text entirely on-device to preserve privacy, with hard disti…
What tools did this team use?
Gboard, Transformer encoder, LSTM decoder.
What results were reported?
On-device model storage size: 20MB; Inference latency on 60 input characters: under 22ms; Suggestion quality vs baseline model: significantly higher quality suggestions (source-reported, not independently verified).
How is this data entry ops AI workflow structured?
User types in Gboard → On-device model corrects grammar → Extract replacement edits via alignment → Display grammar suggestions.