[Paper Review] Compression of Fully-Connected Layer in Neural Network by Kronecker Product
This paper proposes Kronecker Fully-Connected (KFC) layers that compress fully-connected layers in neural networks by approximating their weight matrices as linear combinations of Kronecker products of smaller matrices, reducing parameters by up to 99% and computation time significantly, while maintaining acceptable accuracy—achieving 73% parameter reduction on SVHN with only a mild error increase compared to 35% with low-rank methods.
In this paper we propose and study a technique to reduce the number of parameters and computation time in fully-connected layers of neural networks using Kronecker product, at a mild cost of the prediction quality. The technique proceeds by replacing Fully-Connected layers with so-called Kronecker Fully-Connected layers, where the weight matrices of the FC layers are approximated by linear combinations of multiple Kronecker products of smaller matrices. In particular, given a model trained on SVHN dataset, we are able to construct a new KFC model with 73\% reduction in total number of parameters, while the error only rises mildly. In contrast, using low-rank method can only achieve 35\% reduction in total number of parameters given similar quality degradation allowance. If we only compare the KFC layer with its counterpart fully-connected layer, the reduction in the number of parameters exceeds 99\%. The amount of computation is also reduced as we replace matrix product of the large matrices in FC layers with matrix products of a few smaller matrices in KFC layers. Further experiments on MNIST, SVHN and some Chinese Character recognition models also demonstrate effectiveness of our technique.
Motivation & Objective
- To reduce the number of parameters and computation time in fully-connected layers of neural networks without significant accuracy degradation.
- To explore structural parameter compression techniques that preserve model performance under strict resource constraints.
- To compare the effectiveness of Kronecker product-based compression against traditional low-rank approximation methods in neural network layers.
- To evaluate the proposed method on diverse datasets including MNIST, SVHN, and Chinese character recognition tasks.
- To investigate the feasibility of extending Kronecker-based compression to convolutional layers and other architectures like RNNs.
Proposed method
- Approximate the weight matrix of a fully-connected layer as a linear combination of Kronecker products of smaller matrices, enabling efficient parameterization.
- Use two formulations: KFC-I for tensor inputs and KFC-M for matrix inputs, both based on Kronecker product decomposition.
- Apply the Kronecker product decomposition to represent large weight matrices as sums of smaller, low-rank components, reducing storage and computation.
- Train the compressed model via fine-tuning to adapt the new KFC layer parameters to input data, improving generalization after approximation.
- Use the structural constraint that a matrix of rank r can be written as a product of two smaller matrices, enabling low-rank approximation via Kronecker decomposition.
- Combine multiple Kronecker product decompositions (formulations II, III, IV) to increase representational capacity while maintaining compression.
Experimental results
Research questions
- RQ1Can Kronecker product-based decomposition effectively compress fully-connected layers in neural networks while preserving model accuracy?
- RQ2How does the parameter reduction and accuracy trade-off of KFC layers compare to low-rank approximation methods on standard datasets?
- RQ3To what extent can KFC layers reduce computation and model size in real-world applications like image and character recognition?
- RQ4Does combining multiple Kronecker product formulations improve model performance while maintaining high compression rates?
- RQ5Can the Kronecker product technique be extended to other layers, such as convolutional or recurrent layers, for broader neural network compression?
Key findings
- On the SVHN dataset, the KFC-II method achieved a 99.0% reduction in fully-connected layer parameters with only a 0.76% increase in test error compared to the baseline.
- The KFC-Combined method reduced total model parameters by 73.7% while achieving a test error of 2.60%, outperforming LowRank-64 (3.67% error) with 55.1% parameter reduction.
- On the Chinese character recognition task, the KFC-KFCM-rank-10 method achieved 91.8% total parameter reduction with a test error of 13.0%, recovering most of the performance lost at rank 1.
- The KFC layer reduced parameters by over 99% compared to the original fully-connected layer, demonstrating superior compression efficiency.
- The KFC method achieved 73% total parameter reduction on SVHN with minimal accuracy loss, significantly outperforming low-rank methods, which managed only 35% reduction under similar error constraints.
- Fine-tuning after KFC layer construction effectively mitigated accuracy degradation, confirming the method's practical viability for deployment.
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.