[Paper Review] Network Pruning for Low-Rank Binary Indexing
This paper proposes a novel fine-grained network pruning method that compresses pruning indices using low-rank binary matrix factorization, enabling high compression ratios and efficient, parallelizable inference. By decomposing binary pruning masks into two small binary matrices, the approach achieves up to 8.2× index compression on AlexNet’s fully connected layers while preserving model accuracy.
Pruning is an efficient model compression technique to remove redundancy in the connectivity of deep neural networks (DNNs). Computations using sparse matrices obtained by pruning parameters, however, exhibit vastly different parallelism depending on the index representation scheme. As a result, fine-grained pruning has not gained much attention due to its irregular index form leading to large memory footprint and low parallelism for convolutions and matrix multiplications. In this paper, we propose a new network pruning technique that generates a low-rank binary index matrix to compress index data while decompressing index data is performed by simple binary matrix multiplication. This proposed compression method finds a particular fine-grained pruning mask that can be decomposed into two binary matrices. We also propose a tile-based factorization technique that not only lowers memory requirements but also enhances compression ratio. Various DNN models can be pruned with much fewer indexes compared to previous sparse matrix formats while maintaining the same pruning rate.
Motivation & Objective
- To address the inefficiency of fine-grained pruning in hardware due to irregular sparsity and high index memory overhead.
- To develop a structured, regular index representation that supports high parallelism and low memory footprint in sparse DNN inference.
- To enable practical deployment of fine-grained pruning by reducing index data size through binary matrix factorization.
- To maintain high model accuracy while achieving significantly higher compression ratios than existing sparse matrix formats like CSR and Viterbi-based indexing.
Proposed method
- Proposes binary matrix factorization (BMF) to represent pruning masks as a product of two low-rank binary matrices, enabling compact and regular index representation.
- Uses a heuristic algorithm to find a low-rank binary factorization that approximates the original binary pruning mask with minimal mismatched bits.
- Applies a tile-based factorization technique to reduce computational cost and improve compression by processing large weight matrices in smaller blocks.
- Employs weight magnitude scaling (multiplying by 1/(1-S)) to enhance pruning effectiveness before BMF, allowing more near-zero weights to be removed.
- Decompresses the index data via simple binary matrix multiplication, which is highly parallelizable on modern hardware.
- Introduces rank control and tiling to balance compression ratio, accuracy, and computational cost across different layers.
Experimental results
Research questions
- RQ1Can low-rank binary matrix factorization effectively compress pruning index data while preserving model accuracy?
- RQ2Does the proposed method achieve higher compression ratios than conventional sparse formats like CSR and Viterbi-based indexing?
- RQ3Can the resulting index representation enable efficient, highly parallelized inference on GPUs and multi-threaded CPUs?
- RQ4How does the tiling technique affect compression and computational efficiency in large fully connected layers?
- RQ5What is the impact of weight magnitude scaling on the effectiveness of binary matrix factorization for pruning?
Key findings
- The proposed method achieves up to 8.2× compression on AlexNet’s FC5 and FC6 layers, reducing index size from 10.06 MB (CSR-16bit) to 812 KB.
- On ResNet32 with 70% pruning rate, the method maintains 91.8% accuracy while achieving 3.09× compression.
- For the PTB language model, the method achieves 1.82× compression with only 0.6 PPW degradation, preserving 89.0 PPW performance.
- The method enables rational compression ratios (e.g., 8.2×, 5.12×) through rank control, unlike Viterbi-based methods limited to integer ratios.
- Tiling FC5 and FC6 layers into 16×8 and 8×8 blocks respectively improves compression and reduces computational cost.
- The approach outperforms Viterbi-based indexing in both compression ratio and hardware efficiency, requiring fewer XOR gates and delay units.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.