Paul Krill
Editor at Large

Android Gboard smartens up with federated machine learning

news
Apr 10, 20172 mins

Google's Federated Learning lets smartphones collaboratively learn a shared prediction model while keeping training data on the device

Android Google marshmallow
Credit: Magdalena Petrova

Google has begun using a machine learning approach to learn from user interactions with mobile devices.

Currently under testing in the Gboard on Android keyboard, Federated Learning lets smartphones collaboratively pick up a shared prediction model while keeping training data on the device. This way, the need to do machine learning is decoupled from the need to store the data in the cloud.

Federated Learning provides for smarter models, less power consumption, lower latency, and ensured privacy, Google research scientists said. The model on the phone can help power experiences personalized by how users interact with the device.

With the testing now underway, when Gboard shows a suggested query, the smartphone locally stores information about the current context and whether the user clicked the suggestion. Federated Learning then processes that history on-device to suggest improvements to the next iteration of Gboard’s query suggestion model.

“[Federated Learning] works like this: your device downloads the current model, improves it by learning from data on your phone, and then summarizes the changes as a small focused update,” scientists Brendan McMahan and Daniel Ramage said. “Only this update to the model is sent to the cloud, using encrypted communication, where it is immediately averaged with other user updates to improve the shared model.”

With Federated Learning, the data is distributed across millions of devices in an uneven fashion. Bandwidth and latency restrictions motivated Google’s Federated Averaging Algorithm, which can train deep networks using from 10 to 100 times less communication compared to a naively federated version of the Stochastic Gradient Descent, which typically runs on a large data set that’s partitioned across cloud-based servers.

On-device training with Federated Learning uses a miniature version of Google’s TensorFlow library for machine intelligence. “Careful scheduling ensures training happens only when the device is idle, plugged in, and on a free wireless connection, so there’s no impact on the phone’s performance,” the scientists said.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author