You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My dirichlet prior does not appear to be behaving as I would expect when using ADVI. For uniform a=1, the posterior density of the last element is way off, and there are lots of divergences in the traceplot.
Reading through #4129 I wonder if it may have to do with Km1, because it's noticeably exacerbated when the size of the dirichlet is increased. (here I set to 30 to demonstrate).
The reason I noticed this is because my "uniform" prior does not actually look uniform at all. The unexpected behavior is lessened over the course of training, as my model learns - but in some settings it is greatly hampered by the very biased prior that is apparently being created. I've only fit the ADVI trace with a single step so as to show this.
I'm pretty sure this is a bug in the stickbreaking transform. I have the same problem with a small dimensional dirichlet (ex. K=5)
If anyone else finds themselves here, my solution is to draw a bunch of gammas as a workaround to get desired behaviour. (Gamma transformation default is log transform, not stickbreaking). The simplex constraint is now enforced in the untransformed space.
Description of your problem
My dirichlet prior does not appear to be behaving as I would expect when using ADVI. For uniform a=1, the posterior density of the last element is way off, and there are lots of divergences in the traceplot.
Reading through #4129 I wonder if it may have to do with
Km1
, because it's noticeably exacerbated when the size of the dirichlet is increased. (here I set to30
to demonstrate).The reason I noticed this is because my "uniform" prior does not actually look uniform at all. The unexpected behavior is lessened over the course of training, as my model learns - but in some settings it is greatly hampered by the very biased prior that is apparently being created. I've only fit the ADVI trace with a single step so as to show this.
Works as expected with NUTS
Strange result for the last dirichlet element when using ADVI
Versions and main components
The text was updated successfully, but these errors were encountered: