Selective Edge Computing for Mobile Analytics

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

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 the 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 gain 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.

Introduction

Modern mobile applications are increasingly reliant on sophisticated Machine Learning (ML) routines for tasks such as image recognition, health monitoring, and augmented reality. Developers typically face a "trilemma" when deploying these models:

  1. Local Execution: Preserves data privacy and saves bandwidth but is often constrained by the limited memory and processing power of mobile or IoT devices, leading to reduced accuracy.
  2. Cloud Execution: Provides vast computing resources but introduces significant latency and high energy costs for data transmission.
  3. Edge Computing (Cloudlets): Offers a middle ground by placing servers near the user.

While cloudlets provide a powerful alternative, they possess finite capacity. If every device offloads every task, the edge server quickly becomes a bottleneck. This paper addresses the challenge of selective offloading: enabling a fleet of devices to intelligently decide which specific tasks to outsource to maximize total accuracy while strictly adhering to local power budgets and edge computing limits.

System Architecture

The proposed framework, OnAlgo, treats offloading as a resource-allocation problem. As shown in Figure 1, each device $n$ follows a structured pipeline for every incoming task $s_{nt}$.

System architecture for selective offloading on Device $n$.

The process begins with a Local Classifier that attempts to process the data and produces a classification result $J_n$ and a confidence score $d_n$. A lightweight Predictor then uses these results to estimate the potential improvement gain $w_{nt}$—the difference in accuracy if the task were processed by the cloudlet's superior model. Finally, the Offloading Decision block determines whether to send the task to the cloudlet based on the predicted gain and current resource constraints.

The OnAlgo Algorithm

The core of the framework is an online optimization algorithm based on a primal-dual approach. OnAlgo is designed to be "oblivious" to system statistics, meaning it does not require prior knowledge of future task distributions or network conditions. Instead, it learns and adapts in real-time.

The OnAlgo online optimization algorithm.

The algorithm manages resource costs (device power and cloudlet CPU cycles) as dynamic "shadow prices" ($\lambda$ and $\mu$). These prices act as weights: if a device's battery is low or the cloudlet is congested, the respective shadow prices rise. A task is only offloaded if the predicted accuracy gain $w_{nt}$ exceeds the weighted sum of these resource costs. This ensures that only "hard" tasks for the local device that are "easy" for the edge are prioritized for offloading.

Experimental Evaluation

The researchers evaluated OnAlgo using a real-world wireless testbed consisting of Raspberry Pis and a laptop-based cloudlet. They utilized standard ML benchmarks including MNIST (handwritten digits) and CIFAR-10 (color images). Classifiers such as K-Nearest Neighbors (KNN) and Convolutional Neural Networks (CNNs) were used to simulate varying local vs. edge capabilities.

Key Results

  • Accuracy and Efficiency: OnAlgo improved task accuracy by up to 15% compared to local-only execution and reduced energy consumption by up to 50% compared to non-selective offloading benchmarks.
  • Congestion Management: The system effectively used cloudlet congestion signals to adjust device behavior independently, outperforming strategies that ignore resource costs or accuracy gains.
  • Latency: Local processing was found to be roughly 10 times slower than offloading in the testbed, demonstrating that selective edge computing improves both service quality and speed.

Conclusion

OnAlgo provides a robust, online framework for selective edge computing that offers deterministic performance guarantees even under non-random network traffic. By treating offloading as a value-based decision rather than a binary connectivity choice, it maximizes the utility of resource-constrained mobile analytics. Future work may extend this to multi-stage pipelines and more complex mesh network environments.

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 the 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 gain 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},
}
Figure