SCHTs: A Semi-Structured Dynamic Sparse Training Framework for Hardware-Efficient Deep Learning
Abstract
Although Dynamic Sparse Training (DST) has emerged as a promising solution for deploying deep neural networks on resource-constrained edge devices, unstructured DST methods suffer from irregular weight distributions that incur extra index overhead and severely degrade computational efficiency. In contrast, semi-structured sparsity offers computational efficiency but typically suffers from performance degradation at high sparsity levels with strict semi-structured constraints. To address these challenges, we propose Semi-structured Cannistraci-Hebb Training soft rule (SCHTs), a novel hardware-efficient dynamic sparse training framework, which includes four key stages: semi-structured sparse topological initialization, weight initialization, global network pruning, and local network regrowth. Unlike unstructured DST methods, SCHTs supports fine-grained and coarse-grained N:M semi-structured sparsity patterns with constant fan-in or fan-out, ensuring computational efficiency. Extensive experiments demonstrate that the proposed SCHTs framework enables highly sparse networks (linear-layer sparsity > 90%) to achieve performance comparable to, or even surpassing, their dense counterparts. (1) For spiking neural networks, models trained with SCHTs outperform their dense counterparts at 90% hidden linear-layer sparsity, yielding accuracy improvements of +0.15% and +2.67% on CIFAR-10 and CIFAR-100. (2) For artificial neural networks, sparse networks trained with SCHTs outperform their dense counterparts with accuracy improvements of +0.21% and +0.49% using GoogLeNet on CIFAR-100 and TinyImageNet, as well as a +0.30% improvement using ResNet-152 on CIFAR-100. (3) For large language models, SCHTs enables a 90% sparse LLaMA-130M to yield a highly competitive validation perplexity of 25.49 on OpenWebText. Furthermore, on a representative LLaMA-130M MLP projection measured on an NVIDIA A100 GPU, SCHTs achieves a 1.24× speedup over dense cuBLAS and a 19.85× speedup over equal-sparsity CSR using NVIDIA's native FP16 2:4 Tensor-Core operator. With optimized FP32 kernels, SCHTs achieves speedups of up to 3.54× and 3.91× over dense execution under fine-grained and coarse-grained sparsity, respectively. Our code is available at https://github.com/ddddazhaxie/SCHTs.