Searching for N:M Fine-Grained Sparsity of Weights and Activations in Neural Networks
Abstract
Sparsity in deep neural networks has been extensively studied to compress and accelerate models for environments with limited resources. The general approach of pruning aims at enforcing sparsity on the obtained model, with minimal accuracy loss, but with a sparsity structure that enables acceleration on hardware. The sparsity can be enforced on either the weights or activations of the network, and existing works tend to focus on either one for the entire network. In this paper, we suggest a strategy based on Neural Architecture Search (NAS) to sparsify both activations and weights throughout the network, while utilizing the recent approach of N:M fine-grained structured sparsity that enables practical acceleration on dedicated GPUs. We show that a combination of weight and activation pruning is superior to each option separately. Furthermore, during the training, the choice between pruning the weights of activations can be motivated by practical inference costs (e.g., memory bandwidth). We demonstrate the efficiency of the approach on several image classification datasets.
Cite
Text
Akiva-Hochman et al. "Searching for N:M Fine-Grained Sparsity of Weights and Activations in Neural Networks." European Conference on Computer Vision Workshops, 2022. doi:10.1007/978-3-031-25082-8_9Markdown
[Akiva-Hochman et al. "Searching for N:M Fine-Grained Sparsity of Weights and Activations in Neural Networks." European Conference on Computer Vision Workshops, 2022.](https://mlanthology.org/eccvw/2022/akivahochman2022eccvw-searching/) doi:10.1007/978-3-031-25082-8_9BibTeX
@inproceedings{akivahochman2022eccvw-searching,
title = {{Searching for N:M Fine-Grained Sparsity of Weights and Activations in Neural Networks}},
author = {Akiva-Hochman, Ruth and Finder, Shahaf E. and Turek, Javier S. and Treister, Eran},
booktitle = {European Conference on Computer Vision Workshops},
year = {2022},
pages = {130-143},
doi = {10.1007/978-3-031-25082-8_9},
url = {https://mlanthology.org/eccvw/2022/akivahochman2022eccvw-searching/}
}