Confidential Federated Learning: Definition, Reinforcements and Implementation
Confidential federated learning, also met under the name confidential federated AI, is federated learning with an added guarantee on what circulates. Federated learning protects the data: it never leaves its holder. A second question remains, and it is the subject of this page: what do the model updates exchanged between participants reveal, and to whom? Four reinforcements answer that question. They are not equivalent, they do not cost the same, and they are not chosen as a bundle.
At Mesh: the model travels, your data stays home, and what travels is sealed.
What is confidential federated learning?
Confidential federated learning denotes a federated learning setup in which confidentiality covers two distinct objects rather than one: each participant's data, and the model updates that participant returns to the coordinator.
The first protection is the one ordinary federated learning provides, and it is structural: data is never copied, transferred or pooled, so there is no central warehouse to attack. → how federated learning works.
The second protection is what the word "confidential" adds. It answers a precise question: can the coordinator, or another member, infer anything from a single member's contribution? In a basic implementation the answer is yes, at least in part, and that is the subject of the next section.
The reference formulation is the article by Guo, Pietzuch, Paverd and Vaswani, whose subtitle leaves no ambiguity: federated learning and confidential computing are not competing technologies. Reference: J. Guo, P. Pietzuch, A. Paverd, K. Vaswani, "Trustworthy AI Using Confidential Federated Learning", Communications of the ACM, vol. 67, no. 9, 2024, pp. 48-53, doi:10.1145/3677390, open copy: lsds.doc.ic.ac.uk. An earlier, published full implementation is D. Le Quoc, C. Fetzer, "SecFL: Confidential Federated Learning using TEEs", arXiv:2110.00981.
The two questions federating does not ask together
Federating settles the movement of data. By construction, it says nothing about what the parameters carry. Two surfaces therefore remain open in a basic federated setup, and both are documented.
The coordinator sees each update before combining them. Aggregation means averaging the contributions; in a direct implementation, whoever computes that average reads each term first. A member therefore has an individual exposure to the coordinator that it does not have to the other members.
Parameters carry information about the data. On large models, shared gradients allow partial reconstruction of training examples (L. Zhu, Z. Liu, S. Han, "Deep Leakage from Gradients", NeurIPS 2019, pp. 14747-14756, arxiv.org/abs/1906.08935), and allow testing whether a given individual was part of the training set (R. Shokri, M. Stronati, C. Song, V. Shmatikov, IEEE S&P 2017, pp. 3-18, arxiv.org/abs/1610.05820). The scale of the risk depends heavily on model size: low on a tabular classifier with a few dozen parameters, high on a deep network.
Neither point is an objection to federated learning; together they are its security perimeter. Naming them is what allows a team to pick the reinforcement that matches the sensitivity of the case, instead of stacking guarantees at random.
The four reinforcements, and what each one closes
Four mechanisms address the two surfaces above. They are not alternatives: they stack, and each has its price.
| Reinforcement | What it closes | What it costs |
|---|---|---|
| End-to-end transport encryption | Interception on the network, and reading by the infrastructure host. One envelope per recipient, which only that recipient can open. | Nothing on model quality. Compute time, and key management. |
| Secure aggregation | The coordinator's visibility into an individual contribution. Only the sum is readable; the terms never are, including by whoever adds them up. | Extra exchanges between participants, and tolerance for mid-round dropouts. |
| Aggregation enclave | The same visibility, by another route: aggregation runs in an attested execution environment that the machine's operator cannot inspect. | A dependency on hardware and its attestation chain. No loss of accuracy. |
| Differential privacy | Leakage through the parameters themselves, including towards a legitimate recipient. This is the only reinforcement that addresses reconstruction and membership inference. | Accuracy. The added noise degrades the model, and the setting is tuned against a privacy budget. |
Secure aggregation is a published method, not a vendor invention: K. Bonawitz et al., "Practical Secure Aggregation for Privacy-Preserving Machine Learning", ACM CCS 2017, pp. 1175-1191, eprint.iacr.org/2017/281. The same holds for the enclave: its combination with federated learning is the subject of the ACM article cited above, and of SecFL before it.
What confidential federated learning is not
Five families of technology meet on the same ground, and the names are often used for one another. One line separates them: where is the data during the computation, and who can read it?
| Approach | Where the data sits during computation | What circulates |
|---|---|---|
| Confidential federated learning | With each participant, in cleartext, on its own machine | Model parameters, sealed |
| Confidential computing | Pooled, but inside a hardware enclave of the processor | The data, encrypted, towards the enclave |
| Data clean room | Pooled in a neutral, access-controlled environment | The data, towards that environment |
| Homomorphic encryption | Pooled and encrypted, computation runs without decrypting | The data, encrypted |
| Secure multi-party computation | Split into shares distributed across the parties | Shares of the data, and a great many exchanges |
The dividing line is therefore sharp: the last four approaches pool the material, one way or another, and protect that pooling. Federated learning pools nothing. → the detailed comparison of the five approaches, criterion by criterion.
The boundary, stated plainly
Federated learning does not compute on encrypted data. This is the most common confusion around the vocabulary, and it is worth clearing. Each participant trains the model on its data in cleartext, on its own machine, because it is its machine and its data. Encryption covers what leaves the premises. Computing without ever decrypting is the domain of homomorphic encryption (C. Gentry, "Fully Homomorphic Encryption Using Ideal Lattices", STOC 2009, pp. 169-178) and of secure multi-party computation, two approaches whose compute cost is of a different order.
Where Mesh stands
Mesh separates a baseline from options, and the distinction is not commercial: it states what runs.
- The baseline. Federated learning with end-to-end transport encryption, one envelope per participant (RSA-OAEP 2048-bit, AES-GCM 256-bit). Data leaves no infrastructure, and nothing in transit is readable along the way.
- As an option, the enclave. At Mesh the word enclave denotes one thing only: the place where models are federated. The enclave never receives data, it receives model updates, the operator has no access to it, and it is destroyed when the final model is delivered.
- As options, secure aggregation and differential privacy, depending on the sensitivity of the case and the size of the model.
Heterogeneity between participants is handled in the baseline, and this often comes as a surprise: members that do not measure the same variables do not have to align before starting. A member that does not observe a column declares it unobserved, its learning stays at zero on that dimension, and it benefits from what the others learned there. What is pooled is a dictionary of variables, not a dataset.
How to choose your confidentiality level
Three questions are enough to decide, and they are asked about the use case, never about the technology.
- Who must not see a member's contribution? If the answer includes the coordinator, you need secure aggregation or an enclave. If it stops at the network and the host, transport encryption is enough.
- Is the model large enough to memorise? A classifier with a few dozen parameters does not retain an individual. A deep network trained on personal data does, and that is where differential privacy becomes the subject.
- What does a loss of accuracy cost? That question decides the noise budget, and it is a business question. It is settled on a costed case, not on a principle.
One useful point on compliance: federated learning facilitates GDPR compliance, because it natively applies data minimisation, but compliance is pronounced on a concrete deployment, by a lawyer. An architecture makes compliance reachable; it does not certify it. The French data protection authority publishes its own definition of federated learning in its AI glossary. → the GDPR point in detail.
FAQ: Confidential federated learning
What is confidential federated learning?
It is federated learning with an added guarantee on what circulates. Federated learning already protects the data, which never leaves its holder. Confidential federated learning also protects the model updates that participants exchange, so that neither the coordinator nor the other members can trace back the contribution of any single member.
Is plain federated learning not enough?
It is enough to keep the data from moving, which is the main point. It does leave two surfaces open: the coordinator sees each member's update before combining them, and on large models those updates can leak information about the data that produced them. Both surfaces can be closed, and that is what the confidentiality reinforcements address.
Does confidential federated learning compute on encrypted data?
No, and this is a common confusion. Computing on encrypted data without decrypting it is the domain of homomorphic encryption and secure multi-party computation. In federated learning, each participant trains on its own cleartext data, on its own machine; encryption covers what travels between participants, not the computation itself.
How does it differ from confidential computing?
Confidential computing centralises the computation and protects it with a hardware guarantee from the processor. Federated learning does not centralise the data. The two are not competitors: the reference literature describes their combination precisely, where the enclave becomes the place in which models are federated, without ever receiving data.
What does a confidentiality reinforcement cost?
It depends on the reinforcement. Transport encryption and the aggregation enclave do not touch model quality; they cost compute time and coordination. Differential privacy is paid in accuracy, because it adds noise to the updates. That is why these reinforcements are chosen per use case rather than on principle.
Must all members measure the same variables?
No. A member that does not observe a variable declares it unobserved: its learning stays at zero on that dimension, and it benefits from what the others learned there. This is in fact where federating pays most: each actor gains access to what it does not measure.
Let us see which level your case calls for
An interactive demonstration is available on request, and we give you access to it.