[Paper Review] Neuron Merging: Compensating for Pruned Neurons
This paper introduces neuron merging, a method that compensates for accuracy loss in pruned neural networks by decomposing weights into a new layer weight matrix and a scaling matrix that guides neuron combination. By absorbing the scaling matrix into the next layer under ReLU conditions, the approach preserves feature maps and maintains accuracy without fine-tuning, achieving 93.16% accuracy on CIFAR-10 with 64% fewer parameters in VGG-16.
Network pruning is widely used to lighten and accelerate neural network models. Structured network pruning discards the whole neuron or filter, leading to accuracy loss. In this work, we propose a novel concept of neuron merging applicable to both fully connected layers and convolution layers, which compensates for the information loss due to the pruned neurons/filters. Neuron merging starts with decomposing the original weights into two matrices/tensors. One of them becomes the new weights for the current layer, and the other is what we name a scaling matrix, guiding the combination of neurons. If the activation function is ReLU, the scaling matrix can be absorbed into the next layer under certain conditions, compensating for the removed neurons. We also propose a data-free and inexpensive method to decompose the weights by utilizing the cosine similarity between neurons. Compared to the pruned model with the same topology, our merged model better preserves the output feature map of the original model; thus, it maintains the accuracy after pruning without fine-tuning. We demonstrate the effectiveness of our approach over network pruning for various model architectures and datasets. As an example, for VGG-16 on CIFAR-10, we achieve an accuracy of 93.16% while reducing 64% of total parameters, without any fine-tuning. The code can be found here: this https URL
Motivation & Objective
- To address accuracy degradation in structured network pruning, where entire neurons or filters are removed.
- To develop a method that compensates for information loss from pruned neurons without requiring fine-tuning.
- To enable parameter-efficient model compression by merging neurons while preserving the original model's output feature maps.
- To propose a data-free, low-cost weight decomposition technique based on cosine similarity between neurons.
Proposed method
- The method decomposes original layer weights into two components: a new weight matrix for the current layer and a scaling matrix that guides neuron merging.
- The scaling matrix is designed to be absorbed into the next layer's weights when the activation function is ReLU, under specific conditions.
- A data-free decomposition is performed using cosine similarity between neuron activations to identify compatible neurons for merging.
- The merging process preserves the output feature map of the original model by maintaining the combined contribution of merged neurons.
- The approach is applicable to both fully connected and convolutional layers, enabling broad applicability across architectures.
- The method avoids fine-tuning by ensuring the merged model's output closely matches the original model's output before pruning.
Experimental results
Research questions
- RQ1Can neuron merging effectively compensate for accuracy loss in pruned neural networks without fine-tuning?
- RQ2How can the scaling matrix be efficiently and data-freely computed to guide neuron merging?
- RQ3To what extent can parameter reduction be achieved while maintaining model accuracy using this merging strategy?
- RQ4Does the method preserve the original model's feature map representation after pruning and merging?
- RQ5How does neuron merging compare to standard pruning in terms of accuracy and parameter efficiency across different architectures?
Key findings
- The proposed neuron merging method maintains the original model's output feature map distribution after pruning, ensuring minimal accuracy drop.
- For VGG-16 on CIFAR-10, the method achieves 93.16% accuracy while reducing total parameters by 64%, without any fine-tuning.
- The approach is effective across various model architectures and datasets, demonstrating generalization beyond a single network.
- The data-free decomposition based on cosine similarity enables efficient and low-cost weight decomposition for merging.
- The scaling matrix can be absorbed into the next layer under ReLU conditions, enabling end-to-end compatibility without additional parameters.
- The method outperforms standard pruned models with the same topology in accuracy, even without fine-tuning.
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.