facebookresearch / facebookresearch/flow_matching

Compute likelihoods during sampling

Open
#62 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.7k
Forks
373
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
I was wondering why it's only possible to compute the likelihoods post-hoc. Computing likelihood themselves requires integrating the system again, that can obviously be quite time consuming. Many applications require a reweighting of the samples, so it would be convenient to obtain the likelihoods with the samples.

**Describe the solution you'd like**
The likelihood computation is based on the change of variable theorem, where the log determinants of the Jacobian get summed up over the timesteps. So it should be possible to simply compute them along the way with the sampling process.

I am thinking of an extra flag to the sampling method to additionally obtain the likelhoods or not.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.