Spatiotemporal Imputation with Graph-Informed Flow Matching

arXiv cs.LG Papers

Summary

GiFlow is a graph-informed flow matching framework for spatiotemporal imputation that replaces Gaussian priors with a graph-informed prior, and uses a hybrid vector field model combining spatial attention, temporal attention, and spatiotemporal propagation. It outperforms state-of-the-art methods on synthetic and real-world datasets.

arXiv:2606.06682v1 Announce Type: new Abstract: Missing data is a common challenge in spatiotemporal systems, arising in applications such as air quality monitoring and urban traffic management. Traditional machine learning approaches, like recurrent and graph neural networks, rely on iterative propagation, which tends to accumulate errors over time and space. Recent diffusion-based methods mitigate error propagation but require iterative sampling and often depend on problem-agnostic Gaussian priors, limiting both efficiency and effectiveness. To address these limitations, we propose GiFlow, a Graph-Informed Flow Matching framework for spatiotemporal imputation. GiFlow replaces the typical Gaussian prior with a graph-informed prior constructed via spatiotemporal filtering of observable signals, which better aligns the source distribution to the target and thereby simplifies the generation trajectory. The flow field is parameterized by a hybrid vector field model that integrates spatial attention, temporal attention, and spatiotemporal propagation, enabling joint modeling of spatial and temporal dependencies. Extensive experiments on both synthetic and real-world datasets demonstrate that the proposed GiFlow outperforms the state-of-the-art approaches in spatiotemporal imputation. The code is available at https://github.com/zepengzhang/GiFlow.
Original Article
View Cached Full Text

Cached at: 06/08/26, 09:17 AM

