Abstract
As deep learning models continue to scale in complexity, traditional hardware acceleration techniques such as value-based pruning and quantization face diminishing returns. Specifically, in 8-bit quantized models, value sparsity—the occurrence of zero-valued weights—often drops below 5%, limiting the effectiveness of traditional sparse accelerators. This paper introduces Bi-directional Bit-level Sparsity (BBS), a hardware-software co-design that exploits sparsity within the binary representation of data. By skipping both zero-bits and one-bits through a novel inversion logic and a custom accelerator named BitVert, BBS guarantees that no more than 50% of bits in any given column require processing. Experimental results across computer vision and large language models demonstrate up to a $3.03\times$ speedup and $2.44\times$ energy savings with negligible impact on accuracy.
1. Introduction
The gap between the computational requirements of state-of-the-art AI models and the capabilities of modern hardware is widening. While quantization (reducing precision) and pruning (removing weights) are standard optimization strategies, they often struggle to maintain efficiency at lower bit-widths. In well-quantized 8-bit integer models, the data is dense, leaving little room for traditional zero-skipping hardware to find efficiencies.
BBS shifts the focus from "value sparsity" to "bit-level sparsity." By utilizing bit-serial computing—processing numbers one bit at a time—it becomes possible to skip individual zero bits even within non-zero values. However, traditional bit-serial approaches suffer from load imbalance and high hardware overhead. BBS addresses these challenges by treating both zeros and ones as potential targets for sparsity.
2. Methodology
2.1 The BBS Algorithm: Bi-directional Sparsity
The core innovation of BBS is the realization that if a bit column is dense with ones, it can be treated as sparse by inverting the operation. In a standard bit-serial operation, hardware skips zeros and processes ones. BBS introduces a bi-directional approach:
- Zero-Sparsity Mode: If a column is mostly zeros, the hardware skips the zeros (standard).
- One-Sparsity Mode: If a column is mostly ones, BBS calculates the sum of all activations and subtracts the activations corresponding to the few zero-bits.
This mathematical inversion ensures that the hardware never processes more than 50% of the bits in any column, effectively solving the load imbalance problem inherent in bit-serial architectures.
2.2 Post-Training Binary Pruning
To further enhance efficiency without the high cost of retraining, the authors propose two bit-level pruning techniques:
- Rounded Averaging: This technique replaces noisy, low-order bits with a constant value across weight groups, increasing the likelihood of identical bit patterns.
- Zero-point Shifting: By adding an optimal offset to weights, the algorithm aligns bit patterns to create columns that are entirely composed of zeros or ones, which can then be skipped entirely by the BBS logic.
2.3 The BitVert Accelerator
The BBS logic is implemented in BitVert, a custom hardware architecture. BitVert features specialized Processing Elements (PEs) capable of performing both addition and subtraction to support bi-directional sparsity. Additionally, BitVert employs a channel-reordering mechanism to group weights with similar precision, streamlining memory access and reducing the overhead typically associated with bit-serial hardware.
3. Experimental Evaluation
3.1 Setup
The researchers evaluated BBS across several domains:
- Computer Vision: VGG-16, ResNet-34, and ResNet-50 on ImageNet-1K.
- Vision Transformers: ViT-Small and ViT-Base.
- Language Models: BERT (GLUE benchmark) and Llama-3-8B (Wikitext and C4).
3.2 Performance and Efficiency
Compared to the Stripes baseline (a standard bit-serial accelerator), BitVert achieved:
- Speedup: Up to $3.03\times$ (average performance gains varied by model).
- Energy Efficiency: Up to $2.44\times$ energy savings.
- Memory Reduction: An average reduction of $1.66\times$ in the model memory footprint.
3.3 Accuracy Preservation
Across all tested models, the accuracy loss remained under 0.5%. Notably, the post-training pruning methods successfully preserved the statistical distribution of weights, allowing for high efficiency gains without the need for expensive fine-tuning. In LLM testing, BitVert demonstrated a $1.58\times$ better performance-per-area ratio than Olive, a state-of-the-art quantization framework.
4. Conclusion
BBS: Bi-directional Bit-level Sparsity represents a significant step forward for bit-serial computing. By guaranteeing a 50% sparsity floor and providing a hardware-software framework to exploit it, BBS acts as a "force multiplier" for existing quantization methods. While current work focuses on weight-centric pruning, future iterations may extend these binary pruning strategies to dynamic activations and emerging data formats like Microscaling (MX), further pushing the boundaries of AI hardware efficiency.
Summary updated