Abstract
Convolutional neural networks (CNNs) demand extensive computational resources, particularly within convolutional layers where a vast number of multiply-and-accumulate (MAC) operations dominate execution time and hardware cost. Stochastic computing (SC) has emerged as a compelling low-cost alternative to conventional binary arithmetic for CNN acceleration, offering substantially reduced hardware footprint and power consumption. However, SC-based accelerators continue to face challenges related to long processing times imposed by bit-stream operations. In this work, we propose a weight consolidation methodology that applies K-means clustering to the filter channel weights of convolutional layers, strategically reducing the number of distinct weight values. When deployed on differential SC-based architectures that store weight differences in sorted order, this consolidation dramatically increases the occurrence of zero-valued entries in the weight buffer. We further introduce a run-length encoding (RLE) scheme for the weight buffer that exploits this increased sparsity, yielding simultaneous reductions in both computation cycles and hardware area. Comprehensive evaluations on LeNet-5 (MNIST) and AlexNet (CIFAR-10) demonstrate that the proposed approach achieves speedups of up to 4.27× and 13.02× over state-of-the-art differential and non-differential architectures, respectively, on LeNet-5, with hardware area reductions of 18%–25%. On AlexNet, speedups of 1.32× and 1.67× are attained alongside area reductions of 23%–25%, all while preserving competitive classification accuracy. Energy is reduced by 41%–83% on LeNet-5 and by 34%–48% on AlexNet relative to the differential and non-differential baselines.