- Introduced by
- McMahan et al. (FedAvg) extended by subsequent ensemble work
- Year
- 2017–2019
- Type
- Ensemble meta-strategy over federated clients
- Family
- Machine learning
What does it do?
Ensemble Federated Learning applies ensemble aggregation to the federated setting: each participating client trains its own local model on data that stays on site, and a central server combines the clients' predictions using rules such as voting, weighted averaging, or stacking.
Unlike FedAvg, which averages model parameters into a single global model, the client models here are not merged into one parameter set. The description is limited to output-level aggregation; variants that exchange model parameters are not covered.
The intuition behind the method
Standard federated learning averages model parameters across clients (FedAvg), which can dilute specialised local patterns. Ensemble Federated Learning keeps each client's model separate and treats the clients like members of an ensemble: the server combines their outputs via voting, weighted averaging, or a stacking meta-learner. This preserves each client's local expertise rather than blending it into one set of weights, and can improve generalisation across heterogeneous data distributions, although the size of the benefit depends on the data and the aggregation rule. Raw data never leaves each client's site.
History
Federated learning was formalised by McMahan et al. (2017), whose FedAvg algorithm averages model parameters across clients. The output-level ensemble variant described here aggregates client outputs instead. Specific authors and a date for this variant are not given.
When to use it
Choose Ensemble Federated Learning when data cannot be centralised because of privacy, regulatory or ownership constraints, and when local data distributions differ enough (the non-IID setting) that averaging a single set of parameters is a poor fit. It suits settings with a moderate number of heterogeneous clients, such as healthcare, finance or IoT deployments, where clients may need different model architectures. Avoid it when the data can be pooled, since a standard ensemble is simpler and faster; when the federation is very large, because collecting every client's outputs becomes impractical; or when bandwidth is so limited that exchanging outputs each round is prohibitive. If weights or a meta-learner are to be learned, a reference set on which the clients' predictions can be compared is also required.
Limitations and considerations
- Communication cost grows with the number of clients, because every participating client's predictions must be sent for each scored input.
- Designing an effective ensemble aggregation rule (weights, meta-learner) requires a reference set on which client predictions can be compared, which may not always be available.
- Clients with low-quality or very small local datasets can degrade ensemble quality if not down-weighted.
- More complex to implement and audit than standard federated averaging.
- Every prediction depends on client availability, so latency and the uptime of each site affect the service.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Keeps raw training data on client sites; only predictions are exchanged.
- Because client models are not averaged into one parameter set, local patterns are not forced toward a common solution. Whether this improves accuracy on a given non-IID problem has to be checked empirically.
- Combining outputs can improve robustness when individual client models make different errors, since the combined prediction does not depend on any single model. The benefit depends on the aggregation rule and on client data quality.
- Compatible with heterogeneous client architectures, because different clients can use different model types as long as their outputs share a common format.
- If a client is unavailable when a prediction is requested, the server can aggregate over the remaining outputs, though the ensemble then reflects fewer clients.
Applications
- Collaborative medical diagnosis across hospitals that cannot share patient records.
- Fraud detection across competing financial institutions sharing only model predictions.
- Personalised keyboard and speech models across mobile devices with heterogeneous user data.
- IoT sensor analytics across factories with proprietary operational data.
- Cross-silo federated prediction in insurance or energy grids.
How it works
How it works
Data remains distributed across K clients, such as hospitals, devices or organisations. Each client holds a private local dataset that is not transferred to the server, which addresses data-sovereignty and privacy requirements that restrict centralised collection.
Each client trains its own model on local data for one or more local epochs. The model can be any learner suited to that client's data, such as a neural network, gradient booster or linear model, so architectures may differ across clients.
Clients send their predictions to the server rather than model parameters or gradients. For each input to be scored, the server receives one prediction per client. When weights or a meta-learner are learned, clients also send their predictions on a shared reference set. Sending predictions reduces the volume exchanged and limits what is revealed about the local models, but it does not remove information leakage entirely.
The server combines client outputs using an ensemble rule: soft-voting or hard-voting for classification, weighted averaging for regression, or a stacking meta-learner trained on the collected local predictions. Weights can be adaptive, rewarding clients whose models perform better on a held-out reference set.
Formula
\hat{y} = \text{Aggregate}(f_1(x), f_2(x), \dots, f_K(x))Whether the server sends anything back to clients depends on the implementation. If the aggregated prediction is only returned to the requester or monitored, the ensemble is one-shot and client models are not changed. If the aggregated output is used to adjust client models in later rounds, the training target or pseudo-label must be defined explicitly, because output-level aggregation does not fix one. Ensemble error on a server-side reference set can be monitored to decide when to stop, and convergence should be checked empirically.
Common pitfalls
- Treating all clients equally in aggregation regardless of local data quality or volume, leading to noise-dominated predictions.
- Overlooking the need for a reference set on which client predictions can be compared when learning ensemble weights.
- Assuming privacy is fully guaranteed without formal differential-privacy analysis — model outputs can still leak information.
- Ignoring communication round budget and allowing the ensemble to stall due to slow or dropped clients.
- Using voting ensemble rules for regression tasks instead of averaging.
Frequently asked questions
How is Ensemble Federated Learning different from FedAvg?
FedAvg averages model weights across clients into a single global model. Ensemble Federated Learning keeps each client's model separate and aggregates their predictions at inference time. This can preserve local specialisation. Whether it helps on non-IID data depends on the problem, so it should be tested against a FedAvg baseline.
Does transmitting model outputs violate privacy?
Transmitting predictions rather than raw data reduces what is exposed, but it does not by itself guarantee privacy, because predictions can still leak information about the local models and data. Stronger guarantees require additional measures such as differential privacy or secure aggregation, whose effect on accuracy should be evaluated.
What aggregation rule should I use?
The choice depends on the task and on whether a reference set is available. For classification, soft voting is a natural starting point; for regression, weighted averaging is the corresponding rule. Fixed weights need no reference set. Weights derived from reference-set accuracy, or a stacking meta-learner, can be compared with the simpler rules on that set before one is chosen.
How many clients are needed?
Ensemble benefits require several clients whose models differ meaningfully; identical or near-identical models add little. As the number of clients grows, the communication and waiting cost of collecting every output increases, which is a practical limit on federation size.
Can clients use different model types?
Yes. Because aggregation happens at the prediction level rather than the parameter level, different clients can use neural networks, gradient boosters, or linear models simultaneously, provided they report outputs in a common format, such as class probabilities over the same classes. This suits heterogeneous environments.
Related methods
Sources
McMahan, H. B., Moore, E., Ramage, D., Hampson, S., & y Arcas, B. A. (2017). Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS), PMLR 54, 1273–1282.
Open publication referenceChen, Y., Qin, X., Wang, J., Yu, C., & Gao, W. (2021). FedHealth: A federated transfer learning framework for wearable healthcare. IEEE Intelligent Systems, 35(4), 83–93.
Open DOI reference