Sparse Bayesian learning using TMB (Template Model Builder)
Authors:
Open Access
- 28 August 2024
- journal article
- research article
- Published by Springer Nature in Statistics and Computing
- Vol. 34 (5) , 1-15
Abstract
Sparse Bayesian Learning, and more specifically the Relevance Vector Machine (RVM), can be used in supervised learning for both classification and regression problems. Such methods are particularly useful when applied to big data in order to find a sparse (in weight space) representation of the model. This paper demonstrates that the Template Model Builder (TMB) is an accurate and flexible computational framework for implementation of sparse Bayesian learning methods.The user of TMB is only required to specify the joint likelihood of the weights and the data, while the Laplace approximation of the marginal likelihood is automatically evaluated to numerical precision. This approximation is in turn used to estimate hyperparameters by maximum marginal likelihood. In order to reduce the computational cost of the Laplace approximation we introduce the notion of an “active set” of weights, and we devise an algorithm for dynamically updating this set until convergence, similar to what is done in other RVM type methods. We implement two different methods using TMB; the RVM and the Probabilistic Feature Selection and Classification Vector Machine method, where the latter also performs feature selection. Experiments based on benchmark data show that our TMB implementation performs comparable to that of the original implementation, but at a lower implementation cost. TMB can also calculate model and prediction uncertainty, by including estimation uncertainty from both latent variables and the hyperparameters. In conclusion, we find that TMB is a flexible tool that facilitates implementation and prototyping of sparse Bayesian methods.Keywords
Funding Information
- University of Bergen
This publication has 25 references indexed in Scilit:
- Frequentist delta-variance approximations with mixed-effects models and TMBComputational Statistics & Data Analysis, 2021
- Hierachical Bayesian models and sparsity: ℓ 2 -magicInverse Problems, 2019
- Planar Array Diagnosis by Means of an Advanced Bayesian Compressive ProcessingIEEE Transactions on Antennas and Propagation, 2018
- Compressed Sensing for Wireless Communications: Useful Tips and TricksIEEE Communications Surveys & Tutorials, 2017
- Hierarchical sparse Bayesian learning for structural damage detection: Theory, computation and applicationStructural Safety, 2017
- Incremental relevance sample-feature machine: A fast marginal likelihood maximization approach for joint feature selection and classificationPattern Recognition, 2016
- The Relevance Sample-Feature Machine: A Sparse Bayesian Learning Approach to Joint Feature-Sample SelectionIEEE Transactions on Cybernetics, 2013
- An Introduction to Statistical Learning2013
- A sparse Bayesian approach for joint feature selection and classifier learningPattern Analysis and Applications, 2008
- Smooth relevance vector machine: a smoothness prior extension of the RVMMachine Learning, 2007