# Spatiotemporal Imputation with Graph-Informed Flow Matching
Source: [https://arxiv.org/html/2606.06682](https://arxiv.org/html/2606.06682)
###### Abstract

Missing data is a common challenge in spatiotemporal systems, arising in applications such as air quality monitoring and urban traffic management\. Traditional machine learning approaches, like recurrent and graph neural networks, rely on iterative propagation, which tends to accumulate errors over time and space\. Recent diffusion\-based methods mitigate error propagation but require iterative sampling and often depend on problem\-agnostic Gaussian priors, limiting both efficiency and effectiveness\. To address these limitations, we proposeGiFlow, a*Graph\-Informed Flow Matching*framework for spatiotemporal imputation\. GiFlow replaces the typical Gaussian prior with a graph\-informed prior constructed via spatiotemporal filtering of observable signals, which better aligns the source distribution to the target and thereby simplifies the generation trajectory\. The flow field is parameterized by a hybrid vector field model that integrates spatial attention, temporal attention, and spatiotemporal propagation, enabling joint modeling of spatial and temporal dependencies\. Extensive experiments on both synthetic and real\-world datasets demonstrate that the proposed GiFlow outperforms the state\-of\-the\-art approaches in spatiotemporal imputation\. The code is available at https://github\.com/zepengzhang/GiFlow\.

Machine Learning, ICML

## 1Introduction

Spatiotemporal data characterizes both spatial and temporal information and is ubiquitous in domains such as environmental science, urban systems, and climate forecasting\(Atluri et al\.,[2018](https://arxiv.org/html/2606.06682#bib.bib4); Wang et al\.,[2020](https://arxiv.org/html/2606.06682#bib.bib50)\)\. In practice, spatiotemporal data is often incomplete due to sensor failures, transmission errors, or system instability\(Yi et al\.,[2016](https://arxiv.org/html/2606.06682#bib.bib54)\)\. The incompleteness of spatiotemporal data compromises the reliability of subsequent analyses\(Ma et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib32); Marisca et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib34)\), motivating the need for robust spatiotemporal imputation techniques\(Cao et al\.,[2018](https://arxiv.org/html/2606.06682#bib.bib9); Cini et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib11)\)\.

Early approaches to spatiotemporal imputation rely on statistical models that impose restrictive assumptions on the underlying data distribution, such as temporal smoothness levels, often failing to capture complex, nonlinear dependencies\(Liu et al\.,[2023a](https://arxiv.org/html/2606.06682#bib.bib27); He et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib21)\)\. Deep learning methods have been introduced to better exploit spatiotemporal correlations\. Specifically, recurrent neural networks \(RNNs\) are used to capture temporal dependencies by propagating hidden states\(Cao et al\.,[2018](https://arxiv.org/html/2606.06682#bib.bib9)\), while graph neural networks \(GNNs\) are deployed to model spatial relationships over the underlying graph topology\(Cini et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib11)\)\. Despite their success, these models generally rely on iterative propagation across space and time, which can lead to error accumulation and information bottlenecks\(Deng et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib14); He et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib21); Cini et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib12)\)\.

Generative models provide an alternative paradigm by inferring the entire data distribution in a non\-autoregressive manner\. Unlike RNN/GNN\-based models that propagate intermediate estimates step by step, generative models can perform imputation jointly and conditionally on all available observations, thereby avoiding the accumulation of errors during iterative propagation\(Liu et al\.,[2019](https://arxiv.org/html/2606.06682#bib.bib30),[2023a](https://arxiv.org/html/2606.06682#bib.bib27); He et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib21)\)\. Among them, diffusion models have demonstrated remarkable success across various domains\(Croitoru et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib13); Yang et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib53); Cao et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib8)\), and recent works have adapted them for spatiotemporal imputation\(Liu et al\.,[2023a](https://arxiv.org/html/2606.06682#bib.bib27); He et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib21)\)\. However, diffusion models typically rely on the problem\-agnostic Gaussian prior, presenting an absence of the available problem\-specific structure\. Moreover, the sampling of diffusion models requires many iterative denoising steps, and the imputation often demands multiple sampling runs followed by averaging, limiting both efficiency and robustness when applied to large\-scale spatiotemporal data\.

Recent work has explored flow matching \(FM\) as a generalization of diffusion models, which follows a deterministic transport path\(Lipman et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib26); Albergo & Vanden\-Eijnden,[2023](https://arxiv.org/html/2606.06682#bib.bib1); Liu et al\.,[2023b](https://arxiv.org/html/2606.06682#bib.bib29)\)\. FM avoids stochastic noise injection, supports efficient deterministic sampling, and does not rely on Gaussian priors\. These characteristics make FM particularly attractive for conditional tasks such as imputation, where partial observations encode strong structural information\. The flexibility on prior selection allows FM to have shorter generative paths, which enhances generation performance\(Tong et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib48)\)\. Building on these insights, we proposeGiFlow, the first*Graph\-Informed Flow Matching*framework for spatiotemporal imputation\. Unlike existing diffusion\-based methods that rely on problem\-agnostic Gaussian priors\(Liu et al\.,[2023a](https://arxiv.org/html/2606.06682#bib.bib27); He et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib21)\), GiFlow constructs a graph\-informed prior using spatiotemporal filtering of observable signals, simplifying generation trajectories\. Combined with a hybrid vector field integrating attention mechanisms and spatiotemporal propagation, our approach overcomes the limitations of iterative propagation in RNN\- and GNN\-based models, as well as the unstructured priors and inefficiency of diffusion\-based methods\.

Our contributions are summarized as follows:

- •We introduce GiFlow, a novel generative model for spatiotemporal imputation that integrates graph\-informed priors into the flow matching framework\.
- •We design a graph\-informed prior based on adaptive spatiotemporal filtering\. Compared to the problem\-agnostic Gaussian prior, this problem\-tailored prior is more aligned with the target distribution and provably reduces transport cost\. We also theoretically analyze the relationship between filtering factors and the receptive field in the spatiotemporal filtering process\.
- •We conduct extensive experiments on both synthetic and real\-world datasets, demonstrating that the proposed GiFlow model achieves competitive or superior performance across diverse missing patterns and missing rates, outperforming state\-of\-the\-art baselines\.

## 2Preliminaries

### 2\.1Notations and Problem Definition

Notations\.We use calligraphic letters like𝒳\\mathcal\{X\}to represent sets, uppercase bold letters like𝐗\\mathbf\{X\}to represent matrices, lowercase bold letters like𝐱\\mathbf\{x\}to represent vectors, and lowercase letters likexxto represent scalars\. We useXi​jX\_\{ij\}to represent the element in theii\-th row andjj\-th column of𝐗\\mathbf\{X\}\.𝟏\\mathbf\{1\}stands for the all\-one matrix\. We denote by\|x\|\|x\|,‖𝐱‖\\\|\\mathbf\{x\}\\\|, and‖𝐗‖\\\|\\mathbf\{X\}\\\|the absolute value ofxx, theℓ2\\ell\_\{2\}\-norm of𝐱\\mathbf\{x\}, and the Frobenius norm of𝐗\\mathbf\{X\}, respectively\.vec​\(⋅\)\\mathrm\{vec\}\(\\cdot\)is the vectorization operation of a matrix\.diag​\(𝐱\)\\mathrm\{diag\}\(\\mathbf\{x\}\)represents a matrix with its diagonal elements given by vector𝐱\\mathbf\{x\}\.∘\\circrepresents element\-wise multiplication between matrices and⊕\\oplusdenotes the Kronecker sum operator between matrices\.

Graphs and Signals\.Let spatiotemporal data be represented as a matrix𝐗∈ℝN×R\\mathbf\{X\}\\in\\mathbb\{R\}^\{N\\times R\}, where therr\-th column of𝐗\\mathbf\{X\}denotes the signals observed at timerracrossNNnodes \(e\.g\., traffic sensors or air quality stations\)\. We denote byℛ=\{1,…,R\}\\mathcal\{R\}=\\\{1,\\ldots,R\\\}the set of timesteps\. The relationships among the nodes are captured by a graph𝒢=\(𝒩,ℰ\)\\mathcal\{G\}=\(\\mathcal\{N\},\\mathcal\{E\}\), with𝒩\\mathcal\{N\}being the set of nodes andℰ\\mathcal\{E\}being the set of edges\. Let𝐀∈ℝN×N\\mathbf\{A\}\\in\\mathbb\{R\}^\{N\\times N\}denote the adjacency matrix,𝐃=diag​\(𝐀𝟏\)\\mathbf\{D\}=\\mathrm\{diag\}\(\\mathbf\{A1\}\)the degree matrix, and𝐋=𝐃−𝐀\\mathbf\{L\}=\\mathbf\{D\}\-\\mathbf\{A\}the Laplacian\. For simplicity, we focus on one\-dimensional signals, though the method generalizes to multi\-dimensional signals\.

Spatiotemporal Imputation\.We consider scenarios where some entries of𝐗\\mathbf\{X\}are missing\. Define a binary mask𝐌∈\{0,1\}N×R\\mathbf\{M\}\\in\\\{0,1\\\}^\{N\\times R\}such thatMi​r=1M\_\{ir\}=1if the data on the nodeiiat timerris observed, and0otherwise\. The incomplete observations are then given by𝐗∘𝐌\\mathbf\{X\}\\circ\\mathbf\{M\}\. The task of spatiotemporal imputation is to estimate the missing entries based on the incomplete observations, leveraging both spatial dependencies across nodes and temporal dependencies across timesteps\.

### 2\.2Conditional Flow Matching

FM learns a vector field that transports samples from a source distribution to a target distribution\(Albergo & Vanden\-Eijnden,[2023](https://arxiv.org/html/2606.06682#bib.bib1); Lipman et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib26); Liu et al\.,[2023b](https://arxiv.org/html/2606.06682#bib.bib29)\)\. Letϕt:\[0,1\]×ℝd→ℝd\\phi\_\{t\}:\[0,1\]\\times\\mathbb\{R\}^\{d\}\\to\\mathbb\{R\}^\{d\}denote a step\-dependent flow map withttbeing the flow step, that evolves𝐱0∼p0\\mathbf\{x\}\_\{0\}\\sim p\_\{0\}to𝐱1∼p1\\mathbf\{x\}\_\{1\}\\sim p\_\{1\}via the ordinary differential equation \(ODE\):

d​ϕt​\(𝐱\)=ut​\(ϕt​\(𝐱\)\)​d​t,ϕ0​\(𝐱\)=𝐱0,d\\phi\_\{t\}\(\\mathbf\{x\}\)=u\_\{t\}\(\\phi\_\{t\}\(\\mathbf\{x\}\)\)dt,\\quad\\phi\_\{0\}\(\\mathbf\{x\}\)=\\mathbf\{x\}\_\{0\},\(1\)whereut:\[0,1\]×ℝd→ℝdu\_\{t\}:\[0,1\]\\times\\mathbb\{R\}^\{d\}\\to\\mathbb\{R\}^\{d\}is a step\-dependent vector field\. This induces a step\-dependent probability density pathptp\_\{t\}through the push\-forward operatorpt=\[ϕt\]∗​p0p\_\{t\}=\[\\phi\_\{t\}\]\_\{\*\}p\_\{0\}\(Lipman et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib26)\)\.

The FM objective seeks a trainable vector fieldvt​\(⋅;𝜽\)v\_\{t\}\(\\cdot;\\bm\{\\theta\}\)that approximatesutu\_\{t\}:

ℒ𝖥𝖬​\(𝜽\)=𝔼t∼𝒰​\[0,1\],𝐱∼pt​\[\|vt​\(𝐱;𝜽\)−ut​\(𝐱\)\|2\]\.\\mathcal\{L\}\_\{\\mathsf\{FM\}\}\(\\bm\{\\theta\}\)=\\mathbb\{E\}\_\{t\\sim\\mathcal\{U\}\[0,1\],\\mathbf\{x\}\\sim p\_\{t\}\}\\big\[\|v\_\{t\}\(\\mathbf\{x\};\\bm\{\\theta\}\)\-u\_\{t\}\(\\mathbf\{x\}\)\|^\{2\}\\big\]\.\(2\)This objective allows sampling fromp1p\_\{1\}given a sample fromp0p\_\{0\}, as well as modeling continuous sample dynamics\. However, it is generally intractable, as bothptp\_\{t\}andutu\_\{t\}are unknown\.

Conditional flow matching \(CFM\)\(Lipman et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib26)\)provides a tractable alternative by approximating a conditional vector fieldut​\(𝐱∣𝐳\)u\_\{t\}\(\\mathbf\{x\}\\mid\\mathbf\{z\}\):

ℒCFM\(𝜽\)=𝔼t∼𝒰​\[0,1\],𝐳∼q​\(z\),𝐱∼pt​\(𝐱\|𝐳\)\[\\displaystyle\\mathcal\{L\}\_\{\\text\{CFM\}\}\(\\bm\{\\theta\}\)=\\mathbb\{E\}\_\{t\\sim\\mathcal\{U\}\[0,1\],\\,\\mathbf\{z\}\\sim q\(z\),\\,\\mathbf\{x\}\\sim p\_\{t\}\(\\mathbf\{x\}\|\\mathbf\{z\}\)\}\\big\[\(3\)\|vt\(𝐱;𝜽\)−ut\(𝐱\|𝐳\)\|2\]\.\\displaystyle\\quad\|v\_\{t\}\(\\mathbf\{x\};\\bm\{\\theta\}\)\-u\_\{t\}\(\\mathbf\{x\}\|\\mathbf\{z\}\)\|^\{2\}\\big\]\.
Here,𝐳\\mathbf\{z\}is chosen such that the marginal distributions ofpt​\(𝐱∣𝐳\)p\_\{t\}\(\\mathbf\{x\}\\mid\\mathbf\{z\}\)match the boundary distributionsp0p\_\{0\}andp1p\_\{1\}\. Typically,𝐳=\(𝐱0,𝐱1\)\\mathbf\{z\}=\(\\mathbf\{x\}\_\{0\},\\mathbf\{x\}\_\{1\}\)is sampled from a joint distributionq​\(𝐳\)=π​\(𝐱0,𝐱1\)q\(\\mathbf\{z\}\)=\\pi\(\\mathbf\{x\}\_\{0\},\\mathbf\{x\}\_\{1\}\)with marginalsp0p\_\{0\}andp1p\_\{1\}\. Importantly,ℒ𝖢𝖥𝖬\\mathcal\{L\}\_\{\\mathsf\{CFM\}\}andℒ𝖥𝖬\\mathcal\{L\}\_\{\\mathsf\{FM\}\}are equivalent in the sense that their gradients with respect to𝜽\\bm\{\\theta\}coincide\(Lipman et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib26)\)\.

More discussions on spatiotemporal imputation and flow matching are provided in Appendix[A](https://arxiv.org/html/2606.06682#A1)\.

![Refer to caption](https://arxiv.org/html/2606.06682v1/x1.png)Figure 1:Schematic comparison of GiFlow and FM\-Gauss \(a FM model with a Gaussian prior\)\. The red and blue dashed lines represent the information used to generate the prior for GiFlow and FM\-Gauss, respectively\. GiFlow constructs a graph\-informed prior via adaptive spatiotemporal filtering of the observable signals, aligning the source distribution closer to the target, and hence simplifying the generation trajectories \(lower part\)\. In contrast, because a problem\-agnostic Gaussian prior ignores the spatiotemporal structure, it differs significantly from the target distribution, and thereby the model must traverse a longer path to reach the target distribution \(upper part\)\.

## 3Graph\-Informed Flow Matching

In this section, we first construct a graph\-informed prior via adaptive spatiotemporal filtering and then introduce the GiFlow framework for spatiotemporal imputation, with theoretical justifications on its effectiveness\. A schematic overview of the GiFlow framework is provided in Figure[1](https://arxiv.org/html/2606.06682#S2.F1)\.

### 3\.1Graph\-Informed Prior via Adaptive Spatiotemporal Filtering

Let𝐗1M=𝐗1∘𝐌\\mathbf\{X\}\_\{1\}^\{M\}=\\mathbf\{X\}\_\{1\}\\circ\\mathbf\{M\}denote the observable spatiotemporal signal\. The goal of GiFlow is to model the conditional distributionp1​\(𝐗𝟏∣𝐗1M\)p\_\{1\}\(\\mathbf\{X\_\{1\}\}\\mid\\mathbf\{X\}\_\{1\}^\{M\}\)via a generative modelp𝜽​\(𝐗𝟏∣𝐗1M\)p\_\{\\bm\{\\theta\}\}\(\\mathbf\{X\_\{1\}\}\\mid\\mathbf\{X\}\_\{1\}^\{M\}\)\. Typically, generative models start from an isotropic Gaussian and treat𝐗1M\\mathbf\{X\}\_\{1\}^\{M\}as a conditioning variable\(Liu et al\.,[2023a](https://arxiv.org/html/2606.06682#bib.bib27); He et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib21)\)\. However, the reliance on such a simple prior complicates the generative process as the prior distribution differs significantly from the target distribution\(Kollovieh et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib24)\)\. To construct a more structured prior, we can decompose the conditional distribution as

p𝜽​\(𝐗𝟏∣𝐗1M\)=∫p𝜽​\(𝐗𝟏∣𝐗0,𝐗1M\)​q0​\(𝐗0∣𝐗1M\)​𝑑𝐗0\.p\_\{\\bm\{\\theta\}\}\(\\mathbf\{X\_\{1\}\}\\mid\\mathbf\{X\}\_\{1\}^\{M\}\)=\\int p\_\{\\bm\{\\theta\}\}\(\\mathbf\{X\_\{1\}\}\\mid\\mathbf\{X\}\_\{0\},\\mathbf\{X\}\_\{1\}^\{M\}\)q\_\{0\}\(\\mathbf\{X\}\_\{0\}\\mid\\mathbf\{X\}\_\{1\}^\{M\}\)\\,d\\mathbf\{X\}\_\{0\}\.Settingq0q\_\{0\}to a problem\-agnostic standard Gaussian, as in most existing diffusion and FM models, neglects the spatiotemporal structure\. Leveraging the flexibility of FM, we construct a graph\-informed prior more aligned to the target data distributionp1p\_\{1\}\. By facilitating such alignment, we aim to reduce the overall transport cost\.

We construct the graph\-informed prior leveraging the joint continuous spatiotemporal filtering, which has been adopted in previous joint spatiotemporal frameworks\(Stanley et al\.,[2020](https://arxiv.org/html/2606.06682#bib.bib46); Pan et al\.,[2021](https://arxiv.org/html/2606.06682#bib.bib37); Einizade et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib18)\)\. Specifically, we consider𝐱1M=vec​\(𝐗1M\)\\mathbf\{x\}\_\{1\}^\{M\}=\\mathrm\{vec\}\(\\mathbf\{X\}\_\{1\}^\{M\}\)as a spatiotemporal graph signal living on top of the Cartesian product between the spatial and temporal graphs\. We denote by𝐋η\\mathbf\{L\}\_\{\\eta\}and𝐋ξ\\mathbf\{L\}\_\{\\xi\}the spatial and temporal graph Laplacians, respectively\. Then the spatiotemporal filtering operator can be defined as the Kronecker sum of𝐋η\\mathbf\{L\}\_\{\\eta\}and𝐋ξ\\mathbf\{L\}\_\{\\xi\},i\.e\.,𝐋η​ξ=τξ​𝐋ξ⊕τη​𝐋η\\mathbf\{L\}\_\{\\eta\\xi\}=\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\\oplus\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}, whereτη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}control the range of the receptive field\. In this way, the joint spatiotemporal filtering operation can be described as𝐱𝝉=e−𝐋η​ξ​𝐱1M\\mathbf\{x\}\_\{\\bm\{\\tau\}\}=e^\{\-\\mathbf\{L\}\_\{\\eta\\xi\}\}\\mathbf\{x\}\_\{1\}^\{M\}\. It can be shown\(Stanley et al\.,[2020](https://arxiv.org/html/2606.06682#bib.bib46)\)that the matrix form of this spatiotemporal filtering operation, where𝐱𝝉=vec​\(𝐗𝝉\)\\mathbf\{x\}\_\{\\bm\{\\tau\}\}=\\mathrm\{vec\}\(\\mathbf\{X\}\_\{\\bm\{\\tau\}\}\), takes the form of

𝐗𝝉=e−τη​𝐋η​𝐗1M​e−τξ​𝐋ξ\.\\mathbf\{X\}\_\{\\bm\{\\tau\}\}=e^\{\-\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}\}\\,\\mathbf\{X\}\_\{1\}^\{M\}\\,e^\{\-\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\}\.\(4\)The continuous spatiotemporal model enables adaptive filtering\. From the perspective of minimizing transport cost, we obtain the optimal𝝉=\(τη,τξ\)\\bm\{\\tau\}=\(\\tau\_\{\\eta\},\\tau\_\{\\xi\}\)by solving the following minimization problem:

minimizeτη,τξ\>0​‖𝐗1−e−τη​𝐋η​𝐗1M​e−τξ​𝐋ξ‖2\+\\displaystyle\\underset\{\\tau\_\{\\eta\},\\tau\_\{\\xi\}\>0\}\{\\mathrm\{minimize\}\}\\;\\left\\\|\\mathbf\{X\}\_\{1\}\-e^\{\-\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}\}\\mathbf\{X\}\_\{1\}^\{M\}e^\{\-\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\}\\right\\\|^\{2\}\+\(5\)ατ​tr​\(\(e−τη​𝐋η​𝐗1M​e−τξ​𝐋ξ\)⊤​𝐋η​e−τη​𝐋η​𝐗1M​e−τξ​𝐋ξ\),\\displaystyle\\alpha\_\{\\tau\}\\mathrm\{tr\}\\\!\\left\(\\big\(e^\{\-\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}\}\\mathbf\{X\}\_\{1\}^\{M\}e^\{\-\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\}\\big\)^\{\\top\}\\mathbf\{L\}\_\{\\eta\}\\,e^\{\-\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}\}\\mathbf\{X\}\_\{1\}^\{M\}e^\{\-\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\}\\right\),where the first term enforces signal alignment and the second term encourages Laplacian smoothness\(Bontonou et al\.,[2019](https://arxiv.org/html/2606.06682#bib.bib7); Dong et al\.,[2020](https://arxiv.org/html/2606.06682#bib.bib16)\)\. This optimization balances alignment and smoothness, producing a spatiotemporal graph\-informed prior that is close to the target distribution\.

Expanding the exponentials via the Taylor series gives

𝐗𝝉=\(∑k=0∞\(−τη\)kk\!​𝐋ηk\)​𝐗1M​\(∑m=0∞\(−τξ\)mm\!​𝐋ξm\),\\mathbf\{X\}\_\{\\bm\{\\tau\}\}=\\left\(\\sum\_\{k=0\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=0\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\),\(6\)which propagates information across all nodes and timesteps for any nonzero\(τη,τξ\)\(\\tau\_\{\\eta\},\\tau\_\{\\xi\}\)\. Truncating it toKηK\_\{\\eta\}spatial hops andKξK\_\{\\xi\}temporal hops gives

𝐗𝝉Kη,Kξ=\(∑k=0Kη\(−τη\)kk\!​𝐋ηk\)​𝐗1M​\(∑m=0Kξ\(−τξ\)mm\!​𝐋ξm\)\.\\mathbf\{X\}\_\{\\bm\{\\tau\}\}^\{K\_\{\\eta\},K\_\{\\xi\}\}=\\left\(\\sum\_\{k=0\}^\{K\_\{\\eta\}\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=0\}^\{K\_\{\\xi\}\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\.
###### Proposition 3\.1\(Adaptive spatiotemporal receptive field\)\.

LetCsC\_\{s\}andCtC\_\{t\}denote the spectral radii of𝐋η\\mathbf\{L\}\_\{\\eta\}and𝐋ξ\\mathbf\{L\}\_\{\\xi\}, respectively\. Then the truncation error is bounded by

‖𝐗𝝉−𝐗𝝉Kη,Kξ‖\\displaystyle\\left\\\|\\mathbf\{X\}\_\{\\bm\{\\tau\}\}\-\\mathbf\{X\}\_\{\\bm\{\\tau\}\}^\{K\_\{\\eta\},K\_\{\\xi\}\}\\right\\\|\(7\)≤\\displaystyle\\leq\(\(∑k=Kη\+1∞\|τη\|kk\!Csk\)⋅\(∑m=0∞\|τξ\|mm\!Ctm\)\\displaystyle\\Bigg\(\\Bigg\(\\sum\_\{k=K\_\{\\eta\}\+1\}^\{\\infty\}\\frac\{\|\\tau\_\{\\eta\}\|^\{k\}\}\{k\!\}C\_\{s\}^\{k\}\\Bigg\)\\cdot\\left\(\\sum\_\{m=0\}^\{\\infty\}\\frac\{\|\\tau\_\{\\xi\}\|^\{m\}\}\{m\!\}C\_\{t\}^\{m\}\\right\)\+\(∑k=0∞\|τη\|kk\!Csk\)⋅\(∑m=Kξ\+1∞\|τξ\|mm\!Ctm\)\)∥𝐗1M∥\.\\displaystyle\+\\left\(\\sum\_\{k=0\}^\{\\infty\}\\frac\{\|\\tau\_\{\\eta\}\|^\{k\}\}\{k\!\}C\_\{s\}^\{k\}\\right\)\\cdot\\Bigg\(\\sum\_\{m=K\_\{\\xi\}\+1\}^\{\\infty\}\\frac\{\|\\tau\_\{\\xi\}\|^\{m\}\}\{m\!\}C\_\{t\}^\{m\}\\Bigg\)\\Bigg\)\\\|\\mathbf\{X\}\_\{1\}^\{M\}\\\|\.

The proof of Proposition[3\.1](https://arxiv.org/html/2606.06682#S3.Thmtheorem1)is provided in Appendix[B\.1](https://arxiv.org/html/2606.06682#A2.SS1)\. According to Eq\. \([7](https://arxiv.org/html/2606.06682#S3.E7)\), the truncation error can be reduced either by decreasing\(τη,τξ\)\(\\tau\_\{\\eta\},\\tau\_\{\\xi\}\)or increasing\(Kη,Kξ\)\(K\_\{\\eta\},K\_\{\\xi\}\)\. In particular, for smaller filtering factor\(τη,τξ\)\(\\tau\_\{\\eta\},\\tau\_\{\\xi\}\), a smaller truncation order\(Kη,Kξ\)\(K\_\{\\eta\},K\_\{\\xi\}\)suffices to achieve the same approximation error\. Therefore,\(τη,τξ\)\(\\tau\_\{\\eta\},\\tau\_\{\\xi\}\)effectively controls the spatial and temporal receptive fields: smaller values yield more localized receptive fields, while larger values expand them to capture long\-range dependencies\. Optimizing𝝉=\(τη,τξ\)\\bm\{\\tau\}=\(\\tau\_\{\\eta\},\\tau\_\{\\xi\}\)thus enables an adaptive spatiotemporal receptive field\.

In the following theorem, we explicitly show how the graph\-informed prior in GiFlow enables more efficient transport compared to standard FM start from an isotropic Gaussian, highlighting the benefit of incorporating structural spatiotemporal knowledge\.

###### Theorem 3\.2\(Control of transport cost\)\.

Consider flow matching for spatiotemporal imputation\. Letp0Gp\_\{0\}^\{\\mathrm\{G\}\}denote the graph\-informed prior obtained via the spatiotemporal filtering operator defined in Eq\. \([4](https://arxiv.org/html/2606.06682#S3.E4)\), with\(τη,τξ\)\(\\tau\_\{\\eta\},\\tau\_\{\\xi\}\)being the optimal solution to Problem \([5](https://arxiv.org/html/2606.06682#S3.E5)\) withατ=0\\alpha\_\{\\tau\}=0, and letp0Gaussp\_\{0\}^\{\\mathrm\{Gauss\}\}be the standard isotropic Gaussian prior\. Denote byq1q\_\{1\}the target distribution\. Then, the transport cost of flow matching withp0Gp\_\{0\}^\{\\mathrm\{G\}\}is no larger than that withp0Gaussp\_\{0\}^\{\\mathrm\{Gauss\}\}:

𝒞FM​\(p0G→q1\)≤𝒞FM​\(p0Gauss→q1\),\\mathcal\{C\}\_\{\\mathrm\{FM\}\}\(p\_\{0\}^\{\\mathrm\{G\}\}\\to q\_\{1\}\)\\leq\\mathcal\{C\}\_\{\\mathrm\{FM\}\}\(p\_\{0\}^\{\\mathrm\{Gauss\}\}\\to q\_\{1\}\),\(8\)where𝒞FM\\mathcal\{C\}\_\{\\mathrm\{FM\}\}denotes the expected quadratic cost along the probability path\.

The proof of Theorem[3\.2](https://arxiv.org/html/2606.06682#S3.Thmtheorem2)is provided in Appendix[B\.2](https://arxiv.org/html/2606.06682#A2.SS2)\. Intuitively, since the standard Gaussian prior ignores the spatiotemporal structure, the model must traverse a longer path to reach the target distribution\. In contrast, the graph\-informed prior integrates spatial smoothness and temporal consistency via adaptive spatiotemporal filtering, aligning the source distribution closer to the target distribution and thereby reducing the overall transport cost\.

It is worth noting that since GiFlow adopts a deterministic input, it does not require multiple sampling runs followed by averaging as in existing diffusion approaches\(Liu et al\.,[2023a](https://arxiv.org/html/2606.06682#bib.bib27); He et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib21)\), which improves computational efficiency\. Nonetheless, in scenarios where uncertainty quantification of the imputations is desired, additional Gaussian noise can be injected into the graph\-informed prior to enable stochastic sampling\.

### 3\.2Graph\-Informed Probability Flows

For imputation problems, the data naturally comes in pairs\(𝐗0,𝐗1\)\(\\mathbf\{X\}\_\{0\},\\mathbf\{X\}\_\{1\}\)\(Albergo et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib2)\)\. To construct an FM model, it suffices to specify a conditional probability path and a vector field\. We adopt a linear conditional probability path, which is optimal in the sense that the resulting conditional flow corresponds to the optimal transport displacement map, minimizing a bound on the kinetic energy\(Lipman et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib26)\)\. Specifically, for a data pair\(𝐗1M,𝐗1\)\(\\mathbf\{X\}\_\{1\}^\{M\},\\mathbf\{X\}\_\{1\}\), the graph\-informed linear conditional flow is defined as

ϕt​\(𝐗∣𝐙\)=\(1−t\)​e−τη​𝐋η​𝐗1M​e−τξ​𝐋ξ\+t​𝐗1\.\\phi\_\{t\}\(\\mathbf\{X\}\\mid\\mathbf\{Z\}\)=\(1\-t\)e^\{\-\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}\}\\mathbf\{X\}\_\{1\}^\{M\}e^\{\-\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\}\+t\\mathbf\{X\}\_\{1\}\.\(9\)This induces a unique vector field:

ut​\(𝐗∣𝐙\)=𝐗1−e−τη​𝐋η​𝐗1M​e−τξ​𝐋ξ\.u\_\{t\}\(\\mathbf\{X\}\\mid\\mathbf\{Z\}\)=\\mathbf\{X\}\_\{1\}\-e^\{\-\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}\}\\mathbf\{X\}\_\{1\}^\{M\}e^\{\-\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\}\.\(10\)Letvtv\_\{t\}be the parameterized vector field\. The regression loss of GiFlow is then given by

ℒ𝖦𝗂𝖥𝖬\(𝜽\)=𝔼t∼𝒰​\[0,1\],𝐙∼q​\(𝐙\),𝐗∼pt​\(𝐗\)\[\\displaystyle\\mathcal\{L\}\_\{\\mathsf\{GiFM\}\}\(\\bm\{\\theta\}\)=\\mathbb\{E\}\_\{t\\sim\\mathcal\{U\}\[0,1\],\\mathbf\{Z\}\\sim q\(\\mathbf\{Z\}\),\\mathbf\{X\}\\sim p\_\{t\}\(\\mathbf\{X\}\)\}\\Big\[∥𝐌∘\(vt\(𝐗t;𝜽,𝐌,𝐋\)−𝐗1\+e−τη​𝐋η𝐗1Me−τξ​𝐋ξ\)∥2\]\.\\displaystyle\\left\\\|\\mathbf\{M\}\\circ\\Big\(v\_\{t\}\(\\mathbf\{X\}\_\{t\};\\bm\{\\theta\},\\mathbf\{M\},\\mathbf\{L\}\)\-\\mathbf\{X\}\_\{1\}\+e^\{\-\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}\}\\mathbf\{X\}\_\{1\}^\{M\}e^\{\-\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\}\\Big\)\\right\\\|^\{2\}\\Big\]\.

### 3\.3Vector Field Model

We parameterize the vector field modelvtv\_\{t\}using a spatiotemporal model that captures both spatial and temporal dependencies, which has three main components: spatial attention, temporal attention, and spatiotemporal propagation\.

Spatial attention\.We first learn correlations between nodes using static node embeddings\. Node embeddings are processed by a GNN developed in\(Morris et al\.,[2019](https://arxiv.org/html/2606.06682#bib.bib35)\)to capture spatial information\. The propagated node embedding𝐗n\\mathbf\{X\}\_\{n\}serves as both the key and query for spatial attention\. The value is computed by𝐗tη=MLP​\(𝐗t\)∈ℝN×H\\mathbf\{X\}^\{\\eta\}\_\{t\}=\\mathrm\{MLP\}\(\\mathbf\{X\}\_\{t\}\)\\in\\mathbb\{R\}^\{N\\times H\}, where𝐗t\\mathbf\{X\}\_\{t\}is computed using the defined conditional flow as in Eq\. \([9](https://arxiv.org/html/2606.06682#S3.E9)\)\. To learn pairwise spatial associations, we employ self\-attention:

𝐐η=𝐗n​𝐖Qη,𝐊η=𝐗n​𝐖Kη,𝐕η=𝐗tη​𝐖Vη,\\displaystyle\\mathbf\{Q\}^\{\\eta\}=\\mathbf\{X\}\_\{n\}\\mathbf\{W\}\_\{Q\}^\{\\eta\},\\quad\\mathbf\{K\}^\{\\eta\}=\\mathbf\{X\}\_\{n\}\\mathbf\{W\}\_\{K\}^\{\\eta\},\\quad\\mathbf\{V\}^\{\\eta\}=\\mathbf\{X\}^\{\\eta\}\_\{t\}\\mathbf\{W\}\_\{V\}^\{\\eta\},αn1,n2η=exp⁡\(⟨𝐪n1η,𝐤n2η⟩\)∑n′∈𝒩exp⁡\(⟨𝐪n1η,𝐤n′η⟩\),\\displaystyle\\alpha^\{\\eta\}\_\{n\_\{1\},n\_\{2\}\}=\\frac\{\\exp\(\\langle\\mathbf\{q\}^\{\\eta\}\_\{n\_\{1\}\},\\mathbf\{k\}^\{\\eta\}\_\{n\_\{2\}\}\\rangle\)\}\{\\sum\_\{n^\{\\prime\}\\in\\mathcal\{N\}\}\\exp\(\\langle\\mathbf\{q\}^\{\\eta\}\_\{n\_\{1\}\},\\mathbf\{k\}^\{\\eta\}\_\{n^\{\\prime\}\}\\rangle\)\},where𝐖Qη,𝐖Kη,𝐖Vη∈ℝH×H\\mathbf\{W\}\_\{Q\}^\{\\eta\},\\mathbf\{W\}\_\{K\}^\{\\eta\},\\mathbf\{W\}\_\{V\}^\{\\eta\}\\in\\mathbb\{R\}^\{H\\times H\}are learnable matrices,𝐐η,𝐊η,𝐕η∈ℝN×H\\mathbf\{Q\}^\{\\eta\},\\mathbf\{K\}^\{\\eta\},\\mathbf\{V\}^\{\\eta\}\\in\\mathbb\{R\}^\{N\\times H\}denote the query, key, and value matrices for spatial self\-attention, with𝐪iη,𝐤iη,𝐯iη\\mathbf\{q\}^\{\\eta\}\_\{i\},\\mathbf\{k\}^\{\\eta\}\_\{i\},\\mathbf\{v\}^\{\\eta\}\_\{i\}representing theirii\-th rows\. For a given spatiotemporal point\(n,r\)\(n,r\), we aggregate spatial messages from all nodes, weighted by the learned attention scores, to obtain the spatial embedding for each node\. This aggregation is computed as

𝐡nη=MLP​\(∑n′∈𝒩αn,n′η,𝐯n′η\)\.\\mathbf\{h\}^\{\\eta\}\_\{n\}=\\mathrm\{MLP\}\\Bigg\(\\sum\_\{n^\{\\prime\}\\in\\mathcal\{N\}\}\\alpha^\{\\eta\}\_\{n,n^\{\\prime\}\},\\mathbf\{v\}^\{\\eta\}\_\{n^\{\\prime\}\}\\Bigg\)\.\(11\)
Temporal attention\.To capture correlations across timesteps, we employ a temporal attention mechanism\. Unlike recurrent sequence models such as RNNs or LSTMs, Transformers do not inherently encode sequential information\(Wen et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib51)\)\. To address this, we first incorporate standard positional encoding\(Vaswani et al\.,[2017](https://arxiv.org/html/2606.06682#bib.bib49)\)\. When real\-world timestamps are available, we additionally use a learnable embedding layer to encode them\(Zhou et al\.,[2021](https://arxiv.org/html/2606.06682#bib.bib56)\)\. Let𝐗P​E\\mathbf\{X\}\_\{PE\}and𝐗T​E\\mathbf\{X\}\_\{TE\}denote the positional encoding and timestamp encoding\. The input to the temporal attention module is then given by

𝐗tξ=MLP​\(𝐗t⊤\)\+𝐗P​E\+𝐗T​E∈ℝR×H\.\\mathbf\{X\}\_\{t\}^\{\\xi\}=\\mathrm\{MLP\}\(\\mathbf\{X\}\_\{t\}^\{\\top\}\)\+\\mathbf\{X\}\_\{PE\}\+\\mathbf\{X\}\_\{TE\}\\in\\mathbb\{R\}^\{R\\times H\}\.\(12\)
For any pair of timesteps\(r1,r2\)∈ℛ\(r\_\{1\},r\_\{2\}\)\\in\\mathcal\{R\},𝐗tξ\\mathbf\{X\}\_\{t\}^\{\\xi\}serves as the key, query, and value in the temporal attention computation\. The temporal attention scores and aggregation are computed as follows:

𝐐ξ=𝐗tξ​𝐖Qξ,𝐊ξ=𝐗tξ​𝐖Kξ,𝐕ξ=𝐗tξ​𝐖Vξ,\\displaystyle\\mathbf\{Q\}^\{\\xi\}=\\mathbf\{X\}\_\{t\}^\{\\xi\}\\mathbf\{W\}\_\{Q\}^\{\\xi\},\\quad\\mathbf\{K\}^\{\\xi\}=\\mathbf\{X\}\_\{t\}^\{\\xi\}\\mathbf\{W\}\_\{K\}^\{\\xi\},\\quad\\mathbf\{V\}^\{\\xi\}=\\mathbf\{X\}\_\{t\}^\{\\xi\}\\mathbf\{W\}\_\{V\}^\{\\xi\},αr1,r2ξ=exp⁡\(⟨𝐪r1ξ,𝐤r2ξ⟩\)∑r′∈ℛexp⁡\(⟨𝐪r1ξ,𝐤r′ξ⟩\),\\displaystyle\\alpha^\{\\xi\}\_\{r\_\{1\},r\_\{2\}\}=\\frac\{\\exp\\big\(\\langle\\mathbf\{q\}^\{\\xi\}\_\{r\_\{1\}\},\\mathbf\{k\}^\{\\xi\}\_\{r\_\{2\}\}\\rangle\\big\)\}\{\\sum\_\{r^\{\\prime\}\\in\\mathcal\{R\}\}\\exp\\big\(\\langle\\mathbf\{q\}^\{\\xi\}\_\{r\_\{1\}\},\\mathbf\{k\}^\{\\xi\}\_\{r^\{\\prime\}\}\\rangle\\big\)\},where𝐖Qξ,𝐖Kξ,𝐖Vξ∈ℝH×H\\mathbf\{W\}\_\{Q\}^\{\\xi\},\\mathbf\{W\}\_\{K\}^\{\\xi\},\\mathbf\{W\}\_\{V\}^\{\\xi\}\\in\\mathbb\{R\}^\{H\\times H\}are learnable parameter matrices, and𝐐ξ,𝐊ξ,𝐕ξ∈ℝR×H\\mathbf\{Q\}^\{\\xi\},\\mathbf\{K\}^\{\\xi\},\\mathbf\{V\}^\{\\xi\}\\in\\mathbb\{R\}^\{R\\times H\}denote the query, key, and value matrices\. For a spatiotemporal point\(n,r\)\(n,r\), temporal messages from all timesteps are aggregated using the learned attention weights, producing the temporal embedding computed as

𝐡rξ=MLP​\(∑r′∈ℛαr,r′ξ,𝐯r′ξ\)\.\\mathbf\{h\}^\{\\xi\}\_\{r\}=\\mathrm\{MLP\}\\Bigg\(\\sum\_\{r^\{\\prime\}\\in\\mathcal\{R\}\}\\alpha^\{\\xi\}\_\{r,r^\{\\prime\}\},\\mathbf\{v\}^\{\\xi\}\_\{r^\{\\prime\}\}\\Bigg\)\.\(13\)
Spatiotemporal propagation\.The aggregated spatial and temporal messages are concatenated with the original features and time embedding that encodes the information of the stepttin the probability density path, then projected via a linear layer to obtain𝐇∈ℝN×R×H\\mathbf\{H\}\\in\\mathbb\{R\}^\{N\\times R\\times H\}\. We then performLM​PL\_\{MP\}layers of message passing in both spatial and temporal domains, with theℓ\\ell\-th \(ℓ=1,…,LM​P\\ell=1,\\ldots,L\_\{MP\}\) layer defined by

𝐇r\(ℓ\+1\)\\displaystyle\\mathbf\{H\}\_\{r\}^\{\(\\ell\+1\)\}=GNN​\(𝐇r,𝒢s\)∈ℝN×H,∀r∈ℛ,\\displaystyle=\\mathrm\{GNN\}\(\\mathbf\{H\}\_\{r\},\\mathcal\{G\}\_\{s\}\)\\in\\mathbb\{R\}^\{N\\times H\},\\quad\\forall r\\in\\mathcal\{R\},\(14\)𝐇n\(ℓ\+1\)\\displaystyle\\mathbf\{H\}\_\{n\}^\{\(\\ell\+1\)\}=GNN​\(𝐇n,𝒢t\)∈ℝR×H,∀n∈𝒩,\\displaystyle=\\mathrm\{GNN\}\(\\mathbf\{H\}\_\{n\},\\mathcal\{G\}\_\{t\}\)\\in\\mathbb\{R\}^\{R\\times H\},\\quad\\forall n\\in\\mathcal\{N\},where spatial message passing is applied independently for each timestep, and temporal message passing is applied independently for each node\. The GNN model follows the architecture developed in\(Wu et al\.,[2019](https://arxiv.org/html/2606.06682#bib.bib52)\)\. AfterLM​PL\_\{MP\}layers, we obtain𝐇p​r​o​p∈ℝN×R×H\\mathbf\{H\}^\{prop\}\\in\\mathbb\{R\}^\{N\\times R\\times H\}\. Then a linear layer projects the features back to the original signal dimension\. For one\-dimensional signals, the final output is

𝐗o​u​t=MLP​\(𝐇p​r​o​p\)∈ℝN×R\.\\mathbf\{X\}^\{out\}=\\mathrm\{MLP\}\(\\mathbf\{H\}^\{prop\}\)\\in\\mathbb\{R\}^\{N\\times R\}\.\(15\)
The GiFlow model integrates graph\-informed priors with a spatiotemporal architecture in the flow matching framework, providing an effective generative model for spatiotemporal imputation\.

## 4Experiments

We assess the performance of GiFlow using synthetic data\(Qiu et al\.,[2017](https://arxiv.org/html/2606.06682#bib.bib39); Giraldo et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib19)\)as well as three widely used real\-world datasets that have different sizes and spatiotemporal patterns: two air quality datasets \(Air\-36 and AQI\)\(Zheng et al\.,[2015](https://arxiv.org/html/2606.06682#bib.bib55); Yi et al\.,[2016](https://arxiv.org/html/2606.06682#bib.bib54)\)and a traffic dataset \(PeMS08\)\(Guo et al\.,[2021](https://arxiv.org/html/2606.06682#bib.bib20)\)\. Specifically, Air\-36 and AQI collect hourly sampled PM2\.5 pollutant data in China\. PeMS08 is collected by the Caltrans Performance Measurement System \(PeMS\)\(Chen et al\.,[2001](https://arxiv.org/html/2606.06682#bib.bib10)\), containing highway traffic flow data in California\. It originally collects data every 30 seconds, and the collected data is then aggregated with a 5\-minute interval\. To simulate realistic incomplete spatiotemporal signals, we adopt two missing data injection strategies: \(1\) Point missing: following the setup of\(Cini et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib11); Deng et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib14)\), we randomly mask a fractionρ\\rhoof the available data; \(2\) Block missing: we first randomly select a node and a starting timestep, then mask a contiguous segment of data from that timestep for the selected node\. This process is repeated iteratively until a fractionρ\\rhoof the available data is masked\. We compare the performance of GiFlow with five non\-parametric methods \(Mean\-S, Mean\-T, Linear, KNN, and FP\(Rossi et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib41)\)\), two RNN\-based methods \(BRITS\(Cao et al\.,[2018](https://arxiv.org/html/2606.06682#bib.bib9)\)and SAITS\(Du et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib17)\)\), four spatiotemporal GNN\-based and transformer\-based methods \(SPIN\(Marisca et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib33)\), GRIN\(Cini et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib11)\), OPCR\(Deng et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib14)\), and a diffusion\-based method PriSTI\(Liu et al\.,[2023a](https://arxiv.org/html/2606.06682#bib.bib27)\)\. To obtain the filtering factorsτη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}, we optimize Problem \([5](https://arxiv.org/html/2606.06682#S3.E5)\) with stochastic gradient descent\. Specifically, the filtering factors are optimized using the training data, where the complete ground\-truth signals are available\. Once selected, the filtering factors remain constant during inference\. Details about the datasets and baselines are provided in Appendix[C\.1](https://arxiv.org/html/2606.06682#A3.SS1)and Appendix[C\.2](https://arxiv.org/html/2606.06682#A3.SS2), respectively\. To evaluate the performance, we use three metrics: mean absolute error \(MAE\), root mean squared error \(RMSE\), and mean absolute percentage error \(MAPE\)\. All the experiment results are conducted five times using different seeds, and we report the average performance\. The implementation details can be found in Appendix[C\.3](https://arxiv.org/html/2606.06682#A3.SS3)\.

Table 1:Imputation performance on the synthetic dataset\.### 4\.1Performance Evaluation on Synthetic Datasets

Table 2:Imputation performance with point missing strategy \(ρ=20%\\rho=20\\%\)\.Table 3:Imputation performance with block missing strategy \(ρ=20%\\rho=20\\%\)\.To evaluate the proposed GiFlow, we generate a synthetic spatiotemporal dataset following the procedure described in\(Qiu et al\.,[2017](https://arxiv.org/html/2606.06682#bib.bib39); Giraldo et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib19)\)\. This yields a smooth, temporally evolving graph signal𝐗∈ℝN×R\\mathbf\{X\}\\in\\mathbb\{R\}^\{N\\times R\}\. Specifically, we sample 50 nodes uniformly at random within a 50×\\times50 square domain\. A graph is then constructed using KNN based on the spatial positions, withk=5k=5\. Let𝐋η∈ℝN×N\\mathbf\{L\}\_\{\\eta\}\\in\\mathbb\{R\}^\{N\\times N\}be the spatial graph Laplacian, for which we compute the eigen\-decomposition𝐋η=𝐕​𝚲​𝐕⊤\\mathbf\{L\}\_\{\\eta\}=\\mathbf\{V\}\\mathbf\{\\Lambda\}\\mathbf\{V\}^\{\\top\}\. Its inverse square root is used to construct a smoothed propagation operator𝐋η−12=𝐔​𝚲−12​𝐔⊤\\mathbf\{L\}\_\{\\eta\}^\{\-\\frac\{1\}\{2\}\}=\\mathbf\{U\}\\bm\{\\Lambda\}^\{\-\\frac\{1\}\{2\}\}\\mathbf\{U\}^\{\\top\}where𝚲−12=diag​\(0,λ2−12,…,λN−12\)\\bm\{\\Lambda\}^\{\-\\frac\{1\}\{2\}\}=\\mathrm\{diag\}\(0,\\lambda\_\{2\}^\{\-\\frac\{1\}\{2\}\},\\ldots,\\lambda\_\{N\}^\{\-\\frac\{1\}\{2\}\}\)\. The initial signal is generated in the spectral domain as a low\-frequency signal\. Subsequent signals are generated iteratively via𝐱r=𝐱r−1\+𝐋η−12​𝐟r\\mathbf\{x\}\_\{r\}=\\mathbf\{x\}\_\{r\-1\}\+\\mathbf\{L\}\_\{\\eta\}^\{\-\\frac\{1\}\{2\}\}\\mathbf\{f\}\_\{r\}, where𝐟\\mathbf\{f\}is an i\.i\.d\. Gaussian signal\. The length of the generated signal is set toR=3000R=3000\. To simulate the real\-world noisy conditions, we add small Gaussian noise to the signal using𝐗~=𝐗\+ϵ,ϵ∼𝒩​\(𝟎,σ2​𝐈\)\.\\tilde\{\\mathbf\{X\}\}=\\mathbf\{X\}\+\\bm\{\\epsilon\},\\,\\bm\{\\epsilon\}\\sim\\mathcal\{N\}\(\\mathbf\{0\},\\sigma^\{2\}\\mathbf\{I\}\)\.We conduct experiments using the point missing strategy \(ρ=20%\\rho=20\\%\) with bothσ=0\.1\\sigma=0\.1andσ=0\.3\\sigma=0\.3to evaluate the performance under different noisy levels\. The results are given in Table[1](https://arxiv.org/html/2606.06682#S4.T1), where the best results are inbold, and the second best results areunderlined\. From the results, we can see that the GiFlow model performs well under different noisy levels\.

![Refer to caption](https://arxiv.org/html/2606.06682v1/x2.png)

![Refer to caption](https://arxiv.org/html/2606.06682v1/x3.png)

Figure 2:Performance with different missing rates\.
### 4\.2Performance Evaluation on Real\-world Datasets

We first evaluate model performance on the two air quality datasets: a small Air\-36 dataset that is collected in Beijing and a large dataset that is collected from 43 Chinese cities\. The temporal graph is defined as a line graph to model the auto\-regressive nature of the time series\. The spatial graph is constructed from training data using distance\-based similarity\. Specifically, we first compute the pairwise distance matrix𝚿∈ℝN×N\\bm\{\\Psi\}\\in\\mathbb\{R\}^\{N\\times N\}using node features\. Then we apply a Gaussian kernelexp⁡\(−\(ψi​jω\)2\)\\exp\(\-\(\\frac\{\\psi\_\{ij\}\}\{\\omega\}\)^\{2\}\)with the decay rateω\\omegaset to the standard deviation of𝚿\\bm\{\\Psi\}to transform the distances into edge weights between 0 and 1\. The weight matrix is further converted into a binary adjacency matrix with thresholding\. The results with the point missing and block missing strategies \(ρ=20%\\rho=20\\%\) are reported in Table[2](https://arxiv.org/html/2606.06682#S4.T2)and[3](https://arxiv.org/html/2606.06682#S4.T3), respectively\. The results show that simple averaging methods, Mean\-S and Mean\-T, fail to achieve satisfactory results, indicating that simple spatial or temporal averaging cannot capture the system dynamics\. Linear interpolation performs well under point missing, but degrades significantly under block missing\. The same happens to RNN\-based methods BRITS and SAITS, which even underperform the nonparametric FP model\. This is because for block missing, there are contiguous missing blocks, making methods that only rely on individual time series struggle with inferring missing values based on signals from distant timesteps\. The other deep learning methods that consider both spatial and temporal information,i\.e\., SPIN, GRIN, OPCR, PriSTI, and GiFlow, perform better than the methods using only temporal information\. Among them, GiFlow achieves the overall best results across different missing patterns and metrics, demonstrating its effectiveness in spatiotemporal imputation\.

To further evaluate the effectiveness of the proposed GiFlow model, we conduct experiments on the Air\-36 dataset, using the point missing strategy withρ\\rhoranging from 20% to 60%\. For comparison, we choose four spatiotemporal baselines, which are shown to be better than other baselines according to the results reported in Table[2](https://arxiv.org/html/2606.06682#S4.T2)and[3](https://arxiv.org/html/2606.06682#S4.T3)\. The results on MAPE are presented in Figure[2](https://arxiv.org/html/2606.06682#S4.F2), while the results on MAE and RMSE are presented in Appendix[C\.4](https://arxiv.org/html/2606.06682#A3.SS4)\. From the results, we observe that for all the methods, the imputation performance steadily degrades with increasing missing rates\. Moreover, the proposed GiFlow model consistently outperforms the other methods across different missing rates\. These results validate the robustness of the proposed GiFlow model under different missing patterns and missing rates\.

![Refer to caption](https://arxiv.org/html/2606.06682v1/x4.png)Figure 3:Filtering factors with different missing rate\.As proved in Proposition[3\.1](https://arxiv.org/html/2606.06682#S3.Thmtheorem1), the filtering factorsτη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}determine the receptive field of the spatiotemporal filtering operation\. Intuitively, when facing a higher missing rate, the model would require a larger receptive field to obtain a close approximation of the missing signals based on the observable ones\. In the following, we investigate howτη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}change as the missing rateρ\\rhoincreases\. The values of the filtering factorsτη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}under both the point missing strategy and block missing strategy on the Air\-36 dataset withρ\\rhoranging from 20% to 60% are presented in Figure[3](https://arxiv.org/html/2606.06682#S4.F3)\. It is evident that with increasing missing rate,τη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}become larger and larger\. This pattern corroborates the results we obtained from Proposition[3\.1](https://arxiv.org/html/2606.06682#S3.Thmtheorem1)that with increasing missing rate, the model likely requires a larger spatiotemporal receptive field\. Moreover, for block missing,τη\\tau\_\{\\eta\}increases a lot as the missing rate increases, whileτξ\\tau\_\{\\xi\}remains relatively stable\. This is largely due to the fact that with the block missing strategy, we have larger temporal gaps in the data, making the model more reliant on spatial filtering\. A similar phenomenon has been observed in the AQI dataset, which is presented in Appendix[C\.5](https://arxiv.org/html/2606.06682#A3.SS5)\.

### 4\.3Ablation Study

Ablation on prior construction\.In the proposed GiFlow model, the graph\-informed prior construction is critical as it provides a close alignment between the source and target distribution, and hence reduces the transport cost\. To empirically validate the effectiveness of the graph\-informed prior generated with adaptive spatiotemporal filtering, we evaluate several variants of GiFlow\. Specifically, we consider: \(1\) FM\-Gauss: a FM model employs the same vector field model architecture as in GiFlow but with a problem\-agnostic Gaussian prior; \(2\) GFM: GiFlow with a spatial\-only graph\-informed prior,i\.e\., the filtering parameterτη\\tau\_\{\\eta\}is obtained by optimizing Problem \([5](https://arxiv.org/html/2606.06682#S3.E5)\) withτξ\\tau\_\{\\xi\}fixed as 0; \(3\) TFM: GiFlow with a temporal\-only graph\-informed prior,i\.e\., the filtering parameterτξ\\tau\_\{\\xi\}is obtained by optimizing Problem \([5](https://arxiv.org/html/2606.06682#S3.E5)\) withτη\\tau\_\{\\eta\}fixed as 0\. We conduct experiments on Air\-36 dataset with point missing strategy\. To validate the results in Theorem[3\.2](https://arxiv.org/html/2606.06682#S3.Thmtheorem2), we also evaluate the transport cost of different models\. The results are reported in Table[4](https://arxiv.org/html/2606.06682#S4.T4)\. From the results, we observe that the FM\-Gauss performs the worst, and it is worse than several baselines in Table[2](https://arxiv.org/html/2606.06682#S4.T2), emphasizing that FM with a Gaussian prior fails to achieve state\-of\-the\-art imputation performance\. TFM and GFM give better results than FM\-Gauss, indicating that the Laplacian filtering in both the spatial and temporal domains provides more structured and informative prior to the FM framework\. Notably, GFM outperforms all baselines in Table[2](https://arxiv.org/html/2606.06682#S4.T2), indicating that the spatial filtering alone already provides a good prior for the model\. Leveraging on both spatial and temporal dependencies, GiFlow gives the best results, indicating that combining both spatial and temporal filtering brings additional performance gain\. The results on transport cost corroborate the conclusions of Theorem[3\.2](https://arxiv.org/html/2606.06682#S3.Thmtheorem2)\. They demonstrate that applying graph filtering can substantially reduce the transport cost\. Moreover, it can also be observed that models with lower transport costs tend to achieve better performance\.

Table 4:The effect of different priors\. \(T\. C\. stands for transport cost\.\)Table 5:The performance of GiFlow with reduced components\.Ablation on architectural components\.We conduct ablation studies to examine the individual contributions of the vector field model components by evaluating four variants of GiFlow: removing spatial attention, removing temporal attention, removing both spatial and temporal attention, and removing spatiotemporal propagation\. In GiFlow, the outputs of the attention modules are concatenated and then projected to the hidden dimension through a linear layer\. To remove an attention module, we simply exclude it from the concatenated representation and adjust the input dimension of the subsequent linear layer accordingly\. To remove spatiotemporal propagation, we set the propagation layerLM​PL\_\{MP\}to zero\. The experiment is conducted on the Air\-36 dataset under the point\-missing setting withρ=20%\\rho=20\\%, and the results are reported in Table[5](https://arxiv.org/html/2606.06682#S4.T5)\. We observe that spatial attention, temporal attention, and spatiotemporal propagation each contribute positively to the overall performance\. Notably, removing spatiotemporal propagation leads to the largest performance drop, highlighting the importance of information propagation in the spatiotemporal domain\. Compared with the ablation study on the prior design, these results suggest that the prior design has a larger impact on performance than the architectural components\.

### 4\.4Sensitivity Analysis of Graph Quality

In our experiments, the threshold for graph binarization is set to either 0\.1 or 0\.2\. To investigate how sensitive GiFlow is to the graph quality, we evaluate its performance using graphs constructed with different thresholds, ranging from 0\.02 to 0\.6\. The experiment is conducted on the Air\-36 dataset under the point\-missing setting withρ=20%\\rho=20\\%, and we report the performance and the average degree of the resulting graphs in Table[6](https://arxiv.org/html/2606.06682#S4.T6)\. The results show that GiFlow performs consistently well when the threshold is between 0\.05 and 0\.4, with the best result at 0\.1\. However, under extreme threshold values, such as 0\.02 or 0\.6, the performance drops noticeably\. These findings suggest that GiFlow is robust to moderate variations in graph quality, while its performance degrades significantly when the graph structure deviates substantially from a well\-chosen one\.

Table 6:The performance of GiFlow with graphs generated by different thresholds\.
### 4\.5Runtime Analysis

Inference time analysis\.In this section, we evaluate the complexity of different generative models\. Specifically, we evaluate the inference time \(in minutes\) required to impute the test sets of the datasets for the considered diffusion models and GiFlow\. The experiments are conducted on an A100 NVIDIA GPU with 80GB of memory\. The results are reported in Table[7](https://arxiv.org/html/2606.06682#S4.T7)\. From the results, it is evident that GiFlow significantly outperforms diffusion models in terms of inference speed\.

Table 7:The inference time on test set\.Filtering factor optimization complexity analysis\.During training, GiFlow requires the optimization of the adaptive filtering factors\. To evaluate the efficiency of this process, we optimize these filtering factors for 100 epochs with a batch size of 64\. To evaluate the applicability of this optimization process to larger graphs, we generate synthetic graphs with 10,000 to 50,000 nodes using the same procedure described in Section[4\.1](https://arxiv.org/html/2606.06682#S4.SS1)\. We report the total training time \(in minutes\) and peak GPU memory usage \(in gigabytes\) on both real\-world datasets and large synthetic graphs in Table[8](https://arxiv.org/html/2606.06682#S4.T8), where S\-iirepresents synthetic graphs withiithousand nodes\. The results validate that this optimization process is efficient and applicable to larger graphs\.

Table 8:The complexity of optimizing filtering factors\.Performance with fewer Euler steps\.In our experiments, we use 20 Euler steps to do the imputation\. To investigate how GiFlow performs with fewer generation steps, we evaluate its performance with different numbers of steps, ranging from 1 to 20\. We conduct experiments on the Air\-36 dataset under the point\-missing setting withρ=20%\\rho=20\\%\. The performance and the inference time \(in seconds\) are shown in Table[9](https://arxiv.org/html/2606.06682#S4.T9)\. The performance of GiFlow degrades slightly with decreased Euler steps\. In particular, with 5 steps, GiFlow still achieves lower MAE and RMSE than the second\-best baseline, while offering substantially faster inference\. These results suggest that GiFlow provides a favorable efficiency–accuracy trade\-off and remains effective even with fewer Euler steps\.

Table 9:Performance with different Euler steps\.

## 5Conclusion

In this work, we consider the spatiotemporal imputation problem\. We developed a graph\-informed flow matching method named GiFlow, which uses a graph\-informed prior derived based on adaptive spatiotemporal filtering of observable signals\. Compared with the problem\-agnostic Gaussian prior, the proposed graph\-informed prior better aligns with the target data distribution, and it provably reduces the transport cost from the source to the target distribution\. We also theoretically analyze the relationship between spatiotemporal filtering factors and the receptive field in the filtering process\. Experiments on both synthetic and real\-world datasets with various missing patterns and missing rates demonstrate the effectiveness and robustness of the GiFlow model\.

## Acknowledgments

This work was supported by the Swiss National Science Foundation \(SNSF\) under Grant No\. 200021\_200461\. The contributions of Aref Einizade and Jhony H\. Giraldo to this project were supported by Hi\! PARIS and the ANR/France 2030 program \(Grant ANR\-23\-IACL\-0005 and ANR\-23\-CMAS\-0033\)\.

## Impact Statement

This paper presents work whose goal is to advance the field of machine learning\. There are many potential societal consequences of our work, none of which we feel must be specifically highlighted here\.

## References

- Albergo & Vanden\-Eijnden \(2023\)Albergo, M\. S\. and Vanden\-Eijnden, E\.Building normalizing flows with stochastic interpolants\.In*International Conference on Learning Representations*, 2023\.
- Albergo et al\. \(2024\)Albergo, M\. S\., Goldstein, M\., Boffi, N\. M\., Ranganath, R\., and Vanden\-Eijnden, E\.Stochastic interpolants with data\-dependent couplings\.In*International Conference on Machine Learning*, 2024\.
- Ansley & Kohn \(1984\)Ansley, C\. F\. and Kohn, R\.On the estimation of arima models with missing values\.In*Time Series Analysis of Irregularly Observed Data*, pp\. 9–37\. Springer, 1984\.
- Atluri et al\. \(2018\)Atluri, G\., Karpatne, A\., and Kumar, V\.Spatio\-temporal data mining: A survey of problems and methods\.*ACM Computing Surveys*, 51\(4\):1–41, 2018\.
- Behmanesh et al\. \(2023\)Behmanesh, M\., Krahn, M\., and Ovsjanikov, M\.TIDE: Time derivative diffusion for deep learning on graphs\.In*International Conference on Machine Learning*, 2023\.
- Beretta & Santaniello \(2016\)Beretta, L\. and Santaniello, A\.Nearest neighbor imputation algorithms: A critical evaluation\.*BMC Medical Informatics and Decision Making*, 16\(Suppl 3\):74, 2016\.
- Bontonou et al\. \(2019\)Bontonou, M\., Lassance, C\., Hacene, G\. B\., Gripon, V\., Tang, J\., and Ortega, A\.Introducing graph smoothness loss for training deep learning architectures\.In*IEEE Data Science Workshop*, 2019\.
- Cao et al\. \(2024\)Cao, H\., Tan, C\., Gao, Z\., Xu, Y\., Chen, G\., Heng, P\.\-A\., and Li, S\. Z\.A survey on generative diffusion models\.*IEEE Transactions on Knowledge and Data Engineering*, 36\(7\):2814–2830, 2024\.
- Cao et al\. \(2018\)Cao, W\., Wang, D\., Li, J\., Zhou, H\., Li, L\., and Li, Y\.BRITS: Bidirectional recurrent imputation for time series\.In*Advances in Neural Information Processing Systems*, 2018\.
- Chen et al\. \(2001\)Chen, C\., Petty, K\., Skabardonis, A\., Varaiya, P\., and Jia, Z\.Freeway performance measurement system: Mining loop detector data\.*Transportation Research Record*, 1748\(1\):96–102, 2001\.
- Cini et al\. \(2022\)Cini, A\., Marisca, I\., and Alippi, C\.Filling the g\_ap\_s: Multivariate time series imputation by graph neural networks\.In*International Conference on Learning Representations*, 2022\.
- Cini et al\. \(2025\)Cini, A\., Marisca, I\., Zambon, D\., and Alippi, C\.Graph deep learning for time series forecasting\.*ACM Computing Surveys*, 57\(12\):1–34, 2025\.
- Croitoru et al\. \(2023\)Croitoru, F\.\-A\., Hondru, V\., Ionescu, R\. T\., and Shah, M\.Diffusion models in vision: A survey\.*IEEE Transactions on Pattern Analysis and Machine Intelligence*, 45\(9\):10850–10869, 2023\.
- Deng et al\. \(2024\)Deng, L\., Wu, C\., Lian, D\., and Chen, E\.Learning from highly sparse spatio\-temporal data\.In*Advances in Neural Information Processing Systems*, 2024\.
- Dhariwal & Nichol \(2021\)Dhariwal, P\. and Nichol, A\.Diffusion models beat GANs on image synthesis\.In*Advances in Neural Information Processing Systems*, 2021\.
- Dong et al\. \(2020\)Dong, X\., Thanou, D\., Toni, L\., Bronstein, M\., and Frossard, P\.Graph signal processing for machine learning: A review and new perspectives\.*IEEE Signal Processing Magazine*, 37\(6\):117–127, 2020\.
- Du et al\. \(2023\)Du, W\., Côté, D\., and Liu, Y\.SAITS: Self\-attention\-based imputation for time series\.*Expert Systems with Applications*, 219:119619, 2023\.
- Einizade et al\. \(2024\)Einizade, A\., Malliaros, F\., and Giraldo, J\. H\.Continuous product graph neural networks\.In*Advances in Neural Information Processing Systems*, 2024\.
- Giraldo et al\. \(2022\)Giraldo, J\. H\., Mahmood, A\., Garcia\-Garcia, B\., Thanou, D\., and Bouwmans, T\.Reconstruction of time\-varying graph signals via Sobolev smoothness\.*IEEE Transactions on Signal and Information Processing over Networks*, 8:201–214, 2022\.
- Guo et al\. \(2021\)Guo, S\., Lin, Y\., Wan, H\., Li, X\., and Cong, G\.Learning dynamics and heterogeneity of spatial\-temporal graph data for traffic forecasting\.*IEEE Transactions on Knowledge and Data Engineering*, 34\(11\):5415–5428, 2021\.
- He et al\. \(2025\)He, W\., Huang, J\., Gu, J\., Zhang, J\., and Bai, Y\.Filling the missings: Spatiotemporal data imputation by conditional diffusion\.In*International Joint Conference on Artificial Intelligence*, 2025\.
- Ho et al\. \(2020\)Ho, J\., Jain, A\., and Abbeel, P\.Denoising diffusion probabilistic models\.In*Advances in Neural Information Processing Systems*, 2020\.
- Kingma & Ba \(2015\)Kingma, D\. and Ba, J\.Adam: A method for stochastic optimization\.In*International Conference on Learning Representations*, 2015\.
- Kollovieh et al\. \(2025\)Kollovieh, M\., Lienen, M\., Lüdke, D\., Schwinn, L\., and Günnemann, S\.Flow matching with gaussian process priors for probabilistic time series forecasting\.In*International Conference on Learning Representations*, 2025\.
- Li et al\. \(2018\)Li, Y\., Yu, R\., Shahabi, C\., and Liu, Y\.Diffusion convolutional recurrent neural network: Data\-driven traffic forecasting\.In*International Conference on Learning Representations*, 2018\.
- Lipman et al\. \(2023\)Lipman, Y\., Chen, R\. T\. Q\., Ben\-Hamu, H\., Nickel, M\., and Le, M\.Flow matching for generative modeling\.In*International Conference on Learning Representations*, 2023\.
- Liu et al\. \(2023a\)Liu, M\., Huang, H\., Feng, H\., Sun, L\., Du, B\., and Fu, Y\.PriSTI: A conditional diffusion framework for spatiotemporal imputation\.In*IEEE International Conference on Data Engineering*, 2023a\.
- Liu et al\. \(2025a\)Liu, Q\., Yin, X\., Yuille, A\., Brown, A\., and Singh, M\.Flowing from words to pixels: A noise\-free framework for cross\-modality evolution\.In*IEEE/CVF Conference on Computer Vision and Pattern Recognition*, 2025a\.
- Liu et al\. \(2023b\)Liu, X\., Gong, C\., and Liu, Q\.Flow straight and fast: Learning to generate and transfer data with rectified flow\.In*International Conference on Learning Representations*, 2023b\.
- Liu et al\. \(2019\)Liu, Y\., Yu, R\., Zheng, S\., Zhan, E\., and Yue, Y\.Naomi: Non\-autoregressive multiresolution sequence imputation\.In*Advances in Neural Information Processing Systems*, 2019\.
- Liu et al\. \(2025b\)Liu, Y\., Liu, B\., Zhang, Y\., Hou, X\., Song, G\., Liu, Y\., and You, H\.See further when clear: Curriculum consistency model\.In*IEEE/CVF Conference on Computer Vision and Pattern Recognition*, 2025b\.
- Ma et al\. \(2024\)Ma, L\., Wang, M\., and Peng, K\.A spatiotemporal industrial soft sensor modeling scheme for quality prediction with missing data\.*IEEE Transactions on Instrumentation and Measurement*, 73:1–10, 2024\.
- Marisca et al\. \(2022\)Marisca, I\., Cini, A\., and Alippi, C\.Learning to reconstruct missing data from spatiotemporal graphs with sparse observations\.In*Advances in Neural Information Processing Systems*, 2022\.
- Marisca et al\. \(2024\)Marisca, I\., Alippi, C\., et al\.Graph\-based forecasting with missing data through spatiotemporal downsampling\.In*International Conference on Machine Learning*, 2024\.
- Morris et al\. \(2019\)Morris, C\., Ritzert, M\., Fey, M\., Hamilton, W\. L\., Lenssen, J\. E\., Rattan, G\., and Grohe, M\.Weisfeiler and Leman go neural: Higher\-order graph neural networks\.In*AAAI Conference on Artificial Intelligence*, 2019\.
- Nelwamondo et al\. \(2007\)Nelwamondo, F\. V\., Mohamed, S\., and Marwala, T\.Missing data: A comparison of neural network and expectation maximization techniques\.*Current Science*, pp\. 1514–1521, 2007\.
- Pan et al\. \(2021\)Pan, C\., Chen, S\., and Ortega, A\.Spatio\-temporal graph scattering transform\.In*International Conference on Learning Representations*, 2021\.
- Price et al\. \(2025\)Price, I\., Sanchez\-Gonzalez, A\., Alet, F\., Andersson, T\. R\., El\-Kadi, A\., Masters, D\., Ewalds, T\., Stott, J\., Mohamed, S\., Battaglia, P\., et al\.Probabilistic weather forecasting with machine learning\.*Nature*, 637\(8044\):84–90, 2025\.
- Qiu et al\. \(2017\)Qiu, K\., Mao, X\., Shen, X\., Wang, X\., Li, T\., and Gu, Y\.Time\-varying graph signal reconstruction\.*IEEE Journal of Selected Topics in Signal Processing*, 11\(6\):870–883, 2017\.
- Rombach et al\. \(2022\)Rombach, R\., Blattmann, A\., Lorenz, D\., Esser, P\., and Ommer, B\.High\-resolution image synthesis with latent diffusion models\.In*IEEE/CVF Conference on Computer Vision and Pattern Recognition*, 2022\.
- Rossi et al\. \(2022\)Rossi, E\., Kenlay, H\., Gorinova, M\. I\., Chamberlain, B\. P\., Dong, X\., and Bronstein, M\. M\.On the unreasonable effectiveness of feature propagation in learning on graphs with missing node features\.In*Learning on Graphs Conference*, 2022\.
- Sohl\-Dickstein et al\. \(2015\)Sohl\-Dickstein, J\., Weiss, E\., Maheswaranathan, N\., and Ganguli, S\.Deep unsupervised learning using nonequilibrium thermodynamics\.In*International Conference on Machine Learning*, 2015\.
- Solís\-García et al\. \(2025\)Solís\-García, J\., Vega\-Márquez, B\., Nepomuceno, J\. A\., and Nepomuceno\-Chamorro, I\. A\.CoSTI: Consistency models for \(a faster\) spatio\-temporal imputation\.*Knowledge\-Based Systems*, 327:114117, 2025\.
- Song et al\. \(2021\)Song, Y\., Sohl\-Dickstein, J\., Kingma, D\. P\., Kumar, A\., Ermon, S\., and Poole, B\.Score\-based generative modeling through stochastic differential equations\.In*International Conference on Learning Representations*, 2021\.
- Song et al\. \(2023\)Song, Y\., Dhariwal, P\., Chen, M\., and Sutskever, I\.Consistency models\.In*International Conference on Machine Learning*, 2023\.
- Stanley et al\. \(2020\)Stanley, J\. S\., Chi, E\. C\., and Mishne, G\.Multiway graph signal processing on tensors: Integrative analysis of irregular geometries\.*IEEE Signal Processing Magazine*, 37\(6\):160–173, 2020\.
- Tashiro et al\. \(2021\)Tashiro, Y\., Song, J\., Song, Y\., and Ermon, S\.CSDI: Conditional score\-based diffusion models for probabilistic time series imputation\.In*Advances in Neural Information Processing Systems*, 2021\.
- Tong et al\. \(2024\)Tong, A\., Fatras, K\., Malkin, N\., Huguet, G\., Zhang, Y\., Rector\-Brooks, J\., Wolf, G\., and Bengio, Y\.Improving and generalizing flow\-based generative models with minibatch optimal transport\.*Transactions on Machine Learning Research*, pp\. 1–34, 2024\.
- Vaswani et al\. \(2017\)Vaswani, A\., Shazeer, N\., Parmar, N\., Uszkoreit, J\., Jones, L\., Gomez, A\. N\., Kaiser, Ł\., and Polosukhin, I\.Attention is all you need\.In*Advances in Neural Information Processing Systems*, 2017\.
- Wang et al\. \(2020\)Wang, S\., Cao, J\., and Philip, S\. Y\.Deep learning for spatio\-temporal data mining: A survey\.*IEEE Transactions on Knowledge and Data Engineering*, 34\(8\):3681–3700, 2020\.
- Wen et al\. \(2023\)Wen, Q\., Zhou, T\., Zhang, C\., Chen, W\., Ma, Z\., Yan, J\., and Sun, L\.Transformers in time series: A survey\.In*International Joint Conference on Artificial Intelligence*, 2023\.
- Wu et al\. \(2019\)Wu, F\., Souza, A\., Zhang, T\., Fifty, C\., Yu, T\., and Weinberger, K\.Simplifying graph convolutional networks\.In*International Conference on Machine Learning*, 2019\.
- Yang et al\. \(2023\)Yang, L\., Zhang, Z\., Song, Y\., Hong, S\., Xu, R\., Zhao, Y\., Zhang, W\., Cui, B\., and Yang, M\.\-H\.Diffusion models: A comprehensive survey of methods and applications\.*ACM Computing Surveys*, 56\(4\):1–39, 2023\.
- Yi et al\. \(2016\)Yi, X\., Zheng, Y\., Zhang, J\., and Li, T\.ST\-MVL: Filling missing values in geo\-sensory time series data\.In*International Joint Conference on Artificial Intelligence*, 2016\.
- Zheng et al\. \(2015\)Zheng, Y\., Yi, X\., Li, M\., Li, R\., Shan, Z\., Chang, E\., and Li, T\.Forecasting fine\-grained air quality based on big data\.In*ACM SIGKDD International Conference on Knowledge Discovery and Data Mining*, 2015\.
- Zhou et al\. \(2021\)Zhou, H\., Zhang, S\., Peng, J\., Zhang, S\., Li, J\., Xiong, H\., and Zhang, W\.Informer: Beyond efficient transformer for long sequence time\-series forecasting\.In*AAAI Conference on Artificial Intelligence*, 2021\.

## Appendix ARelated Work

Spatiotemporal imputation addresses the problem of reconstructing missing values in data that combine temporal dynamics with spatial dependencies, with applications in domains such as air quality monitoring\(Cao et al\.,[2018](https://arxiv.org/html/2606.06682#bib.bib9)\), traffic forecasting\(Li et al\.,[2018](https://arxiv.org/html/2606.06682#bib.bib25)\), and weather prediction\(Price et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib38)\)\. Early statistical approaches rely on distributional assumptions such as temporal smoothness or local similarity across series\. Examples include autoregressive models\(Ansley & Kohn,[1984](https://arxiv.org/html/2606.06682#bib.bib3)\), expectation\-maximization\(Nelwamondo et al\.,[2007](https://arxiv.org/html/2606.06682#bib.bib36)\), andkk\-nearest neighbors\(Beretta & Santaniello,[2016](https://arxiv.org/html/2606.06682#bib.bib6)\)\. While these methods are simple and theoretically well\-understood, they struggle in real\-world settings where spatial and temporal dependencies are highly nonlinear and heterogeneous\. Their limited capacity to capture complex interactions has motivated the development of more flexible machine learning approaches\.

Neural methods have significantly advanced imputation by better capturing temporal and spatial dependencies\. RNNs and their extensions exploit temporal correlations by recursively propagating hidden states, as in BRITS \(bidirectional recurrent imputation for time series\)\(Cao et al\.,[2018](https://arxiv.org/html/2606.06682#bib.bib9)\), while transformer\-based designs such as SAITS \(self\-attention\-based imputation for time series\)\(Du et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib17)\)introduce attention mechanisms to jointly optimize imputation and reconstruction\. However, these approaches typically operate on individual time series and ignore spatial relationships\. To address this limitation, GNN models have been proposed to incorporate spatial dependencies by propagating information over a graph topology\. Examples include GRIN \(graph recurrent imputation network\)\(Cini et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib11)\), SPIN \(spatiotemporal point inference network\)\(Marisca et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib33)\), and OPCR \(one\-step propagation and confidence\-based refinement\)\(Deng et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib14)\), which combine temporal modeling with graph\-based message passing\. Despite their effectiveness, these iterative propagation schemes are prone to error accumulation and information bottlenecks, particularly under high missing rates\(Cini et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib12)\)\.

Generative models provide an alternative paradigm by directly modeling conditional data distributions, thereby avoiding the accumulation of errors across propagation steps\. Diffusion\-based approaches\(Sohl\-Dickstein et al\.,[2015](https://arxiv.org/html/2606.06682#bib.bib42); Ho et al\.,[2020](https://arxiv.org/html/2606.06682#bib.bib22); Song et al\.,[2021](https://arxiv.org/html/2606.06682#bib.bib44)\)have demonstrated strong generative performance in multiple domains, from vision\(Dhariwal & Nichol,[2021](https://arxiv.org/html/2606.06682#bib.bib15); Rombach et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib40)\)to spatiotemporal data\(Liu et al\.,[2023a](https://arxiv.org/html/2606.06682#bib.bib27); He et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib21)\)\. Conditional diffusion frameworks, such as CSDI \(conditional score\-based diffusion models for imputation\)\(Tashiro et al\.,[2021](https://arxiv.org/html/2606.06682#bib.bib47)\), have been adapted to time\-series imputation, while PriSTI \(spatiotemporal imputation with enhanced prior modeling\)\(Liu et al\.,[2023a](https://arxiv.org/html/2606.06682#bib.bib27)\)and related models extend them to spatiotemporal settings\. However, these methods typically rely on problem\-agnostic Gaussian priors and require computationally expensive iterative denoising\. In practice, accurate inference often demands multiple sampling runs followed by averaging, which limits both efficiency and robustness when applied to large\-scale spatiotemporal data\.

The iterative nature of diffusion models leads to high inference computational costs\. To improve the sampling efficiency of diffusion models, consistency models have been proposed, where the models are trained to map any point at any time step to the trajectory’s starting point\(Song et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib45)\)\. The idea of the consistency model has also been applied to the problem of spatiotemporal imputation, which demonstrates significant improvement in inference computational costs\(Solís\-García et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib43)\)\. This line of approaches, however, still relies on the problem\-agnostic Gaussian priors\. It has been shown that the idea of the consistency model can be extended to accommodate the flow matching framework as well\(Liu et al\.,[2025b](https://arxiv.org/html/2606.06682#bib.bib31)\)\. But the effectiveness of such an extension has not been investigated yet in the spatiotemporal imputation task\.

Flow matching\(Albergo & Vanden\-Eijnden,[2023](https://arxiv.org/html/2606.06682#bib.bib1); Lipman et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib26); Liu et al\.,[2023b](https://arxiv.org/html/2606.06682#bib.bib29)\)generalizes diffusion by directly learning a continuous probability flow from a source to a target distribution, regressing vector fields along transport paths\. Instead of relying on stochastic noise injection, flow matching directly learns a continuous probability flow that transports a source distribution to the target distribution\. FM can accommodate arbitrary source distributions, although Gaussian priors are still often chosen for convenience\. FM avoids stochastic noise injection, reduces training variance, and stabilizes optimization\(Lipman et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib26); Albergo & Vanden\-Eijnden,[2023](https://arxiv.org/html/2606.06682#bib.bib1)\)\. Moreover, the deterministic inference of FM enables efficient sampling without repeated averaging as required in diffusion models\(Liu et al\.,[2023a](https://arxiv.org/html/2606.06682#bib.bib27)\)\. These characteristics make FM particularly suitable for tasks where partial observations are available\(Albergo et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib2); Kollovieh et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib24); Liu et al\.,[2025a](https://arxiv.org/html/2606.06682#bib.bib28)\), since we can build problem\-tailored priors based on it\. By aligning the prior distribution to the target distribution, the performance of FM can be further enhanced\(Tong et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib48)\)\.

## Appendix BProofs

### B\.1Proof of Proposition[3\.1](https://arxiv.org/html/2606.06682#S3.Thmtheorem1)

Our results on the truncation error analysis of the spatiotemporal filtering can be viewed as an extension of the truncation error analysis for spatial filtering presented in\(Behmanesh et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib5)\)\.

The Taylor series for the spatiotemporal filtering defined in \([4](https://arxiv.org/html/2606.06682#S3.E4)\) is given by

𝐗𝝉=\(∑k=0∞\(−τη\)kk\!​𝐋ηk\)​𝐗1M​\(∑m=0∞\(−τξ\)mm\!​𝐋ξm\)\.\\mathbf\{X\}\_\{\\bm\{\\tau\}\}=\\left\(\\sum\_\{k=0\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=0\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\.\(16\)Intuitively, for any nonzero\(τη,τξ\)\(\\tau\_\{\\eta\},\\tau\_\{\\xi\}\), this series propagates information from the whole graph, as no factor in front of the power of the Laplacian is zero\. The truncated version of𝐗𝝉\\mathbf\{X\}\_\{\\bm\{\\tau\}\}is defined by

𝐗𝝉Kη,Kξ=\(∑k=0Kη\(−τη\)kk\!​𝐋ηk\)​𝐗1M​\(∑m=0Kξ\(−τξ\)mm\!​𝐋ξm\)\.\\mathbf\{X\}\_\{\\bm\{\\tau\}\}^\{K\_\{\\eta\},K\_\{\\xi\}\}=\\left\(\\sum\_\{k=0\}^\{K\_\{\\eta\}\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=0\}^\{K\_\{\\xi\}\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\.\(17\)Therefore, we have

‖𝐗𝝉−𝐗𝝉Kη,Kξ‖\\displaystyle\\quad\\left\\\|\\mathbf\{X\}\_\{\\bm\{\\tau\}\}\-\\mathbf\{X\}\_\{\\bm\{\\tau\}\}^\{K\_\{\\eta\},K\_\{\\xi\}\}\\right\\\|\(18\)=‖\(∑k=0∞\(−τη\)kk\!​𝐋ηk\)​𝐗1M​\(∑m=0∞\(−τξ\)mm\!​𝐋ξm\)−\(∑k=0Kη\(−τη\)kk\!​𝐋ηk\)​𝐗1M​\(∑m=0Kξ\(−τξ\)mm\!​𝐋ξm\)‖\\displaystyle=\\Biggl\\\|\\left\(\\sum\_\{k=0\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=0\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\-\\left\(\\sum\_\{k=0\}^\{K\_\{\\eta\}\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=0\}^\{K\_\{\\xi\}\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\\Biggr\\\|=∥\(\(∑k=0Kη\(−τη\)kk\!𝐋ηk\)\+\(∑k=Kη\+1∞\(−τη\)kk\!𝐋ηk\)\)𝐗1M\(∑m=0∞\(−τξ\)mm\!𝐋ξm\)−\\displaystyle=\\Biggl\\\|\\left\(\\left\(\\sum\_\{k=0\}^\{K\_\{\\eta\}\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\+\\left\(\\sum\_\{k=K\_\{\\eta\}\+1\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=0\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\-\(∑k=0Kη\(−τη\)kk\!𝐋ηk\)𝐗1M\(∑m=0Kξ\(−τξ\)mm\!𝐋ξm\)∥\\displaystyle\\quad\\left\(\\sum\_\{k=0\}^\{K\_\{\\eta\}\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=0\}^\{K\_\{\\xi\}\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\\Biggr\\\|=∥\(∑k=Kη\+1∞\(−τη\)kk\!𝐋ηk\)𝐗1M\(∑m=0∞\(−τξ\)mm\!𝐋ξm\)\+\\displaystyle=\\Biggl\\\|\\left\(\\sum\_\{k=K\_\{\\eta\}\+1\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=0\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\+\(∑k=0Kη\(−τη\)kk\!𝐋ηk\)𝐗1M\(∑m=Kξ\+1∞\(−τξ\)mm\!𝐋ξm\)∥\\displaystyle\\quad\\quad\\left\(\\sum\_\{k=0\}^\{K\_\{\\eta\}\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=K\_\{\\xi\}\+1\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\\Biggr\\\|≤‖\(∑k=Kη\+1∞\(−τη\)kk\!​𝐋ηk\)​𝐗1M​\(∑m=0∞\(−τξ\)mm\!​𝐋ξm\)‖\+\\displaystyle\\leq\\Biggl\\\|\\left\(\\sum\_\{k=K\_\{\\eta\}\+1\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=0\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\\Biggr\\\|\+‖\(∑k=0Kη\(−τη\)kk\!​𝐋ηk\)​𝐗1M​\(∑m=Kξ\+1∞\(−τξ\)mm\!​𝐋ξm\)‖\\displaystyle\\quad\\quad\\Biggl\\\|\\left\(\\sum\_\{k=0\}^\{K\_\{\\eta\}\}\\frac\{\(\-\\tau\_\{\\eta\}\)^\{k\}\}\{k\!\}\\mathbf\{L\}\_\{\\eta\}^\{k\}\\right\)\\mathbf\{X\}\_\{1\}^\{M\}\\left\(\\sum\_\{m=K\_\{\\xi\}\+1\}^\{\\infty\}\\frac\{\(\-\\tau\_\{\\xi\}\)^\{m\}\}\{m\!\}\\mathbf\{L\}\_\{\\xi\}^\{m\}\\right\)\\Biggr\\\|≤\(\(∑k=Kη\+1∞\|τη\|kk\!​Csk\)​\(∑m=0∞\|τξ\|mm\!​Ctm\)\+\(∑k=0∞\|τη\|kk\!​Csk\)​\(∑m=Kξ\+1∞\|τξ\|mm\!​Ctm\)\)​‖𝐗1M‖,\\displaystyle\\leq\\left\(\\left\(\\sum\_\{k=K\_\{\\eta\}\+1\}^\{\\infty\}\\frac\{\|\\tau\_\{\\eta\}\|^\{k\}\}\{k\!\}C\_\{s\}^\{k\}\\right\)\\left\(\\sum\_\{m=0\}^\{\\infty\}\\frac\{\|\\tau\_\{\\xi\}\|^\{m\}\}\{m\!\}C\_\{t\}^\{m\}\\right\)\+\\left\(\\sum\_\{k=0\}^\{\\infty\}\\frac\{\|\\tau\_\{\\eta\}\|^\{k\}\}\{k\!\}C\_\{s\}^\{k\}\\right\)\\left\(\\sum\_\{m=K\_\{\\xi\}\+1\}^\{\\infty\}\\frac\{\|\\tau\_\{\\xi\}\|^\{m\}\}\{m\!\}C\_\{t\}^\{m\}\\right\)\\right\)\\\|\\mathbf\{X\}\_\{1\}^\{M\}\\\|,which completes the proof\.

### B\.2Proof of Theorem[3\.2](https://arxiv.org/html/2606.06682#S3.Thmtheorem2)

Let𝐗0∼p0\\mathbf\{X\}\_\{0\}\\sim p\_\{0\}and𝐗1∼q1\\mathbf\{X\}\_\{1\}\\sim q\_\{1\}be the source and target distributions of a flow matching model, while𝐗1M=𝐗1∘𝐌\\mathbf\{X\}\_\{1\}^\{M\}=\\mathbf\{X\}\_\{1\}\\circ\\mathbf\{M\}being the observable data, then the transport cost𝒞FM​\(p0→q1\)\\mathcal\{C\}\_\{\\mathrm\{FM\}\}\(p\_\{0\}\\to q\_\{1\}\)is defined as follows:

𝒞FM​\(p0→q1\)=𝔼𝐗1∼p1​\(𝐗0\)​\[‖𝐗t=0​\(𝐗1M\)−𝐗1‖2\],\\mathcal\{C\}\_\{\\mathrm\{FM\}\}\(p\_\{0\}\\to q\_\{1\}\)=\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\mathbf\{X\}\_\{t=0\}\(\\mathbf\{X\}\_\{1\}^\{M\}\)\-\\mathbf\{X\}\_\{1\}\\right\\\|^\{2\}\\right\],\(19\)where𝐗t=0​\(𝐗1M\)\\mathbf\{X\}\_\{t=0\}\(\\mathbf\{X\}\_\{1\}^\{M\}\)represents the source sample generated from the observable data𝐗1M\\mathbf\{X\}\_\{1\}^\{M\}\. Specifically, for FM with a Gaussian prior, we have𝐗t=0G​a​u​s​s​\(𝐗1M\)=𝐗1M\+𝚺∘\(𝟏−𝐌\)\\mathbf\{X\}\_\{t=0\}^\{Gauss\}\(\\mathbf\{X\}\_\{1\}^\{M\}\)=\\mathbf\{X\}\_\{1\}^\{M\}\+\\bm\{\\Sigma\}\\circ\\left\(\\mathbf\{1\}\-\\mathbf\{M\}\\right\)with𝚺∼𝒩​\(𝟎,σ2​𝐈\)\\bm\{\\Sigma\}\\sim\\mathcal\{N\}\\left\(\\mathbf\{0\},\\sigma^\{2\}\\mathbf\{I\}\\right\)sampled from an isotropic Gaussian distribution\. Therefore, we have

𝒞FM​\(p0G​a​u​s​s→q1\)\\displaystyle\\mathcal\{C\}\_\{\\mathrm\{FM\}\}\(p\_\{0\}^\{Gauss\}\\to q\_\{1\}\)=𝔼𝐗1∼p1​\(𝐗0\)​\[‖𝐗1M\+𝚺∘\(𝟏−𝐌\)−𝐗1‖2\]\\displaystyle=\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\mathbf\{X\}\_\{1\}^\{M\}\+\\bm\{\\Sigma\}\\circ\\left\(\\mathbf\{1\}\-\\mathbf\{M\}\\right\)\-\\mathbf\{X\}\_\{1\}\\right\\\|^\{2\}\\right\]\(20\)=𝔼𝐗1∼p1​\(𝐗0\)​\[‖𝐗1∘𝐌\+𝚺∘\(𝟏−𝐌\)−𝐗1‖2\]\\displaystyle=\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\mathbf\{X\}\_\{1\}\\circ\\mathbf\{M\}\+\\bm\{\\Sigma\}\\circ\\left\(\\mathbf\{1\}\-\\mathbf\{M\}\\right\)\-\\mathbf\{X\}\_\{1\}\\right\\\|^\{2\}\\right\]=𝔼𝐗1∼p1​\(𝐗0\)​\[‖\(𝐗1−𝚺\)∘\(𝟏−𝐌\)‖2\]\\displaystyle=\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\left\(\\mathbf\{X\}\_\{1\}\-\\bm\{\\Sigma\}\\right\)\\circ\\left\(\\mathbf\{1\}\-\\mathbf\{M\}\\right\)\\right\\\|^\{2\}\\right\]=𝔼𝐗1∼p1​\(𝐗0\)​\[‖𝐗1∘\(𝟏−𝐌\)‖2\]\+𝔼𝐗1∼p1​\(𝐗0\)​\[‖𝚺∘\(𝟏−𝐌\)‖2\]\\displaystyle=\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\mathbf\{X\}\_\{1\}\\circ\\left\(\\mathbf\{1\}\-\\mathbf\{M\}\\right\)\\right\\\|^\{2\}\\right\]\+\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\bm\{\\Sigma\}\\circ\\left\(\\mathbf\{1\}\-\\mathbf\{M\}\\right\)\\right\\\|^\{2\}\\right\]=𝔼𝐗1∼p1​\(𝐗0\)​\[‖𝐗1∘\(𝟏−𝐌\)‖2\]\+σ2​tr​\(𝟏−𝐌\)\.\\displaystyle=\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\mathbf\{X\}\_\{1\}\\circ\\left\(\\mathbf\{1\}\-\\mathbf\{M\}\\right\)\\right\\\|^\{2\}\\right\]\+\\sigma^\{2\}\\mathrm\{tr\}\\left\(\\mathbf\{1\}\-\\mathbf\{M\}\\right\)\.For GiFlow, the graph\-informed prior is constructed based on the spatiotemporal filtering defined in \([4](https://arxiv.org/html/2606.06682#S3.E4)\), leading to𝐗t=0G​\(𝐗1M\)=e−τη​𝐋η​𝐗1M​e−τξ​𝐋ξ\\mathbf\{X\}\_\{t=0\}^\{G\}\(\\mathbf\{X\}\_\{1\}^\{M\}\)=e^\{\-\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}\}\\,\\mathbf\{X\}\_\{1\}^\{M\}\\,e^\{\-\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\}\. Sinceτη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}are obtained by optimizing \([5](https://arxiv.org/html/2606.06682#S3.E5)\) withατ=0\\alpha\_\{\\tau\}=0, we have

‖𝐗1−e−τη​𝐋η​𝐗1M​e−τξ​𝐋ξ‖2≤‖𝐗1−𝐗1M‖2\\left\\\|\\mathbf\{X\}\_\{1\}\-e^\{\-\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}\}\\mathbf\{X\}\_\{1\}^\{M\}e^\{\-\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\}\\right\\\|^\{2\}\\leq\\left\\\|\\mathbf\{X\}\_\{1\}\-\\mathbf\{X\}\_\{1\}^\{M\}\\right\\\|^\{2\}\(21\)sinceτη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}represent the optimal solution of \([5](https://arxiv.org/html/2606.06682#S3.E5)\)\. Note that since Problem \([5](https://arxiv.org/html/2606.06682#S3.E5)\) is nonconvex, we can only obtain stationary solutions in practice\. In such cases, we can optimize \([5](https://arxiv.org/html/2606.06682#S3.E5)\) using gradient\-based methods with initializationτη=0\\tau\_\{\\eta\}=0andτξ=0\\tau\_\{\\xi\}=0, then Eq\. \([21](https://arxiv.org/html/2606.06682#A2.E21)\) still holds\. Therefore, we have

𝒞FM​\(p0G→q1\)\\displaystyle\\mathcal\{C\}\_\{\\mathrm\{FM\}\}\(p\_\{0\}^\{G\}\\to q\_\{1\}\)=𝔼𝐗1∼p1​\(𝐗0\)​\[‖𝐗1−e−τη​𝐋η​𝐗1M​e−τξ​𝐋ξ‖2\]\\displaystyle=\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\mathbf\{X\}\_\{1\}\-e^\{\-\\tau\_\{\\eta\}\\mathbf\{L\}\_\{\\eta\}\}\\mathbf\{X\}\_\{1\}^\{M\}e^\{\-\\tau\_\{\\xi\}\\mathbf\{L\}\_\{\\xi\}\}\\right\\\|^\{2\}\\right\]\(22\)≤𝔼𝐗1∼p1​\(𝐗0\)​\[‖𝐗1−𝐗1M‖2\]\\displaystyle\\leq\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\mathbf\{X\}\_\{1\}\-\\mathbf\{X\}\_\{1\}^\{M\}\\right\\\|^\{2\}\\right\]=𝔼𝐗1∼p1​\(𝐗0\)​\[‖𝐗1−𝐗1∘𝐌‖2\]\\displaystyle=\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\mathbf\{X\}\_\{1\}\-\\mathbf\{X\}\_\{1\}\\circ\\mathbf\{M\}\\right\\\|^\{2\}\\right\]≤𝔼𝐗1∼p1​\(𝐗0\)​\[‖𝐗1∘\(𝟏−𝐌\)‖2\]\+σ2​tr​\(𝟏−𝐌\)\.\\displaystyle\\leq\\mathbb\{E\}\_\{\\mathbf\{X\}\_\{1\}\\sim p\_\{1\}\(\\mathbf\{X\}\_\{0\}\)\}\\left\[\\left\\\|\\mathbf\{X\}\_\{1\}\\circ\\left\(\\mathbf\{1\}\-\\mathbf\{M\}\\right\)\\right\\\|^\{2\}\\right\]\+\\sigma^\{2\}\\mathrm\{tr\}\\left\(\\mathbf\{1\}\-\\mathbf\{M\}\\right\)\.Combining Eq\. \([20](https://arxiv.org/html/2606.06682#A2.E20)\) and Eq\. \([22](https://arxiv.org/html/2606.06682#A2.E22)\) completes the proof\.

## Appendix CExperiments

### C\.1Introduction of Datasets

We conduct experiments on three real\-world datasets: two air quality datasets, Air\-36 and AQI, and a traffic dataset, PeMS08\. Air\-36 and AQI collect hourly\-sampled PM2\.5 pollutant data\. Specifically, Air\-36 is collected from 36 monitoring stations in Beijing, while AQI is collected from 437 monitoring stations spread across 43 Chinese cities\. Both air quality datasets have 8760 timesteps, covering one year from 2014/05/01 to 2015/04/30\(Zheng et al\.,[2015](https://arxiv.org/html/2606.06682#bib.bib55)\)\. PeMS08 is a traffic dataset about highway traffic flow in California, which is collected by the Caltrans Performance Measurement System \(PeMS\)\(Chen et al\.,[2001](https://arxiv.org/html/2606.06682#bib.bib10)\)\. Specifically, it is collected from 170 monitoring sensors covering two months from 2016/07/01 to 2016/08/31\. It originally collects data every 30 seconds, and the collected data is then aggregated with a 5\-minute interval\. The statistics of the datasets are summarized in Table[10](https://arxiv.org/html/2606.06682#A3.T10)\.

Table 10:Statistics of the datasets\.
### C\.2Introduction of Baselines

To evaluate the performance of our proposed method, we compare it with various baselines:

- •Mean\-S: imputes the missing values using the spatial average, i\.e\., the mean values of all nodes at a given timestep\.
- •Mean\-T: imputes the missing values using the temporal average, i\.e\., the mean values of all timesteps for a given node\.
- •Linear: imputes the missing values using temporal linear interpolation for each node independently\.
- •KNN: imputes the missing values using the average signal of neighboring nodes\.
- •FP\(Rossi et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib41)\): performs feature propagation to impute the missing values\.
- •BRITS\(Cao et al\.,[2018](https://arxiv.org/html/2606.06682#bib.bib9)\): a bidirectional RNN\-based model\.
- •SAITS\(Du et al\.,[2023](https://arxiv.org/html/2606.06682#bib.bib17)\): a transformer\-based model\.
- •SPIN\(Marisca et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib33)\): an efficient version of spatio\-temporal attention\-based method\.
- •GRIN\(Cini et al\.,[2022](https://arxiv.org/html/2606.06682#bib.bib11)\): a GNN model with bidirectional gated recurrent unit\.
- •OPCR\(Deng et al\.,[2024](https://arxiv.org/html/2606.06682#bib.bib14)\): a GNN model that contains attention\-based one\-step propagation and confidence\-based refinement\.
- •PriSTI\(Liu et al\.,[2023a](https://arxiv.org/html/2606.06682#bib.bib27)\): a conditional diffusion model\.
- •CoSTI\(Solís\-García et al\.,[2025](https://arxiv.org/html/2606.06682#bib.bib43)\): a consistency model\.

### C\.3Implementation Details

For all the experimental results, we give the average performance and standard deviation with 5 independent trials\. For all the datasets, we select windows of length 24\. For each dataset, we randomly select 70%/10%/20% of the data for training, validation, and testing\. The Adam optimizer is used in all experiments for model training\(Kingma & Ba,[2015](https://arxiv.org/html/2606.06682#bib.bib23)\)\. We fix the maximum number of epochs to 300, and we use early stopping on the validation set with a patience of 10 epochs\. To stabilize the training process, we employed an exponential moving average \(EMA\) of the model parameters with a decay rate of 0\.9999\. To solve the ODE, we utilized an Euler solver with 20 steps\. The models’ hyperparameters are tuned based on the results of the validation set\. The search space of hyperparameters are as follows: 1\) learning rate: \{0\.005, 0\.001, 0\.0005\}; 2\) weight decay: \{0, 5e\-4, 5e\-5, 5e\-3\}; 3\) dropout rate: \{0, 0\.1, 0\.2, 0\.3\}; 4\) GNN layers: \{2, 4, 6, 8\}; 5\) embedding dimension: \{32, 64, 128\}; 6\) weight parameterατ\\alpha\_\{\\tau\}: \{0\.1, 0\.01, 0\.001, 0\.0001\}\.

### C\.4Performance with different missing rate

![Refer to caption](https://arxiv.org/html/2606.06682v1/x5.png)Figure 4:Performance on RMSE with different Missing Rate\.To evaluate the robustness of the model under different missing rates, we conduct experiments using the point missing strategy on the Air\-36 dataset, withρ\\rhoranging from 20% to 60%\. The results on MAE and MAPE are showcased in Figure[2](https://arxiv.org/html/2606.06682#S4.F2)\. In the following, we present the results on RMSE in Figure[4](https://arxiv.org/html/2606.06682#A3.F4)\. The results on RMSE exhibit similar patterns as in the MAE and MAPE results, where the imputation performance steadily degrades with increasing rates, and GiFlow consistently outperforms the other baselines across different missing rates\.

### C\.5Filtering factor values with increasing missing rate

To validate the theoretical results presented in Proposition[3\.1](https://arxiv.org/html/2606.06682#S3.Thmtheorem1), we evaluate how the filtering factorsτη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}change with increasing missing rates\. The results on the Air\-36 dataset are showcased in Figure[3](https://arxiv.org/html/2606.06682#S4.F3)\. In the following, we present the results on the AQI dataset in Figure[5](https://arxiv.org/html/2606.06682#A3.F5)\. The patterns ofτη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}with increasing missing rate on the AQI dataset coincide with the patterns on the Air\-36 dataset\. Specifically, the filtering factorsτη\\tau\_\{\\eta\}andτξ\\tau\_\{\\xi\}increase as the missing rate increases, which corroborates the results we obtained from Proposition[3\.1](https://arxiv.org/html/2606.06682#S3.Thmtheorem1)\. Moreover, we observe that the increase ofτη\\tau\_\{\\eta\}is more significant than the increase ofτξ\\tau\_\{\\xi\}, indicating that the model relies more on spatial filtering than temporal filtering\.

### C\.6Applicability to Other Datasets

In this section, we evaluate GiFlow on a traffic dataset about highway traffic flow in California to validate its applicability to other datasets\. Specifically, we conduct experiments using both the point missing strategy and block missing strategy withρ=20%\\rho=20\\%on the PeMS08 dataset\. The results are reported in Table[11](https://arxiv.org/html/2606.06682#A3.T11)\. It can be observed that KNN and FP perform quite bad, indicating that relying only on the spatial dependencies cannot characterize the system dynamics well\. The spatiotemporal methods still achieve good results, highlighting the importance of considering both spatial and temporal dependencies\. The proposed GiFlow achieves the best results on all metrics, validating the applicability of GiFlow to other datasets under different missing patterns\.

![Refer to caption](https://arxiv.org/html/2606.06682v1/x6.png)Figure 5:Filtering factor values with different missing rates on the AQI dataset\.Table 11:Imputation performance on PeMS08 under point and block missing strategies\.

Similar Articles

SDFlow: Similarity-Driven Flow Matching for Time Series Generation

arXiv cs.AI

This paper introduces SDFlow, a similarity-driven flow matching framework for time series generation that addresses exposure bias in autoregressive models. It achieves state-of-the-art performance and inference speedups by operating in the frozen VQ latent space with low-rank manifold decomposition.

Geometry-Aware Image Flow Matching

Hugging Face Daily Papers

This paper introduces geometry-aware flow matching for natural images by treating them as points on a hypersphere, proposing SOT-CFM and SFM methods that improve generative modeling by leveraging the spherical structure of image data.

Recursive Flow Matching

Hugging Face Daily Papers

Introduces Recursive Flow Matching (RecFM), a generative framework for forecasting complex spatiotemporal dynamics that achieves high fidelity with fewer steps and improved accuracy and speed, including up to 20x speedup over diffusion-based emulators.

WarmPrior: Straightening Flow-Matching Policies with Temporal Priors

arXiv cs.LG

Introduces WarmPrior, a method that replaces the standard Gaussian source in flow-matching policies with a temporally grounded prior from recent action history, consistently improving success rates on robotic manipulation tasks by producing straighter probability paths.