You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancementImprovement planned or wanted by the maintainersresearchNeeds experiments or method knowledge, not only an engineering fixscore-flow-matchingScore matching and flow matching methods, for example NPSE and FMPE
The ScoreEstimator should include a noise_schedule and a solve_schedule property/method. These additions would allow for more flexible training schedules and default discretizations of the diffusion process, which could enhance training efficiency and improve default evaluation performance.
Describe the solution you'd like
To address this issue, the following steps are needed:
Add a noise_schedule method (or a more suitable name) to the ScoreEstimator. This method should return a random batch of diffusion "times" on request, specifying the noise schedule.
Add a solve_schedule (or default_solve_schedule) as a basic property to the ScoreEstimator. This should return a discretization of time from ( t=0 ) to ( t=t_{\text{max}} ).
Modify the loss function to utilize the default training schedule.
Adapt the training routine to evaluate using the default solve schedule.
While VP and subVP SDEs work with uniform train and solve schedules(but you can try look for alternatives), the VE (and potentially new classes) should follow a scheme similar to that outlined in [1].
📌 Additional Context
[1] "Elucidating the Design Space of Diffusion-Based Generative Models" – Arxiv link
Just a quick question, you reference this line which points to VPScoreEstimator and inherits from ConditionalScoreEstimator (see here). I am confused where to target my code: the former VPScoreEstimator or the latter ConditionalScoreEstimator?
PS. After looking at score_estimator.py, I think adding this to ConditionalScoreEstimator makes the most sense to increase code reuse.
Yes, adding it to the ConditionalScoreEstimator makes sense. This should be implemented by all the children's classes; one can add a concrete "naive" implementation which can be overwritten for the, e.g., VEScoreEstimator if needed (if every children implements something different on can also think about making it abstract). Sorry for the confusion with the link.
As I am reading more and more on diffusion models, I understood that larger diffusion models learn the noise schedule altogether using a small MLP. Happy to hear that others take over this work.
All three schedules are implemented and tested: noise_schedule, train_schedule and solve_schedule on the score estimators, from PR #1736
(refactor into the base class) and PR #1754 (EDM-style schedules for VEScoreEstimator). Closing as done.
enhancementImprovement planned or wanted by the maintainersresearchNeeds experiments or method knowledge, not only an engineering fixscore-flow-matchingScore matching and flow matching methods, for example NPSE and FMPE
Activity
psteinb commentedon Mar 17, 2025
This issue would be a great start for me. I am happy to take it once I am up and running.
psteinb commentedon Mar 17, 2025
Just a quick question, you reference this line which points to
VPScoreEstimatorand inherits fromConditionalScoreEstimator(see here). I am confused where to target my code: the formerVPScoreEstimatoror the latterConditionalScoreEstimator?PS. After looking at
score_estimator.py, I think adding this toConditionalScoreEstimatormakes the most sense to increase code reuse.manuelgloeckler commentedon Mar 18, 2025
Yes, adding it to the
ConditionalScoreEstimatormakes sense. This should be implemented by all the children's classes; one can add a concrete "naive" implementation which can be overwritten for the, e.g., VEScoreEstimator if needed (if every children implements something different on can also think about making it abstract). Sorry for the confusion with the link.janfb commentedon Jan 23, 2026
Please note that the PR has been updated to #1736 and that @touronc is working on this now.
psteinb commentedon Jan 23, 2026
As I am reading more and more on diffusion models, I understood that larger diffusion models learn the noise schedule altogether using a small MLP. Happy to hear that others take over this work.
See Calvin Luo, Understanding Diffusion Models: A Unified Perspective on page 14, section "Learning Diffusion Noise Parameters"
janfb commentedon Aug 11, 2026
All three schedules are implemented and tested:
noise_schedule,train_scheduleandsolve_scheduleon the score estimators, from PR #1736(refactor into the base class) and PR #1754 (EDM-style schedules for
VEScoreEstimator). Closing as done.