How to Reach Real-Time AI on Consumer Devices? Solutions for Programmable and Custom Architectures

Stylianos I. Venieris, Ioannis Panopoulos, Ilias Leontiadis, Iakovos S. Venieris

Researchers from Samsung AI and the National Technical University of Athens have proposed a comprehensive roadmap for deploying high-performance Artificial Intelligence (AI) on consumer electronics. The core thesis is that real-time AI performance cannot be achieved through isolated improvements; instead, it requires a cross-stack approach that co-optimizes neural network models, system software, and custom hardware.

The Challenge of On-Device AI

Deep Neural Networks (DNNs) are computationally intensive, making their deployment on smartphones, wearables, and IoT devices difficult. Key hurdles include:

  • Resource Constraints: Tight battery, memory, and thermal envelopes.
  • Hardware Heterogeneity: Models must perform across a wide range of hardware, from high-end NPUs to legacy CPUs.
  • Dynamic Environments: Performance fluctuates due to background tasks and thermal throttling.
  • Multi-Tasking: Modern applications like AR/VR require running multiple DNNs simultaneously with strict latency requirements.

System and Model-Level Optimizations

To address these challenges, the paper identifies strategies at the system and model layers of the computing stack. These layers must work in tandem to adapt to the device's current state.

Overview of system-level (a) and model-level (b) optimization frameworks for on-device AI.

System-Level: Frameworks like OODIn (On-device Optimization for DNN Inference) dynamically adjust system parameters—such as thread counts and Dynamic Voltage and Frequency Scaling (DVFS)—based on real-time device states ($s$). Additionally, Computation Onloading allows a device to process initial layers locally while offloading the remainder to a server, balancing latency with data privacy.

Model-Level: Beyond standard pruning, the authors emphasize Hardware-aware Early-Exit DNNs (HAPI). These models can terminate inference early if a high-confidence prediction is reached, significantly reducing computation for simpler inputs. Personalization further enhances efficiency by specializing models to a specific user's data patterns on-device.

Hardware-Level Optimizations and Multi-Tenancy

The hardware layer focuses on specialized accelerators (ASICs and FPGAs) designed to minimize the "memory wall" and exploit model sparsity. The paper explores a spectrum of hardware architectures ranging from flexible to highly specialized.

The hardware design spectrum, ranging from dedicated custom engines to flexible instruction-based processors.

Managing "multi-tenant" systems—where multiple AI tasks compete for resources—is a critical focus. This includes hardware like Planaria, which uses composable systolic arrays that can be reconfigured to handle multiple DNNs simultaneously. Software schedulers like DART are used to prioritize tasks and ensure real-time responsiveness across these varied hardware configurations.

Key Results and Performance Gains

The paper cites significant improvements from these integrated frameworks:

  • OODIn: Achieved up to 2.7x latency reduction through dynamic adaptation.
  • HAPI: Delivered a 2.33x speedup over standard MobileNetV2 on edge hardware.
  • MobiSR: Provided a 4.79x speedup for on-device image super-resolution.
  • ShrinkML: Reduced speech recognition latency to 17ms, a 3x improvement over vanilla models.
  • ASICNAS: Demonstrated that hardware-model co-design can yield >2x energy savings with negligible accuracy loss.

Future Outlook

The path to ubiquitous real-time AI involves navigating a massive "design space explosion" where model, hardware, and system parameters must be tuned simultaneously. Future work will likely focus on automated tools (AutoML/AutoHW), approximate computing techniques, and narrowing the "fabrication gap" between rapid algorithmic research and the slower cycles of ASIC development.

Summary updated

Abstract

The unprecedented performance of deep neural networks (DNNs) has led to large strides in various Artificial Intelligence (AI) inference tasks, such as object and speech recognition. Nevertheless, deploying such AI models across commodity devices faces significant challenges: large computational cost, multiple performance objectives, hardware heterogeneity and a common need for high accuracy, together pose critical problems to the deployment of DNNs across the various embedded and mobile devices in the wild. As such, we have yet to witness the mainstream usage of state-of-the-art deep learning algorithms across consumer devices. In this paper, we provide preliminary answers to this potentially game-changing question by presenting an array of design techniques for efficient AI systems. We start by examining the major roadblocks when targeting both programmable processors and custom accelerators. Then, we present diverse methods for achieving real-time performance following a cross-stack approach. These span model-, system- and hardware-level techniques, and their combination. Our findings provide illustrative examples of AI systems that do not overburden mobile hardware, while also indicating how they can improve inference accuracy. Moreover, we showcase how custom ASIC- and FPGA-based accelerators can be an enabling factor for next-generation AI applications, such as multi-DNN systems. Collectively, these results highlight the critical need for further exploration as to how the various cross-stack solutions can be best combined in order to bring the latest advances in deep learning close to users, in a robust and efficient manner.
BibTeX
@inproceedings{venieris2021how,
  author = {Stylianos I. Venieris and Ioannis Panopoulos and Ilias Leontiadis and Iakovos S. Venieris},
  title = {{How to Reach Real-Time AI on Consumer Devices? Solutions for Programmable and Custom Architectures}},
  booktitle = {ASAP},
  year = {2021},
  url = {https://openreview.net/forum?id=lKOhkFsBZP},
}
Figure