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

Pathfinder Variational Inference #776

Open
aphc14 opened this issue Feb 17, 2025 · 1 comment
Open

Pathfinder Variational Inference #776

aphc14 opened this issue Feb 17, 2025 · 1 comment
Labels
proposal New notebook proposal still up for discussion

Comments

@aphc14
Copy link
Contributor

aphc14 commented Feb 17, 2025

Notebook proposal

Title: Pathfinder Variational Inference

Why should this notebook be added to pymc-examples?

As the existing Pathfinder example notebook is really out-of-date, I propose replacement notebook to demo the new features from Pathfinder pymc-extras>=0.2.2 so that the user has a good understanding on:

  • How the algorithm works
  • Function argument recommendations
  • Compute speed and posterior comparisons between NUTS and ADVI
  • Interpreting the Pathfinder stdout results
  • (Maybe) How to use estimates from Pathfinder as initial values for NUTS
  • Pros and Cons of Pathfinder

Unlike ADVI, which in most cases, doesn't require users to think that deeply about setting the argument values and there being only a few arguments to consider, Pathfinder requires some extra more thought for many arguments. It can be highly sensitive to the argument values. And knowing how to set the argument values based on feedback from the stdout results and posterior visuals is going to help users understand adjustments they need to make on the argument values (before thinking this feature is broken or algorithm isn't effective).

Examples of function argument to discuss:
num_paths maxcor maxiter ftol gtol jitter importance_sampling compile_kwargs (if mode="JAX" is fixed), and inference_backend (if blackjax pathfinder is fixed)

Suggested categories:

  • Level: Intermediate
  • Diataxis type: Explanation & How-To Guide

Related notebooks

https://www.pymc.io/projects/examples/en/latest/variational_inference/pathfinder.html

References

Zhang, L., Carpenter, B., Gelman, A., & Vehtari, A. (2022). Pathfinder: Parallel quasi-Newton variational inference. Journal of Machine Learning Research, 23(306), 1–49.

@aphc14 aphc14 added the proposal New notebook proposal still up for discussion label Feb 17, 2025
@AlexAndorra
Copy link
Collaborator

Love it @aphc14 ! Feel free to ping me for reviews

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

No branches or pull requests

2 participants