Skip to content

Unify Flow and Score matching to some degree #1440

Closed

Description

@manuelgloeckler

🚀 Feature Request

Currently, flow and score matching are treated as separate methodologies. They rely on different neural networks, training schemes, and more. However, in practice, the training for both flow and score matching methods is quite similar, differing mainly in the target. Given this, it makes sense for these methods to share components during training, while still allowing for separate handling during evaluation (i.e., posteriors), as score-based methods offer more flexibility than flow-based methods in some cases.

Describe the solution you'd like

To bridge the gap between flow and score matching, the following steps should be considered:

  1. Familiarize yourself with the key abstractions in this library:

  2. You’ll notice that the FlowMatchingEstimator is not a subclass of VectorFieldEstimator, despite estimating a vector field internally. It is treated as a "Normalizing Flow," which contributes to some of the differences in how they are handled.

  3. While no concrete approach has been devised yet, this should be explored and discussed further.

  4. As a first step, ensure that both flow and score matching use the same neural network architectures and similar training setups to promote consistency between the two approaches.

Additional Context

This change improve maintainablity.

Activity

  1. added
    enhancement
    on Mar 13, 2025
  2. added
    hackathon
    score-flow-matching
    on Mar 13, 2025
  3. self-assigned this
    on Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementhackathonscore-flow-matching

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions