Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of lie-trotter sampler #506

Open
bkozyrskiy opened this issue Mar 12, 2023 · 1 comment
Open

Implementation of lie-trotter sampler #506

bkozyrskiy opened this issue Mar 12, 2023 · 1 comment

Comments

@bkozyrskiy
Copy link

Presentation of the new sampler

I propose to add a Lie-Trotter sampler to blackjax from here https://proceedings.mlr.press/v162/franzese22a.html. It is an analog of the well-known SGHMC sampler, but it has a more robust theoretical background because it doesn't rely on the assumption of Gaussianty of the noise, introduced by mini-batching.

How does it compare to other algorithms in blackjax?

Experiments in the paper suggest that this sampler allows for a faster convergence due to larger step sizes. My personal experience with this sampler shows that it allows for avoiding the window adaptation procedure.

Where does it fit in blackjax

It will be nice to have this sampler in blackjax because it is more "user-friendly" because it is less sensitive to hyperparameters and initialization.

Are you willing to open a PR?

I can implement this sampler in JAX and I'll try to integrate it into a blackjax, but my knowledge of the internal structure of the package is superficial, so I may need some help with this.

@albcab
Copy link
Member

albcab commented May 16, 2023

The Lie-Trotter sampler would be a great addition to the stochastic gradient algorithms in the library. It seems like the Lie-Trotter sampler is exactly the same as SGHMC with a different integrator. If I'm correct about this, the best option is to add a function in sgmcmc/diffusions.py which does the Lie-Trotter sampler's integration and generalize the build_kernel function in sgmcmc/sghmc.py to take in as input the integrator, to then build your own lie_trotter class (which will be very similar to the sghmc class).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants