Log Probability Differences and Posterior Discrepancies in SNLE/SNPE with Various Sampling Techniques #1295
-
Hi, I've noticed that it's possible to calculate the log probability from the trained NPE (using samples generated by the NPE) and from the trained NLE (using samples from either MCMC, Variational Inference (VI), or the NPE-generated samples).
My two questions are:
Any insights or explanations regarding these observations would be greatly appreciated! Thanks in advance for your help! Posterior using VI sampling |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there! Thanks for opening this!
Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi there! Thanks for opening this!
NPE returns log-probabilities of the normalized posterior
p(t | x)
. NLE returns log-probabilities that are not normalized, i.e. it returnsp(x|t)p(t)
(without dividing byp(x)
). So, overall, the log-probablities of NPE and NLE should be exactly proportional for a given observation, but are not expected to match exactly.Generally, when you can use rejection sampling (because you have few parameters, typically less than 5), then it is probably your best choice. We have found that MCMC is also very robust and gives good results. Variational inference is a very fast method if you have (very) many parameters, but it can be inaccurate. In particular, VI (…