mlsanityData to 14 Oct 2026

Fast matrix multiplication for binary and ternary CNNs on ARM CPU

arXiv 2205.09120 ↗First posted 18 May 2022cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

Low-bit quantized neural networks are of great interest in practical applications because they significantly reduce the consumption of both memory and computational resources. Binary neural networks are memory and computationally efficient as they require only one bit per weight and activation and can be computed using Boolean logic and bit count operations. QNNs with ternary weights and activations and binary weights and ternary activations aim to improve recognition quality compared to BNNs while preserving low bit-width. However, their efficient implementation is usually considered on ASICs and FPGAs, limiting their applicability in real-life tasks. At the same time, one of the areas where efficient recognition is most in demand is recognition on mobile devices using their CPUs. However, there are no known fast implementations of TBNs and TNN, only the daBNN library for BNNs inference. In this paper, we propose novel fast algorithms of ternary, ternary-binary, and binary matrix multiplication for mobile devices with ARM architecture. In our algorithms, ternary weights are represented using 2-bit encoding and binary - using one bit. It allows us to replace matrix multiplication with Boolean logic operations that can be computed on 128-bits simultaneously, using ARM NEON SIMD extension. The matrix multiplication results are accumulated in 16-bit integer registers. We also use special reordering of values in left and right matrices. All that allows us to efficiently compute a matrix product while minimizing the number of loads and stores compared to the algorithm from daBNN. Our algorithms can be used to implement inference of convolutional and fully connected layers of TNNs, TBNs, and BNNs. We evaluate them experimentally on ARM Cortex-A73 CPU and compare their inference speed to efficient implementations of full-precision, 8-bit, and 4-bit quantized matrix multiplications.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 15 of its 36 references that are in the map. First posted on arXiv 18 May 2022.

Builds on

15 of 36 references.

References · 15

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  2. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  3. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
  4. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
  5. 2016XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networkscited by 849
  6. 2019Low-bit Quantization of Neural Networks for Efficient Inferencecited by 193
  7. 2015Fast Algorithms for Convolutional Neural Networkscited by 102
  8. 2019XNOR-Net++: Improved Binary Neural Networkscited by 97
  9. 2021S2-MLP: Spatial-Shift MLP Architecture for Visioncited by 83
  10. 2021Are we ready for a new paradigm shift? A Survey on Visual Deep MLPcited by 63
  11. 2016Ternary Neural Networks for Resource-Efficient AI Applicationscited by 33
  12. 2019daBNN: A Super Fast Inference Framework for Binary Neural Networks on ARM devicescited by 27
3 more
  1. 2018Anatomy Of High-Performance Deep Learning Convolutions On SIMD Architecturescited by 12
  2. 2020Line detection via a lightweight CNN with a Hough Layercited by 4
  3. 2020Fast Implementation of 4-bit Convolutional Neural Networks for Mobile Devicescited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 1; 2023: 0; 2024: 1; 2025: 1; 2026: 1.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2021Quantized Neural Networks via {-1, +1} Encoding Decomposition and Acceleration
  2. 2022FAT: An In-Memory Accelerator with Fast Addition for Ternary Weight Neural Networks
  3. 2021Sub-bit Neural Networks: Learning to Compress and Accelerate Binary Neural Networks
  4. 2022Soft Threshold Ternary Networks
  5. 2024A&B BNN: Add&Bit-Operation-Only Hardware-Friendly Binary Neural Network
  6. 2022Binary Neural Networks as a general-propose compute paradigm for on-device computer vision
  7. 2022Power-of-Two Quantization for Low Bitwidth and Hardware Compliant Neural Networks
  8. 2023Designing strong baselines for ternary neural network quantization through support and mass equalization