Pruning That Does Not Erase Fine Scales: Frequency-Weighted Curvature for 2:4 Sparse 3D Physics Surrogates

Neural networks that stand in for 3D physics simulators, such as fluid turbulence or seismic wave propagation, are expensive because every layer applies volumetric filters, and they are fragile at fine scales because training learns smooth, low-frequency structure first and sharp detail last. That second effect is called spectral bias. The standard way to cut the cost is pruning, meaning zeroing weights. Pruning only buys real speed on GPUs when the zeros follow a hardware pattern. The main such pattern is "2:4" sparsity, where exactly two of every four consecutive weights are zero, which recent NVIDIA tensor cores execute at twice the math throughput. The best tools for choosing which weights to zero use second-order information: an estimate of how much the loss rises when a weight is removed, computed from a small per-layer curvature matrix.

This note argues that the per-layer curvature matrix used by those tools is itself spectrally biased, and that this should matter most in physics surrogates. For a convolution layer, that matrix is the autocorrelation of the layer's input patches. For smooth physical fields, its eigen-directions are close to spatial Fourier modes, and its eigenvalues are close to the input's power spectrum. A curvature-guided pruner therefore treats errors along high-frequency filter shapes as nearly free. It sacrifices exactly the fine-scale pathways that dense surrogates already struggle to learn. We propose to test this mechanism and to correct it by computing the curvature on frequency-reweighted activations. We use the corrected curvature to choose 2:4 masks for 3D convolutional and Fourier-based surrogates. The goal is real wall-clock savings without the loss of fine-scale accuracy that a Fourier-space error metric can detect.

Core Claim

Two predictions follow from the mechanism. First, curvature-based 2:4 pruning should beat magnitude pruning on ordinary error but lose disproportionately in the high-frequency band. Second, reweighting the curvature toward high frequencies should recover that band at almost no cost in ordinary error or compute.

The mechanism combines three results from the file. Learning to Prune Deep Neural Networks via Layer-wise Optimal Brain Surgeon (L-OBS) shows that treating each layer separately gives a tractable curvature block $\mathbf{H}^{(l)} = 2\mathbf{X}^{(l)}(\mathbf{X}^{(l)})^T$ built from input activations. This is how we sidestep the full-network Hessian's quadratic memory and cubic inversion cost. When and why PINNs fail to train: A neural tangent kernel perspective shows that kernel eigenvalues decay with frequency. It also shows that rebalancing by kernel traces rescues high-frequency and boundary terms during training. We carry that rebalancing idea from the training objective into the compression objective. PDEBench introduced the Fourier-space error fRMSE, which reports error separately in low-, mid- and high-frequency bands. PDEBench argues that plain RMSE hides errors in fine eddies, and fRMSE is the metric that can reveal whether pruning is spectrally selective.

Concretely, we filter each layer's input activations with a band weight $w(k) = P(k)^{-\beta}$ before forming the curvature. Here $k$ is spatial wavenumber, $P(k)$ is the band-averaged power of that layer's inputs on calibration data, and $\beta \in [0,1]$ sets the strength: $\beta = 0$ recovers L-OBS and $\beta = 1$ fully whitens. Writing $\tilde{\mathbf{X}}$ for the filtered patches, the reweighted curvature is $\tilde{\mathbf{H}} = 2\tilde{\mathbf{X}}\tilde{\mathbf{X}}^T$. It costs one extra FFT pass per layer and keeps L-OBS's per-layer memory.

Within each group $G$ of four consecutive weights along the reduction dimension, we choose the pair $S \subset G$ to zero by minimizing the second-order removal cost

$$ \Delta L(S) = \tfrac{1}{2}\, \mathbf{w}_S^T \big([\tilde{\mathbf{H}}^{-1}]_{SS}\big)^{-1} \mathbf{w}_S , $$

where $\mathbf{w}_S$ is the vector of the two weights being removed. With four weights there are only six candidate pairs, so we enumerate all of them. We then apply the standard compensating update to the remaining weights and move to the next group, as L-OBS does for unstructured pruning.

Research Program

The work has three parts.

The first is a diagnostic. On trained dense 3D surrogates, we compute each layer's $\mathbf{H}$ and sort its eigenvectors by eigenvalue. We then measure the spatial-frequency centroid of each eigenvector, viewed as a small 3D filter. If the mechanism is right, centroid frequency should rise as eigenvalue falls, roughly tracking the input power spectrum. This check is cheap and decides whether the rest of the program is motivated.

The second part is the pruner. It covers one-shot 2:4 mask selection with magnitude, plain L-OBS, and reweighted L-OBS. It also includes a training variant in which the reweighted saliency replaces magnitude inside the mask-refresh step of Learning N:M Fine-grained Structured Sparse Neural Networks From Scratch (SR-STE). SR-STE supplies the from-scratch 2:4 training recipe and its mask-stability metric. It selects weights by magnitude only and was tested only on 2D vision and translation.

The third part is deployment. We lay out 3D convolutions in channels-last format so that each 2:4 group runs along input channels, which is contiguous in memory as the hardware requires. We then time end-to-end inference on Ampere-class GPUs. The time budget includes the FFTs and other operations that sparsity does not speed up.

