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

Exposing and Exploiting Fine-Grained Block Structures for Fast and Accurate Sparse Training

Peng Jiang, Lihan Hu, Shihui SongNeurIPS 2022

Introduction

Training massive neural networks is prohibitively expensive, often costing millions of dollars in compute. Sparse training aims to reduce this cost by only updating a small fraction of the model's weights. However, researchers face a major "efficiency-accuracy" trade-off.

Nonstructured sparsity, where weights are scattered randomly, allows for high accuracy but is incredibly slow on standard hardware (GPUs/CPUs) due to irregular memory access patterns. Conversely, structured sparsity groups weights into blocks or channels, which is very fast on hardware but usually results in a significant drop in model accuracy because it over-constrains which weights can be active.

To tackle this challenge, researchers have developed a new dynamic sparse training (DST) algorithm that organizes model weights into "shuffled blocks." This approach successfully combines the high accuracy of unstructured sparsity with the hardware efficiency of structured sparsity, achieving dense-level accuracy at 50% sparsity and training speedups of up to 5x.

Methods: Shuffled Block Structures

The authors propose a dynamic sparse training framework based on Shuffled Block Structures. Their approach avoids expensive dense gradient computations by using a novel "drop-and-grow" strategy.

The proposed dynamic sparse training pipeline featuring drop, grow, shuffle, and blocking steps.

The framework involves three main components:

1. Shuffled Blocking

Instead of forcing weights into rigid, fixed blocks, the method uses a clustering-based approach (Jaccard similarity) to reorder rows and columns. This groups active weights into dense sub-blocks that hardware can process efficiently while maintaining the flexibility of the sparse mask.

2. Block-Aware Drop Criterion

In typical DST, the smallest weights are dropped globally. Here, the algorithm only drops weights if they belong to a cluster of "unimportant" weights within a block.

Illustration of the block-aware drop criterion, where only specific small weights are pruned to maintain block integrity.

This prevents "thrashing," a phenomenon where isolated weights are dropped only to be immediately recreated by the blocking process.

3. Block-Wise Grow Criterion

This component provides the most significant efficiency gain. Most sparse training methods require calculating a "dense gradient" to decide which weights to add back—a very computationally expensive step. Instead, this paper estimates weight importance by looking at the norms of the layer's inputs and output gradients. This allows the "grow" phase to remain purely sparse, drastically reducing computation.

Key Insights

  • Mask Diversity is King: The paper demonstrates that "shuffled" blocks have much higher "mask diversity" than static blocks. This diversity allows the model to explore a much larger space of potential connections, enabling it to match the accuracy of nonstructured models.
  • The 16x16 Sweet Spot: The authors found that a block size of 16x16 offers the best trade-off. It is large enough to saturate GPU caches and trigger high-performance kernels, but small enough that the accuracy loss is negligible.
  • Sparse-to-Sparse Training: By using input/output norms for the "grow" phase, the algorithm never needs to instantiate a dense version of the weights or gradients. This makes the training process "purely sparse" from start to finish.

Results and Performance

The researchers evaluated their method on standard computer vision benchmarks, including ImageNet (ResNet18/ResNet50) and CIFAR-10/100 (WideResNet22-2, ResNet18, VGG16).

  • Accuracy Recovery: On ImageNet, the algorithm (DSB-16) achieved 76.33% accuracy for ResNet50 at 0.5 sparsity, slightly exceeding the dense model's 76.13%.
  • High Sparsity Performance: On CIFAR datasets, they recovered dense accuracy at 0.6 sparsity. Even at 0.9 sparsity, their method matched or outperformed existing nonstructured sparse training methods like RigL.
  • Hardware Speedup: The shuffled block convolution operations were up to 5x faster than dense convolutions at high sparsity levels (0.9) and significantly faster than nonstructured sparse implementations.
  • Training Efficiency: While the "shuffling" process adds some overhead (about 10% of total training time), the speedup gained from sparse operations far outweighs this cost.

Limitations and Future Work

While highly effective, the method has a few limitations. It still relies on specialized shuffled-block kernels to see the full hardware speedup, though it is more flexible than N:M sparsity (which requires specific NVIDIA Ampere Sparse Tensor Cores). Additionally, the Agglomerative Clustering used for row/column reordering is performed periodically; while optimized, it remains a potential bottleneck for extremely large layers. Finally, the current scope is limited to Computer Vision tasks. Future work will explore whether these fine-grained block structures translate well to Transformer-based models for Natural Language Processing.

Summary updated

BibTeX
@inproceedings{jiang2022exposing,
  author = {Peng Jiang and Lihan Hu and Shihui Song},
  title = {{Exposing and Exploiting Fine-Grained Block Structures for Fast and Accurate Sparse Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure