Applying federated learning to protect data on mobile devices
Meta is evaluating federated learning with differential privacy (FL-DP), which trains models on mobile devices and adds noise to updates before they reach a global model so user data stays local and is harder to memorize or reconstruct. Because data isn't visible centrally, FL-DP complicates label balancing, feature normalization and metrics, and it brings slower mobile release cycles, slower training and a need for anonymized logging. Meta's architecture combines mobile devices, trusted execution environments and back-end servers so models can use both server-side data and device-only data. In tests with an in-house FL library, it showed minimal accuracy loss versus server-trained models, though model iteration remains orders of magnitude slower than centralized ML.
Related posts
- Toward provably private learning from federated data
Google Research hardMasterGoogle's next-generation Federated Learning system runs training inside Trusted Execution Environments (TEEs) so that privacy guarantees can be verified externally rather than taken on trust. Devices upload encrypted examples tied to access policies published in the Rekor transparency log. A Raft-replicated TEE key management service releases decryption keys only to matching workloads. A root TEE runs a Python training loop that fans out to worker TEEs via Federated Language and releases only differentially private weights. Gboard uses it for English and Japanese next-word prediction, getting better privacy-utility tradeoffs from optimized participation schedules and cutting training time from 1-2 months, now limited mainly by TEE capacity.
- Federated Learning using Hugging Face and Flower
Hugging Face mediumAdeptFederated fine-tuning of a pre-trained distilBERT model for IMDB sentiment classification uses Flower to coordinate multiple clients and a server, so raw data never leaves the clients. The walkthrough covers loading and tokenizing IMDB with Hugging Face datasets, standard PyTorch train/test loops, a Flower NumPyClient that exchanges model state_dict parameters, and a server running the FedAvg strategy with weighted metric aggregation over three rounds. A Colab notebook variant uses Flower's simulation mode (start_simulation) instead of separate client processes.
- How Meta is improving password security and preserving privacy
Meta Engineering mediumAdeptMeta's Private Data Lookup (PDL) checks new passwords against breached-password datasets using Private Set Intersection, so the server learns neither the attempted password nor whether it matched. The client sends a per-request blinded hash H(p)^a, the server double-blinds it with a long-term key b and returns blinded hashes of leaked passwords, and the client unblinds and matches locally. To make this practical, leaked passwords are pre-blinded offline, the dataset is sharded by a short hash-prefix index, and returned values are truncated to cut bandwidth. The check flags a password appearing anywhere in a breach, not just a matching username/password pair, and is deployed in Enterprise Center's account creation and reset flows.
- Complexity of Differentially Private Selection via Federated APIs
Apple Machine Learning Research hardMasterPrivate selection built only on the standard noisy-aggregation primitive used in federated differential privacy needs Ω(√d/ε) samples, which explains the utility gap against the central model. Adding a primitive based on the Sparse Vector Technique (SVT), which can be implemented simply under several trust models, gives an ε-DP selection algorithm with additive error O(log(dn)/ε). That matches the central model when n is polynomial in d and uses a near-optimal expected O(d log* d) SVT queries. Combined with known shuffle-model lower bounds, this is an exponential separation between the SVT model and shuffle or aggregation models, and the approach also covers F_p loss minimization, heavy hitters and sparse mean estimation.
- Private analytics via zero-trust aggregation
Google Research hardMasterGoogle's private analytics service now layers a new lattice-based, one-shot secure aggregation protocol on top of TEE execution, so individual device data is never decrypted in server memory even if the enclave is compromised by side-channel attacks. Clients send a single message whose ciphertexts aggregate both the values and the encryption keys; small rotating client committees hold hints that unlock only the aggregate, which is masked with differential privacy noise. TEE attestation gives verifiable proof that the published aggregation code is what actually runs. The system is being used to measure real-world effectiveness of Android SafetyCore's on-device safety classifiers without exposing user content.