Skip to content

score-based diffusion models as density estimators #962

Closed

Description

@janfb

Is your feature request related to a problem? Please describe.

Score estimation has been introduced for SBI, see

it would be great to integrate these approaches into sbi.

Describe the solution you'd like

(feel free to move the last three points to separate issues, or create individual PRs for each).

Activity

  1. added
    enhancement
    hackathon
    estimators
    on Feb 28, 2024
  2. added this to the Hackathon 2024 milestone on Feb 28, 2024
  3. self-assigned this
    on Mar 18, 2024
  4. jsvetter commented on Mar 18, 2024

    @jsvetter
    Contributor

    I would also be interested in doing this!

  5. pfuhr commented on Mar 18, 2024

    @pfuhr

    me too!

  6. pfuhr commented on Mar 18, 2024

    @pfuhr

    I am not part of the org yet, though would like to be assigned.

  7. rdgao commented on Mar 18, 2024

    @rdgao
    Contributor

    rough work plan for the "basic" components:

    • in neural_nets, something like a VectorFieldEstimator super class that is the generic class for specific subclasses, including ScoreEstimator and FlowMatchEstimator, corresponding to score matching (i.e., denoising diffusion model) and flow matching, respectively, with their specific losses
    • a VectorFieldSampler class in samplers that receives the VectorFieldEstimator and samples by, e.g., solving the ODE/SDE
    • a VectorFieldPosterior object in inference/posteriors/ that receives the VectorFieldEstimator and sets up a VectorFieldSampler to create the posterior distribution, similar to DirectPosterior

    does this sound about right? (also @janfb, @michaeldeistler, etc.)

  8. jsvetter commented on Mar 18, 2024

    @jsvetter
    Contributor

    torchdiffeq seems like a reasonable choice for ODEs in pytorch. It's also used in dingo! Alternatives are torchDyn and torchode.

  9. rdgao commented on Mar 18, 2024

    @rdgao
    Contributor

    I don't know how to link the branch to the issue here but it's in score_estimator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementestimatorshackathon

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions