Distributed Learning on Heterogeneous Resource-Constrained Devices

Martin Rapp, Ramin Khalili, Jörg HenkelarXiv 2020

Abstract

We consider a distributed system, consisting of a heterogeneous set of devices, ranging from low-end to high-end. These devices have different profiles, e.g., different energy budgets, or different hardware specifications, determining their capabilities on performing certain learning tasks. We propose the first approach that enables distributed learning in such a heterogeneous system. Applying our approach, each device employs a neural network (NN) with a topology that fits its capabilities; however, part of these NNs share the same topology, so that their parameters can be jointly learned. This differs from current approaches, such as federated learning, which require all devices to employ the same NN, enforcing a trade-off between achievable accuracy and computational overhead of training. We evaluate heterogeneous distributed learning for reinforcement learning (RL) and observe that it greatly improves the achievable reward on more powerful devices, compared to current approaches, while still maintaining a high reward on the weaker devices. We also explore supervised learning, observing similar gains.

Introduction

Distributed learning, particularly Federated Learning (FL), has traditionally been a "one-size-fits-all" endeavor. To train a model across a fleet of devices—such as smartphones, IoT sensors, or edge gateways—every participant is typically required to execute the exact same neural network (NN) architecture. This requirement creates a significant bottleneck in real-world deployments where hardware is inherently heterogeneous.

A high-end smartphone equipped with a dedicated AI accelerator possesses vastly different energy, memory, and compute budgets compared to a low-power wireless sensor. Current paradigms force a difficult choice: selecting a complex model excludes weak devices that cannot run it, while selecting a lightweight model "dumbs down" powerful devices, capping the maximum achievable accuracy for the entire system. This work addresses this "weakest link" bottleneck to enable effective cooperative learning across a diverse hardware spectrum.

Methodology: Heterogeneous Distributed Learning

The core innovation of this work is Heterogeneous Distributed Learning. Instead of enforcing a single global model, the system utilizes a family of models with varying depths or widths that share a common foundation.

Shared Stem and Specialized Branches

The architecture is divided into two main components:

  1. Shared Stem: All devices, regardless of their computational power, employ an NN where the initial layers (the "stem") have an identical topology. These layers typically function as feature extractors, learning universal representations like edges in images or basic movement patterns in games.
  2. Specialized Branches: Following the stem, the architecture diverges. Powerful devices utilize "complex branches" with more layers and neurons to achieve high accuracy. Conversely, weak devices use "lightweight branches" to remain within their resource constraints.
Neural network architecture with a shared stem and specialized branches for heterogeneous devices.

Partial Synchronization and Cascading

During training, devices only exchange and synchronize the parameters of the shared stem. The specialized branches are trained locally on each device. For supervised learning tasks like image classification, the authors introduce a "cascaded" topology where the lightweight model is a sub-component of the complex model. A technique called Branch Dropout is employed to ensure the lightweight branch can function independently without relying on the outputs of the complex branch.

Experimental Evaluation

The approach was evaluated across two distinct domains to test its versatility:

  • Reinforcement Learning (RL): Using the Atari 2600 game suite (Breakout, BeamRider, and SpaceInvaders), the researchers simulated a mix of "powerful" and "weak" agents.
  • Supervised Learning: Using the CIFAR-10 dataset, a standard benchmark for image classification, to evaluate the cascading approach.

Key Results

The results demonstrate that heterogeneous learning successfully breaks the resource-accuracy trade-off.

Performance Gains in Reinforcement Learning

In games like Breakout, the heterogeneous approach allowed powerful devices to reach high scores that matched "isolated" training (where a powerful device trains alone on a large model). Simultaneously, it helped weak devices converge much faster and more stably than they would have in isolation.

Performance comparison of isolated, homogeneous, and heterogeneous learning across Atari games for powerful and weak devices.

Resource Efficiency

The "lightweight" NN used in RL experiments was remarkably efficient, possessing only 4.2% of the parameters and requiring 66% of the computational operations compared to the complex version. Despite this reduction, it performed effectively by leveraging the shared knowledge from the more powerful peers via the synchronized stem.

Supervised Learning Success

On the CIFAR-10 dataset, the "Cascading" approach outperformed both standard homogeneous federated learning and isolated training. It allowed powerful devices to maintain approximately 75-80% accuracy, even in scenarios where the weak devices had very limited local training data.

Discussion and Future Work

While this approach marks a significant step forward, several areas remain for future exploration. Currently, NN topologies must be pre-defined for each device class; future work could investigate methods to automatically design optimal stems and branches. Additionally, while this study focused on convergence properties by abstracting away network latency, real-world deployments must account for communication overhead. Finally, extending this framework to radically different architectures (e.g., mixing Transformers with CNNs) presents an interesting challenge for cross-architecture knowledge transfer.

Summary updated

BibTeX
@misc{rapp2020distributed,
  author = {Martin Rapp and Ramin Khalili and Jörg Henkel},
  title = {{Distributed Learning on Heterogeneous Resource-Constrained Devices}},
  year = {2020},
  eprint = {2006.05403},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.05403},
}
Figure