Mesh Request a demo
Comparison

Federated Learning, Confidential Computing, Clean Rooms, Homomorphic Encryption, Secure Multi-Party Computation

In short

Five technologies let an organisation extract value from data it will not, or cannot, expose. They are not interchangeable, and one criterion separates them: is the material pooled, yes or no? Four of them pool it and protect that pooling. Only one pools nothing, and that is federated learning. The choice then turns on the output you want: a shared model, a match between databases, or an analytical query.

On this page

The comparison, nine criteria

Abbreviations used in the table: FL federated learning, CC confidential computing (hardware enclave), CR data clean room, HE homomorphic encryption, MPC secure multi-party computation.

CriterionFLCCCRHEMPC
Is the material pooled? NoYesYesYes, encryptedYes, as shares
What leaves each actor Model parametersIts data, encryptedIts dataIts data, encryptedShares of its data
Who can read the data in cleartext Its holder, and no one elseThe attested code inside the enclaveThe environment, under its rulesWhoever holds the keyNo one, by construction
What the central operator sees Model updates and nothing else (nothing at all with secure aggregation or an enclave)Nothing, if it cannot inspect the enclaveWhatever governance allows itCiphertextsShares, useless on their own
Compute overhead Low: an ordinary training job at each siteModerateLow to moderateSeveral orders of magnitudeHigh, and dominated by network exchanges
What it actually costs Coordination between organisationsA dependency on hardware and its attestationTrust in the operator of the venueCompute time, and a limited set of operationsBandwidth and synchronisation
What you get A model trained by the collectiveAny computation, inside the enclaveGoverned analyses and matchesAn encrypted result, to be decryptedA result agreed in advance
Matching two databases row by row Out of scopePossibleIts primary usePossible, costlyPossible
Exposure if compromised One actor's dataThe whole pool, if the enclave fallsThe whole poolThe whole pool, if the key fallsVariable, by collusion threshold

The last row is the one IT directors look at first, and it settles the matter without ambiguity. In four cases out of five there is a place where everything sits, protected by hardware, by rules or by a key. In the fifth, that place does not exist. → why the breach comes from the copy.

Federated learning

The model moves to the data, not the other way round. Each participant trains a copy of the model on its own data, then returns only the learned parameters. A coordinator combines them and sends back an improved model for the next round.

It wins when several organisations want the same model, none of them will transfer its data, and each has a blind spot the others fill. That is the case for competitors in one sector, for establishments in one network, and for sites of one group whose data cannot cross a border.

It does not fit when the goal is a row-by-row match between two databases, or a one-off analytical query over a pooled set. That is not the question it answers.

One point that is often not anticipated works in its favour: participants do not have to measure the same variables. 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. Heterogeneous measurement is not a prerequisite to resolve; it is where federating pays most. → how it works in detail.

What it costs not to centralise is measurable, and we measured it: on the three real public datasets of our bench, the federated model lands within 0.3 AUC points at most of the model obtained by pooling everything in one place, against a measurement uncertainty at least six times larger. → the demonstration and its figures.

Confidential computing

The data is pooled, but computation runs inside a trusted execution environment of the processor, a hardware enclave (Intel SGX, Intel TDX, AMD SEV, and now equivalent graphics accelerators). The machine's operating system, and therefore the host, cannot read the enclave's memory. Remote attestation makes it possible to verify which code is running there.

It wins when an arbitrary computation over pooled data is required, and you are willing to trust the chip maker rather than the operator of the machine. It is the natural answer to "I want to use a public cloud without its operator seeing my data".

Its limit is the hardware assumption: the guarantee is worth what the attestation chain is worth, and enclaves have a history of side-channel attacks. It also assumes the data is in fact transferred to a common venue, which is precisely what a legal department refuses in many cases.

Data clean room

A neutral environment where several parties deposit their data to match it under strict rules: permitted queries, minimum aggregation thresholds, access logging. The historical use is in advertising, to reconcile audiences without exchanging customer files.

It wins when the need is a match: how many of my customers are also yours, what overlap between two populations, what performance a campaign had on an audience I do not own.

Its limit is that it is a governance arrangement, not a technical impossibility. The data is pooled there, and protection rests on the venue's rules and on the trust placed in its operator. That is workable, and it is a different category of risk from one where no copy exists.

Homomorphic encryption

