Active Learning Federated Learning

Machine Learning
Introduced by
Multiple authors (federated active learning emerged ~2020)
Year
2020s
Type
Hybrid paradigm (active querying within distributed training)
Family
Machine learning

What does it do?

Federated Active Learning combines active learning, in which a learner chooses which unlabeled examples to annotate, with federated learning, in which a shared model is trained across distributed clients without pooling their data.

Each client scores its own unlabeled pool with the current global model and requests labels only for the examples it selects. Only the selected samples are sent for annotation; the rest of the raw data stays on the device.

The intuition behind the method

In standard federated learning, each client trains only on the labels it already holds, while in active learning the learner chooses which unlabeled examples to label next. Federated Active Learning joins the two: each client scores its own unlabeled pool with the current global model and selects the examples where the model is most uncertain. The selected examples go to a labeler, and the server aggregates the model updates computed on the clients. Unselected pool samples remain on the client. Because selected samples do leave the device, and the pattern of selections may itself reveal information about local data, the privacy benefit is narrower than in standard federated learning, where no samples are sent anywhere. The intended effect is that, over successive rounds, the global model improves from labels concentrated on informative examples rather than on a random sample; whether this happens depends on the task and on how informative the pools are.

History

Federated learning and the FedAvg aggregation scheme are established approaches to decentralized model training. Active learning has earlier roots in uncertainty sampling and query-by-committee. Federated Active Learning, which combines the two, is a more recent research topic, motivated by labeling costs in healthcare, mobile, and IoT settings where data cannot be centralized. No single originating work for the combined approach is established, so it is best regarded as an active research area rather than a single established method.

When to use it

Choose Federated Active Learning when labeled data is scarce across distributed clients, annotation is costly or requires domain expertise, and raw data must stay on-device for privacy, regulatory, or bandwidth reasons. Examples include medical records held by separate hospitals, user data on mobile devices, and IoT sensor streams. Non-IID client distributions are both a motivation and a caution: the gain comes from directing a small annotation budget to informative examples, but each client's selections may reflect its own distribution. The method is worth preferring over standard federated learning with random labeling only when clients can score their pools and the selections can be compared against a random-query baseline on the user's own data. Do not use it when the data can be centralized, in which case ordinary active learning is simpler; when clients lack the compute to score their own pools; when label noise is high, because uncertainty-driven queries can concentrate on ambiguous or mislabeled samples; or when delays in synchronizing labeling rounds are a binding constraint.

Limitations and considerations

  • Communication overhead per round grows with the number of clients that report query selections and with the labeling traffic those selections generate.
  • Under non-IID client distributions, each client's selections may reflect its own distribution rather than the global one, so the global model can drift toward local patterns.
  • Querying sends selected raw samples to an annotator, so the on-device privacy property does not cover those samples unless the labeler is within the trust boundary.
  • Synchronizing annotation rounds across distributed clients adds latency and coordination complexity.
  • Evaluating model performance is harder without a centralized labeled test set, and the annotation budget must be allocated across clients carefully to avoid starving small or minority clients.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Keeps most raw samples on-device: model updates are shared rather than data, and only the examples selected for querying are sent for labeling.
  • Can reduce the number of labels needed by directing annotation to samples the current model finds uncertain; the size of the saving depends on the task and on how informative the unlabeled pools are, and should be measured against a random-query baseline.
  • Selection runs on each client's own pool, so it can reflect local data that a central sampler would not see, subject to the non-IID caveat under limitations.
  • Can be combined with differential privacy during local training and with secure aggregation at the server, as noted in the FAQ; the privacy accounting must also cover the selection pattern.
  • Adding clients adds unlabeled pools, which can widen coverage of the input space, although each client's selection remains local.

Applications

  • Medical imaging annotation across hospitals where patient data cannot be shared.
  • On-device personalization for mobile keyboards or speech recognition with minimal user labeling.
  • Industrial IoT anomaly detection where sensor data must remain at edge nodes.
  • Cross-silo NLP fine-tuning across organizations with proprietary corpora.
  • Remote sensing classification where satellite imagery is stored in geographically distributed data centers.

