DeepWear: Adaptive Local Offloading for On-Wearable Deep Learning

Mengwei Xu, Feng Qian, Mengze Zhu, Feifan Huang, Saumay Pushp, Xuanzhe Liu

TL;DR

DeepWear is a novel framework that enables deep learning (DL) tasks to run efficiently on wearable devices by intelligently offloading computations to a paired smartphone via Bluetooth. This approach significantly boosts performance and saves energy without requiring internet connectivity, thus enhancing user privacy and robustness.

What Problem Does This Paper Address?

Wearable devices are becoming increasingly popular, generating a wealth of sensor data that could power advanced DL applications. However, the limited processing power and battery life of wearables make running complex DL models directly on them challenging. While offloading computations to the cloud is an option, it introduces privacy concerns, reliance on internet connectivity, and potentially higher energy costs. This paper addresses the gap of efficiently running DL tasks on wearables by proposing a local offloading strategy to a paired handheld device, which is always available and more powerful than the wearable itself.

Methods

DeepWear introduces several key techniques to achieve adaptive local offloading:

  • Context-Aware Offloading Scheduling: DeepWear dynamically decides what, when, and how to offload DL tasks. This decision-making process considers factors like the DL model's structure, the wearable's and handheld's current status (battery, CPU load, Bluetooth bandwidth), and the application's latency requirements.
  • Strategic Model Partitioning: Instead of a binary decision to offload the entire model or run it locally, DeepWear can split DL models into smaller parts. These parts can then be executed on both the wearable and the handheld, optimizing for performance and energy. This is achieved through a heuristic-based algorithm that efficiently identifies optimal partition points.
  • Pipelined Data Streaming: For applications that process continuous data streams (like video or audio), DeepWear employs pipelined processing. This allows the wearable and handheld to work on different frames of the data stream concurrently, significantly improving overall throughput.
  • Developer-Friendly APIs: DeepWear is designed as a user-space library with APIs similar to traditional DL frameworks like TensorFlow, abstracting away the complexities of offloading from developers.

Datasets

The paper does not introduce new datasets. Instead, it evaluates DeepWear using 8 widely adopted deep learning models for various tasks, including:

  • MNIST (digit recognition)
  • MobileNet (image classification)
  • GoogLeNet (image classification)
  • LSTM-HAR (activity recognition)
  • DeepSense (activity recognition)
  • TextRNN (document classification)
  • DeepEar (emotion recognition)
  • WaveNet (speech recognition)

These models were run on commercially available (COTS) smartphones and smartwatches.

Key Insights and Ideas

  • Local Offloading is Viable and Beneficial: The study demonstrates that offloading DL tasks from wearables to paired handheld devices is not only feasible but can lead to significant improvements in speed and energy efficiency.
  • Partial Offloading is Crucial: Simply offloading the entire model or running it locally isn't always optimal. Splitting models strategically can yield better results by balancing computation and data transfer costs.
  • Context Matters: The optimal offloading strategy is highly dependent on various dynamic factors, including device battery levels, processor load, and Bluetooth bandwidth. DeepWear's ability to adapt to these factors is key to its effectiveness.
  • Privacy is a Major Win: By keeping computations local to the user's devices, DeepWear inherently protects sensitive data from being exposed to the internet or cloud servers.

Key Results

DeepWear achieved significant improvements across various DL models and device configurations:

  • Speedup: Up to 5.08x and 23.0x execution speedup compared to wearable-only and handheld-only strategies, respectively. On average, it provided 1.95x and 2.62x speedup.
  • Energy Saving: Up to 53.5% and 85.5% energy saving compared to wearable-only and handheld-only strategies, respectively. On average, it achieved 18.0% and 32.7% energy saving.
  • Partition Selection Accuracy: DeepWear successfully identified the optimal partition point in 97.9% of the tested cases.
  • Throughput Improvement: Pipelining for streaming data improved overall throughput by an average of 43.75%, reaching up to 84% for some models.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Limited Model Types for Prediction: The latency and energy prediction models currently focus on a subset of common DL layer types (convolutional, fully-connected, pooling, activation). Future work could incorporate more layer types.
  • Device and Model Scope: The evaluation was conducted on a limited set of devices (LG Urbane, Galaxy S2, Nexus 6) and DL models. Broader testing on more hardware platforms and models is planned.
  • Training Phase Offloading: DeepWear currently focuses on the inference stage. Extending it to support offloading the DL training phase is a significant future direction, requiring new prediction models and decision algorithms.
  • Memory Usage: While latency and energy are considered, memory usage is not explicitly optimized. Future work could integrate memory prediction and optimization into the offloading decisions.
  • Beyond Paired Handhelds: The current approach relies on a single paired handheld. Future work could explore offloading to multiple personal mobile devices or even the cloud when privacy is less of a concern.
  • Source Code Release: The authors plan to release the source code of DeepWear to facilitate reproducibility and further research.

Summary updated

BibTeX
@article{xu2019deepwear,
  author = {Mengwei Xu and Feng Qian and Mengze Zhu and Feifan Huang and Saumay Pushp and Xuanzhe Liu},
  title = {{DeepWear: Adaptive Local Offloading for On-Wearable Deep Learning}},
  journal = {IEEE Transactions on Mobile Computing},
  year = {2019},
  doi = {10.1109/tmc.2019.2893250},
}
Figure