Selective Edge Computing for Mobile Analytics

Apostolos Galanopoulos, George Iosifidis, Theodoros Salonidis, Douglas J. Leith

TL;DR

This paper introduces OnAlgo, an online optimization framework that helps resource-constrained mobile devices decide when to offload machine learning tasks to a nearby "cloudlet." By treating resource costs as dynamic "shadow prices," the system maximizes aggregate classification accuracy while strictly adhering to device power budgets and edge computing limits.

What Problem Does This Paper Address?

Mobile applications are increasingly reliant on heavy Machine Learning (ML) routines for tasks like image recognition and health monitoring. However, developers face a "trilemma":

  1. Local Execution: Saves bandwidth but often fails due to the limited memory and processing power of IoT devices, leading to lower accuracy.
  2. Cloud Execution: Offers massive power but introduces significant latency and high energy costs for data transmission.
  3. Edge Computing (Cloudlets): A middle ground where servers are placed near the user.

The challenge is that cloudlets, unlike the "infinite" cloud, have finite capacity. If every device offloads every task, the edge server becomes a bottleneck. Furthermore, not every task needs to be offloaded; some are easily handled locally. The authors tackle the problem of selective offloading: how can a fleet of devices intelligently decide which specific tasks to outsource to maximize total accuracy without knowing future network conditions or task loads?

Methods

The authors propose OnAlgo, an online decision framework based on a primal-dual optimization approach.

  • The Decision Rule: Instead of a simple threshold, OnAlgo uses a sophisticated rule: offload a task only if the predicted accuracy gain exceeds the weighted resource cost.
  • Shadow Prices: The "weights" for resource costs (power and CPU cycles) are managed as dual variables (shadow prices). If a device is running low on battery or the cloudlet is congested, these "prices" rise, making the algorithm more selective about what it offloads.
  • The Predictor: Each device runs a lightweight "predictor" (the authors tested both linear regressors and random forests). This predictor looks at the local classification result and estimates how much better the cloudlet’s superior model would likely perform on that specific data point.
  • Online Learning: Crucially, the algorithm is "oblivious" to system statistics. It doesn't need to know the probability of future tasks; it learns and adapts in real-time by tracking running averages of system states.

Datasets

The researchers evaluated their system using a real-world wireless testbed (Raspberry Pis and a laptop cloudlet) and two standard ML benchmarks:

  • MNIST: A dataset of 60,000 handwritten digits.
  • CIFAR-10: A more complex dataset of 60,000 tiny color images across 10 classes (planes, birds, etc.).
  • Classifiers: They used a mix of K-Nearest Neighbors (KNN) and Convolutional Neural Networks (CNNs) with varying numbers of layers to simulate different levels of "local" vs. "edge" capability.

Key Insights and Ideas

  • Intelligence over Brute Force: The "aha moment" is that offloading is a resource-allocation problem, not just a connectivity one. By identifying tasks that are "hard" for the local device but "easy" for the edge, the system avoids wasting energy on tasks that wouldn't see a significant accuracy boost anyway.
  • Deterministic Guarantees: Most similar algorithms offer "average" performance guarantees based on random variables. OnAlgo provides deterministic bounds, meaning it performs predictably even when network traffic is bursty or non-random (non-i.i.d.).
  • Congestion as a Signal: The cloudlet doesn't need to micromanage devices. It simply broadcasts its current "congestion level" (the dual variable for computing capacity), and devices use that signal to independently adjust their offloading behavior.
  • Agility: The system is remarkably agile. In experiments, it prioritized offloading difficult-to-recognize digits (like '4' and '5' in MNIST) while handling easier ones locally.

Key Results

  • Accuracy Gains: OnAlgo improved task accuracy by up to 15% compared to local-only execution.
  • Energy Efficiency: It reduced energy consumption by up to 50% compared to standard benchmarks that don't account for the "value" of an offloaded task.
  • Superiority over Benchmarks: It consistently outperformed common strategies like Accuracy-Threshold Offloading (which ignores costs) and Resource-Consumption Offloading (which ignores accuracy gains), especially under high-load scenarios where the cloudlet was near capacity.
  • Latency: In their testbed, local processing was roughly 10 times slower than offloading, proving that selective edge computing can improve both the quality and the speed of the service.

Limitations and Future Work

  • Predictor Dependency: The system's success relies heavily on the accuracy of the local "predictor." If the predictor significantly overestimates or underestimates the cloudlet's gain, the offloading decisions become sub-optimal.
  • Single Cloudlet Focus: While the math supports it, the primary experimental evaluation focused on a single cloudlet. Future work could explore more complex "mesh" environments with multiple available edge nodes.
  • Cold Start: The paper notes that the algorithm needs a short period to "warm up" its running averages of system states before it reaches peak optimality.
  • Alternative Architectures: The authors suggest extending this to multi-stage pipelines (e.g., video analytics where frames are first compressed, then filtered, then classified), but this was not the primary focus of the current implementation.

Summary updated

Abstract

An increasing number of mobile applications rely on Machine Learning (ML) routines for analyzing data. Executing such tasks at the user devices saves the energy spent on transmitting and processing large data volumes at distant cloud-deployed servers. However, due to memory and computing limitations, the devices often cannot support the required resource-intensive routines and fail to accurately execute such tasks. In this work, we address the problem of edge-assisted analytics in resource-constrained systems by proposing and evaluating a rigorous selective offloading framework. The devices execute their tasks locally and outsource them to cloudlet servers only when they predict a significant performance improvement. We consider the practical scenario where the offloading gains and resource costs are time-varying; and propose an online optimization algorithm that maximizes the service performance without requiring to know this information. Our approach relies on an approximate dual subgradient method combined with a primal-averaging scheme, and works under minimal assumptions about the system stochasticity. We fully implement the proposed algorithm in a wireless testbed and evaluate its performance using a state-of-the-art image recognition application, finding significant performance gains and cost savings.
BibTeX
@article{galanopoulos2022selective,
  author = {Apostolos Galanopoulos and George Iosifidis and Theodoros Salonidis and Douglas J. Leith},
  title = {{Selective Edge Computing for Mobile Analytics}},
  journal = {IEEE Trans. Netw. Serv. Manag.},
  year = {2022},
  url = {https://openreview.net/forum?id=d8j-Jn-bZ7},
}

Loading related content...

Figure