An Efficient Real-Time Object Detection Framework on Resource-Constricted Hardware Devices via Software and Hardware Co-design

Mingshuo Liu, Shiyi Luo, Kevin Han, Bo Yuan, Ronald F. DeMara, Yu Bai · OpenReview

Abstract

Deploying deep neural networks (DNNs) on resource-constrained edge devices requires significant model compression. Tensor-Train (TT) decomposition is a promising technique, but determining optimal ranks for each layer remains a computationally expensive challenge. This paper introduces Layer-Wise Imprinting Quantitation (LWIQ), a novel framework that leverages weight imprinting to efficiently evaluate layer importance. By automating rank selection, LWIQ achieves a 63.2% boost in search efficiency and enables up to 3.6x model size reduction with minimal accuracy loss, providing a flexible, budget-aware solution for hardware-software co-design.

Introduction

Deep Neural Networks (DNNs) are notoriously power-hungry and memory-intensive, posing significant hurdles for deployment on edge devices like smartphones or IoT sensors. While Tensor-Train (TT) decomposition can "break down" large weight matrices into smaller, low-rank cores, it faces a critical "Goldilocks" problem: selecting the right rank. Low ranks lead to information loss and accuracy drops, while high ranks fail to meet hardware constraints. Current automated rank search methods are often slow and lack the flexibility to adapt to changing hardware budgets without restarting the search process.

Methodology: Layer-Wise Imprinting Quantitation (LWIQ)

The proposed LWIQ framework automates the rank selection process through a three-step approach:

  1. TT Decomposition: Standard convolutional layers are converted into a TT-format, representing weights as a sequence of low-rank tensors.
  2. Importance Measurement via Weight Imprinting: To evaluate a layer's contribution, a "proxy classifier" is inserted after it. Instead of traditional, slow training, the framework uses Weight Imprinting. This technique sets classifier weights based on the average feature values of training data, providing a rapid estimate of the layer's informational value.
  3. Budget-Aware Rank Selection: Critical layers (identified by higher LWIQ scores) are assigned higher ranks, while redundant layers receive lower ranks. A scaling factor ($\gamma$) allows users to adjust the total model size to fit specific memory budgets without re-evaluating layer importance.
The LWIQ framework: (a) TT convolutional layers, (b) proxy classifier utilizing weight imprinting, and (c) the resulting rank determination process.

Experimental Results

The LWIQ method was evaluated on CIFAR-10 and CIFAR-100 datasets using ResNet-20, ResNet-32, ResNet-56, and VGG-16 architectures.

Efficiency and Accuracy

LWIQ significantly improved rank search efficiency by 63.2%. For instance, on a ResNet-56 model, the search time was reduced from 76 minutes (using state-of-the-art methods) to just 18 minutes with the LWIQ-sample variant, which utilizes only 50% of the training data.

In terms of compression, LWIQ achieved a 3.2x reduction in parameters for ResNet-56 on CIFAR-10 with only a 0.86% drop in accuracy. As shown in the performance curves, the method maintains high accuracy even at significant compression ratios across various architectures.

Top-1 accuracy drop versus compression ratio for various models and datasets, demonstrating the robustness of the LWIQ approach.

Key Insights and Future Work

A critical finding of this research is that model convergence is not required to determine optimal ranks; layer importance scores stabilize early in the training process. By decoupling the importance search from the final hardware budget via a scaling factor, LWIQ offers a practical tool for engineers deploying models across diverse hardware platforms.

Future research will focus on scaling the framework to larger datasets like ImageNet (ILSVRC-2012) and extending the LWIQ logic to other decomposition types, such as Tucker and Tensor Ring. Additionally, the authors aim to incorporate real-world hardware latency measurements directly into the search loop to further optimize performance for specific edge devices.

Summary updated

BibTeX
@inproceedings{liu2021efficient,
  author = {Mingshuo Liu and Shiyi Luo and Kevin Han and Bo Yuan and Ronald F. DeMara and Yu Bai},
  title = {{An Efficient Real-Time Object Detection Framework on Resource-Constricted Hardware Devices via Software and Hardware Co-design}},
  booktitle = {ASAP},
  year = {2021},
  url = {https://openreview.net/forum?id=I0L4vLX4If},
}
Figure