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

Use ODE solvers/integrators to improve score matching training #1469

Open
psteinb opened this issue Mar 18, 2025 · 0 comments
Open

Use ODE solvers/integrators to improve score matching training #1469

psteinb opened this issue Mar 18, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@psteinb
Copy link
Collaborator

psteinb commented Mar 18, 2025

🚀 Feature Request

Is your request related to a problem?

The Score Matching Estimators do benefit from solving the ODE which they approximate by establishing an SDE during training. ODEs would help solve the continuous problem, while the SDEs remain in the discrete representation.

...

Describe the solution you'd like

We would have to research which ODE solvers we may want to interface with. A simple solution would be to convert all torch.Tensor instances into numpy.ndarrays and use scipy.odeint as scipy is already a dependency of sbi. However, this will likely not work for bigger problem sizes.

Describe alternatives you've considered

As suggested by @gmoss13, a viable library to do the ODE integration within pytorch would be torchdiffeq. But more research is required to check pros/cons of adding this or any other library as a dependency to sbi

📌 Additional Context

ODE based training for score matching estimators will support high dimensionality use cases of sbi

@psteinb psteinb added the enhancement New feature or request label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant