OL4EL: Online Learning for Edge-Cloud Collaborative Learning on Heterogeneous Edges with Resource Constraints

Qing Han, Shusen Yang, Xuebin Ren, Cong Zhao, Jingqi Zhang, Xinyu Yang

TL;DR

This paper introduces OL4EL, a novel online learning framework for edge-cloud collaborative machine learning. It addresses the challenge of heterogeneous edge devices with limited resources by dynamically optimizing the collaboration strategy to balance learning performance and resource consumption, outperforming existing methods.

What Problem Does This Paper Address?

The proliferation of IoT devices and 5G technologies has led to an explosion of data generated at the network edge. While distributed machine learning (ML) at the edge (Edge Learning or EL) offers benefits like bandwidth savings and enhanced privacy, it faces significant hurdles. Edge servers are often heterogeneous in their computational power and have limited resources (e.g., battery, budget). This heterogeneity can lead to "straggler effects" where slower devices bottleneck the entire learning process. Furthermore, the dynamic nature of these resources and the data itself makes it difficult to pre-determine an optimal collaboration strategy between edge devices and the cloud. Existing approaches often focus on either communication efficiency or synchronous learning, failing to adequately address the combined challenges of heterogeneity, resource constraints, and dynamic system behavior in EL.

Methods

The core contribution of this paper is the OL4EL framework, which frames the problem of determining the optimal collaboration strategy as an online optimization problem. Specifically, it models the decision-making process as a budget-limited multi-armed bandit (MAB) problem.

Here's a breakdown of the approach:

  • Coordination Strategy Modeling: The paper defines a coordination strategy as the sequence of decisions regarding local iterations at edge servers and global aggregations at the cloud. For each edge server, the decision is represented by a tuple indicating whether to perform a local iteration and/or a global update.
  • Learning Utility: The performance of the global model is quantified as a "learning utility," which can be measured by the improvement in model accuracy or a decrease in the difference between consecutive global model parameters. This utility is only evaluated when a global update occurs.
  • Resource Costs: Resource costs are defined for both computation (local iterations) and communication (global updates). These costs can be fixed or variable over time. A total budget is assigned to each edge server.
  • Budget-Limited MAB Formulation: The problem is transformed into a budget-limited MAB problem where:
  • Arms: Each possible global update interval (i.e., the number of local iterations before a global update) is considered an "arm."
    • Reward: The learning utility achieved by selecting an arm.
  • Cost: The resource consumption associated with an arm.
  • Budget: The resource constraint of each edge server. The goal is to select sequences of arms that maximize the total reward (learning utility) while staying within the budget.

  • OL4EL Algorithm: The OL4EL algorithm, inspired by upper confidence bound (UCB) theories for MAB, operates in two phases:

  • Initialization: The cloud server explores each feasible arm to measure its utility and cost.
  • Dynamic Decision: In each time slot, the cloud server uses utility-cost ordering and probabilistic selection to choose the "best" arm (global update interval) for each edge server, balancing exploration of new strategies with exploitation of known good ones.
  • Synchronous vs. Asynchronous EL: OL4EL supports both synchronous (all edges update simultaneously) and asynchronous (edges update independently) EL. The key difference lies in whether a single MAB model is maintained for all edges (synchronous) or individual models are used for each edge (asynchronous).

Datasets

The paper evaluates OL4EL using two standard ML tasks and datasets:

  • K-means Clustering: Applied to a real-world traffic image dataset of 20,000 images from YouTube Live, aiming to cluster into K=3 clusters.
  • Support Vector Machine (SVM) Classification: Applied to a real-world wafer image dataset with 59-dimensional features from 20,000 wafer images in smart manufacturing, classifying into 8 classes.

The experiments were conducted on a testbed with three mini PCs as edge servers and a workstation as the cloud server, as well as a simulator with 3 to 100 edge servers.

