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 denote the complex-valued total wavefield at spatial coordinates and angular frequency , and let denote the spatially varying physical velocity model. The angular frequency is related to the frequency in Hz by . To separate the source response from the velocity-induced scattering, the total wavefield is decomposed into a background component and a scattered component [9]. The scattered wavefield then satisfies
where is a reference velocity used to construct the background wavefield, is the corresponding solution in the reference medium, and 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 , the background wavefield can be computed analytically from the two-dimensional Green’s function:
where denotes the zeroth-order Hankel function of the second kind and 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 are used as the input condition, and the real and imaginary parts of 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
where and 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 denote the normalized two-channel scattered wavefield, and define the conditioning field as . The model, with trainable parameters , approximates the conditional distribution of given . The forward process maps each conditional wavefield to a common Gaussian prior, while the reverse process uses 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 , where is the total number of noise levels. The clean scattered wavefield is denoted by , and denotes its noisy state at step . Let be the variance increment at step , define , and let be the cumulative signal-retention factor. With denoting the identity matrix in the field space, one transition of the fixed forward Markov chain is
Here, 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:
The coefficient controls the retained contribution of the clean field, whereas gives the accumulated noise variance. Equivalently, a noisy field can be sampled using the reparameterization
where is a standard Gaussian field with the same dimensions as . When is sufficiently small, approaches the isotropic Gaussian prior . A training instance therefore consists of a paired field and condition , a sampled noise level , and the corresponding noise realization .
The reverse process estimates a clean wavefield from the current noisy state and the physical condition. In the implementation, the network directly predicts . A Gaussian reverse transition can then be written as
where is the learned reverse kernel, is its mean, and is its covariance. With , the posterior mean associated with the clean-field prediction is
The same forward schedule determines the coefficients in this reverse mean. The direct clean-field prediction is trained with
The objective is a denoising regression: it trains the network to recover the clean scattered wavefield from the noisy state while using the condition . Here and below, denotes the expectation with respect to the random variables listed in its subscript. For a field vector with scalar entries, denotes the discrete Euclidean norm.
Table 1.
norm. At inference, the process starts from . For the deterministic denoising diffusion implicit model (DDIM) sampler used in the experiments, let be the next lower selected noise level and define
and update the state according to
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 defined above, let be a Gaussian field and let denote the normalized two-channel clean scattered wavefield drawn from the conditional data distribution. Here, corresponds to the clean field in the discrete diffusion formulation, while denotes the noise endpoint of the continuous transport path. A time variable indexes the transport process, where represents the Gaussian noise state and represents the clean scattered wavefield.
The conditional linear transport path is defined as
Algorithm 2 Flow Matching Training and Sampling
Training
for each optimization iteration do
Sample , and
;
Update using in Equation (14)
end for
Sampling with
Initialize
for do
end for
return
which connects the Gaussian field at to the clean scattered wavefield at . For fixed endpoints, differentiating with respect to gives
This endpoint difference supplies a constant velocity target for each sampled pair. A neural velocity field , with trainable parameters , predicts the transport velocity from the intermediate field, time, and physical condition C. It is trained using
Here, is sampled uniformly from , 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 .
During inference, sampling starts from a Gaussian field and follows the learned velocity field from to , 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 toward the clean scattered-wavefield endpoint . 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 at is transported to the clean two-channel scattered wavefield at . Blue and black dashed arrows denote local instantaneous velocity and finite-interval average velocity , respectively, with over . 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 with , where and are the start and end times, respectively. For , the interval-average velocity is
For , the interval-average velocity is defined by continuity as . The endpoint displacement over is therefore
Differentiating this relation with respect to the lower endpoint while holding and C fixed gives the mean flows identity
where . 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 and the explicit dependence on . The chain rule gives
The state derivative in Equation (18) is a Jacobian–vector product (JVP), but it depends on the instantaneous velocity , which is not directly predicted by the main interval-average head. An auxiliary head estimates this velocity while sharing the conditional backbone with . Using the tangent , which advances the state in the direction and increases at unit rate while holding fixed, gives
Substituting this JVP for the total derivative yields the compound instantaneous-velocity prediction
Algorithm 3 Mean Flows Training and Sampling
Training
for each optimization iteration do
Sample , , and
;
Evaluate and
Update using in (21)
end for
Sampling with
Initialize
for do
end for
return
Here combines the interval-average prediction with the finite-interval correction and therefore approximates . The stop-gradient operator 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
The first term in supervises , and the second trains for the JVP. The adaptive weight is detached and applied per sample, with and . The target 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 -step mean flows rollout over is
The rollout length is selected according to the desired balance between accuracy and inference cost. The full-interval update is the special case : setting , , and maps a Gaussian sample directly to the normalized scattered wavefield by
which requires one evaluation of the conditional network and avoids numerical ODE integration in the one-step update. Larger values of 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 to the clean wavefield at , following the endpoint convention in Figure 1.
Results
Evaluation Metrics
The relative error (Rel ) is used as the primary evaluation metric. For a predicted wavefield and the corresponding reference wavefield , it is defined as
where is the discrete Euclidean norm defined above. Rel 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
where and denote the runtimes of the reference numerical simulation and the evaluated generative model, respectively. A value of 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 grid with km spacing and paired with all integer frequencies from 3 to 16 Hz and four fixed source locations at grid indices , , , and . 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 , 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 , followed by deterministic DDIM sampling with . 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 . Unequal endpoints are used for 50% of samples, including the full interval for 15% of all samples; the remaining samples use . Adaptive weighting uses , 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 . Diffusion and mean flows use batch size 16 and AdamW weight decay ; FNO uses batch size 8 and weight decay . All methods use , cosine learning-rate annealing to , 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 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 error is normalized by the 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 , the frequency-dependent forcing in (1), and the interference pattern of . 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 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 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]A. Tarantola, “Inversion of seismic reflection data in the acoustic approximation,” Geophysics, vol. 49, no. 8, pp. 1259–1266, 1984.DOI
- [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]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]J. Virieux, “P-SV wave propagation in heterogeneous media: Velocity-stress finite-difference method,” Geophysics, vol. 51, no. 4, pp. 889–901, 1986.
- [5]D. D. Kosloff and E. Baysal, “Forward modeling by a Fourier method,” Geophysics, vol. 47, no. 10, pp. 1402–1412, 1982.DOI
- [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]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]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]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]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]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]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]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]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]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]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]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]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]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]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]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]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]Q. Liu and J. Ma, “Generative interpolation via a diffusion probabilistic model,” Geophysics, vol. 89, no. 1, pp. V65–V85, 2024.DOI
- [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]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]C. Li and Y. Chen, “Learned diffusion model regularization for full waveform inversion,” Geophysical Prospecting, vol. 74, no. 4, 2026.DOI
- [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]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]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]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]J. Song, C. Meng, and S. Ermon, “Denoising diffusion implicit models,” in International Conference on Learning Representations, 2021.arxiv.org/abs/2010.02502
- [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]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]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]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]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]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]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]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]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]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]J. Ho and T. Salimans, “Classifier-free diffusion guidance,” arXiv preprint arXiv:2207.12598, 2022.arxiv.org/abs/2207.12598
- [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]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]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














