Tetris: Re-architecting Convolutional Neural Network Computation for Machine Learning Accelerators

Hang Lü, Xin Wei, Ning Lin, Guihai Yan, Xiaowei Li · DOI

Abstract

Inference efficiency is the predominant consideration in designing deep learning accelerators. Previous work mainly focuses on skipping zero values to deal with remarkable ineffectual computation, while zero bits in non-zero values, as another major source of ineffectual computation, is often ignored. The reason lies on the difficulty of extracting essential bits during operating multiply-and-accumulate (MAC) in the processing element. Based on the fact that zero bits occupy as high as 68.9% fraction in the overall weights of modern deep convolutional neural network models, this paper firstly proposes a weight kneading technique that could eliminate ineffectual computation caused by either zero value weights or zero bits in non-zero weights, simultaneously. Besides, a split-and-accumulate (SAC) computing pattern in replacement of conventional MAC, as well as the corresponding hardware accelerator design called Tetris are proposed to support weight kneading at the hardware level. Experimental results prove that Tetris could speed up inference up to 1.50x, and improve power efficiency up to 5.33x compared with the state-of-the-art baselines.

Introduction: The Hidden Inefficiency of Zero Bits

Deep Convolutional Neural Networks (DCNNs) are computationally intensive, and much of that computation is "ineffectual." While previous research has focused heavily on sparsity—skipping entire zero-valued weights or activations—this paper identifies a deeper layer of inefficiency: zero bits within non-zero values.

In a standard 16-bit fixed-point (fp16) representation, even a non-zero weight contains many zeros. The authors discovered that in popular models like VGG and AlexNet, zero bits occupy a staggering 68.9% of the total weight data. Standard hardware multipliers (MAC units) cannot easily skip these bits; they must process the entire bit-width, wasting time and energy on "slacks" (the multiplication of 0s).

Distribution of essential bits (1s) across different bit positions and kernels in popular DCNN models.

As shown in the bit distribution analysis, essential bits are not distributed evenly. For example, bits 3 through 5 in fp16 weights often contain less than 1% essential bits. This "cliff" represents a massive opportunity for optimization that standard MAC units ignore.

Proposed Methods: Weight Kneading and SAC

The authors propose a three-pronged solution to architecturally address these zero-bit slacks:

  1. Weight Kneading: This technique "squeezes" the zero-bit slacks out of a batch of weights. It identifies the essential bits (the 1s) and packs them together. This reduces the number of cycles needed to process a group of weights because the hardware only spends time on bits that actually contribute to the final sum.
  2. Split-and-Accumulate (SAC): Tetris abandons the traditional MAC unit. Instead, it decomposes multiplication into a series of additions. It "splits" a kneaded weight, identifies which activations correspond to which bit positions, and accumulates those activations into "segment registers."
  3. Tetris Architecture: The hardware implementation consists of SAC units featuring "splitters" and "segment adders." Crucially, it moves the expensive bit-shifting operations to the very end of the process (the rear adder tree), removing them from the critical path of the main computation.
The result of weight kneading: essential bits are packed to reduce the number of processing cycles from 6 to 3.

Experimental Results

The researchers evaluated Tetris using five prominent DCNN models: AlexNet, GoogleNet, VGG-16, VGG-19, and NiN. Compared to the industry-standard DaDianNao and the bit-serial PRA (Bit-Pragmatic) architectures, Tetris demonstrated significant gains:

  • Throughput: Tetris achieved an average speedup of 1.30x for fp16 and 1.50x for int8 over DaDianNao.
  • Energy Efficiency: The Energy Delay Product (EDP) improved by 1.24x (fp16) and 1.46x (int8) compared to DaDianNao.
  • Power Efficiency: Tetris outperformed the PRA baseline significantly, showing 3.76x and 5.33x better power efficiency for fp16 and int8 modes, respectively.

Conclusion

Tetris re-architects the fundamental unit of DCNN computation by shifting from MAC to SAC. By leveraging the non-uniform distribution of essential bits through Weight Kneading, it effectively eliminates the overhead of zero bits. This approach provides a flexible, high-performance alternative to traditional accelerators, particularly as models continue to grow in complexity and demand higher inference efficiency.

Summary updated

Abstract

Inference efficiency is the predominant consideration in designing deep learning accelerators. Previous work mainly focuses on skipping zero values to deal with remarkable ineffectual computation, while zero bits in non-zero values, as another major source of ineffectual computation, is often ignored. The reason lies on the difficulty of extracting essential bits during operating multiply-and-accumulate (MAC) in the processing element. Based on the fact that zero bits occupy as high as 68.9% fraction in the overall weights of modern deep convolutional neural network models, this paper firstly proposes a weight kneading technique that could eliminate ineffectual computation caused by either zero value weights or zero bits in non-zero weights, simultaneously. Besides, a split-and-accumulate (SAC) computing pattern in replacement of conventional MAC, as well as the corresponding hardware accelerator design called Tetris are proposed to support weight kneading at the hardware level. Experimental results prove that Tetris could speed up inference up to 1.50x, and improve power efficiency up to 5.33x compared with the state-of-the-art baselines.
BibTeX
@misc{lu2018tetris,
  author = {Hang Lü and Xin Wei and Ning Lin and Guihai Yan and Xiaowei Li},
  title = {{Tetris: Re-architecting Convolutional Neural Network Computation for Machine Learning Accelerators}},
  year = {2018},
  eprint = {1811.06841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.06841},
}
Figure