The spacetime sheaf leaves its temporal half as a generator to be supplied. Generator Matching is exactly the principle that learns such a generator from data, so placing it on a sheaf base turns the coupled spacetime generator into a learned, superposable object, with the sheaf fixing the spatial structure the matched generator must respect.

The temporal half is a generator to be matched

The spacetime construction pairs a spatial Laplacian with a temporal generator and leaves given. Generator Matching (Holderrieth et al.) learns the generator of a Markov process by regressing a marginal generator onto conditional ones, the move flow matching makes for a velocity field, now extended to any Markov generator, including diffusions and jumps. Once the time axis is fixed as below, the temporal half of the spacetime sheaf is exactly such a generator, so Generator Matching is the training principle for the learned sequel that the construction defers, in place of an ad hoc estimator such as dynamic mode decomposition.

Which time is being matched

Generator Matching as published runs in generation time, carrying noise to data, whereas the spacetime construction runs in physical time, carrying one state of a simulation to the next. The two must not be conflated. The physical-time reading takes the conditional paths between consecutive observed frames rather than between noise and a sample, so each conditional generator transports to and the matched marginal generator is the dynamics itself. The generation-time reading instead uses the sheaf model as the state space of an ordinary generative model. This note concerns the first, where the learned generator is the temporal half of the spacetime operator.

Superposition is the coupling

Generator Matching is closed under superposition, since a sum of Markov generators is again a Markov generator and the framework trains the combined process. On the state space of node features, the spatial part enters as the sheaf heat flow, the linear vector field , whose generator acts on test functions by . Adding isotropic noise turns it into an Ornstein–Uhlenbeck generator that relaxes features toward the global sections . The temporal part is a learned transport or jump generator on the same space. The coupling that the spacetime construction identifies as its whole content is then a superposition whose summands do not commute, which happens precisely when the learned transport depends on position. The separable case is the superposition of commuting parts, whereas the mixing case is where the summands interact, and Generator Matching represents both without leaving its design space.

What the sheaf contributes

A plain Generator Matching model carries no spatial structure beyond what its network learns. The sheaf supplies it by construction. The spatial generator is the sheaf Laplacian, so the matched temporal generator acts on fields that already satisfy cross-cell consistency, and the restriction maps constrain how transport moves between cells. Equivariance and locality enter through the base rather than through the loss, so Generator Matching inherits the inductive bias of the sheaf.

A worked example

The linear case can be run end to end. On a ring of 48 nodes, with diffusion and velocity , twelve training trajectories are sampled at spacing from random initial fields, half smooth and half rough. Each pair of consecutive frames is a straight conditional path, its velocity is the conditional generator, and the learned generator is the least-squares regression of those velocities on the segment midpoints, which is Generator Matching restricted to linear generators.

True and matched generators rolled out from an unseen initial state
Left, the true mixing generator. Right, the matched generator, rolled out from the single mode , which is not in the training family. Frames generated in Lean (code/SpacetimeDemo.lean).

The rollout from the unseen initial state stays within of the truth after , yet the learned matrix differs from the true generator by about in Frobenius norm. The two numbers are consistent. Diffusion damps the high Laplacian modes within a few frames, so the data never constrains the generator in those directions, and Generator Matching recovers the dynamics on the modes the data actually visits rather than the full operator. This is the expected behaviour of any data-driven generator, and it is the quantity the sheaf prior is meant to control, since a local, sheaf-structured has far fewer free directions to leave unconstrained.

The sheaf prior, tested

The gap between rollout accuracy and generator accuracy is exactly what a local prior should close. Restricting each row of the generator to a node and its two neighbours, the locality the base imposes, turns the regression into one problem per node. On a rough initial state that lies outside the training family, the comparison is decisive.

generator errorrollout error at
dense matching
sheaf-local matching

Dense versus sheaf-local Generator Matching on a rough initial state
True generator, dense matching and sheaf-local matching rolled out from a rough initial state unseen in training. The dense model leaves its high-mode directions unconstrained and distorts the profile, whereas the local model recovers the generator itself.

In two dimensions locality stops being a refinement and becomes the condition for learning at all. A grid has cells, so a dense generator has coefficients, while a five-point stencil has . With the stencil prior the learned operator is within of the true one on rough probes, and a rollout from an unseen rough state stays within .

