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

Hessian Vector Products #20

Open
syclik opened this issue Mar 29, 2022 · 3 comments
Open

Hessian Vector Products #20

syclik opened this issue Mar 29, 2022 · 3 comments

Comments

@syclik
Copy link
Collaborator

syclik commented Mar 29, 2022

Can we compute the Hessian? Can we compute a Hessian Vector Product?

What's the interface to do this?

Request from @rgiordan.

@syclik
Copy link
Collaborator Author

syclik commented Mar 29, 2022

Do we need gradients w.r.t. the hessian vector product? (I'm guessing no)
Do we need the different versions of evaluating the log prob? (I'm guessing yes)

@rgiordan
Copy link

rgiordan commented Mar 29, 2022

  • Do we need gradients w.r.t. the hessian vector product? (I'm guessing no)
    The ideal of course would be arbitrarily high-order combinations of forward and reverse mode derivatives. :) But for my current research at least, I'm prevented from using Stan mostly because of the lack of Hessians and HVPs only. So the answer to your question is a soft no.

  • Do we need the different versions of evaluating the log prob? (I'm guessing yes)
    I assume you mean with and without the Jacobian, and the answer to your question is yes. Again in an ideal world it might also be with and without the Jacobians of the unconstraining parameterization, but that is possible if tedious to extract by creating a new model without the variable constraints.

@rgiordan
Copy link

Possibly relevant, with associated PRs and commentary from the Stan developers:

stan-dev/rstan#587

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