Conservative Flux Neural Operator
Implementation & benchmark of arXiv:2608.18148 — Flux-form spatiotemporal neural operators for coarse-grained dynamics of multiscale PDEs
Source paper: Flux-form spatiotemporal neural operators for coarse-grained dynamics of multiscale PDEs arXiv:2608.18148 ⓘ · analyzed Sep 1, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Replace pointwise prediction of the next field with prediction of a learned flux followed by a discrete divergence. Combine Fourier spatial mixing with a causal temporal kernel over the recent resolved-history slab, so the model learns finite-memory closure effects while preserving local conservation exactly under periodic or compatible boundary conditions. The architecture should reduce spurious mass drift and improve autoregressive rollout stability on coarse-grained PDE data.
Formulas
Mathematical statement
The source PDE has conservative form $u_t+\nabla\cdot F(u,\nabla u,\ldots)=0$, where $u(x,t)\in\mathbb{R}^{d_u}$ is the resolved field, $F$ is a flux tensor, and $\nabla\cdot$ is spatial divergence. Given resolved history $h_n(x,s)=u(x,t_n+s)$ for $s\in[-T_{\mathrm{in}},0]$, the neural operator predicts a flux $\widehat F_\theta[h_n](x)$ using spatial Fourier mixing and a causal temporal kernel that only accesses past times. The update is $\widehat u^{n+1}=\widehat u^n-\Delta t D_h\widehat F_\theta[h_n]$, where $D_h$ is a discrete divergence and $\Delta t$ is the rollout step. For a periodic conservative finite-volume discretization, $\sum_i(D_hF)_i=0$, so total mass is invariant independently of the learned flux. Causality prevents future-information leakage and makes the operator compatible with autoregressive deployment.
Implementation notes
Use this as the one-step core of a Fourier neural operator, recurrent state-space model, or causal spatiotemporal predictor. Store the last $m$ resolved grids, with $m\Delta t=T_{\mathrm{in}}$. Encode the history, apply causal temporal attention or a depthwise temporal convolution over lags, apply Fourier spatial mixing, and output one flux component per spatial direction and physical channel. Compute the next state with a periodic finite-volume divergence instead of adding the network output directly to the field. Pseudocode is: history = queue(u[t-m+1:t]); z = causal_temporal_mixer(history); z = fourier_mixer(z); flux = flux_head(z); u_next = u - dt * divergence(flux). Train with next-step loss and optionally a multi-step rollout loss. Compute the divergence exactly; estimate network Jacobians, Fourier multipliers, and flux errors empirically. The first cheap experiment should use equal-size pointwise and flux-form FNOs on filtered one-dimensional viscous Burgers trajectories. Measure mass drift, rollout error, and empirical rollout Jacobian spectral radius over 100 to 500 steps. The prediction is that periodic flux-form mass drift remains at floating-point or discretization level, while the pointwise model accumulates drift. Error growth should become sharply worse near the empirical Jacobian spectral-radius boundary $\rho(J)\approx1$, with the flux model having a larger stable range of $\Delta t$.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Not reproduced ✗
Stage 2 · Practical benchmark result: Significant win ✓
Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works
How to read this: The implementation beat the baseline, but the claimed mechanism did not reproduce at benchmark scale. The gain may come from another effect; treat the cause as unresolved.
Stage 1 — Mechanism check agent confidence 9/10
Built a causal temporal-plus-Fourier flux-form operator and compared it with an equal-size pointwise predictor on periodic Burgers data. All three mechanism predictions were confirmed: periodic divergence conserved mass to 3.6e-12 worst-case across grid sizes and amplitudes, pointwise mass drift scaled linearly with rollout steps exactly as predicted while flux drift was zero in the direct check, and the upwind spectral-radius boundary occurred at CFL=1. The learned flux model also improved 100-step rollout RMSE and reduced mass drift substantially, although this is a small toy experiment.
- Agent confidence
- 9/10
- Baseline
- one-step RMSE 1.55e-4; 100-step rollout RMSE 2.49e-2; max mass drift 2.70e-1
- Idea
- one-step RMSE 2.58e-5; 100-step rollout RMSE 3.59e-3; max mass drift 1.80e-6; direct divergence sweep max mass residual 3.64e-12
Limitations: Only a tiny 1D periodic Burgers setup was tested, with a short training run and one fixed seed. The stability boundary sweep is an analytic upwind-flux check rather than an empirical Jacobian spectral-radius sweep of the trained neural models; no 2D, nonperiodic, filtered multiscale, or multi-seed evaluation was performed.
How to run: python3 experiment.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2608.18148)
Beats the tuned baseline by 45.1% (p=0.0081, wins 8 / 8 paired seeds; metric: lower is better).
- Benchmark
- Periodic_transport
- Model
- local_update_net
- Paired seeds
- 8
- Baseline mean
- 0.0003
- Idea mean
- 0.0001
- Effect (Δ)
- -0.0001 (−45.1%; negative = idea better)
- Wins
- 8 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±2.3%
- Mechanism
- Not confirmed ✗
- Practical effect
- Helps
- Baseline tuning
- swept over 3 configs
The built-in periodic_transport custom PDE track was used rather than Burgers or a larger neural operator benchmark. The trained-model mechanism signature was not confirmed because its extra baseline retraining failed, although the standard paired task comparison completed. No long autoregressive rollout or empirical Jacobian spectral-radius measurement was run in Stage 2.
How to run: CUDA_VISIBLE_DEVICES='' /home/maxwelhelp/main/bin/python3 bench_flux.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Stage 2 — Benchmark latest Worked ✓
Agent confidence: 8/10
Implemented a matched periodic-transport PDE benchmark using the same trained local neural architecture, with the idea replacing the pointwise update by a periodic discrete flux divergence. Across 8 paired seeds, the conservative system achieved MSE 0.0001457231 versus 0.0002653924 for the tuned baseline, with all 8 wins and permutation p=0.0081; therefore the bench verdict is idea better (significant). The trained-model conservation signature was not confirmed because the additional baseline model used for signature evaluation failed during retraining, so no analytical identity is claimed as empirical mechanism evidence.
- Baseline
- Test MSE mean 0.0002653924, std 0.0000069207, best lr=0.01
- Idea
- Test MSE mean 0.0001457231, std 0.0000015235, best lr=0.01, paired delta=-0.0001196693, p=0.0081, 8/8 wins
Benchmark result
Beats the tuned baseline by 45.1% (p=0.0081, wins 8 / 8 paired seeds; metric: lower is better).
- Benchmark
- Periodic_transport
- Model
- local_update_net
- Paired seeds
- 8
- Baseline mean
- 0.0003
- Idea mean
- 0.0001
- Effect (Δ)
- -0.0001 (−45.1%; negative = idea better)
- Wins
- 8 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±2.3%
- Mechanism
- Not confirmed ✗
- Practical effect
- Helps
- Baseline tuning
- swept over 3 configs
The built-in periodic_transport custom PDE track was used rather than Burgers or a larger neural operator benchmark. The trained-model mechanism signature was not confirmed because its extra baseline retraining failed, although the standard paired task comparison completed. No long autoregressive rollout or empirical Jacobian spectral-radius measurement was run in Stage 2.
How to run: CUDA_VISIBLE_DEVICES='' /home/maxwelhelp/main/bin/python3 bench_flux.py
Artifacts
- bench_flux.py 5.3 KB View Raw
- bench_report.json 3.9 KB View Raw
- experiment.py 6.1 KB View Raw
- report.md 1.4 KB View
- report_bench_2026-09-01T143516.md 4.0 KB View
- results.json 4.3 KB View Raw