betaFeedback

WorksPhysics and Astronomy

Conditional Mean Flows for Frequency-Domain Scattered Wavefield Generation

Abstract

Frequency-domain wavefield modeling underpins seismic imaging and inversion, where repeated Helmholtz solutions become costly as velocity models, source locations, and frequencies vary. Neural operators learn mappings between physical fields, and their accuracy can decline outside the training distribution. Diffusion models learn wavefield distributions and generally require repeated sampling evaluations to produce accurate fields. A conditional mean flows model is introduced for complex scattered-wavefield generation. The analytical background wavefield serves as a condition alongside the velocity model, supplying spatially organized information about the source location and frequency. Learning the scattered wavefield avoids the point-source singularity in the target and supports generalization across these physical conditions. The model estimates the average transport velocity over a finite interval connecting Gaussian noise to the scattered field. This representation captures the accumulated displacement and permits both full-interval one-step generation and interval-partitioned sampling. Trained on OpenFWI, the model is evaluated on in-distribution and out-of-distribution velocity structures, frequency generalization, and inference efficiency. In most evaluated settings, one-step mean flows sampling achieves lower wavefield error than multi-step diffusion. Because each sampling step requires another network evaluation, accurate one-step generation also reduces inference time. These results indicate that mean flows can provide accurate and efficient frequency-domain scattered-wavefield generation.

Introduction

Frequency-domain acoustic modeling is a central component of seismic imaging, reverse-time migration, and full-waveform inversion, all of which require wavefields to be evaluated repeatedly as the velocity model, source position, or frequency changes [1], [2]. By representing the steady-state response at an individual frequency, the frequency-domain formulation is particularly useful for multifrequency and multiscale inversion workflows. Its accuracy is nevertheless critical: in heterogeneous media, small phase errors can accumulate into distorted interference patterns and bias the resulting imaging or inversion. At each frequency, the forward problem reduces to a large, sparse, and indefinite Helmholtz system. Finite-difference, finite-element, and pseudo-spectral schemes provide accurate reference solutions, but their runtime and memory demands grow with model extent, frequency, dimensionality, and the number of sources or right-hand sides [3], [4], [5], [6]. The burden is especially severe for high-resolution three-dimensional models and for workflows that involve many shots and repeated model updates. Although the cost is manageable for an isolated simulation, it becomes a bottleneck in inversion loops, uncertainty studies, and parameter sweeps. The practical challenge is therefore to retain the phase-sensitive accuracy of numerical solvers while making repeated wavefield evaluations substantially cheaper.

Physics-informed neural networks (PINNs) and neural operators have opened two complementary routes toward this goal. PINNs encode the governing equation and boundary conditions in a residual loss, reducing the need for paired labels and providing a mesh-independent coordinate representation [7], [8]. In seismic modeling, PINNs have been applied to Helmholtz wavefield simulation, time-domain acoustic wave-equation simulation, frequency continuation, solving the frequency-domain acoustic and machine-learned Green’s-function solutions [9], [10], [11], [12], [13]. Their limitation is that solving a new medium or source configuration still requires a costly optimization process, while oscillatory wavefields make spectral bias, residual weighting, and high-frequency convergence difficult to control. Neural operators instead represent mappings between discretized physical fields. In a Fourier neural operator, the integral kernel is parameterized in the Fourier domain, allowing learned spectral interactions to couple distant spatial locations in a field-to-field transformation [14]. These methods have been applied to wavefield forward and inverse problems, elastic wave-equation simulation and scattered-wavefield prediction, [15], [16], [17], [18], [19], [20], [21]. These models are typically used as deterministic regressors: their accuracy depends on the coverage of the training-data distribution, fine-scale and high-frequency information may be lost during prediction, and generalization to new geological structures, frequencies, or source locations remains difficult.

Generative models offer a probabilistic alternative to deterministic surrogates. Diffusion models first became widely used for high-fidelity image generation by learning the data distribution through a gradual noise-corruption process and reversing that process during sampling [22]. In geophysics, diffusion models have been applied to seismic-data interpolation, seismic-noise attenuation, resolution enhancement, full-waveform-inversion regularization, and velocity-model generation [23], [24], [25], [26], [27]. For problems governed by partial differential equations (PDEs), this probabilistic formulation is especially useful because it can represent complex solution distributions and condition field reconstruction on physical constraints or partial observations [28], [29]. More recently, Cheng et al. [30] developed a physics-guided generative neural operator for Helmholtz wavefield solutions by incorporating Helmholtz-residual information into conditional diffusion sampling. Diffusion models learn to reverse a sequence of noise levels, so each sample is progressively denoised through multiple Markov transitions and typically requires a network evaluation at each transition [22], [31]. This repeated sampling increases inference cost, while aggressively reducing the number of steps can degrade wavefield fidelity. These limitations motivate transport formulations with a more direct connection between the noise and data distributions.

Flow Matching addresses this limitation through deterministic transport. It learns a velocity field for an ordinary differential equation (ODE) connecting a Gaussian prior to the data distribution [32], [33]. Recent flow-matched neural operators extend this idea to learning continuous-time PDE dynamics [34]. Because inference follows this continuous trajectory rather than a long denoising chain, the trajectory can be integrated with larger time steps; the required number of evaluations is determined by the numerical accuracy of the ODE integration and the curvature of the learned marginal trajectory. Thus, Flow Matching can reduce sampling cost, but a coarse solver still introduces integration error. The mean flows model addresses this limitation by learning the displacement accumulated over a finite interval. It parameterizes the interval-average velocity as a function of the current state and the requested interval [35]. The same parameterization can be evaluated over a sequence of intervals for a controllable rollout, while the full prior-to-data interval gives a one-step operating point. The mean flows identity provides the training relation between average and instantaneous velocities and makes the interval-average field tractable to learn [35], [36].

To reduce the cost of repeated wavefield simulations and generative sampling, a conditional mean flows framework is introduced for complex frequency-domain scattered-wavefield generation [35], [36]. The central challenge is to obtain a sufficiently accurate wavefield update without evaluating a generative transport or denoising field at every intermediate step. The mean flows model addresses this challenge by learning the average transport velocity over a finite interval from Gaussian noise to the target field. The interval-average velocity represents the displacement accumulated along the transport path, supporting a full-interval update and partitioned rollouts when additional refinement is required. The condition combines the velocity model with the real and imaginary components of an analytical background wavefield, providing source and frequency information, while the scattered-wavefield target removes the point-source singularity [20]. On the OpenFWI benchmark [37], the normalized scattered field is connected to Gaussian noise through a conditional linear path. The resulting framework is evaluated on in-distribution and out-of-distribution geological structures, frequency extrapolation, and inference efficiency. The results show that one-step mean flows sampling generally produces more accurate wavefields than multi-step diffusion in the evaluated in-distribution settings and at training frequencies.

Method

The Helmholtz Equation

Frequency-domain acoustic wave propagation is considered in a two-dimensional heterogeneous medium. Let U(x,z,ω)U(x,z,\omega) denote the complex-valued total wavefield at spatial coordinates (x,z)(x,z) and angular frequency ω\omega, and let v(x,z)v(x,z) denote the spatially varying physical velocity model. The angular frequency is related to the frequency ff in Hz by ω=2πf\omega= 2\pi f. To separate the source response from the velocity-induced scattering, the total wavefield is decomposed into a background component U0U_0 and a scattered component δU\delta U [9]. The scattered wavefield then satisfies

