Dedicated Inference Engine and Binary-Weight Neural Networks for Lightweight Instance Segmentation
Tse-Wei Chen, Wei Tao, Dongyue Zhao, Kazuhiro Mima, Tadayuki Ito, Kinya Osa, Masami Kato
TL;DR
The paper tackles embedded dense-prediction for instance segmentation by introducing a dedicated inference engine for binary-weight neural networks with two operation modes that replace MACs with bitwise logic. It presents two lightweight networks (MSCAN-SparseInst BNN and ConvNeXtV2-SparseInst BNN) built from SegNeXt backbones and the SparseInst decoder, achieving higher Person-category accuracy than YOLACT while reducing model size by $77.7\times$ and MACs to $9.8\%$ of YOLACT. A hardware analysis shows significant gate-count reductions (about $52\%$ of a modified XNOR multiplier and $59\%$ of a selector-based multiplier) by merging the correction term into the bias and eliminating weight-only computations. The work demonstrates that bitwise-only inference can deliver practical, scalable performance for dense-prediction on embedded devices, enabling real-time instance segmentation with substantially smaller, more energy-efficient hardware.
Abstract
Reducing computational costs is an important issue for development of embedded systems. Binary-weight Neural Networks (BNNs), in which weights are binarized and activations are quantized, are employed to reduce computational costs of various kinds of applications. In this paper, a design methodology of hardware architecture for inference engines is proposed to handle modern BNNs with two operation modes. Multiply-Accumulate (MAC) operations can be simplified by replacing multiply operations with bitwise operations. The proposed method can effectively reduce the gate count of inference engines by removing a part of computational costs from the hardware system. The architecture of MAC operations can calculate the inference results of BNNs efficiently with only 52% of hardware costs compared with the related works. To show that the inference engine can handle practical applications, two lightweight networks which combine the backbones of SegNeXt and the decoder of SparseInst for instance segmentation are also proposed. The output results of the lightweight networks are computed using only bitwise operations and add operations. The proposed inference engine has lower hardware costs than related works. The experimental results show that the proposed inference engine can handle the proposed instance-segmentation networks and achieves higher accuracy than YOLACT on the "Person" category although the model size is 77.7$\times$ smaller compared with YOLACT.