We are deliberate about where the idea should and should not help. For 3×3×3 convolutions, the curvature spans input channels times 27 kernel taps, so frequency reweighting directly changes which filter shapes count as important. This is the clean case, and it is the main target. For Fourier neural operators, which multiply a separate channel-mixing matrix at each retained Fourier mode, reweighting cannot change 2:4 choices inside a single mode, because scaling a curvature matrix does not change its minimizer. There we apply the method only to the pointwise channel-mixing layers, where filtering the activations does change the channel covariance, and we leave the per-mode weights dense or plainly pruned. Saying this up front keeps the claim falsifiable instead of universal.

As an application, we also sparsify both stages of the two-stage residual surrogate from Reducing Frequency Bias of Fourier Neural Operators in 3D Seismic Wavefield Simulations Through Multistage Training. That work fixes high-frequency error by training a second full network on the residual, which doubles parameters. The question is whether a spectrally careful 2:4 two-stage model can keep most of the accuracy gain while paying less than the dense single-stage model.

Baselines

The naive reference point is the dense surrogate, a 3D U-Net and a 3D Fourier neural operator trained exactly as in the benchmark protocols. Every sparse result is reported as a gap to it, per frequency band.

The strongest existing method for hardware-usable sparsity is SR-STE 2:4 training. It is the strongest competitor because it is the only method in the file with reported near-lossless 2:4 accuracy at scale: 77.0% ImageNet top-1 for ResNet-50 at 2:4 against a 77.3% dense baseline, and 77.4% at 4:8, per Learning N:M Fine-grained Structured Sparse Neural Networks From Scratch. We found no reported result on Lacuna for 2:4 sparsity on any neural operator or PDE surrogate. We will therefore run SR-STE ourselves with the same data, the same epochs, and the same learning-rate and decay sweep as our training variant, with an equal number of tuning trials.

The ablation that isolates the key ingredient is plain L-OBS 2:4 selection, the same pruner with $\beta = 0$. It shares everything except the frequency reweighting. Comparing it with magnitude selection tests whether curvature helps at all, and comparing it with our method tests whether curvature's spectral bias is the problem. We also sweep $\beta$ to show a dose-response.

The alternative compression baseline is 2D+1D kernel factorization in the style of Human Action Recognition Using Factorized Spatio-Temporal Convolutional Networks, matched in FLOPs to 2:4. It reports 88.1% on UCF-101, but it has no reported physics result on Lacuna.

Our method counts as beating the baselines only under two conditions: it cuts high-band fRMSE relative to both SR-STE and plain L-OBS by more than seed-to-seed variation, and it does so without raising overall RMSE and at identical measured latency.

Why not just…?

Why not just prune by magnitude and fine-tune with a frequency-weighted loss? This is the most serious threat. The progressive spectral loss in Iterative Refinement Neural Operators are Learned Fixed-Point Solvers shows that loss reweighting can pull high-frequency error down sharply in dense models: 80.46% error reduction on Active Matter. We therefore run SR-STE with that same band-weighted loss as a baseline, at matched fine-tuning budgets from zero up to full retraining. If it closes the gap at full budget, the honest conclusion is that our contribution is limited to one-shot and low-budget compression. That regime still matters for large 3D models, where retraining is expensive, and we will say so rather than claim more.

Why not just keep the first and last layers dense, or whichever layers look frequency-sensitive? Layer-level exemption is simple and could capture most of the benefit if the damage concentrates in a few layers. We test it directly by reporting per-layer high-band sensitivity, and by comparing against the best mixed dense/2:4 assignment found with the same budget, at equal measured latency. If a handful of dense layers match our method, that result is itself informative, and we would redirect the method toward choosing which layers to keep dense.

Why not just factorize the 3D kernels, or use 4:8, instead of changing how weights are selected? Factorization assumes the filter separates into a spatial part and a temporal part. The research file flags this as a source of spectral smoothing in turbulence, and the FLOP-matched factorized baseline measures that smoothing directly. The 4:8 pattern gives the mask more freedom, and SR-STE's 77.4% suggests it helps. But it changes the pattern, not the selection criterion, so we run both our pruner and SR-STE at 4:8 as well, to check that the effect of reweighting survives the more flexible pattern.

Proposed Experiments

The main testbed is PDEBench 3D compressible and incompressible Navier-Stokes. We use its RMSE and its low-, mid- and high-band fRMSE, and add energy spectra and autoregressive rollout error growth. PDEBench reports about 0.14 s neural inference against about 60 s for the classical solver, but we found no fRMSE values on Lacuna, so dense numbers come from our own runs. The second testbed is the Salvus 3D seismic dataset (64³ grids, 2–6 Hz, 15,000/1,000/500 split). The dense references there are the reported waveform correlation of 0.89 for a single-stage FNO and 0.96 for the multistage FNO, from Kong et al. We report per-frequency relative L2 error across the 11 source frequencies, which gives a physically meaningful frequency axis.

The evidence comes in a fixed order. First, the diagnostic must show that curvature eigenvector frequency rises as eigenvalue falls; if it does not, the mechanism is wrong and we stop. Second, one-shot pruning must show plain L-OBS beating magnitude on RMSE while losing ground in the high fRMSE band, and reweighting recovering that band monotonically in $\beta$ up to some point. Third, the difference must survive fine-tuning against the spectral-loss baseline. Fourth, the savings must be real, measured as wall-clock latency and memory on Ampere GPUs alongside theoretical FLOPs, with the non-sparse FFT cost reported honestly.

A negative result on the second step, where plain curvature pruning shows no high-band penalty, would falsify the central claim. That makes the project worth running even if it fails, because it would tell practitioners that standard second-order pruners are safe for physics surrogates.