Skip to content

Research Articles

Hardware-Constrained Structured Pruning: Uneven Workloads

Ravi Oakmarsh (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing), Hana Meadowick (Machine Learning Laboratory, Thornmere Polytechnic)

Vol. 7 No. 1 (2023) · pp. 17–31 · Published 3 February 2023

Abstract

This synthetic study compares removing whole channel groups after measuring their contribution to runtime with pruning individual magnitude-ranked weights to the same parameter budget in a workload with many common cases and a small set of recurring high-cost cases. Each configuration is evaluated on the same 240 cases. In the 60 stress cases, the remaining tensor shapes must align poorly with hardware tiles; the rare cases are assessed separately so that the dominant group does not hide their behavior. A case counts as a pass only if it meets this criterion: a run must satisfy both its accuracy floor and a measured inference budget. The comparison holds the training and selection splits fixed across alternatives; evaluation cases are not reused for tuning. Compute or memory assigned to an alternative counts toward its budget even if training does not finish. Across the full set, 182 cases meet the criterion with the first configuration and 187 with the second. The stress cases account for 24 and 29 passes, respectively. The stress results should be read alongside the full-set results rather than treated as a general performance guarantee. The practical trade-off is that a smaller parameter count can still yield inefficient kernels. The paired design makes the comparison interpretable within the fixture. It does not establish the size of the effect in an independent deployment.

Keywords: structured pruning, inference, compression, uneven workloads, synthetic evaluation

References

  1. Aminabadi, R. Y., et al. (2022). DeepSpeed-Inference: Enabling efficient inference of transformer models at unprecedented scale. Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, Article 46.
  2. Bowman, S. R., et al. (2022). Measuring progress on scalable oversight for large language models. arXiv:2211.03540.
  3. Craven, M. W., & Shavlik, J. W. (1996). Extracting tree-structured representations of trained networks. Advances in Neural Information Processing Systems, 8, 24–30.
  4. Creswell, A., Shanahan, M., & Higgins, I. (2022). Selection-inference: Exploiting large language models for interpretable logical reasoning. arXiv:2205.09712.
  5. Han, S., Mao, H., & Dally, W. J. (2016). Deep compression: Compressing deep neural networks with pruning, trained quantization and Huffman coding. International Conference on Learning Representations. Source
  6. He, Y., Zhang, X., & Sun, J. (2017). Channel pruning for accelerating very deep neural networks. Proceedings of the IEEE International Conference on Computer Vision, 1389–1397.
  7. Johnston, N., et al. (2017). Improved lossy image compression with priming and spatially adaptive bit rates for recurrent networks. arXiv:1703.10114.
  8. Lee, N., Ajanthan, T., & Torr, P. H. S. (2018). SNIP: Single-shot network pruning based on connection sensitivity. arXiv:1810.02340.
  9. Leviathan, Y., Kalman, M., & Matias, Y. (2022). Fast inference from transformers via speculative decoding. arXiv:2211.17192.
  10. Liu, K., Dolan-Gavitt, B., & Garg, S. (2018). Fine-pruning: Defending against backdooring attacks on deep neural networks. Research in Attacks, Intrusions, and Defenses (RAID 2018), Lecture Notes in Computer Science, 11050, 273–294.
  11. Mallya, A., & Lazebnik, S. (2017). PackNet: Adding multiple tasks to a single network by iterative pruning. arXiv:1711.05769.
  12. Molchanov, P., Tyree, S., Karras, T., Aila, T., & Kautz, J. (2016). Pruning convolutional neural networks for resource efficient inference. arXiv:1611.06440.
  13. Pope, R., et al. (2022). Efficiently scaling transformer inference. arXiv:2211.05102.
  14. Rajbhandari, S., et al. (2022). DeepSpeed-MoE: Advancing mixture-of-experts inference and training to power next-generation AI scale. International Conference on Machine Learning.
  15. Scholak, T., Schucher, N., & Bahdanau, D. (2021). PICARD: Parsing incrementally for constrained auto-regressive decoding from language models. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 9895–9901.
  16. Zhu, M., & Gupta, S. (2017). To prune, or not to prune: Exploring the efficacy of pruning for model compression. arXiv:1710.01878.