Federated Reconnaissance: Efficient, Distributed, Class-Incremental Learning

Sean M. Hendryx, Dharma Raj Kc, Bradley Walls, Clayton MorrisonOpenReview 2021

TL;DR

This paper introduces "federated reconnaissance," a new learning paradigm where distributed clients learn new concepts incrementally and share this knowledge efficiently. They propose a benchmark and demonstrate that prototypical networks, which communicate feature vectors, are a robust and efficient solution, outperforming complex continual learning methods.

What Problem Does This Paper Address?

Traditional federated learning often assumes a fixed set of classes learned by all clients. However, real-world applications, like mobile apps learning new object categories, require models to continuously learn new classes incrementally while retaining knowledge of previously learned ones. This is further complicated in a federated setting where clients have decentralized data and limited communication bandwidth. The challenge is to enable distributed clients to learn new concepts independently, share this knowledge efficiently, and merge it into a unified model that supports the growing superset of all learned classes without forgetting old ones. This problem sits at the intersection of federated learning, continual learning, and meta-learning.

Methods

The authors propose "federated reconnaissance" and introduce a new evaluation framework for it. They compare several learning algorithms, including:

  • Lower Baseline: Training with SGD on new data only, serving as an empirical lower bound to highlight catastrophic forgetting.
  • iCaRL: An adaptation of the iCaRL algorithm for federated settings, using exemplars and distillation to combat forgetting.
  • Federated Prototypical Networks: The core contribution, extending prototypical networks for distributed continual learning. This involves:
  • Online Prototype Updating: Efficiently updating class prototypes using a numerically stable online averaging algorithm, avoiding the need to store raw embeddings or perform gradient-based learning for merging.
  • Model Merging: Averaging prototype vectors from clients to create a unified server model.
  • Upper Baseline: Training with SGD on all data seen by all clients, representing an empirical upper bound.

They also explore different neural network architectures, specifically a 4-convolutional layer model and a ResNet-18, and investigate the impact of "k-shot augmentation" during pretraining.

Datasets

  • Omniglot: Used for single-client continual learning experiments.
  • mini-ImageNet: Adapted to create the "mini-ImageNet Federated Reconnaissance Benchmark." This benchmark consists of 100 classes, split into 50 base classes for pretraining and 50 field classes for online learning.

Key Insights and Ideas

  • Prototypical Networks Shine: Prototypical networks are surprisingly effective for federated reconnaissance. Their ability to compress class knowledge into compact feature vectors (prototypes) makes them ideal for efficient communication and robust to catastrophic forgetting.
  • Feature Vector Communication is Key: Communicating feature vectors (prototypes) is an efficient, robust, and effective strategy for distributed continual learning, outperforming more complex methods.
  • Online Averaging is Efficient: The proposed online averaging of prototype vectors for model merging is computationally efficient, requiring minimal communication overhead, memory, and update time per class, without needing gradient-based learning or hyperparameter tuning.
  • Collective Ascent: The paper demonstrates "collective ascent," where a group of clients improves their collective accuracy by sharing knowledge, even when learning new concepts sparsely and without direct access to all data. This highlights the power of collaborative learning in this setting.
  • Pretraining Matters: A large number of base classes for pretraining significantly improves the performance of embedding-based models in federated reconnaissance.

Key Results

  • Outperforming State-of-the-Art: A simple 4-convolutional layer prototypical network significantly outperformed complex state-of-the-art continual learning algorithms.
  • It achieved over 22% higher accuracy on Omniglot after learning 600 classes.
  • It achieved over 33% higher accuracy on mini-ImageNet after learning 20 classes incrementally.
  • Federated Reconnaissance Benchmark: Prototypical network variants were found to be the most accurate and computationally efficient on their proposed benchmark.
  • The k-shot augmented prototypical networks achieved the highest accuracy (around 37.4%).
  • The iCaRL adaptation performed significantly worse (around 33.6%), indicating its struggle with catastrophic forgetting in this federated context.
  • The "Upper Baseline" (training on all data) achieved the highest accuracy (around 47.1%) but at a prohibitive computational cost.
  • Collective Ascent Demonstrated: Figure 4 shows a clear increase in accuracy over missions, indicating that clients are effectively leveraging shared knowledge.

Limitations and Future Work

  • Numerical Stability: The authors note that online averaging of prototypes can suffer from slight accuracy degradation due to numerical issues (floating-point imprecision, etc.). Developing more numerically robust online prototype computation is a future direction.
  • Openset Problems & Out-of-Distribution: The current work focuses on closed-set recognition. Future work aims to extend research to openset problems and out-of-distribution class identification on larger benchmarks.
  • Differential Privacy: The paper mentions that differential privacy for federated prototypical networks is a topic for future work.
  • Peer-to-Peer Learning: While the extension to direct peer-to-peer distributed learning is straightforward, handling non-unique examples across clients would require additional bookkeeping.
  • ResNet Overfitting: The ResNet-18 backbone was found to overfit excessively to pretraining examples, leading the authors to focus their in-depth analysis on the simpler 4-layer convolutional model.

Summary updated

BibTeX
@misc{hendryx2021federated,
  author = {Sean M. Hendryx and Dharma Raj KC and Bradley Walls and Clayton Morrison},
  title = {{Federated Reconnaissance: Efficient, Distributed, Class-Incremental Learning}},
  year = {2021},
  eprint = {2109.00150},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.00150},
}
Figure