{ω2v02δU+∇2δU+ω2(1v2−1v02)U0=0,δU=U−U0,(1)\begin{cases} \frac{\omega^2}{v_0^2}\delta U + \nabla^2\delta U + \omega^2\left(\frac{1}{v^2}-\frac{1}{v_0^2}\right)U_0 = 0,\\ \delta U = U-U_0, \tag*{(1)} \end{cases}

where v0v_0 is a reference velocity used to construct the background wavefield, U0U_0 is the corresponding solution in the reference medium, and ∇2\nabla^2 is the spatial Laplacian. This formulation removes the point-source singularity from the learning target and places the velocity dependence in the scattering term.

For a constant reference velocity v0v_0, the background wavefield can be computed analytically from the two-dimensional Green’s function:

U0(x,z)=i4H0(2)(ωv0(x−xs)2+(z−zs)2),(2)U_0(x,z)=\frac{\mathrm{i}}{4}H_0^{(2)}\left(\frac{\omega}{v_0}\sqrt{(x-x_s)^2+(z-z_s)^2}\right), \tag*{(2)}

where H0(2)H_0^{(2)} denotes the zeroth-order Hankel function of the second kind and (xs,zs)(x_s,z_s) is the source location. The analytical background field contains the source-position and frequency information in a spatially organized form. Accordingly, the velocity model and the real and imaginary parts of U0U_0 are used as the input condition, and the real and imaginary parts of δU\delta U are predicted.

In this study, the velocity model and the real and imaginary components of the analytical background wavefield are used as inputs to predict the corresponding scattered wavefield. This formulation avoids the point-source singularity in the learning target and provides explicit prior information about the source location and frequency, which can improve generalization across source configurations and frequencies [9], [38]. The conditional operator is therefore written as

(Re⁡U0,Im⁡U0,v)⟼(Re⁡δU,Im⁡δU),(3)(\operatorname{Re}U_0,\operatorname{Im}U_0,v)\longmapsto(\operatorname{Re}\delta U,\operatorname{Im}\delta U), \tag*{(3)}

where Re⁡(⋅)\operatorname{Re}(\cdot) and Im⁡(⋅)\operatorname{Im}(\cdot) denote the real and imaginary parts, respectively. This representation maps physical input fields to frequency-domain scattered responses.

Generative Diffusion Model

Diffusion models define a probabilistic generative process by gradually perturbing data toward a Gaussian prior and learning a reverse process for sample generation [22]. The scattered-wavefield representation provides a target for conditional generative modeling. Let x0x_0 denote the normalized two-channel scattered wavefield, and define the conditioning field as C=(Re⁡U0,Im⁡U0,v)C=(\operatorname{Re}U_0,\operatorname{Im}U_0,v). The model, with trainable parameters θ\theta, approximates the conditional distribution of x0\mathbf{x}_0 given C\mathbf{C}. The forward process maps each conditional wavefield to a common Gaussian prior, while the reverse process uses C\mathbf{C} to transform a Gaussian sample into a scattered wavefield associated with the specified velocity model, source position, and frequency.

In the forward process, Gaussian noise is added through a discrete schedule indexed by n=1,…,Tn = 1,\ldots,T, where TT is the total number of noise levels. The clean scattered wavefield is denoted by x0\mathbf{x}_0, and xn\mathbf{x}_n denotes its noisy state at step nn. Let βn∈(0,1)\beta_n \in(0,1) be the variance increment at step nn, define αn=1−βn\alpha_n = 1-\beta_n, and let αˉn=∏j=1nαj\bar{\alpha}_n = \prod_{j=1}^{n}\alpha_j be the cumulative signal-retention factor. With I\mathbf{I} denoting the identity matrix in the field space, one transition of the fixed forward Markov chain is

q(xn∣xn−1)=N(xn;αnxn−1,βnI).(4)q(\mathbf{x}_n \mid\mathbf{x}_{n-1}) = \mathcal{N}\left(\mathbf{x}_n;\sqrt{\alpha_n}\mathbf{x}_{n-1},\beta_n\mathbf{I}\right). \tag*{(4)}

Here, q(xn∣xn−1)q(\mathbf{x}_n \mid\mathbf{x}_{n-1}) is the prescribed forward transition, so the next state depends only on the current state and the noise-schedule parameters. Repeated application of these transitions gives the marginal distribution at any noise level:

q(xn∣x0)=N(xn;αˉnx0,(1−αˉn)I).(5)q(\mathbf{x}_n \mid\mathbf{x}_0) = \mathcal{N}\left(\mathbf{x}_n;\sqrt{\bar{\alpha}_n}\mathbf{x}_0,(1-\bar{\alpha}_n)\mathbf{I}\right). \tag*{(5)}

The coefficient αˉn\bar{\alpha}_n controls the retained contribution of the clean field, whereas 1−αˉn1-\bar{\alpha}_n gives the accumulated noise variance. Equivalently, a noisy field can be sampled using the reparameterization

xn=αˉnx0+1−αˉnϵ,ϵ∼N(0,I),(6)\mathbf{x}_n = \sqrt{\bar{\alpha}_n}\mathbf{x}_0 + \sqrt{1-\bar{\alpha}_n}\boldsymbol{\epsilon},\quad\boldsymbol{\epsilon}\sim\mathcal{N}(\mathbf{0},\mathbf{I}), \tag*{(6)}

where ϵ\boldsymbol{\epsilon} is a standard Gaussian field with the same dimensions as x0\mathbf{x}_0. When αˉT\bar{\alpha}_T is sufficiently small, xT\mathbf{x}_T approaches the isotropic Gaussian prior N(0,I)\mathcal{N}(\mathbf{0},\mathbf{I}). A training instance therefore consists of a paired field and condition (x0,C)(\mathbf{x}_0,\mathbf{C}), a sampled noise level nn, and the corresponding noise realization ϵ\boldsymbol{\epsilon}.

The reverse process estimates a clean wavefield from the current noisy state and the physical condition. In the implementation, the network directly predicts x^0,θ(xn,n∣C)\hat{\mathbf{x}}_{0,\theta}(\mathbf{x}_n,n\mid\mathbf{C}). A Gaussian reverse transition can then be written as

pθ(xn−1∣xn,C)=N(xn−1;μθ(xn,n∣C),σn2I).(7)p_\theta(\mathbf{x}_{n-1}\mid\mathbf{x}_n,\mathbf{C})=\mathcal{N}\left(\mathbf{x}_{n-1};\boldsymbol{\mu}_\theta(\mathbf{x}_n,n\mid\mathbf{C}),\sigma_n^2\mathbf{I}\right). \tag*{(7)}

where pθp_\theta is the learned reverse kernel, μθ\boldsymbol{\mu}_\theta is its mean, and σn2I\sigma_n^2\mathbf{I} is its covariance. With αˉ0=1\bar{\alpha}_0=1, the posterior mean associated with the clean-field prediction is

μθ(xn,n∣C)=αˉn−1βn1−αˉnx^0,θ(xn,n∣C)+αn(1−αˉn−1)1−αˉnxn.(8)\boldsymbol{\mu}_\theta(\mathbf{x}_n,n\mid\mathbf{C}) = \frac{\sqrt{\bar{\alpha}_{n-1}}\beta_n}{1-\bar{\alpha}_n}\hat{\mathbf{x}}_{0,\theta}(\mathbf{x}_n,n\mid\mathbf{C}) + \frac{\sqrt{\alpha_n}(1-\bar{\alpha}_{n-1})}{1-\bar{\alpha}_n}\mathbf{x}_n. \tag*{(8)}

The same forward schedule determines the coefficients in this reverse mean. The direct clean-field prediction is trained with

Ldiff=Ex0,C,n,ϵ[∥x^0,θ(xn,n∣C)−x0∥22].(9)\mathcal{L}_{\mathrm{diff}}=\mathbb{E}_{\mathbf{x}_0,\mathbf{C},n,\boldsymbol{\epsilon}}\left[\left\|\hat{\mathbf{x}}_{0,\theta}(\mathbf{x}_n,n\mid\mathbf{C})-\mathbf{x}_0\right\|_2^2\right]. \tag*{(9)}

The objective Ldiff\mathcal{L}_{\mathrm{diff}} is a denoising regression: it trains the network to recover the clean scattered wavefield x0\mathbf{x}_0 from the noisy state xn\mathbf{x}_n while using the condition C\mathbf{C}. Here and below, E\mathbb{E} denotes the expectation with respect to the random variables listed in its subscript. For a field vector q\mathbf{q} with NN scalar entries, ∥q∥2=(∑i=1Nqi2)1/2\|\mathbf{q}\|_2=\left(\sum_{i=1}^{N}q_i^2\right)^{1/2} denotes the discrete Euclidean norm.

Algorithm 1 Diffusion Training and DDIM Sampling
Training
1: for each optimization iteration do
2: Sample (x0,C)(\mathbf{x}_0,\mathbf{C}), n∈{1,…,T}n\in\{1,\ldots,T\}, and ϵ∼N(0,I)\boldsymbol{\epsilon}\sim\mathcal{N}(\mathbf{0},\mathbf{I})
3: xn←αˉnx0+1−αˉnϵ\mathbf{x}_n\leftarrow\sqrt{\bar{\alpha}_n}\mathbf{x}_0+\sqrt{1-\bar{\alpha}_n}\boldsymbol{\epsilon}
4: Update θ\theta using Ldiff\mathcal{L}_{\mathrm{diff}} in (9)
5: end for
DDIM sampling with T=nL>⋯>n0=0T=n_L>\cdots>n_0=0
6: Initialize xnL∼N(0,I)\mathbf{x}_{n_L}\sim\mathcal{N}(\mathbf{0},\mathbf{I})
7: for j=L,…,1j=L,\ldots,1 do
8: Set n←njn\leftarrow n_j, n′←nj−1n'\leftarrow n_{j-1}; predict x^0,θ(xn,n∣C)\hat{\mathbf{x}}_{0,\theta}(\mathbf{x}_n,n\mid\mathbf{C})
9: Compute ϵ^n\hat{\boldsymbol{\epsilon}}_n by (10)
10: Update xn′\mathbf{x}_{n'} by (11)
11: end for
12: return x^0←xn0\hat{\mathbf{x}}_0\leftarrow\mathbf{x}_{n_0}

Table 1.

norm. At inference, the process starts from xT∼N(0,I)\mathbf{x}_T\sim\mathcal{N}(\mathbf{0},\mathbf{I}). For the deterministic denoising diffusion implicit model (DDIM) sampler used in the experiments, let n′n' be the next lower selected noise level and define

ϵ^n=xn−αˉnx^0,θ(xn,n∣C)1−αˉn,(10)\hat{\boldsymbol{\epsilon}}_n=\frac{\mathbf{x}_n-\sqrt{\bar{\alpha}_n}\hat{\mathbf{x}}_{0,\theta}(\mathbf{x}_n,n\mid\mathbf{C})}{\sqrt{1-\bar{\alpha}_n}}, \tag*{(10)}

and update the state according to

xn′=αˉn′x^0,θ(xn,n∣C)+1−αˉn′ϵ^n.(11)\mathbf{x}_{n'}=\sqrt{\bar{\alpha}_{n'}}\hat{\mathbf{x}}_{0,\theta}(\mathbf{x}_n,n\mid\mathbf{C})+\sqrt{1-\bar{\alpha}_{n'}}\hat{\boldsymbol{\epsilon}}_n. \tag*{(11)}

The final state is taken as the generated clean-field estimate. Because each selected noise level requires a new network evaluation, multi-step DDIM sampling incurs a cost that grows with the number of sampling steps [31]. Algorithm 1 summarizes training and DDIM sampling.

Flow Matching

Diffusion models can be formulated as stochastic differential equations (SDEs), whose reverse dynamics progressively remove noise along potentially complex denoising trajectories. Accurately resolving these dynamics can require many sampling steps. Flow Matching learns a velocity field that defines an ordinary differential equation (ODE) transporting a Gaussian prior to the data distribution. By allowing simple conditional paths, such as linear interpolation between noise and data, this formulation can simplify the transport dynamics and permit larger integration steps, reducing the number of network evaluations required for sampling [32].

Given the conditioning field C\mathbf{C} defined above, let ϵ∼N(0,I)\boldsymbol{\epsilon}\sim\mathcal{N}(\mathbf{0},\mathbf{I}) be a Gaussian field and let x0\mathbf{x}_0 denote the normalized two-channel clean scattered wavefield drawn from the conditional data distribution. Here, x0\mathbf{x}_0 corresponds to the clean field in the discrete diffusion formulation, while x0=ϵ\mathbf{x}_0=\boldsymbol{\epsilon} denotes the noise endpoint of the continuous transport path. A time variable t∈[0,1]t\in[0,1] indexes the transport process, where t=0t=0 represents the Gaussian noise state and t=1t=1 represents the clean scattered wavefield.

The conditional linear transport path is defined as

zt=(1−t)ϵ+tx0,(12)\mathbf{z}_t=(1-t)\boldsymbol{\epsilon}+t\mathbf{x}_0, \tag*{(12)}

Algorithm 2 Flow Matching Training and Sampling

Training

  1. for each optimization iteration do

  2. Sample (x0,C), ϵ∼N(0,I)(x_0, \mathrm{C}),\ \epsilon\sim\mathcal{N}(0,\mathrm{I}), and t∈[0,1]t \in[0,1]

  3. zt←(1−t)ϵ+tx0z_t \gets(1-t)\epsilon+ t x_0; vc←x0−ϵ\mathbf{v}^{\mathrm{c}} \gets x_0-\epsilon

  4. Update θ\theta using LFM\mathcal{L}_{\mathrm{FM}} in Equation (14)

  5. end for

Sampling with 0=t0<⋯<tK=10=t_0<\cdots<t_K=1

  1. Initialize zt0=ϵ∼N(0,I)z_{t_0}=\epsilon\sim\mathcal{N}(0,\mathrm{I})

  2. for k=0,…,K−1k=0,\ldots,K-1 do

  3. ztk+1←ztk+(tk+1−tk)vθ(ztk,tk∣C)z_{t_{k+1}}\gets z_{t_k}+(t_{k+1}-t_k)\mathbf{v}_{\theta}(z_{t_k},t_k\mid\mathrm{C})

  4. end for

  5. return x^0←ztK\hat{x}_0\gets z_{t_K}

which connects the Gaussian field at t=0t=0 to the clean scattered wavefield at t=1t=1. For fixed endpoints, differentiating with respect to tt gives

vtc=dztdt=x0−ϵ.(13)\mathbf{v}^{\mathrm{c}}_t=\frac{\mathrm{d}z_t}{\mathrm{d}t}=x_0-\epsilon. \tag*{(13)}

This endpoint difference supplies a constant velocity target for each sampled pair. A neural velocity field vθ\mathbf{v}_{\theta}, with trainable parameters θ\theta, predicts the transport velocity from the intermediate field, time, and physical condition C. It is trained using

LFM=Ex0,C,ϵ,t∥vθ(zt,t∣C)−(x0−ϵ)∥22.(14)\mathcal{L}_{\mathrm{FM}}=\mathbb{E}_{x_0,\mathrm{C},\epsilon,t}\left\lVert\mathbf{v}_{\theta}(z_t,t\mid\mathrm{C})-(x_0-\epsilon)\right\rVert_2^2. \tag*{(14)}

Here, tt is sampled uniformly from [0,1][0,1], and the Gaussian field is sampled independently of the training wavefield. The target is available directly from the sampled endpoints, so training requires no trajectory integration. The learned field approximates the instantaneous transport velocity v(z,t∣C)\mathbf{v}(z,t\mid\mathrm{C}).

During inference, sampling starts from a Gaussian field and follows the learned velocity field from t=0t=0 to t=1t=1, with the physical condition C held fixed. At each Euler step, the current field is updated by the predicted velocity multiplied by the step size. The final field gives the generated scattered wavefield. Each step requires a new network evaluation, so finer time discretization increases sampling cost. Algorithm 2 summarizes training and Euler sampling.

Mean Flows

Flow Matching learns an instantaneous velocity field along a continuous probability path and generates samples by integrating the corresponding ODE. Because finite displacements must be accumulated through numerical integration, a coarse time discretization can introduce integration error. The mean flows model instead parameterizes the average velocity over a finite interval, as illustrated in Figure 1. Multiplying this average by the interval length gives the displacement from the Gaussian-noise endpoint ϵ\epsilon toward the clean scattered-wavefield endpoint x0x_0. The instantaneous velocity describes local motion at one time, while the interval-average velocity describes the net transport between two times. Geng et al. [35] derive an identity between these velocities, which provides a training relation for the interval-average field. This parameterization supports either a full-interval update or a sequence of shorter updates when a finer numerical approximation is needed.

Figure 1. Schematic of instantaneous and interval-average transport velocities. The Gaussian state z0=ϵz_0=\epsilon at t=0t=0 is transported to the clean two-channel scattered wavefield x0x_0 at t=1t=1. Blue and black dashed arrows denote local instantaneous velocity v\mathbf{v} and finite-interval average velocity u\mathbf{u}, respectively, with zt−zr=(t−r)uz_t-z_r=(t-r)\mathbf{u} over [r,t][r,t]. Orange curves show marginal ODE trajectories, gray dashed lines show conditional linear paths, and green dots mark intermediate states; the endpoint images show the real and imaginary channels.

Consider an interval [r,t][r,t] with 0≤r≤t≤10\le r\le t\le1, where rr and tt are the start and end times, respectively. For r<tr<t, the interval-average velocity is

u(zr,r,t∣C)=1t−r∫rtv(zτ,τ∣C) dτ.(15)\mathbf{u}(z_r,r,t\mid\mathrm{C})=\frac{1}{t-r}\int_r^t\mathbf{v}(z_\tau,\tau\mid\mathrm{C})\,\mathrm{d}\tau. \tag*{(15)}

For r=tr=t, the interval-average velocity is defined by continuity as u(zr,r,r∣C)=v(zr,r∣C)\mathbf{u}(z_r,r,r\mid\mathrm{C})=\mathbf{v}(z_r,r\mid\mathrm{C}). The endpoint displacement over [r,t][r,t] is therefore

(t−r)u(zr,r,t∣C)=∫rtv(zτ,τ∣C) dτ.(16)(t-r)\mathbf{u}(z_r,r,t\mid\mathrm{C})=\int_r^t\mathbf{v}(z_\tau,\tau\mid\mathrm{C})\,\mathrm{d}\tau. \tag*{(16)}

Differentiating this relation with respect to the lower endpoint rr while holding tt and C fixed gives the mean flows identity

v(zr,r∣C)=u(zr,r,t∣C)−(t−r)ddru(zr,r,t∣C),(17)\mathbf{v}(z_r,r\mid\mathrm{C})=\mathbf{u}(z_r,r,t\mid\mathrm{C})-(t-r)\frac{\mathrm{d}}{\mathrm{d}r}\mathbf{u}(z_r,r,t\mid\mathrm{C}), \tag*{(17)}

where dzr/dr=v(zr,r∣C)\mathrm{d}z_r/\mathrm{d}r=\mathbf{v}(z_r,r\mid\mathrm{C}). This form directly relates the instantaneous velocity at the start of the interval to the interval-average velocity and its total derivative. The derivative follows the transport path, so it includes both the change in zrz_r and the explicit dependence on rr. The chain rule gives

dudr=∂zu v+∂ru.(18)\frac{\mathrm{d}\mathbf{u}}{\mathrm{d}r}=\partial_z\mathbf{u}\,\mathbf{v}+\partial_r\mathbf{u}. \tag*{(18)}

The state derivative in Equation (18) is a Jacobian–vector product (JVP), but it depends on the instantaneous velocity v\mathbf{v}, which is not directly predicted by the main interval-average head. An auxiliary head aθ(zr,r∣C)\mathbf{a}_{\theta}(z_r,r\mid\mathrm{C}) estimates this velocity while sharing the conditional backbone with uθ\mathbf{u}_{\theta}. Using the tangent (aθ,1,0)(\mathbf{a}_{\theta},1,0), which advances the state in the direction aθ\mathbf{a}_{\theta} and increases rr at unit rate while holding tt fixed, gives

Jθ=∂zuθaθ+∂ruθ.(19)\mathbf{J}_{\theta}=\partial_z\mathbf{u}_{\theta}\mathbf{a}_{\theta}+\partial_r\mathbf{u}_{\theta}. \tag*{(19)}

Substituting this JVP for the total derivative yields the compound instantaneous-velocity prediction

vθ=uθ−(t−r)sg⁡(Jθ).(20)\mathbf{v}_{\theta}=\mathbf{u}_{\theta}-(t-r)\operatorname{sg}(\mathbf{J}_{\theta}). \tag*{(20)}

Algorithm 3 Mean Flows Training and Sampling

Training

  1. for each optimization iteration do

  2. Sample (x0,C)(x_0, C), ϵ∼N(0,I)\epsilon\sim\mathcal{N}(0, I), and 0≤r≤t≤10 \le r \le t \le1

  3. zr←(1−r)ϵ+rx0z_r \leftarrow(1-r)\epsilon+ r x_0; vc←x0−ϵ\mathbf{v}^{\mathrm{c}} \leftarrow x_0-\epsilon

  4. Evaluate uθ(zr,r,t∣C)u_\theta(z_r,r,t \mid C) and aθ(zr,r∣C)a_\theta(z_r,r \mid C)

  5. Jθ←JVP⁡(z,r,t)[uθ;(aθ,1,0)]J_\theta\leftarrow\operatorname{JVP}_{(z,r,t)}[u_\theta;(a_\theta,1,0)]

  6. Vθ←uθ−(t−r)sg⁡(Jθ)V_\theta\leftarrow u_\theta-(t-r)\operatorname{sg}(J_\theta)

  7. Update θ\theta using LMF\mathcal{L}_{\mathrm{MF}} in (21)

  8. end for

Sampling with 0=t0<⋯<tK=10=t_0<\cdots<t_K=1

  1. Initialize zt0=ϵ∼N(0,I)z_{t_0}=\epsilon\sim\mathcal{N}(0,I)

  2. for k=0,…,K−1k=0,\ldots,K-1 do

  3. ztk+1←ztk+(tk+1−tk)uθ(ztk,tk,tk+1∣C)z_{t_{k+1}}\leftarrow z_{t_k}+(t_{k+1}-t_k)u_\theta(z_{t_k},t_k,t_{k+1}\mid C)

  4. end for

  5. return x^0←ztK\hat{x}_0\leftarrow z_{t_K}

Here VθV_\theta combines the interval-average prediction with the finite-interval correction and therefore approximates v(zr,r∣C)\mathbf{v}(z_r,r\mid C). The stop-gradient operator sg⁡(⋅)\operatorname{sg}(\cdot) blocks gradients through the JVP correction during optimization but leaves the correction in the forward value. The compound and auxiliary predictions are trained toward the conditional path velocity with the objective

LMF=Ex0,C,ϵ,r,t[w(Vθ−vrc)∥Vθ−vrc∥22+λauxw(aθ−vrc)∥aθ−vrc∥22].(21)\mathcal{L}_{\mathrm{MF}}=\mathbb{E}_{x_0,C,\epsilon,r,t}\left[w\left(V_\theta-\mathbf{v}^{\mathrm{c}}_r\right)\left\|V_\theta-\mathbf{v}^{\mathrm{c}}_r\right\|_2^2+\lambda_{\mathrm{aux}}w\left(a_\theta-\mathbf{v}^{\mathrm{c}}_r\right)\left\|a_\theta-\mathbf{v}^{\mathrm{c}}_r\right\|_2^2\right]. \tag*{(21)}

The first term in LMF\mathcal{L}_{\mathrm{MF}} supervises VθV_\theta, and the second trains aθa_\theta for the JVP. The adaptive weight w(e)=sg⁡((∥e∥22+ϵw)−pw)w(e)=\operatorname{sg}((\lVert e\rVert_2^2+\epsilon_w)^{-p_w}) is detached and applied per sample, with pw>0p_w>0 and ϵw>0\epsilon_w>0. The target vrc=x0−ϵ\mathbf{v}^{\mathrm{c}}_r=x_0-\epsilon is fixed by the sampled wavefield and Gaussian field. During inference, only the main head is needed because it supplies the interval-average velocity for the transport update. A KK-step mean flows rollout over 0=t0<t1<⋯<tk⋯<tK=10=t_0<t_1<\cdots<t_k\cdots<t_K=1 is

ztk+1=ztk+(tk+1−tk)uθ(ztk,tk,tk+1∣C).(22)z_{t_{k+1}}=z_{t_k}+(t_{k+1}-t_k)u_\theta(z_{t_k},t_k,t_{k+1}\mid C). \tag*{(22)}

The rollout length KK is selected according to the desired balance between accuracy and inference cost. The full-interval update is the special case K=1K=1: setting r=0r=0, t=1t=1, and z0=ϵz_0=\epsilon maps a Gaussian sample directly to the normalized scattered wavefield by

x^0=ϵ+uθ(ϵ,0,1∣C),(23)\hat{x}_0=\epsilon+u_\theta(\epsilon,0,1\mid C), \tag*{(23)}

which requires one evaluation of the conditional network and avoids numerical ODE integration in the one-step update. Larger values of KK apply the same learned interval-average field over shorter intervals and provide additional transport refinement. Algorithm 3 summarizes training and sampling. Sampling runs from the Gaussian prior at t=0t=0 to the clean wavefield at t=1t=1, following the endpoint convention in Figure 1.

Results

Evaluation Metrics

The relative L2L_2 error (Rel L2L_2) is used as the primary evaluation metric. For a predicted wavefield δU^\delta\hat{U} and the corresponding reference wavefield δU\delta U, it is defined as

Rel⁡L2=∥δU^−δU∥2∥δU∥2,(24)\operatorname{Rel}L_2=\frac{\left\|\delta\hat{U}-\delta U\right\|_2}{\left\|\delta U\right\|_2}, \tag*{(24)}

where ∥⋅∥2\lVert\cdot\rVert_2 is the discrete Euclidean norm defined above. Rel L2L_2 is dimensionless and measures the prediction error relative to the reference magnitude, with smaller values indicating more accurate predictions.

To quantify inference efficiency, the speed-up ratio is defined as

S=TrefTmethod,(25)S=\frac{T_{\mathrm{ref}}}{T_{\mathrm{method}}}, \tag*{(25)}

where TrefT_{\mathrm{ref}} and TmethodT_{\mathrm{method}} denote the runtimes of the reference numerical simulation and the evaluated generative model, respectively. A value of S>1S>1 indicates acceleration relative to the reference.

Experimental Configuration

The dataset for frequency-domain acoustic wave propagation is constructed from the CurveVel-A and FlatFault-A families of OpenFWI, using the four subsets CurveVel-A-1, CurveVel-A-2, FlatFault-A-1, and FlatFault-A-2 [37]. Each subset contains 500 original velocity models, of which 480 are assigned to training and 20 to validation before augmentation. Each original model is paired with one Gaussian-smoothed variant, with the smoothing standard deviation sampled uniformly between 1 and 2 grid cells. Original models and their smoothed variants remain in the same split, giving 3,840 training models and 160 validation models. Each model is discretized on a 70×7070\times70 grid with 0.010.01 km spacing and paired with all integer frequencies from 3 to 16 Hz and four fixed source locations at grid indices (z,x)=(2,21)(z,x)=(2,21), (2,31)(2,31), (2,41)(2,41), and (2,51)(2,51). An analytical Green’s function for a constant background velocity of 1.5 km/s supplies the real and imaginary background-wavefield channels. For every model–frequency–source combination, the scattered-field Helmholtz equation is solved with a nine-point isotropic finite-difference stencil [39], a 12-cell absorbing boundary layer, and a sparse direct solver. The resulting two-channel scattered fields yield 215,040 training samples and 8,960 validation samples.

The diffusion and mean flows models share the same conditional U-Net backbone. The network takes two state channels together with three conditioning channels—the real and imaginary background fields and the velocity model—and produces a two-channel scattered-wavefield prediction. The base width is 29, the channel multipliers are (1,2,4,8,16)(1,2,4,8,16), and each resolution level contains two residual blocks. Attention uses four heads at downsampling factors of 4, 8, and 16. The diffusion model uses a 1,000-step cosine noise schedule and directly predicts x0x_0, followed by deterministic DDIM sampling with η=0\eta=0. The mean flows model uses the same spatial backbone, augmented with two time inputs and an auxiliary instantaneous-velocity head. Its improved training formulation adopts a linear transport path and logit-normal endpoint sampling with (μLN,σLN)=(−0.4,1.0)(\mu_{\mathrm{LN}},\sigma_{\mathrm{LN}})=(-0.4,1.0). Unequal endpoints are used for 50% of samples, including the full interval (r,t)=(0,1)(r,t)=(0,1) for 15% of all samples; the remaining samples use r=tr=t. Adaptive weighting uses (pw,ϵw)=(1.0,0.01)(p_w,\epsilon_w)=(1.0,0.01), with unit auxiliary-velocity loss weight and a time-input scale of 1000. A deterministic Fourier neural operator (FNO) [14] provides a direct-regression baseline. It has four Fourier layers of width 128, retains 24 modes along each spatial dimension, uses rank-22 spectral factors, and includes coordinate channels and eight-cell padding. FNO has approximately 52.3 million parameters, compared with approximately 51.6 million for each generative model, and produces a prediction in one network evaluation.

All three models are trained for 200,000 optimization steps with an initial learning rate of 10−410^{-4}. Diffusion and mean flows use batch size 16 and AdamW weight decay 5×10−55\times10^{-5}; FNO uses batch size 8 and weight decay 10−410^{-4}. All methods use (β1,β2)=(0.9,0.999)(\beta_1,\beta_2)=(0.9,0.999), cosine learning-rate annealing to 10−610^{-6}, and an exponential moving average with decay 0.999 for evaluation. Figure 2 compares validation mean squared error (MSE) in the standardized target space on a logarithmic axis with relative L2L_2 error on a linear axis. These metrics weight sample amplitudes differently and therefore need not exhibit identical convergence profiles. In particular, FNO has a spectral bias toward low-frequency components: early in training, it can reproduce the dominant low-frequency content of the scattered wavefield relatively well, which may yield a comparatively small MSE. As training proceeds, however, its limited recovery of high-frequency and fine-scale components restricts further improvement, allowing diffusion and mean flows to overtake it. The relative L2L_2 error is normalized by the L2L_2 norm of the reference field for each sample, so it measures proportional whole-field error and is less sensitive to differences in absolute amplitude across samples; its convergence can therefore differ from that of the amplitude-weighted MSE. At 200,000 steps, the normalized MSE and relative L2L_2 error are 0.00969 and 0.02883 for mean flows, 0.01590 and 0.07928 for diffusion, and 0.02435 and 0.13713 for FNO. The spatial and frequency accuracy comparisons below use 1, 2, 4, and 8 sampling steps for the generative models; FNO is evaluated only as a single-pass predictor. Diffusion and mean flows use the same initial noise for each paired comparison.

Figure 2. Validation histories of FNO, diffusion, and mean flows over 200,000 training steps. Panel (a) shows standardized-target MSE on a logarithmic axis; panel (b) shows mean per-sample relative L2L_2 error in the original wavefield scale on a linear axis.

In-Distribution Test

The in-distribution evaluation tests wavefield generation on held-out velocity models from the same geological families as the training data. CurveVel-A and FlatFault-A cases are evaluated at 12 and 14 Hz, respectively. CurveVel-A has smoothly varying, curved interfaces and gradual lateral velocity changes, whereas FlatFault-A combines approximately horizontal layers with fault-induced discontinuities and sharper local velocity contrasts. These cases assess prediction accuracy on both smoothly varying and faulted structures represented in the training distribution.

Figure 3 and Figure 5 compare the predicted scattered wavefields and their residuals. Panel (a) shows the real analytical background field, panel (b) the Helmholtz reference solution, panels (c) and (d) the one-step diffusion and mean flows predictions, panel (e) the velocity model, panel (f) the relative L2L_2 error versus sampling steps, and panels (g) and (h) the reference-minus-prediction fields. The residual color range is one-tenth of the prediction color range, making local discrepancies more visible. One-step mean flows gives relative L2L_2 errors of 0.0122 for CurveVel-A and 0.0133 for FlatFault-A, compared with 0.0453 and 0.0501 for one-step diffusion. These mean flows errors also remain below the corresponding eight-step diffusion errors of 0.0269 and 0.0365. The displayed real-component residuals are consistent with these complex-field metrics, with weaker coherent phase and amplitude discrepancies for mean flows.

Figure 3. In-distribution scattered-wavefield generation on CurveVel-A at 12 Hz. Panels (a)–(e) show the real background field, reference scattered field, one-step diffusion prediction, one-step mean flows prediction, and velocity model, respectively. Panel (f) reports complex-field relative L2L_2 errors at 1, 2, 4, and 8 sampling steps. Panels (g) and (h) show the real-component reference-minus-prediction fields for diffusion and mean flows.

Figure 5. In-distribution scattered-wavefield generation on FlatFault-A at 14 Hz. Panels (a)–(e) show the real background field, reference scattered field, one-step diffusion prediction, one-step mean flows prediction, and velocity model, respectively. Panel (f) reports complex-field relative L2L_2 errors at 1, 2, 4, and 8 sampling steps. Panels (g) and (h) show the real-component reference-minus-prediction fields for diffusion and mean flows.

Figure 4 and Figure 6 show the residuals at 1, 2, 4, and 8 sampling steps, with diffusion in the upper rows and mean flows in the lower rows. Additional diffusion updates reduce the dominant error structures, although coherent residuals remain at eight steps. For mean flows, partitioning the transport interval improves on the one-step prediction, with the lowest errors in these two cases occurring at four steps. The small increase from four to eight steps shows that a longer rollout does not guarantee a more accurate prediction. The main advantage in these examples is that a single mean flows update already gives lower error than every tested diffusion rollout.

Figure 4. Sampling-step residual comparison on CurveVel-A at 12 Hz for the same model and source as Figure 3. The upper row shows diffusion and the lower row shows mean flows at 1, 2, 4, and 8 steps from left to right.

Figure 6. Sampling-step residual comparison on FlatFault-A at 14 Hz for the same model and source as Figure 5. The upper row shows diffusion and the lower row shows mean flows at 1, 2, 4, and 8 steps from left to right.

Out-of-Distribution Test

The out-of-distribution evaluation examines transfer to geological structures absent from the training families. The Marmousi and Overthrust models are evaluated at 16 Hz, which lies within the training-frequency range so that the test isolates geological transfer. Marmousi contains strongly undulating and laterally varying reflectors with localized velocity anomalies, producing complex interference and diffraction patterns. Overthrust contains thrust-related interfaces, steeply dipping structures, and strong velocity contrasts. Their spatial organization differs from the CurveVel-A and FlatFault-A structures used for training.

Figure 7 and Figure 9 use the same panel organization as the in-distribution comparisons, including one-step predictions in panels (c) and (d), sampling-step error curves in panel (f), and reference-minus-prediction fields in panels (g) and (h). On Marmousi, the one-step relative L2L_2 errors are 0.1168 for mean flows and 0.1698 for diffusion; on Overthrust, they

Figure 7. Out-of-distribution scattered-wavefield generation on Marmousi at 16 Hz. Panels (a)–(e) show the real background field, reference scattered field, one-step diffusion prediction, one-step mean flows prediction, and velocity model, respectively. Panel (f) reports complex-field relative L2L_2 errors at 1, 2, 4, and 8 sampling steps. Panels (g) and (h) show the real-component reference-minus-prediction fields for diffusion and mean flows.

Figure 9. Out-of-distribution scattered-wavefield generation on Overthrust at 16 Hz. Panels (a)–(e) show the real background field, reference scattered field, one-step diffusion prediction, one-step mean flows prediction, and velocity model, respectively. Panel (f) reports complex-field relative L2L_2 errors at 1, 2, 4, and 8 sampling steps. Panels (g) and (h) show the real-component reference-minus-prediction fields for diffusion and mean flows.

are 0.1021 and 0.1656, respectively. Mean flows also gives weaker residual structures in the displayed real-component fields. Both methods have larger errors than in the selected in-distribution examples, indicating that transfer to unfamiliar geology remains more difficult even at a training frequency.

The residual sequences in Figure 8 and Figure 10 show the effect of 1, 2, 4, and 8 sampling steps. Additional steps improve both methods in these cases, but one-step mean flows remains more accurate than eight-step diffusion: 0.1168 versus 0.1485 on Marmousi and 0.1021 versus 0.1353 on Overthrust. Eight-step mean flows further reduces the errors to 0.0980 and 0.0960, respectively. The smaller improvement on Overthrust suggests that most of its mean flows accuracy is already obtained from the full-interval update, while Marmousi benefits more from interval partitioning.

Figure 8. Sampling-step residual comparison on Marmousi at 16 Hz for the same model and source as Figure 7. The upper row shows diffusion and the lower row shows mean flows at 1, 2, 4, and 8 steps from left to right.

Figure 10. Sampling-step residual comparison on Overthrust at 16 Hz for the same model and source as Figure 9. The upper row shows diffusion and the lower row shows mean flows at 1, 2, 4, and 8 steps from left to right.

Frequency Extrapolation Test

Figure 11 and Figure 12 compare frequency-dependent accuracy on a held-out CurveVel-A model and the unseen Overthrust model, respectively. Each figure covers 8–17 Hz, with 8–12 Hz arranged from left to right in the upper row and 13–17 Hz in the lower row. Because training includes every integer frequency from 3 to 16 Hz, the 8–16 Hz panels evaluate frequencies represented during training, while 17 Hz evaluates extrapolation. Diffusion and mean flows are compared at 1, 2, 4, and 8 sampling steps; FNO is shown only by a green point at one network evaluation. Mean flows has lower one-step error than FNO and every tested diffusion rollout at each displayed frequency for both selected models. At 17 Hz, the one-step errors for mean flows, diffusion, and FNO are 0.1028, 0.1557, and 0.7342 on CurveVel-A, and 0.1492, 0.2629, and 0.6853 on Overthrust. The increase relative to the neighboring 16 Hz results nevertheless shows a loss of accuracy beyond the training range. Additional diffusion steps do not remove this increase and can raise the error, while mean flows retains a smaller error with modest changes across rollout lengths.

Figure 11. Frequency-dependent sampling accuracy on CurveVel-A. The upper row shows 8–12 Hz and the lower row 13–17 Hz, ordered from left to right. Frequencies 8–16 Hz are represented in training. Blue and orange curves show relative L2L_2 errors for diffusion and mean flows at 1, 2, 4, and 8 steps; the green point at one step shows the single-pass FNO prediction.

Figure 12. Frequency-dependent sampling accuracy on Overthrust. The upper row shows 8–12 Hz and the lower row 13–17 Hz, ordered from left to right. Frequencies 8–16 Hz are represented in training. Blue and orange curves show relative L2L_2 errors for diffusion and mean flows at 1, 2, 4, and 8 steps; the green point at one step shows the single-pass FNO prediction.

Figure 13 and Figure 14 examine the spatial predictions at 17 and 18 Hz on Marmousi, combining an unseen geological model with frequencies outside the training range. Both use the same source and panel arrangement as the 16 Hz Marmousi comparison. At 17 Hz, one-step mean flows gives a relative L2L_2 error of 0.1740, compared with 0.2359 for diffusion; at 18 Hz, the errors rise to 0.2870 and 0.3875, respectively. The wavefields retain their main oscillatory structure, but the residual panels show increasing local phase and amplitude discrepancies as the frequency moves farther beyond 16 Hz. At 17 Hz, eight-step mean flows reduces the error to 0.1554, whereas at 18 Hz its best tested error is 0.2831 at two steps. Diffusion likewise reaches its lowest 18 Hz error at two steps, approximately 0.3770, before becoming less accurate at longer rollouts.

Figure 13. Frequency extrapolation on the unseen Marmousi model at 17 Hz. Panels (a)–(e) show the real background field, reference scattered field, one-step diffusion prediction, one-step mean flows prediction, and velocity model, respectively. Panel (f) reports relative L2L_2 errors at 1, 2, 4, and 8 steps; panels (g) and (h) show the one-step real-component reference-minus-prediction fields.

Figure 14. Frequency extrapolation on the unseen Marmousi model at 18 Hz. Panels (a)–(e) show the real background field, reference scattered field, one-step diffusion prediction, one-step mean flows prediction, and velocity model, respectively. Panel (f) reports relative L2L_2 errors at 1, 2, 4, and 8 steps; panels (g) and (h) show the one-step real-component reference-minus-prediction fields.

Frequency extrapolation changes both the background-wavefield condition and the scattered-field target. Increasing

frequency alters the wavelength and phase pattern of U0U_0, the frequency-dependent forcing in (1), and the interference pattern of δU\delta U. The resulting conditional mapping is therefore less well constrained outside the training band. The selected examples show that mean flows retains an accuracy advantage over diffusion under these shifts, while the growing errors at 17 and 18 Hz identify a limit of the present training range. Extending that range, or introducing frequency-aware physical constraints, is a natural next step for improving extrapolation.

Efficiency Comparison

The timing experiments use an Intel Core i9-14900KF CPU and an NVIDIA GeForce RTX 5070 GPU with 12 GB of memory. Each configuration uses three warm-up runs followed by ten timed runs, and reported times are medians of the timed runs. The multifrequency benchmark uses ten validation velocity models. The numerical baselines solve frequencies either sequentially with one thread or concurrently with up to 16 worker threads.

Figure 15(a) shows that FNO, diffusion, and mean flows have single-pass inference times of the same order, while the costs of diffusion and mean flows increase approximately in proportion to the number of sampling steps. For a batch of ten velocity models at 12 Hz, FNO takes 11.4 ms for its direct prediction, compared with 10.5 ms for one-step diffusion and 10.7 ms for one-step mean flows. These similar single-pass costs are consistent with their comparable parameter budgets: approximately 52.3 million parameters for FNO and 51.6 million for each generative model. Diffusion and mean flows also share the same spatial backbone, giving similar costs at a fixed step count. Across 1, 2, 4, and 8 steps, their runtimes grow to 85.0 ms for both methods at eight steps, as each additional step requires another network evaluation. Where one mean flows update provides sufficient accuracy, it therefore avoids the repeated evaluations required by longer sampling rollouts.

Figure 15. Sampling and multifrequency inference efficiency. Panel (a) shows GPU runtimes for ten velocity models at 12 Hz. Panel (b) compares one-step mean flows with sequential single-thread and 16-thread frequency-parallel CPU simulation over 3–18 Hz. Mean flows batches the requested frequencies in one GPU call. The left axis shows seconds per model; the right axis shows numerical runtime divided by mean flows runtime.

Fig. 15(b) compares runtimes as the number of requested frequencies increases from one at 3 Hz to all 16 integer frequencies over 3–18 Hz. For the complete set, mean flows takes 0.0160 s per velocity model, compared with 0.5498 s for sequential single-thread numerical simulation and 0.1965 s for frequency-parallel numerical simulation. These measurements correspond to speed-ups of 34.3× and 12.3×, respectively, under Equation (25). In the parallel numerical baseline, the number of active worker threads increases with the number of requested frequencies, with one worker per frequency and up to 16 workers for the complete set. This parallelism reduces the numerical runtime by approximately 2.8× relative to sequential execution, although each frequency still requires separate operator assembly, factorization, and solution. Mean flows stacks the frequency-specific background wavefields and velocity conditions along the batch dimension, processing all requested frequencies in a single network call per velocity model. This batching shares inference overhead across frequencies, allowing runtime to grow more slowly than the frequency count.

Discussion

More sampling steps do not necessarily reduce wavefield error because endpoint accuracy depends on both the sampling approximation and the accuracy of the learned dynamics. For diffusion, finer time discretization can reduce the numerical integration error of the learned reverse process, as illustrated by diffusion ODE solvers such as DPM-Solver [40], but it does not remove errors in the denoiser itself. A further source of error arises from the states encountered during sampling. Ning et al. [41] show that training on noisy reference samples and sampling from previously generated states introduces a distribution mismatch that allows prediction errors to accumulate; their experiments demonstrate that shorter sampling chains can outperform longer ones. In the present wavefield setting, repeated updates can similarly propagate phase and amplitude errors, especially at unseen frequencies where the conditional mapping is less well constrained. For mean flows, the full-interval update predicts the accumulated displacement directly, whereas interval partitioning evaluates successive average velocities at generated intermediate states. Errors in these states and in the interval-specific velocity estimates can offset the benefit of using shorter intervals. This balance is consistent with the lowest mean flows errors occurring at four steps in the CurveVel-A and FlatFault-A comparisons and at two steps for Marmousi at 18 Hz, followed by increases at longer rollouts. The improvements on Marmousi and Overthrust at 16 Hz show the other outcome: additional updates can still refine the prediction when the learned intermediate transport is sufficiently accurate. Sampling length therefore controls how the learned dynamics are followed, rather than guaranteeing a monotonic reduction in error relative to the Helmholtz solution.

Diffusion and Flow Matching models can generate high-quality samples, but many practical tasks require outputs to satisfy constraints beyond resembling the learned data distribution. Existing approaches broadly follow two strategies. The first retrains a generative model to accept the task-specific condition, as in classifier-free guidance [42]; the second modifies the sampling process to incorporate additional guidance or data-consistency constraints at each step, as in diffusion posterior sampling, physics-informed diffusion, and physics-guided seismic diffusion [28, 30, 43]. The former requires additional training, whereas the latter may rely on assumptions about the forward model or on a particular guidance strategy. D-Flow introduces a third strategy for flow-based generation: it freezes a pretrained generator and optimizes its initial noise by differentiating a task-specific loss through the flow [44]. The pretrained model then acts as a data-distribution prior, while the differentiable loss expresses the constraint to be satisfied.

A limitation of the study is its fixed-grid representation: both the conditional input and scattered wavefield are represented on a 70×7070 \times70 grid, restricting direct transfer across resolutions. A change in grid spacing alters the number of samples per wavelength and the sampled geometry of subsurface interfaces, so the learned transport cannot be assumed to retain its accuracy on a different discretization. FunDiff addresses variable discretizations by encoding sampled physical fields into a common latent representation and reconstructing continuous functions at requested spatial coordinates; its training also exposes the encoder to inputs at different sampling densities [45]. For scattered-wavefield generation, a corresponding function-space representation could encode the velocity model and analytical background field together with their physical coordinates, learn mean flows transport in a grid-independent latent space, and evaluate the real and imaginary scattered fields at the desired output coordinates. This could allow the same conditional transport to be queried on different grids while retaining the source and frequency information carried by the background field.

Conclusions

This study develops a conditional mean flows model for frequency-domain acoustic scattered-wavefield generation. The model conditions the transport on the velocity model and the analytical background wavefield, and learns the normalized scattered field through a finite-interval transport path. Trained on OpenFWI over the 3–16 Hz frequency band, the model generalizes to the evaluated out-of-distribution velocity structures and extrapolates to frequencies beyond the training band. In the selected comparisons, one-step mean flows sampling achieves lower relative L2L_2 errors than eight-step diffusion sampling while incurring substantially lower inference cost. In the efficiency experiments, batched generation of 16 frequencies from 3–18 Hz achieves 34.3× and 12.3× speedups over sequential single-thread and 16-thread frequency-parallel CPU numerical simulations, respectively. Together, these results highlight the potential of mean flows for accurate and efficient repeated wavefield simulation in seismic imaging and inversion.

Acknowledgment

This research was partly supported by the CNPC Innovation Fund (2024DQ02-0139) and High-performance Computing Platform of Chengdu University of Technology.

Data and Code Availability

The code and data used in this study are publicly available at https://github.com/Lipeng-Lai/MeanFlow4Helmholtz.

References

  1. [1]A. Tarantola, “Inversion of seismic reflection data in the acoustic approximation,” Geophysics, vol. 49, no. 8, pp. 1259–1266, 1984.DOI
  2. [2]J. Virieux and S. Operto, “An overview of full-waveform inversion in exploration geophysics,” Geophysics, vol. 74, no. 6, pp. WCC1–WCC26, 2009.DOI
  3. [3]K. J. Marfurt, “Accuracy of finite-difference and finite-element modeling of the scalar and elastic wave equations,” Geophysics, vol. 49, no. 5, pp. 533–549, 1984.DOI
  4. [4]J. Virieux, “P-SV wave propagation in heterogeneous media: Velocity-stress finite-difference method,” Geophysics, vol. 51, no. 4, pp. 889–901, 1986.
  5. [5]D. D. Kosloff and E. Baysal, “Forward modeling by a Fourier method,” Geophysics, vol. 47, no. 10, pp. 1402–1412, 1982.DOI
  6. [6]D. Komatitsch and J. Tromp, “Introduction to the spectral element method for three-dimensional seismic wave propagation,” Geophysical Journal International, vol. 139, no. 3, pp. 806–822, 1999.
  7. [7]M. Raissi, P. Perdikaris, and G. E. Karniadakis, “Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations,” Journal of Computational Physics, vol. 378, pp. 686–707, 2019.DOI
  8. [8]G. E. Karniadakis, I. G. Kevrekidis, L. Lu, P. Perdikaris, S. Wang, and L. Yang, “Physics-informed machine learning,” Nature Reviews Physics, vol. 3, no. 6, pp. 422–440, 2021.DOI
  9. [9]T. Alkhalifah, C. Song, U. B. Waheed, and Q. Hao, “Wavefield solutions from machine learned functions constrained by the Helmholtz equation,” Artificial Intelligence in Geosciences, vol. 2, pp. 11–19, 2021.DOI
  10. [10]X. Huang and T. Alkhalifah, “RPNUst: Robust neural network wavefield solutions using frequency upscaling and neuron splitting,” Journal of Geophysical Research: Solid Earth, vol. 127, no. 6, p. e2021JB023703, 2022.DOI
  11. [11]J. Zou, C. Liu, Y. Wang, C. Song, U. B. Waheed, and P. Zhao, “Accelerating the convergence of physics-informed neural networks for seismic wave simulation,” Geophysics, vol. 90, no. 2, pp. T23–T32, 2025.DOI
  12. [12]C. Song, T. Alkhalifah, and U. B. Waheed, “Solving the frequency-domain acoustic VTI wave equation using physics-informed neural networks,” Geophysical Journal International, vol. 225, no. 2, pp. 846–859, 2021.DOI
  13. [13]T. Alkhalifah, C. Song, and U. B. Waheed, “Machine learned green’s functions that approximately satisfy the wave equation,” in SEG Technical Program Expanded Abstracts 2020. Society of Exploration Geophysicists, 2020, pp. 2638–2642.DOI
  14. [14]Z. Li, N. Kovachki, K. Azizzadenesheli, B. Liu, K. Bhattacharya, A. Stuart, and A. Anandkumar, “Fourier neural operator for parametric partial differential equations,” in International Conference on Learning Representations, 2021.
  15. [15]Y. Yang, A. F. Gao, J. C. Castellanos, Z. E. Ross, K. Azizzadenesheli, and R. W. Clayton, “Seismic wave propagation and inversion with neural operators,” The Seismic Record, vol. 1, no. 3, pp. 126–134, 2021.arxiv.org/abs/2108.05421
  16. [16]B. Li, H. Wang, S. Feng, X. Yang, and Y. Lin, “Solving seismic wave equations on variable velocity models with Fourier neural operator,” IEEE Transactions on Geoscience and Remote Sensing, vol. 61, pp. 1–18, 2023.arxiv.org/abs/2209.12340
  17. [17]Y. Wang, H. Zhang, C. Lai, and X. Hu, “Transfer learning Fourier neural operator for solving parametric frequency-domain wave equations,” IEEE Transactions on Geoscience and Remote Sensing, vol. 62, pp. 1–11, 2024.DOI
  18. [18]T. Zhang, D. Trad, and K. Innanen, “Learning to solve the elastic wave equation with Fourier neural operators,” Geophysics, vol. 88, no. 3, pp. T101–T119, 2023.DOI
  19. [19]C. Zou, K. Azizzadenesheli, Z. E. Ross, and R. W. Clayton, “Deep neural Helmholtz operators for 3-D elastic wave propagation and inversion,” Geophysical Journal International, vol. 239, no. 3, pp. 1469–1484, 2024.
  20. [20]X. Huang and T. Alkhalifah, “Learned frequency-domain scattered wavefield solutions using neural operators,” Geophysical Journal International, vol. 241, no. 3, pp. 1467–1478, 2025.arxiv.org/abs/2405.01272
  21. [21]X. Huang, F. Wang, and T. Alkhalifah, “Physics-informed waveform inversion using pretrained wavefield neural operators,” IEEE Transactions on Geoscience and Remote Sensing, vol. 63, pp. 1–14, 2025.DOI
  22. [22]J. Ho, A. Jain, and P. Abbeel, “Denoising diffusion probabilistic models,” in Advances in Neural Information Processing Systems, vol. 33, 2020, pp. 6840–6851.arxiv.org/abs/2006.11239
  23. [23]Q. Liu and J. Ma, “Generative interpolation via a diffusion probabilistic model,” Geophysics, vol. 89, no. 1, pp. V65–V85, 2024.DOI
  24. [24]J. Peng, Y. Li, Y. Li, M. Wang, Z. Liao, and X. Wang, “Fast diffusion model for seismic data noise attenuation,” Geophysics, vol. 90, no. 4, pp. V357–V372, 2025.arxiv.org/abs/2404.02767
  25. [25]H.-R. Zhang, Y. Liu, Y.-H. Sun, and G. Chen, “SeisResoDiff: Seismic resolution enhancement based on a diffusion model,” Petroleum Science, vol. 21, no. 5, pp. 3166–3188, 2024.DOI
  26. [26]C. Li and Y. Chen, “Learned diffusion model regularization for full waveform inversion,” Geophysical Prospecting, vol. 74, no. 4, 2026.DOI
  27. [27]Y. Feng, H. Wang, Y. Chen, L. Zhang, J. Kang, Y. Wu, Y. J. Kim, and Y. Lin, “WaveDiffusion: Joint latent diffusion for physically consistent seismic and velocity generation,” arXiv preprint arXiv:2410.09002, 2024.arxiv.org/abs/2410.09002
  28. [28]D. Shu, Z. Li, and A. B. Farimani, “A physics-informed diffusion model for high-fidelity flow field reconstruction,” Journal of Computational Physics, vol. 478, p. 111972, 2023.
  29. [29]J. Huang, G. Yang, Z. Wang, and J. J. Park, “DiffusionPDE: Generative PDE-solving under partial observation,” in Advances in Neural Information Processing Systems, vol. 37, 2024, pp. 130 291–130 323.arxiv.org/abs/2406.17763
  30. [30]S. Cheng, M. H. Taufik, and T. Alkhalifah, “Seismic wavefield solutions via physics-guided generative neural operator,” Geophysics, vol. 91, no. 5, pp. F13–F26, 2026.arxiv.org/abs/2503.06488
  31. [31]J. Song, C. Meng, and S. Ermon, “Denoising diffusion implicit models,” in International Conference on Learning Representations, 2021.arxiv.org/abs/2010.02502
  32. [32]Y. Lipman, R. T. Q. Chen, H. Ben-Hamu, M. Nickel, and M. Le, “Flow matching for generative modeling,” in International Conference on Learning Representations, 2023.arxiv.org/abs/2210.02747
  33. [33]M. S. Albergo, N. M. Boffi, and E. Vanden-Eijnden, “Stochastic interpolants: A unifying framework for flows and diffusions,” arXiv preprint arXiv:2303.08797, 2023.arxiv.org/abs/2303.08797
  34. [34]X. Hou, X. Huang, and P. Perdikaris, “CFO: Learning continuous-time PDE dynamics via flow-matched neural operators,” in International Conference on Learning Representations, 2026.arxiv.org/abs/2512.05297
  35. [35]Z. Geng, M. Deng, Y. Bai, J. Z. Kolter, and K. He, “Mean flows for one-step generative modeling,” arXiv preprint arXiv:2505.13447, 2025.arxiv.org/abs/2505.13447
  36. [36]Z. Geng, Y. Lu, Z. Wu, E. Shechtman, J. Z. Kolter, and K. He, “Improved mean flows: On the challenges of fastforward generative models,” arXiv preprint arXiv:2512.02012, 2026.arxiv.org/abs/2512.02012
  37. [37]C. Deng, S. Feng, H. Wang, X. Zhang, P. Jin, Y. Feng et al., “OpenFWI: Large-scale multi-structural benchmark datasets for full waveform inversion,” in Advances in Neural Information Processing Systems, vol. 35, 2022, pp. 6007–6020.
  38. [38]X. Huang and T. Alkhalifah, “Learned frequency-domain scattered wavefield solutions using neural operator,” in 85th EAGE Annual Conference and Exhibition, vol. 2024, 2024, pp. 1–5.DOI
  39. [39]C.-H. Jo, C. Shin, and J.-H. Suh, “An optimal 9-point, finite-difference, frequency-space, 2-D scalar wave extrapolator,” Geophysics, vol. 61, no. 2, pp. 529–537, 1996.DOI
  40. [40]C. Lu, Y. Zhou, F. Bao, J. Chen, C. Li, and J. Zhu, “DPM-Solver: A fast ODE solver for diffusion probabilistic model sampling in around 10 steps,” in Advances in Neural Information Processing Systems, vol. 35, 2022, pp. 5775–5787.arxiv.org/abs/2206.00927
  41. [41]M. Ning, E. Sangingeto, A. Porrello, S. Calderara, and R. Cucchiara, “Input perturbation reduces exposure bias in diffusion models,” in Proceedings of the 40th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, vol. 202. PMLR, 2023, pp. 26 245–26 265.arxiv.org/abs/2301.11706
  42. [42]J. Ho and T. Salimans, “Classifier-free diffusion guidance,” arXiv preprint arXiv:2207.12598, 2022.arxiv.org/abs/2207.12598
  43. [43]H. Chung, J. Kim, M. Mueller, M. T. McCann, M. L. Klasky, and J. C. Ye, “Diffusion posterior sampling for general noisy inverse problems,” in International Conference on Learning Representations, 2023.arxiv.org/abs/2209.14687
  44. [44]H. Ben-Hamu, O. Puny, I. Gat, B. Karrer, U. Singer, and Y. Lipman, “D-flow: Differentiating through flows for controlled generation,” in International Conference on Machine Learning, 2024.
  45. [45]S. Wang, Z. Dou, S. Shan, T.-R. Liu, and L. Lu, “FunDiff: Diffusion models over function spaces for physics-informed generative modeling,” Nature Communications, vol. 17, p. 5749, 2026.DOI

Paper details

vlnc:W_x68564gy
Version
v1 · latest
Published
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents