Distributed Continual Learning

Long Le, Marcel Hussing, Eric EatonarXiv 2024 · DOI

Abstract

Distributed Continual Learning (DCL) formalizes a framework where heterogeneous agents learn tasks sequentially while sharing knowledge under strict communication constraints. This study evaluates three primary modes of knowledge exchange: instance-based sharing, full-model sharing, and modular parameter sharing. Results demonstrate that sharing modular, reusable model components is an order of magnitude more communication-efficient than sharing raw data or full model parameters, particularly as task complexity increases.

Introduction

Modern AI development typically relies on massive foundation models trained on centralized servers. However, the rise of ubiquitous embodied agents—such as autonomous vehicle fleets or delivery robots—necessitates a shift toward decentralized learning. These agents must adapt to specific environments over time without forgetting previous skills (Continual Learning) and benefit from peer experiences without central coordination (Distributed Learning).

DCL addresses three core challenges: agent heterogeneity (varying architectures), task heterogeneity (diverse environmental inputs), and arbitrary network topologies (peer-to-peer communication).

Methodology

The authors propose and evaluate three distinct "modes" of knowledge exchange:

  1. Instance-based (Data) Sharing: Agents request training examples from neighbors using methods like Recv (latent distance-based) or Simp (class-based).
  2. Full-Model Sharing: Utilizing Federated Learning baselines like FedAvg and FedProx, alongside FedFish, which prioritizes parameters based on Fisher information.
  3. Modular Parameter Sharing (modmod): Agents share small, self-contained neural network "modules." Selection is guided by metrics like LEEP (Log Expected Empirical Prediction) to identify the most relevant modules for a new task.

Key Insights: The "Density" of Knowledge

The effectiveness of a sharing strategy depends heavily on task complexity. For simple tasks like MNIST, sharing raw data is effective. However, as tasks become more complex (e.g., CIFAR-100), the information density of a single data point decreases. In these scenarios, sharing pre-optimized parameters or modules becomes essential.

Relative gain vs communication cost across different sharing strategies.

Modular sharing provides a "Goldilocks" middle ground: modules are dense enough to be informative but flexible enough to be swapped between heterogeneous agents. Furthermore, standard federated methods often struggle with high heterogeneity; in experiments with combined datasets, forcing agents to average models sometimes resulted in performance worse than isolated learning. Modular sharing avoids this by being selective.

Performance and Efficiency

The modular approach (modmod) significantly outperforms traditional methods in both accuracy and learning speed. On the CIFAR-100 benchmark, a modular hybrid approach achieved 77.05% accuracy, compared to 70.04% for isolated learning.

Test accuracy across epochs for various modular sharing methods on multiple benchmarks.

In terms of communication efficiency, modmod achieved a "Value of Budget" (improvement per bit sent) of $1.17 \times 10^{-4}$, nearly ten times higher than the next best method, Monolithic Federated ($1.65 \times 10^{-5}$). Modular sharing also provides a massive boost in initial learning speed, allowing agents to reach high accuracy much faster than those relying on data sharing.

Conclusion

Distributed Continual Learning via modular parameter sharing offers a robust path forward for decentralized AI. By focusing on reusable components rather than raw data or entire models, agents can learn faster and more efficiently. Future work will explore extending this framework to Reinforcement Learning and refining communication through advanced compression techniques.

Summary updated

BibTeX
@misc{le2024distributed,
  author = {Long Le and Marcel Hussing and Eric Eaton},
  title = {{Distributed Continual Learning}},
  year = {2024},
  eprint = {2405.17466},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.17466},
}
Figure