Packing Sparse Convolutional Neural Networks for Efficient Systolic Array Implementations: Column Combining Under Joint Optimization

H. T. Kung, Bradley McDanel, Sai Qian Zhang

TL;DR

This paper introduces column combining, a technique that packs sparse Convolutional Neural Networks (CNNs) into dense structures to maximize the efficiency of systolic arrays. By jointly optimizing hardware utilization and model accuracy through iterative pruning and retraining, the authors achieve a 3x boost in energy efficiency and a 12x reduction in inference latency compared to prior state-of-the-art designs.

What Problem Does This Paper Address?

Deep learning accelerators often rely on systolic arrays (like those in Google’s TPU) because their regular, grid-like structure allows for massive data reuse and high throughput. Simultaneously, researchers have found that CNNs can be "pruned"—removing up to 90% of their weights—without losing accuracy.

The problem is that these two trends are at odds. Pruning creates "unstructured sparsity," where non-zero weights are scattered irregularly. In a standard systolic array, a zero weight still occupies a processing element, wasting a clock cycle and energy. Consequently, hardware utilization for sparse networks is often abysmal (frequently under 20%). This paper tackles the challenge of making irregular sparse networks "fit" into the rigid, regular structure of systolic hardware.

Methods

The authors propose a "Joint Optimization" framework that bridges the gap between software sparsity and hardware regularity:

  1. Column Combining: The algorithm groups multiple sparse columns from a filter matrix into a single "packed" column.
  2. Conflict Resolution & Pruning: If two columns in a group both have a non-zero weight in the same row (a "conflict"), the algorithm keeps only the weight with the largest magnitude and prunes the others.
  3. Iterative Retraining: To recover the accuracy lost during conflict pruning, the network is retrained. This process is repeated iteratively, gradually increasing the packing density.
  4. Bit-Serial Systolic Arrays: The hardware uses bit-serial Multiplier-Accumulators (MACs). Because bit-serial math processes data one bit at a time, it is much easier and cheaper to multiplex multiple input streams into a single column than it would be with traditional bit-parallel hardware.
  5. Row Permutation: The authors describe a scheme to reorder rows so that the outputs of one layer are already grouped correctly for the next, eliminating the need for complex hardware "switchboxes" to route data.

Datasets

The approach was evaluated using three classic models across two datasets:

  • MNIST: Evaluated using LeNet-5.
  • CIFAR-10: Evaluated using VGG-16 and ResNet-20. The authors also utilized Shift Convolution variants of these networks to simplify the structure into pointwise layers, making them more amenable to systolic implementation.

Key Insights and Ideas

  • Hardware-Aware Pruning: Instead of pruning weights just because they are small, this method prunes weights specifically to resolve hardware conflicts. It’s a "co-design" approach where the hardware constraints dictate the pruning strategy.
  • The Bit-Serial Advantage: A major "aha" moment is that bit-serial architecture provides the flexibility needed for multiplexing. In a bit-parallel design, handling 8 different input streams for a packed column would require a massive amount of wiring; in bit-serial, it only requires a small multiplexer.
  • Retraining with Limited Data: The authors found that you don't need the full original dataset to recover accuracy after packing. Using just 10-15% of the data is sufficient. This is a significant finding for privacy, as a hardware vendor could optimize a proprietary model without needing the customer's entire dataset.
  • Tiling Reduction: For large layers that don't fit in a single systolic array, column combining drastically reduces the number of "tiles" (passes) required, leading to a 3x to 5x reduction in the largest layers.

Key Results

  • Utilization: Hardware utilization jumped from less than 20% in baseline sparse implementations to 90% using column combining.
  • Energy Efficiency: The ASIC implementation showed a 3x improvement in energy efficiency over prior arts like SC-DCNN.
  • Latency: On FPGA, the design achieved an end-to-end latency for ResNet-20 that was 12x smaller than the next best implementation.
  • Accuracy: The absolute accuracy drop was minimal—typically around 1%—even when aggressively packing 8 columns into one.

Limitations and Future Work

  • Architecture Specificity: The paper relies heavily on "Shift Convolution" (replacing spatial convolutions with shifts and pointwise layers). While effective, it remains to be seen how well this generalizes to more complex, non-pointwise architectures without this transformation.
  • Training Overhead: The iterative "prune-and-retrain" cycle adds complexity and time to the model development pipeline.
  • Scale: The evaluations focused on MNIST and CIFAR-10. Testing the scalability of column combining on massive datasets like ImageNet would be a necessary next step for industrial application.

Summary updated

BibTeX
@inproceedings{kung2019packing,
  author = {H. T. Kung and Bradley McDanel and Sai Qian Zhang},
  title = {{Packing Sparse Convolutional Neural Networks for Efficient Systolic Array Implementations: Column Combining Under Joint Optimization}},
  booktitle = {ASPLOS},
  year = {2019},
  doi = {10.1145/3297858.3304028},
}
Figure