Skip to main content
QUICK REVIEW

[Paper Review] Hierarchical Block Sparse Neural Networks

Dharma Teja Vooturi, Dheevatsa Mudigere|arXiv (Cornell University)|Aug 10, 2018
Advanced Neural Network ApplicationsComputer Science9 references14 citations
TL;DR

This paper introduces Hierarchical Block Sparse Neural Networks (HBsNN), a structured sparsity approach that combines multiple levels of block sparsity to balance model accuracy and computational performance. By enabling fluid, multi-level structural pruning—where finer blocks preserve high-magnitude weights and coarser blocks improve hardware efficiency—HBsNN achieves higher accuracy than highly structured sparsity and better performance than unstructured sparsity, with top-1 accuracy of 75.63% at 50% sparsity and 87.5% cumulative sparsity.

ABSTRACT

Sparse deep neural networks(DNNs) are efficient in both memory and compute when compared to dense DNNs. But due to irregularity in computation of sparse DNNs, their efficiencies are much lower than that of dense DNNs on regular parallel hardware such as TPU. This inefficiency leads to poor/no performance benefits for sparse DNNs. Performance issue for sparse DNNs can be alleviated by bringing structure to the sparsity and leveraging it for improving runtime efficiency. But such structural constraints often lead to suboptimal accuracies. In this work, we jointly address both accuracy and performance of sparse DNNs using our proposed class of sparse neural networks called HBsNN (Hierarchical Block sparse Neural Networks). For a given sparsity, HBsNN models achieve better runtime performance than unstructured sparse models and better accuracy than highly structured sparse models.

Motivation & Objective

  • Address the trade-off between model accuracy and runtime performance in sparse deep neural networks (DNNs).
  • Overcome the limitations of unstructured sparsity (poor hardware performance) and highly structured sparsity (lower accuracy).
  • Design a sparsity framework that maintains high-magnitude parameters while enabling efficient computation on regular hardware.
  • Enable structured sparsity that is flexible and fluid across multiple hierarchical levels to improve both accuracy and efficiency.

Proposed method

  • Propose HBsNN, a hierarchical sparsity framework where multiple levels of block sparsity are applied across layers, with varying block sizes (e.g., 32x1, 16x1, 8x1, 4x1, 1x1).
  • Use a multi-level pruning strategy where coarser blocks (e.g., 32x1) improve computational efficiency and finer blocks (e.g., 1x1) preserve high-magnitude weights for accuracy.
  • Apply a hierarchical sparsity distribution: cumulative sparsity is set to 50%, with sparsity allocated across levels (e.g., 75% at L1, 93.75% at L2, etc.) to maintain fluidity.
  • Implement a quasi-block sparse configuration with one level of block sparsity and one of unstructured sparsity (1x1) to balance performance and accuracy.
  • Use a standard prune-and-fine-tune pipeline: prune 50% of parameters using magnitude-based pruning, then fine-tune for 18 epochs with learning rate decay.
  • Design a performance model to estimate speedup as $ \text{SpeedUp} = \frac{C_{\text{dense}}}{C_{\text{sparse}}} $, where $ C $ represents computational cost.

Experimental results

Research questions

  • RQ1Can hierarchical block sparsity improve model accuracy compared to highly structured sparsity while maintaining performance benefits?
  • RQ2How does distributing sparsity across multiple hierarchical block sizes affect model accuracy and computational efficiency?
  • RQ3To what extent can fluid, multi-level sparsity preserve high-magnitude weights compared to fixed block sparsity?
  • RQ4Does combining block sparsity (for performance) with unstructured sparsity (for accuracy) in a quasi-block configuration yield better results than either approach alone?
  • RQ5How does the choice of block size and sparsity distribution impact the trade-off between accuracy and computational efficiency?

Key findings

  • HBsNN achieves a top-1 accuracy of 75.63% at 50% sparsity with cumulative sparsity of 87.5%, outperforming standard 32x1 block sparsity (74.52%) and unstructured sparsity (76.42%) in accuracy under similar conditions.
  • With hierarchical sparsity distribution (e.g., 75% at L1, 93.75% at L2, 96.875% at L3), top-1 accuracy improves to 75.63% at 50% cumulative sparsity, demonstrating the benefit of structural fluidity.
  • Quasi-block sparse configurations (e.g., 32x1 block + 1x1 unstructured) achieve 75.92% top-1 accuracy at 50% sparsity, showing that combining performance and accuracy components improves results.
  • As block size increases from 4x1 to 32x1, top-1 accuracy decreases from 75.73% to 74.52% at 50% sparsity, confirming that larger blocks prune more high-magnitude weights.
  • Distributing sparsity across more hierarchical levels (e.g., 5 levels) increases accuracy compared to single-level block sparsity, with top-1 accuracy rising from 74.52% to 75.63% under identical cumulative sparsity.
  • The performance model confirms that computational cost reduction scales with sparsity, and HBsNN’s structured design enables significant speedup on regular hardware without sacrificing accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.