NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Signed Binary Weight Networks: Improving Efficiency of Binary Weight Networks by Exploiting Sparsity

Sachit Kuhar, Alexey Tumanov, Judy Hoffman · OpenReview

TL;DR

This paper introduces "Signed-Binary Weight Networks" (SBWN), a novel approach that combines weight binarization and sparsity to significantly improve the efficiency of deep neural networks (DNNs) for inference. SBWN achieves comparable accuracy to existing binary networks while enabling substantial speedups and energy reductions by effectively exploiting both weight repetition and sparsity.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are becoming increasingly ubiquitous, but their computational demands, especially during inference, pose a significant challenge for deployment on resource-constrained devices. Two primary techniques to address this are binarization (reducing weights to just two values, e.g., +1 and -1) and sparsity (setting many weights to zero). Binarization leads to weight repetition, where the same few values appear frequently, allowing for hardware optimizations. Sparsity, on the other hand, eliminates unnecessary computations involving zero weights. However, existing methods typically leverage either binarization or sparsity, but not both effectively. Prior attempts to combine them often resulted in a significant drop in accuracy. This paper tackles the problem of how to synergistically combine weight binarization and sparsity to achieve both high efficiency and competitive accuracy.

Methods

The core innovation is the Signed-Binary Weight Network (SBWN) quantization scheme. Unlike standard binary networks that use a single quantization function (e.g., mapping to +1 or -1), SBWN employs two distinct quantization functions for different filters within a convolutional layer: one maps to {+1, 0} and the other to {-1, 0}. The choice of which function to apply to a specific filter is made randomly before training and remains fixed. This allows for both weight repetition (due to the limited values) and sparsity (due to the presence of zero).

Key aspects of the method include:

  • Per-filter Quantization: The decision of which quantization function to use is made independently for each filter.
  • Random Assignment: The assignment of {+1, 0} or {-1, 0} quantization functions to filters is randomized, which the authors found leads to higher accuracy.
  • Complementary Exploitation: SBWN is designed so that weight repetition and weight sparsity are not mutually exclusive but rather complementary, leading to greater efficiency gains than either technique alone.

Datasets

The paper uses the following standard datasets for training and evaluation:

  • CIFAR10: Used for training and evaluating ResNet models, particularly for ablation studies.
  • ImageNet: Used for training and evaluating ResNet-18 models at scale, including experiments with distillation.

No new benchmarks were introduced.

Key Insights and Ideas

  • Synergy of Sparsity and Repetition: The most significant insight is that weight sparsity and weight repetition are not opposing forces but can be made complementary for enhanced DNN efficiency.
  • The Drawback of Ternary Networks: The paper argues that while ternary networks (using {-1, 0, +1}) introduce sparsity, they make it exponentially harder to exploit weight repetition, a key advantage of binary networks. SBWN aims to retain the benefits of repetition while introducing sparsity.
  • Randomization for Accuracy: Randomly assigning the {+1, 0} or {-1, 0} quantization functions to filters, rather than a fixed scheme, leads to improved accuracy.
  • Hardware-Software Co-design: The paper highlights that achieving the full benefits of SBWN requires hardware and software support for unstructured sparsity, which is an emerging area.

Key Results

  • Accuracy: SBWN achieves comparable top-1 validation accuracy to standard binary networks on both CIFAR10 and ImageNet. For example, on CIFAR10, SBWN ResNet20 achieves 90.05% accuracy, similar to binary networks. On ImageNet, SBWN ResNet18 with distillation reaches 64.6% top-1 accuracy.
  • Sparsity: SBWN models can achieve high sparsity levels, with up to 69% sparsity reported for ResNet18 on ImageNet and 60% for ResNet20 on CIFAR10.
  • Efficiency on CPUs: When deployed on Intel CPUs with sparsity support enabled, SBWN shows significant speedups: 1.26x faster than binary and 1.75x faster than ternary networks. Without sparsity support, binary and SBWN perform similarly, while ternary is slower due to its difficulty in exploiting repetition.
  • Efficiency on ASICs: Theoretical analysis and simulation suggest that the high unstructured sparsity enabled by SBWN can lead to a ~2x reduction in energy consumption on ASICs.
  • Comparable Performance with Reduced Parameters: When binary networks are modified to have a comparable number of non-zero parameters to SBWN, SBWN still demonstrates higher accuracy.

Limitations and Future Work

The authors acknowledge the following limitations and suggest future directions:

  • Scope: The current work focuses on weight quantization and sparsity.
  • Future Work:
    • Extend the work to Signed-Binary Neural Networks that also incorporate activation quantization.
  • Address the challenge of combining sparsity in both weights and activations with binarization.
  • Develop a software system to demonstrate actual speedups more comprehensively.

Summary updated

BibTeX
@misc{kuhar2022signed,
  author = {Sachit Kuhar and Alexey Tumanov and Judy Hoffman},
  title = {{Signed Binary Weight Networks: Improving Efficiency of Binary Weight Networks by Exploiting Sparsity}},
  year = {2022},
  eprint = {2211.13838},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.13838},
}
Figure