How it works

How it works

1

A global model is initialized and broadcast to all participating clients. This can be a randomly initialized model or a pre-trained checkpoint, and it defines the shared starting point for the round.

2

Each client applies the current global model to its own unlabeled local pool and computes an informativeness score for each sample, for example prediction entropy, margin sampling, or query-by-committee disagreement. The scores are computed on-device, and the pool itself is not transmitted.

3

Based on the scores, each client selects up to its per-round annotation budget of examples, usually the most uncertain ones. Some acquisition functions also favour examples that are representative of the pool. The budget is fixed per round and per client, so the total number of labels requested is controlled.

4

Only the selected examples (or their identifiers and the features needed for labeling) are sent to a human or automated labeler, and the labels are returned to the client. The selected examples are the only raw data that leave the client in this step, and the remainder of the pool stays on-device. The selection pattern can still reveal information about local data, and whether the labeler is trusted depends on the deployment.

5

Each client fine-tunes the global model on its newly labeled examples, and optionally on its existing labeled set, using standard local SGD or Adam optimization for a fixed number of local epochs.

6

Clients upload their model updates (gradients or weight deltas, not data) to the server. The server aggregates these updates, typically via FedAvg (weighted averaging), to form the updated global model, which is then broadcast to start the next round.

Common pitfalls

  • Applying a centralized acquisition function to client pools without checking for distribution shift between clients; local uncertainty estimates may not reflect the uncertainty of the global model.
  • Ignoring communication and annotation costs when setting the per-round query budget: requesting too many labels per client per round can overwhelm the labeling pipeline.
  • Starting to query before the global model is reasonably trained on the available labels; uncertainty scores from a weak model can waste the annotation budget, as the FAQ notes for cold-start querying. No validated threshold for readiness exists, so judge it by whether validation performance has stopped improving across rounds.
  • Neglecting stragglers, meaning slow or intermittently available clients, which can bias aggregation toward the distributions of faster clients.
  • Assuming IID client data when applying FedAvg; with strongly heterogeneous clients, averaging can slow convergence or degrade the global model.

Frequently asked questions

How is Federated Active Learning different from standard Federated Learning?

Standard Federated Learning trains only on the labeled data clients already possess. Federated Active Learning adds an active querying step: each client scores its unlabeled pool and selects the most informative examples to be annotated. The aim is for the global model to reach a given performance with fewer total labels, but the saving is task- and data-dependent and should be measured against random querying on the user's own data.

Which acquisition function should I use for local scoring?

Entropy sampling (choosing examples with highest predictive entropy) is a common starting point because it needs only the model's predictive probabilities. Margin sampling is another simple option. BALD (Bayesian Active Learning by Disagreement) requires an estimate of epistemic uncertainty, for example from MC dropout or an ensemble, so it is not a drop-in replacement for entropy on a single deterministic global model. The choice should be validated on a held-out labeled check set rather than assumed.

Can Federated Active Learning be combined with differential privacy?

Yes. Differential privacy mechanisms such as DP-SGD can be applied during local training, and secure aggregation can be used server-side. The privacy budget must account for both the model updates and any metadata about which samples were selected for querying.

What happens when clients have very different amounts of unlabeled data?

Clients with large unlabeled pools will dominate the query budget if each receives an equal absolute quota. Proportional or adaptive budget allocation, which scales each client's annotation budget by the size or estimated informativeness of its pool, can mitigate this imbalance.

How many federation rounds are typically needed before active querying helps?

It depends on initial model quality, and no validated threshold exists, so the timing should be tuned empirically. A practical check is whether validation performance on a labeled check set has stopped improving across standard federated rounds before active querying is switched on. Cold-start querying with a random initial model can waste the annotation budget on uninformative samples, so compare early querying against random selection.

Related methods

Sources

  1. Ro, J. Y., Ali, A., Lin, Z., & Suresh, A. T. (2021). Scaling Federated Learning for Fine-tuning of Large Language Models. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (EMNLP).

    Open publication reference
  2. Federated learning. Wikipedia.

    Open publication reference