Skip to content

Better training loop for diffusion models and flow matching #1445

Open

Description

@manuelgloeckler

🚀 Feature Request

Diffusion models, in essence, leverage "data augmentation," which allows them to be trained for longer on smaller datasets without overfitting. They could further benefit from more advanced default settings, such as cosine one-cycle learning rate schedulers, exponential moving average gradient accumulation, etc.

Additionally, it introduces more stochasticity in the loss, which makes it more challenging to efficiently detect convergence automatically. In the default loop we should target good performance on the default solve schedule, hence related to #1437 .

Describe the solution you'd like

This request is somewhat open-ended, but the primary goal would be:

  • Achieving strong performance with the default settings.
  • Implementing convergence checks that stop training within a reasonable time frame, minimizing the impact on performance and preventing overfitting.

This task is exploratory by nature. Feel free to propose or try out different solutions.

Activity

  1. added
    enhancement
    on Mar 13, 2025
  2. added
    hackathon
    score-flow-matching
    on Mar 13, 2025
  3. self-assigned this
    on Mar 17, 2025
  4. gmoss13 commented on Mar 17, 2025

    @gmoss13
    Contributor

    Assigned myself here for now, happy for anyone else to jump on at any point

  5. tomMoral commented on Mar 17, 2025

    @tomMoral
    Contributor

    I am working with people from the deep-inverse library who have similar needs to train diffusion models.
    They have a lot of experience in training state-of-the-art denoisers for imaging and MRI problems and they are currently improving their trainers for score and flow matching.

    I think they might have some interesting points, and maybe there are some ideas that can be shared by the two libraries.

    cc @matthieutrs, @Andrewwango

  6. janfb commented on Mar 17, 2025

    @janfb
    Contributor
  7. gmoss13 commented on Mar 17, 2025

    @gmoss13
    Contributor

    Thanks @tomMoral @janfb! DeepInverse and azula (cc @francois-rozet) are both super relevant! Would be grateful for input from the devs.

  8. removed
    hackathon
    on Jan 20, 2026
  9. added
    research
    inference
    on Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementinferenceresearchscore-flow-matching

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions