Machine learning on data you're not allowed to see
A framework for training shared models across distributed clients without ever centralizing the sensitive raw data they hold.

What it does TFF is a Python framework for federated learning and other decentralized computations. It lets you train a shared global model across distributed clients while keeping every user’s raw data on their own device. The same building blocks also handle non-learning tasks, such as running aggregated analytics over siloed data.
The interesting bit Instead of treating distribution as an afterthought, TFF provides a strongly-typed functional programming environment at its core. You write federated algorithms declaratively by mixing standard TensorFlow with distributed communication operators, and the system handles the choreography of aggregating updates without centralizing the underlying data.
Key highlights
- Two-layer architecture: a high-level
tff.learningAPI for applying federated training and evaluation to existing TensorFlow models, and a lower-level Federated Core API for building novel algorithms. - The Federated Core layer fuses TensorFlow logic with distributed communication operators inside a strongly-typed functional programming environment.
- Supports non-learning federated computations, such as decentralized aggregated analytics.
- Ships with a single-machine simulation runtime for local experimentation.
- Declarative computation model designed to target diverse runtime environments.
Verdict Worth a look if you’re researching federated learning or need aggregated analytics over data that must stay put. Give it a pass if you need a ready-made multi-node production runtime today, since only a single-machine simulator is included.
Frequently asked
- What is google-parfait/tensorflow-federated?
- A framework for training shared models across distributed clients without ever centralizing the sensitive raw data they hold.
- Is tensorflow-federated open source?
- Yes — google-parfait/tensorflow-federated is open source, released under the Apache-2.0 license.
- What language is tensorflow-federated written in?
- google-parfait/tensorflow-federated is primarily written in Python.
- How popular is tensorflow-federated?
- google-parfait/tensorflow-federated has 2.4k stars on GitHub.
- Where can I find tensorflow-federated?
- google-parfait/tensorflow-federated is on GitHub at https://github.com/google-parfait/tensorflow-federated.