Key Insights and Ideas

  • Online Learning for Dynamic Resource Management: The paper elegantly frames the complex problem of optimizing edge-cloud collaboration under dynamic and heterogeneous resource constraints as an online learning problem, specifically a budget-limited MAB. This allows for adaptive decision-making in real-time.
  • The Trade-off is Key: The central theme is the inherent trade-off between learning performance (model accuracy) and resource consumption. OL4EL explicitly aims to find the optimal point on this trade-off curve.
  • Asynchronous EL Shines with Heterogeneity: While synchronous EL can be efficient with homogeneous edge devices, the asynchronous approach of OL4EL demonstrates superior performance and adaptability as edge heterogeneity increases. This is because it avoids being bottlenecked by the slowest devices.
  • "Learning to Learn" for Collaboration: OL4EL embodies a "learning to learn" philosophy, where the system learns the best collaboration strategy over time rather than relying on a fixed, pre-defined approach.

Key Results

  • Performance Improvement: OL4EL significantly outperforms state-of-the-art EL and other collaborative ML approaches. Specifically, it achieves up to 12% higher model accuracy under the same resource constraints.
  • Heterogeneity Impact: Model accuracy generally decreases with increasing edge heterogeneity. However, OL4EL-async shows a more graceful degradation and can achieve up to 12% higher accuracy than comparison algorithms (AC-sync and Fixed I) in highly heterogeneous environments.
  • Resource Consumption Trade-off: Figures 4 and 5 illustrate that as resource consumption increases, model accuracy generally improves for all algorithms. OL4EL consistently offers a better trade-off, achieving higher accuracy for a given resource budget.
  • Scalability: OL4EL-async shows improved performance as the number of edge servers increases, indicating good scalability.

Limitations and Future Work

  • Resource Cost Simplification: The paper assumes resource costs (computation and communication) can be converted into a single measurement (e.g., time). Real-world scenarios might involve more complex, multi-dimensional resource constraints.
  • Model-Specific Utility: The "learning utility" is described as model-specific. The paper uses general metrics like F1 score and prediction accuracy, but the exact formulation of utility might vary for different ML models.
  • Future Work: The authors suggest exploring more complex resource cost models (e.g., time-varying costs) and investigating OL4EL in more diverse EL scenarios and with different ML tasks. Further research into optimizing the exploration-exploitation balance in the MAB framework could also be beneficial.

Summary updated

Abstract

Distributed ML at the network edge is a promising paradigm that can preserve both network bandwidth and privacy of data providers. However, heterogeneity and limited computation and communication resources on edge servers (or edges) pose great challenges on distributed ML and formulate a new paradigm of edge learning (i.e., edge-cloud collaborative machine learning). In this article, we propose a novel framework of "learning to learn" for effective EL on heterogeneous edges with resource constraints. We first model the dynamic determination of collaboration strategy (i.e., the allocation of local iterations at edge servers and global aggregations on the cloud during the collaborative learning process) as an online optimization problem to achieve the trade-off between the performance of EL and the resource consumption of edge servers. Then we propose an OL4EL framework based on the budget-limited multi-armed bandit model. OL4EL supports both synchronous and asynchronous learning patterns, and can be used for both supervised and unsupervised learning tasks. To evaluate the performance of OL4EL, we conducted both real-world testbed experiments and extensive simulations based on Docker containers, where both support vector machine and K-means were considered as use cases. Experimental results demonstrate that OL4EL significantly outperforms state-of-the-art EL and other collaborative ML approaches in terms of the trade-off between learning performance and resource consumption.
BibTeX
@article{han2020ol,
  author = {Qing Han and Shusen Yang and Xuebin Ren and Cong Zhao and Jingqi Zhang and Xinyu Yang},
  title = {{OL4EL: Online Learning for Edge-Cloud Collaborative Learning on Heterogeneous Edges with Resource Constraints}},
  journal = {IEEE Communications Magazine},
  year = {2020},
  doi = {10.1109/mcom.001.1900594},
}
Figure