Component Catalog#

This page gives a quick map of the main public building blocks.

Distributions#

Component

Description

StandardNormal

Isotropic Gaussian N(0, I) with explicit event_shape.

DiagonalNormal

Gaussian with diagonal covariance.

Solvers#

Component

Type

Description

RK4

ODE

Fourth-order Runge-Kutta (fixed-step).

Heun

ODE

Second-order predictor-corrector method (fixed-step).

EulerMaruyama

SDE

Stochastic Euler-Maruyama integrator.

Diffusion schedules#

Component

Description

VPSchedule

Variance-preserving schedule (DDPM-style) [1].

VESchedule

Variance-exploding schedule (SMLD-style) [2].

EDMSchedule

EDM schedule variant [3].

Flow-matching paths#

Component

Description

LinearPath

Linear interpolation between target and source samples.

CosinePath

Trigonometric interpolation with smooth endpoint behavior.

Stochastic FM gamma schedules#

From M.Albergo et al. [4,5]

Component

Description

ZeroGamma

Deterministic fallback with zero stochastic term.

BrownianGamma

Brownian-bridge style gamma schedule.

ScaledBrownianGamma

Brownian gamma with positive scale multiplier.

Losses#

Component

Description

fm_loss

Deterministic flow matching objective.

stochastic_fm_loss

Stochastic flow matching objective with gamma noise.

masked_fm_loss

Flow matching objective with variable-cardinality masking.

Parameterisation transforms#

Component

Description

ScoreFromNoise

Converts noise prediction into score prediction.

DriftFromVelocityScore

Combines velocity and score into SDE drift.

MirrorVelocityFromScore

Builds mirror velocity from score and gamma schedule.

Divergence estimators#

Component

Description

ExactDivergence

Exact Jacobian trace; practical in low dimensions.

HutchinsonDivergence

Stochastic trace estimator for scalable likelihood computation.

For more information on the Hutchinson Trace estimator, you can take a look at [5]

and the following example from the BackPack library which nicely demonstrates the accuracy of the trace estimation and techniques for computational speedups BackPack Example, which is where the above reference is taken from.

References#