An encryption scheme that allows computation directly on ciphertexts: you add and multiply encrypted data, and decrypting the result gives what you would have obtained by computing on the cleartext. The full construction is due to Craig Gentry ("Fully Homomorphic Encryption Using Ideal Lattices", STOC 2009, pp. 169-178); today's practical schemes descend from its successors.

It wins when a third party must perform a precise, known-in-advance computation without ever seeing the data, and the volume stays compatible with its cost. Real deployments revolve around targeted queries, not full model training.

Its limit is compute cost, several orders of magnitude above cleartext computation, and the difficulty of non-polynomial operations. Training a model end to end under homomorphic encryption remains a research topic, not an industrial architecture choice.

Secure multi-party computation

Several actors jointly compute a function of their respective data without any of them learning the others' data. The data is split into shares distributed among participants, and the protocol guarantees that a single share reveals nothing. Andrew Yao posed the problem in 1982, and the protocol family is now mature for well-bounded functions.

It wins when the expected output is a value agreed in advance between parties that do not trust one another: a set intersection, a joint statistic, an auction.

Its limit is the exchange cost, which grows with the number of participants and the number of protocol rounds, and the fact that the function must be fixed before starting. The security model depends on a collusion threshold that has to be defined.

The ones that combine, and why that is the interesting case

Presenting these as rivals is convenient but wrong on one precise point, and the literature says so: 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.

The useful combination is this one: keep federated learning, so no data is pooled anywhere, and place the aggregation inside an enclave. The enclave then never receives data, it receives model updates, and nobody, the operator included, sees any single member's contribution. That is the arrangement SecFL describes (D. Le Quoc, C. Fetzer, arXiv:2110.00981).

Differential privacy, for its part, is not a sixth approach: it is a reinforcement that can be added to any of the five, and the only one that addresses leakage through the parameters. It is paid in accuracy. → the four reinforcements, and what each one costs.

At Mesh the baseline is federated learning with end-to-end transport encryption. The enclave, secure aggregation and differential privacy are options, chosen on the use case. And one boundary is worth stating plainly: Mesh does not compute on encrypted data. Each participant trains on its own cleartext data, at home; encryption covers what circulates.

Three questions to decide

  1. What output do you expect? A shared predictive model points to federated learning. A match between populations points to a clean room or to secure multi-party computation. An arbitrary computation over a pooled set points to an enclave.
  2. Is a data transfer legally acceptable? If the answer is no, four of the five approaches drop out, because they all assume the material leaves its holder in one form or another.
  3. Who must see nothing? If the list includes the operator of the arrangement, you need a guarantee on the aggregation: secure aggregation or an enclave. If it stops at the network and the host, transport encryption is enough.

One methodological note, valid for all five: none of these technologies pronounces compliance. They make compliance reachable, and it is a lawyer who rules on a concrete deployment. → the GDPR point.

FAQ: comparing privacy technologies

What is the difference between federated learning and homomorphic encryption?

Federated learning does not pool the data: each actor trains at home, in cleartext, and only model parameters circulate. Homomorphic encryption pools encrypted data and computes on it without decrypting. The first moves the computation, the second moves protected data, and their compute overheads are not of the same order.

Does a data clean room protect as well as federated learning?

It protects differently. In a clean room the data is in fact deposited in one place, and protection rests on that place's access rules and on the trust placed in its operator. In federated learning the data is deposited nowhere: there is no central copy to govern, and therefore no central copy to lose.

Confidential computing or federated learning: must you choose?

No, and the reference literature says so explicitly: they are not competing technologies. The enclave can become the place where model updates are combined, without ever receiving data. You then keep the absence of data centralisation and add a guarantee on the aggregation.

Which is the cheapest to implement?

In compute terms federated learning is the lightest of the five: each actor runs an ordinary training job on its own machine, and only the parameter exchange is added. Its real cost lies elsewhere, in coordination between organisations. Homomorphic encryption and secure multi-party computation are the heaviest in both compute and exchanges.

Can you join two databases with federated learning?

That is not what federated learning does. It trains a shared model; it does not match two databases row by row. A join on common identifiers is closer to a clean room or to secure multi-party computation. The question to ask is therefore about the expected output: a model, or a match.

Is differential privacy a sixth approach?

No, it is a reinforcement that can be added to any of the five. It adds calibrated noise to prevent a result from being traced back to an individual, and it is the only mechanism on the list that addresses leakage through a model's parameters. It is paid in accuracy.

Let us see which one answers your case

An interactive demonstration is available on request, and we give you access to it.