Training Machine Learning models at the Edge: A Survey

Aymen Rayane Khouas, Mohamed Reda Bouadjenek, Hakim Hacid, Sunil AryalarXiv 2024 · DOI

Abstract

As Machine Learning (ML) moves from centralized data centers to the network's periphery, the paradigm of "Edge Learning" has emerged. This survey examines the transition from simple on-device inference to full on-device training. By shifting the training process to edge devices, researchers aim to mitigate issues related to data privacy, high latency, and unsustainable bandwidth consumption. This paper provides a comprehensive taxonomy of edge learning techniques, evaluates current benchmarks, and identifies critical future research directions.

Introduction: The Shift to the Edge

Traditionally, ML has relied on a "Cloud-First" approach where data is aggregated centrally for training. However, this model faces significant hurdles:

  1. Privacy: Sensitive data (e.g., medical records) often cannot leave the device due to regulatory or personal concerns.
  2. Bandwidth: The sheer volume of data generated by billions of IoT sensors makes uploading raw data to the cloud economically and technically unfeasible.
  3. Latency: Real-time applications, such as autonomous drones, require immediate adaptation that cloud round-trips cannot provide.
The hierarchical architecture of Edge Computing, spanning from end devices to the cloud.

Edge devices, ranging from smartphones to microcontrollers, are typically resource-constrained in terms of memory, compute power, and battery life. Edge Learning seeks to enable model training within these brutal constraints.

Taxonomy of Edge Learning Techniques

The authors categorize the landscape of edge learning into four primary pillars, as illustrated in the taxonomy below.

A comprehensive taxonomy of edge learning methods categorized by their primary optimization strategy.

1. Distributed and Collaborative Learning

  • Federated Learning (FL): The current "gold standard" where devices train local models and share only weight updates with a central server, preserving data locality.
  • Split Learning (SL): Models are partitioned; the device processes initial layers while a server handles the computationally intensive remainder.
  • Decentralized Methods: Gossip and Swarm Learning allow devices to coordinate directly without a central server.

2. Adaptive and Fine-Tuning Techniques

These methods leverage pre-trained models. Transfer Learning allows for lightweight personalization on-device, while Meta-Learning enables models to adapt rapidly to new tasks with minimal data.

3. Model Compression

To fit models into tiny memory footprints, techniques such as Quantization (reducing bit-precision), Pruning (removing redundant parameters), and Knowledge Distillation (training a compact "student" model) are employed.

4. Alternative Architectures

Beyond standard backpropagation, energy-efficient architectures like Spiking Neural Networks (SNNs) and the Forward-Forward Algorithm are being explored for their suitability on low-power hardware.

Benchmarking and Datasets

The survey highlights a transition toward specialized benchmarks:

  • LEAF: A modular framework designed for the heterogeneous nature of federated learning.
  • TinyML Benchmarks: Focused on the extreme constraints of microcontrollers.

The field is also moving toward self-supervised learning to utilize the vast amounts of unlabeled, real-world data generated on-device.

Key Insights: Memory and Data Heterogeneity

  • Memory as the Primary Constraint: While we often discuss compute power, memory footprint is often the harder limit. Loading an entire model and its gradients into RAM is often impossible for a microcontroller.
  • Non-IID Data: Data at the edge is "Non-Independent and Identically Distributed." Statistical divergence between different users' data is a fundamental challenge for collaborative learning.
  • Hybridization: The most promising results come from combining techniques, such as applying model pruning within a federated learning framework to reduce communication overhead.

Comparative Performance and Limitations

Qualitative analysis reveals trade-offs between different approaches. For instance, while Split Learning excels in memory efficiency, it often requires higher bandwidth due to frequent communication. Conversely, model compression improves efficiency but can lead to minor accuracy degradation.

Future Frontiers

  1. Label Scarcity: Developing robust self-supervised methods for unlabeled edge data.
  2. Security: Protecting against "Model Inversion" attacks that might leak private data through weight updates.
  3. Standardization: Expanding frameworks like TensorFlow Lite and ONNX to better support on-device backpropagation.
  4. Incentivization: Creating economic models to encourage users to contribute their device resources to collaborative training.

Summary updated

BibTeX
@misc{khouas2024training,
  author = {Aymen Rayane Khouas and Mohamed Reda Bouadjenek and Hakim Hacid and Sunil Aryal},
  title = {{Training Machine Learning models at the Edge: A Survey}},
  year = {2024},
  eprint = {2403.02619},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.02619},
}
Figure