Read local change
Compare consecutive drifts and normalize the variation by the current noise scale.
v2.0 · typed research infrastructure
driftflow is a validated Python sampler for graph-diffusion SDEs. Drift Variation Score adapts the timestep to local change while your model and solver stay replaceable.
Why adaptive?
Flat regions do not need the same resolution as sharp turns. DVS makes that decision explicit without coupling your model to the orchestration loop.
Compare consecutive drifts and normalize the variation by the current noise scale.
EMA smoothing and power-law scaling choose one synchronized timestep for both modalities.
Pass the typed state through a polymorphic solver and keep structured diagnostics.
The v2 API
Replace a model, schedule, controller, solver, or decoder without rewriting the sampler.
state → DriftModel → DVS controller → Solver
result.state
result.diagnosticsclass DriftModel(ABC):
def evaluate(state, time) -> DriftState: ...
class Solver(ABC):
def step(...) -> GraphState: ...GraphState(...) # shape + finite checks
LinearSchedule(...) # scale + time checks
DVSSampler.sample(...) # step-limit checksReliability by design
Infrastructure is easier to trust when its boundaries are visible.
Install
Install the package, read the migration guide, then wire in your production denoiser.
python -m pip install driftflow