[Paper Review] Bayesian Tensorized Neural Networks with Automatic Rank Selection
This paper proposes a Bayesian tensorized neural network using tensor train decomposition with automatic rank selection via variational inference, enabling end-to-end training with compact model sizes and uncertainty quantification. It achieves 7.4× to 137× compression over standard networks while maintaining high accuracy on MNIST and CIFAR-10 benchmarks.
Tensor decomposition is an effective approach to compress over-parameterized neural networks and to enable their deployment on resource-constrained hardware platforms. However, directly applying tensor compression in the training process is a challenging task due to the difficulty of choosing a proper tensor rank. In order to achieve this goal, this paper proposes a Bayesian tensorized neural network. Our Bayesian method performs automatic model compression via an adaptive tensor rank determination. We also present approaches for posterior density calculation and maximum a posteriori (MAP) estimation for the end-to-end training of our tensorized neural network. We provide experimental validation on a fully connected neural network, a CNN and a residual neural network where our work produces $7.4 imes$ to $137 imes$ more compact neural networks directly from the training.
Motivation & Objective
- To address the challenge of selecting optimal tensor ranks in low-rank neural network compression, which is critical for model efficiency and performance.
- To enable end-to-end training of compressed neural networks by integrating Bayesian inference with tensor train decomposition.
- To automatically determine tensor ranks during training without requiring prior knowledge or manual tuning.
- To provide uncertainty estimates for predictions using full posterior inference, enhancing reliability in safety-critical applications.
- To achieve high compression ratios while preserving or improving model accuracy on fully connected and convolutional layers.
Proposed method
- The method employs tensor train (TT) decomposition to parameterize weight matrices and convolutional kernels, reducing model parameters via low-rank factorization.
- A hierarchical Bayesian prior is introduced to induce sparsity in TT-ranks, enabling automatic rank determination based on data-driven evidence.
- Stein variational gradient descent (SVGD) is used to approximate the full posterior distribution over network weights, enabling scalable Bayesian inference.
- Maximum a posteriori (MAP) estimation is performed using the same framework for efficient inference and uncertainty quantification.
- The model is trained end-to-end with gradient-based optimization, where TT-ranks are updated adaptively during learning.
- The framework supports both full Bayesian inference and MAP estimation, allowing trade-offs between uncertainty quantification and computational cost.
Experimental results
Research questions
- RQ1Can Bayesian inference be effectively combined with tensor train decomposition to enable automatic tensor rank selection during neural network training?
- RQ2How does the proposed method compare to fixed-rank tensorized networks in terms of model compression and predictive accuracy?
- RQ3To what extent can automatic rank determination reduce model size while maintaining high performance on image classification tasks?
- RQ4Can the Bayesian formulation provide reliable uncertainty estimates in low-rank neural networks, especially for ambiguous inputs?
- RQ5Does the method achieve superior compression on fully connected layers compared to convolutional layers, and why?
Key findings
- The proposed LR-BTNN method achieves up to 137× parameter reduction on a two-layer fully connected MNIST network compared to a standard Bayesian neural network.
- On a 6-layer CNN, the model achieves a 15.8× compression ratio while maintaining competitive accuracy, outperforming prior tensorization methods.
- On a 110-layer residual network, the method achieves a 7.4× compression ratio with only a 0.7% drop in test accuracy compared to the full model.
- The automatic rank selection process reduces TT-ranks significantly—e.g., from (1,20,20,20,1) to (1,8,1,5,1) in the first fully connected layer of the MNIST model.
- The Bayesian formulation enables uncertainty quantification: for ambiguous inputs, the model can express high confidence in multiple classes, as shown in joint density plots of softmax outputs.
- The method outperforms both standard Bayesian neural networks and fixed-rank tensorized networks in compression efficiency, especially on fully connected layers.
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.