Task-Oriented Real-time Visual Inference for IoVT Systems: A Co-design Framework of Neural Networks and Edge Deployment

Jiaqi Wu, Simin Chen, Zehua Wang, Wei Chen, Zijian Tian, F. Richard Yu, Victor C. M. LeungarXiv 2024

Abstract

As the volume of image data grows, data-oriented cloud computing in Internet of Video Things (IoVT) systems encounters latency issues. Task-oriented edge computing addresses this by shifting data analysis to the edge. However, limited computational power of edge devices poses challenges for executing visual tasks. Existing methods struggle to balance high model performance with low resource consumption; lightweight neural networks often underperform, while device-specific models designed by Neural Architecture Search (NAS) fail to adapt to heterogeneous devices. For these issues, we propose a novel co-design framework to optimize neural network architecture and deployment strategies during inference for high-throughput. Specifically, it implements a dynamic model structure based on re-parameterization, coupled with a Roofline-based model partitioning strategy to enhance the computational performance of edge devices. We also employ a multi-objective co-optimization approach to balance throughput and accuracy. Additionally, we derive mathematical consistency and convergence of partitioned models. Experimental results demonstrate significant improvements in throughput (12.05% on MNIST, 18.83% on ImageNet) and superior classification accuracy compared to baseline algorithms. Our method consistently achieves stable performance across different devices, underscoring its adaptability. Simulated experiments further confirm its efficacy in high-accuracy, real-time detection for small objects in IoVT systems.

Introduction

The Internet of Video Things (IoVT) generates massive amounts of data, but traditional cloud-oriented computing creates crippling latency and bandwidth pressure. Moving AI to the "edge" (on-device or local servers) is the obvious solution, but edge devices like drones or small sensors have very limited computational power. Existing solutions like lightweight models often lack the intelligence for complex visual tasks, while Neural Architecture Search (NAS) is computationally expensive and hardware-specific. Split learning, while promising, often fails to maximize the actual hardware efficiency of the specific chips involved. This paper addresses the performance-resource trade-off by proposing a co-design framework that optimizes both the model architecture and its deployment strategy.

Methodology

The proposed framework operates at two levels to ensure optimal hardware utilization:

System-Level: Roofline Analysis

The framework utilizes the "Roofline Model," a standard hardware performance metric relating computational intensity to memory bandwidth. This allows for the mathematical determination of the optimal "partition point"—the specific layer where a model should be split between a terminal device and an edge server. This ensures neither device is bottlenecked, pushing the hardware to its peak performance.

Roofline-based analysis for model partitioning

Model-Level: Structural Re-parameterization

Inspired by RepVGG, the framework employs a dynamic model structure. During training, the model uses complex, multi-branch structures to learn robust features. During inference, these branches are mathematically fused into a single, streamlined path. This "free" complexity allows the model to perceive like a heavy model but run like a light one, particularly benefiting tasks like small object detection.

Overview of the proposed co-design framework integrating system and model-level optimizations

Multi-Objective Co-optimization

A Lagrangian joint optimization function acts as a balancer, simultaneously adjusting the partition point and the model's internal structure to minimize latency while maximizing accuracy. The authors also provide a formal proof of mathematical consistency, ensuring that partitioned model updates remain consistent with the original full model.

Experimental Results

The framework was evaluated on standard benchmarks (MNIST, CIFAR-100, ImageNet) and a specialized Coal Mine Object Detection Dataset (CMODD) containing 12,000 images for testing small object detection.

  • Performance Gains: The method achieved throughput improvements of 12.05% on MNIST and 18.83% on ImageNet compared to state-of-the-art baselines like SIDD and RoofSplit.
  • Accuracy: On CIFAR-100, it achieved 83.34% accuracy, outperforming the next best SOTA by 1.7%.
  • Real-World Application: In coal mine surveillance, the framework successfully detected small safety helmets that other methods missed, maintaining a superior throughput of 27.98 FPS.
  • Adaptability: The method showed stable performance across different base models (RepVGG, Rep-ResNet, Rep-GoogLeNet) and various NVIDIA Jetson devices (Nano, TX1, TX2, Xavier NX).

Conclusion

This co-design framework effectively bridges the gap between high-performance neural networks and resource-constrained edge devices in IoVT systems. By combining hardware-aware partitioning with structural re-parameterization, it achieves significant gains in both throughput and accuracy. Future work will focus on dynamic resource allocation to handle fluctuating background tasks on edge devices and extending the framework to a broader range of network architectures.

Summary updated

BibTeX
@misc{wu2024task,
  author = {Jiaqi Wu and Simin Chen and Zehua Wang and Wei Chen and Zijian Tian and F. Richard Yu and Victor C. M. Leung},
  title = {{Task-Oriented Real-time Visual Inference for IoVT Systems: A Co-design Framework of Neural Networks and Edge Deployment}},
  year = {2024},
  eprint = {2411.00838},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.00838},
}
Figure