HBNN, is this for inference, or for prediction? Sometimes, but not always, those two goals/purposes conflict. I've been meaning to try my hand at Bayesian methods, as I use linear mixed effects models fairly often for inference. The one time I did want to try, it turned out it would take a couple of months to finish (given both time to compute and the number of individual models I wanted to run.
This was for prediction. However, as I was constructing it, I learned that I can add a neural network as a term to a linear model. So I notice a bridge / reason they can be used for both—— that reminds me that inference and prediction aren’t cleanly separable and are cross-reinforcing.
In terms of speed for Bayesian linear mixed models, a lot of it comes down to the size of space you’re computing. ie- prior and likelihood refinement can help, bc of how it can reduce the size of space you need to compute. If your data set is very large, there’s also variational inference (though I much prefer MCMC considering how it’s an exact method).
You can fit Bayesian models using GPUs. If you use PyMC for example you can use a JAX-based NUTS sampler like numpyro or blackjax which run NUTS sampling via JAX and support GPU execution. Like you could run each chain on a GPU so it's quite efficient.
My understanding is that bc MCMC is sequential, the GPU path isn’t any faster and is actually slower to do less code optimization (and that cpus are much faster at sequential operations).
https://statwonk.com/hierarchical-neural-network-varying-slo...
http://www.cs.toronto.edu/pub/radford/thesis.pdf
https://thesis.caltech.edu/25/
In terms of speed for Bayesian linear mixed models, a lot of it comes down to the size of space you’re computing. ie- prior and likelihood refinement can help, bc of how it can reduce the size of space you need to compute. If your data set is very large, there’s also variational inference (though I much prefer MCMC considering how it’s an exact method).
Am I missing something?