Sheaf-local Generator Matching on a torus
True field, the field under the learned five-point stencil, and their difference scaled to its largest value. Frames generated in Lean (code/SpacetimeLab.lean).

The learned object is a Koopman generator throughout. Generator Matching defines a generator by its action on observables, for a flow, and fitting the vector field is fitting that action on the coordinate observables, which the chain rule extends to every smooth observable. Flow matching therefore parametrises the Koopman generator on the state side, whereas EDMD parametrises it on the observable side, a correspondence made explicit by Perron–Frobenius Operator Matching (Zhang et al., 2026).

A nonlinear field

The same comparison runs on a nonlinear field. Allen–Cahn with transport, , is bistable, so the field splits into domains at whose walls drift and annihilate. At each node the learned generator is a combination of a local dictionary, the monomials in the node and its two neighbours, which is Koopman-generator matching on observables that are themselves supported on neighbourhoods. With monomials up to degree three the true right-hand side lies in the span; with degree one it does not.

modelvector-field errorrollout from an unseen state
dense linear, DMD-likelargediverges
local linear dictionarydiverges
local cubic dictionary, features per node at

Allen–Cahn with transport learned on local dictionaries
True field, the local linear model and the local cubic dictionary, rolled out from a small random state that is not in the training set. A full cubic dictionary in all coordinates would need features per node. Frames generated in Lean (code/SpacetimeLab.lean).

The frame spacing matters. With pairs spaced at , about times the inverse of the stiffest diffusion rate, the cubic dictionary still misfit the vector field by even though the true field lies in its span, and spacing the pairs at removed the bias.

Against standard baselines

The local dictionary should be compared with the methods that already learn dynamics from data. On the same Allen–Cahn ring, three estimators share the training data: DMD, a dense linear generator; a PDE-FIND or SINDy style model, one coefficient vector shared by every node and fitted by sequentially thresholded least squares; and the per-node local dictionary.

velocitymethodparametersvector-field errorrollout at
constantDMDdiverges
constantPDE-FIND, shared
constantlocal per-node dictionary
modulatedDMDdiverges
modulatedPDE-FIND, shared
modulatedlocal per-node dictionary

The split is clean. When the dynamics is translation invariant, sharing one coefficient vector across nodes is the stronger prior and wins with four parameters. When the velocity varies with position, a shared vector cannot represent the field and its rollout fails, whereas the per-node dictionary keeps both the vector field and the rollout accurate. Locality is the necessary prior, and weight sharing is a further one that holds only for homogeneous systems.

A stochastic generator

The same comparison applies to a diffusion. An Ornstein–Uhlenbeck process on a ring of nodes, with drift and diffusion both supported on neighbourhoods, has generator . Matching it means fitting the first conditional moment of the increments for the drift and the second for the diffusion, densely or locally.

Error of dense and local matching of drift and diffusion against the number of increments
Relative errors against the number of observed increments, at spacing . The local estimates are better at every sample size, by a factor of about five for the drift and two to three for the diffusion, and all four errors fall roughly as .

Stationary covariance from the true and the matched generators
The stationary covariance, solving , from the true generator and from generators matched on increments. The dense estimate leaves spurious long-range structure, with error against for the local one. Computed in Lean (code/SpacetimeLab.lean).

Open

  • Why the sheaf prior helps is worked out in identifiability-of-generator-matching-on-a-sheaf: identifiability localises to a nonsingular Gram matrix per neighbourhood, never worse conditioned than the global one.
  • Does Generator Matching on the sheaf Laplacian together with a learned transport generator recover advection–diffusion surrogates, with the Péclet regime as a single scalar?
  • Is the non-commuting mixing superposition trainable stably, or does it need the crossed-product structure the spacetime construction proposes?
  • Can jump generators on the base model discrete events, such as bond changes or state switches, that a velocity-field flow cannot?

References

  • P. Holderrieth, M. Havasi, et al., Generator Matching: Generative modeling with arbitrary Markov processes (arXiv:2410.20587).
  • Y. Lipman, R. T. Q. Chen, H. Ben-Hamu, M. Nickel, M. Le, Flow Matching for Generative Modeling (ICLR 2023).
  • S. Zhang, W. Wu, J. Oh, J. Chen, X. Qian, Perron–Frobenius Operator Matching for Generative Modeling (arXiv:2606.17465).
  • B. O. Koopman, Hamiltonian systems and transformation in Hilbert space, PNAS (1931).