Skip to content

Research Articles

Hardware-Constrained Structured Pruning: Changing Conditions

Tomas Finchmere (Machine Learning Laboratory, Glenwick University), Talia Ternwell (Machine Learning Laboratory, Kestrelby Institute of Technology), Farah Ravenmere (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing)

Vol. 9 No. 1 (2025) · pp. 1–16 · Published 1 March 2025

Abstract

We ask whether removing whole channel groups after measuring their contribution to runtime performs better than pruning individual magnitude-ranked weights to the same parameter budget in an operating profile that changes halfway through each run. The evaluation is synthetic. Each configuration is evaluated on the same 300 cases. In the 75 stress cases, the remaining tensor shapes must align poorly with hardware tiles; the final part of each run is deliberately drawn from a different regime than the initial calibration cases. 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. The first configuration passes 248 of 300 cases, versus 242 for the comparator. In the stress subset, the respective counts are 50 and 48 of 75. The alternative exceeds the comparator overall by 2.0 percentage points. The practical trade-off is that a smaller parameter count can still yield inefficient kernels. A subsequent evaluation should set tolerances independently and repeat the comparison on workloads not used to select the configuration.

Keywords: structured pruning, inference, compression, changing conditions, synthetic evaluation

References

  1. Dao, T., & Gu, A. (2024). Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. arXiv:2405.21060.
  2. 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
  3. 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.
  4. Leviathan, Y., Kalman, M., & Matias, Y. (2023). Fast inference from transformers via speculative decoding. Proceedings of the 40th International Conference on Machine Learning, PMLR 202, 19274–19286. Source
  5. Li, Y., Wei, F., Zhang, C., & Zhang, H. (2024). EAGLE-2: Faster inference of language models with dynamic draft trees. arXiv:2406.16858.
  6. Lin, J., Tang, J., Tang, H., Yang, S., Chen, W.-M., Wang, W.-C., Xiao, G., Dang, X., Gan, C., & Han, S. (2024). AWQ: Activation-aware weight quantization for on-device LLM compression and acceleration. Proceedings of Machine Learning and Systems, 6. Source
  7. Longpre, S., et al. (2023). A pretrainer's guide to training data: Measuring the effects of data age, domain coverage, quality, & toxicity. arXiv:2305.13169.
  8. Ma, X., Fang, G., & Wang, X. (2023). LLM-Pruner: On the structural pruning of large language models. arXiv:2305.11627.
  9. Mehta, S., et al. (2024). OpenELM: An efficient language model family with open training and inference framework. arXiv:2404.14619.
  10. Molchanov, P., Tyree, S., Karras, T., Aila, T., & Kautz, J. (2016). Pruning convolutional neural networks for resource efficient inference. arXiv:1611.06440.
  11. Wu, Y., Sun, Z., Li, S., Welleck, S., & Yang, Y. (2024). Inference scaling laws: An empirical analysis of compute-optimal inference for problem-solving with language models. arXiv:2408.00724.
  12. Xia, H., et al. (2024). Unlocking efficiency in large language model inference: A comprehensive survey of speculative decoding. arXiv:2401.07851.
  13. Xia, M., Gao, T., Zeng, Z., & Chen, D. (2023). Sheared LLaMA: Accelerating language model pre-training via structured pruning. arXiv:2310.06694.
  14. Zhu, M., & Gupta, S. (2017). To prune, or not to prune: Exploring the efficacy of pruning for model compression. arXiv:1710.01878.