Skip to content

Add explicit training/evaluation noise schedules #1437

Closed

Description

@manuelgloeckler

🚀 Feature Request

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

Activity

  1. added
    enhancement
    on Mar 13, 2025
  2. added
    hackathon
    on Mar 13, 2025
  3. added
    score-flow-matching
    on Mar 13, 2025
  4. psteinb commented on Mar 17, 2025

    @psteinb
    Collaborator

    This issue would be a great start for me. I am happy to take it once I am up and running.

  5. self-assigned this
    on Mar 17, 2025
  6. psteinb commented on Mar 17, 2025

    @psteinb
    Collaborator

    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.

  7. manuelgloeckler commented on Mar 18, 2025

    @manuelgloeckler
    ContributorAuthor

    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.

  8. removed
    hackathon
    on Jan 20, 2026
  9. janfb commented on Jan 23, 2026

    @janfb
    Contributor

    Please note that the PR has been updated to #1736 and that @touronc is working on this now.

  10. psteinb commented on Jan 23, 2026

    @psteinb
    Collaborator

    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"

  11. added
    research
    on Aug 11, 2026
  12. janfb commented on Aug 11, 2026

    @janfb
    Contributor

    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.

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

Metadata

Metadata

Assignees

Labels

enhancementresearchscore-flow-matching

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions