Federated Active Learning for Target Domain Generalisation

Razvan Caramalau, Binod Bhattarai, Danail StoyanovarXiv 2023

This paper, "Federated Active Learning for Target Domain Generalisation," presents a new framework called FEDALV that tackles three major hurdles in modern machine learning simultaneously: data privacy, domain shift, and the high cost of data labeling.

TL;DR

FEDALV combines Federated Learning (FL) and Domain Generalization (DG) with an Active Learning (AL) strategy that uses "free energy" to identify the most informative data to label. The result is a decentralized system that can generalize to completely unseen target domains while requiring as little as 5% of the source data to be annotated.

What Problem Does This Paper Address?

The authors address a common, real-world bottleneck in AI deployment. Imagine you want to train a medical imaging model across several hospitals (Federated Learning) so that it works perfectly at a new hospital it has never seen before (Domain Generalization).

Standard approaches face three massive problems:

  1. Privacy: Hospitals cannot share raw patient images.
  2. Domain Shift: Data from one hospital (e.g., using a Siemens scanner) looks different from another (e.g., using a GE scanner), and both look different from the new target hospital.
  3. Labeling Cost: Expert radiologists' time is expensive; you can't afford to label every single image across all hospitals.

While existing research has looked at these problems in pairs (e.g., Federated Domain Generalization), this is the first work to integrate Active Learning into the mix to specifically boost generalization to a new target domain while keeping labeling costs at a minimum.

Methods

The framework consists of two main parts, illustrated in Figure 2:

Figure 2. FEDA - Federated Learning with Energy-based Domain Alignment (left) is composed of two regularisation stages: the local induces simple representations and alignment between sources; the global exploits free energy biases between sources and target. FEDALV Selection principle (right): ranks the target samples with the highest free energies and selects the source samples in their proximity.

1. FEDA (The FDG Foundation)

FEDA (Federated Learning with Energy-based Domain Alignment) is the underlying training pipeline. It uses a two-stage optimization:

  • Local Client Level: Clients train their models using standard classification loss plus two regularizers (L2 norm and Conditional Mutual Information) to ensure the learned features are simple and domain-invariant.
  • Global Server Level: The server treats the global model as an Energy-Based Model (EBM). It introduces a novel Free Energy Alignment (FEA) loss. This loss essentially identifies the "energy" gap between the source domains and the unseen target domain and tries to minimize it, pulling the distributions together in energy space without ever seeing the raw data.

2. FEDALV (The Active Learning Component)

FEDALV adds a smart selection strategy. Instead of labeling random images at each client, it uses the global model's "free energy" as an uncertainty metric.

  • It identifies target samples where the model has high free energy (meaning the model is confused/uncertain).
  • It then queries the source clients for unlabeled images that are most similar (in representation space) to these "hard" target samples.
  • Variable Budget: Crucially, FEDALV doesn't give every client the same labeling budget. It dynamically allocates more budget to clients whose data is most useful for aligning with the target domain.

Datasets

The authors evaluated their framework on three standard benchmarks for domain generalization, each featuring significant "domain shift" (e.g., photos vs. sketches):

  • PACS: Art, Cartoon, Photo, and Sketch domains (9,991 images, 7 classes).
  • OfficeHome: Art, Clipart, Product, and Real-world domains (15,500 images, 65 classes).
  • OfficeCaltech: Caltech, Amazon, Webcam, and DSLR domains (2,533 images, 10 classes).

Key Insights and Ideas

  • Free Energy as Uncertainty: The most elegant idea is using EBM principles for Active Learning. In this framework, high free energy is a direct proxy for uncertainty regarding the target domain.
  • Target-Driven Source Selection: Most Active Learning selects data that is "hard" for the current model. FEDALV selects source data that is "hard" specifically in relation to the target domain.
  • Variable Budgets Matter: The authors found that some source domains are naturally closer to the target than others. By allowing variable budgets per client, the system focuses labeling efforts where they provide the most "bang for the buck" for generalization.
  • Privacy-Preserving Alignment: The FEA loss allows the server to align source and target distributions using only predicted energies and latent representations, maintaining the privacy requirements of Federated Learning.

Key Results

The quantitative results are impressive:

  • SOTA Performance: FEDA (the base FDG method) outperformed contemporary baselines like FedSR and FedGA on all three datasets. On OfficeHome, it improved average target accuracy by over 7% compared to FedSR.
  • Extreme Efficiency: FEDALV achieved remarkable results with very little labeled data. On the PACS dataset, it reached 83.63% accuracy using only 5% of the labeled source data—matching the performance of models trained on 100% of the data.
  • Visual Alignment: As shown in Figure 1, the target domain (light blue) successfully aligns with the source clusters after just a few cycles of the FEDALV process.
Figure 1. FEDALV High-level framework: Active Learning is in- tegrated at the server level in our proposed FDG framework. Ini- tially, a subset of source data is labelled, and over time, it is refined to retain only the most informative samples for target generalisa- tion. Communication links with the global model operate during the FL training, and AL queries are propagated once the process is complete. After just a couple of cycles, the target domain (light blue) aligns with the sources in class clusters.

Limitations and Future Work

  • Hyperparameter Sensitivity: The framework relies on three scaling factors ($\lambda$) for its regularization losses. Currently, these are fixed, but the authors suggest they should ideally be learned dynamically for each domain.
  • Global Scaler Behavior: The global alignment scaler ($\lambda_{fea}$) can sometimes pull source models too hard toward the target, potentially hurting local performance. The authors plan to investigate adaptive increments for this value.
  • Scalability: While tested on standard benchmarks, future work is needed to see how FEDALV scales to hundreds or thousands of highly heterogeneous clients.

Summary updated

BibTeX
@misc{caramalau2023federated,
  author = {Razvan Caramalau and Binod Bhattarai and Danail Stoyanov},
  title = {{Federated Active Learning for Target Domain Generalisation}},
  year = {2023},
  eprint = {2312.02247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.02247},
}
Figure