✗ Mechanism failed 2026

FFT Natural-Gradient Preconditioner

Implementation & benchmark of arXiv:2607.01634 — Fourier-Diagonalized Natural Gradients and Sobolev Mirror Descent

Usefulness6/10
Difficulty4/10
Novelty6/10

Source paper: Fourier-Diagonalized Natural Gradients and Sobolev Mirror Descent arXiv:2607.01634 ⓘ · analyzed Aug 30, 2026

AI-generated research hypothesis, automatically tested. Not peer-reviewed.

Idea description

Replace the ordinary gradient of a spatially indexed parameter tensor by a Fourier-domain inverse-metric gradient. FFT the gradient over its spatial dimensions, divide every frequency by a positive spectral symbol, inverse FFT, and then apply the optimizer step. Use a Bessel/Sobolev symbol as a parameter-free baseline and optionally estimate a task-specific symbol from gradient power spectra.

Formulas

$$\widehat{d}(\omega)=\frac{\widehat{g}(\omega)}{\lambda(\omega)}$$
$$\widehat{F d}(\omega)=\lambda(\omega)\widehat{d}(\omega)$$
$$\lambda_s(\omega)=(\alpha+\beta\|\omega\|_2^2)^s,\qquad \widehat d(\omega)=\frac{\widehat g(\omega)}{\max\{\lambda_s(\omega),\varepsilon\}}$$
$$\theta_{t+1}=\theta_t-\eta d_t,\qquad d_t=\mathcal{F}^{-1}\left[\frac{\mathcal{F}(\nabla_\theta L_t)}{\max\{\lambda_s,\varepsilon\}}\right]$$

Mathematical statement

The paper considers a positive self-adjoint translation-invariant operator \(F\) on \(\mathbb{R}^d\) or the torus \(\mathbb{T}^d\). Translation invariance makes \(F\) a Fourier multiplier with positive symbol \(\lambda(\omega)>0\), where \(\omega\) is the spatial frequency and positivity guarantees that the inverse metric exists. For a gradient field \(g\), the natural-gradient direction \(d=F^{-1}g\) is computed modewise by the paper's equation \(\widehat d(\omega)=\widehat g(\omega)/\lambda(\omega)\), where \(\widehat g\) and \(\widehat d\) are Fourier transforms. In the neural adaptation, use the Sobolev/Bessel-potential choice \(\lambda_s(\omega)=(\alpha+\beta\|\omega\|_2^2)^s\), with \(\alpha>0\), \(\beta\ge 0\), and exponent \(s\ge 0\); this is a positive low-pass inverse-metric update \(\widehat d(\omega)=\widehat g(\omega)/\lambda_s(\omega)\). The spatial grid has frequency vectors \(\omega\), \(g\) is the real gradient tensor, \(d\) is the preconditioned gradient, and \(\eta\) is the learning rate. For numerical safety replace \(\lambda_s\) by \(\max(\lambda_s,\varepsilon)\), with \(\varepsilon>0\).

Implementation notes

Integrate this into the optimizer immediately after backpropagation and before the parameter update. Start with convolutional kernels or spatially arranged model parameters whose last two dimensions are height and width; do not FFT across the channel or output-channel dimensions in the first experiment. For each eligible gradient tensor g with shape [out_channels, in_channels, H, W], precompute the real FFT frequency grid omega2 = wx2 + wy2 for the H x W grid and the fixed positive symbol lam = (alpha + beta*omega2)**s. Use the following pseudocode: g = parameter.grad; G = rfft2(g, dims=(-2,-1)); D = G / clamp(lam, min=eps); d = irfft2(D, s=(H,W), dims=(-2,-1)); parameter -= eta*d. Preserve the real-valued gradient after the inverse FFT. For an Adam-compatible variant, apply the FFT preconditioner to the raw gradient before computing Adam moments, but separately test applying it after Adam's bias-corrected direction; these are different algorithms. The mathematical computation is the Fourier diagonalization and modewise division. Estimate nothing for the fixed Sobolev baseline; for an adaptive extension estimate the per-frequency gradient power P_t(omega)=EMA(|FFT(g_t)(omega)|^2) and set lambda(omega)=clip((P_t(omega)+delta)^(-q/2), lambda_min, lambda_max) only after the fixed-symbol test. First run on CIFAR-10 with a small 6-layer CNN and compare SGD, SGD with momentum, AdamW, and this FFT-SGD at equal batch size and FLOPs. Sweep s in {0, 0.25, 0.5, 1} and choose beta from {0.01, 0.1, 1} after one validation split. Success means faster training loss decrease at equal optimizer steps, fewer exploding or oscillatory runs at large learning rates, or higher test accuracy at equal training compute; also report FFT overhead and whether the method improves convergence on a periodic-grid PDE task such as Burgers or Darcy flow.

Verification

Mechanism failed

Stage 1 · Toy mechanism gate: Failed ✗

Stage 2 · Mechanism transferred to benchmark: Not tested

Stage 2 · Practical benchmark result: Not run

Methodology: Toy-system gate first; the benchmark stage runs only after a pass. How verification works

Stage 1 — Mechanism check agent confidence 9/10

Built an FFT Sobolev/Bessel inverse-metric preconditioner and verified that applying the spectral operator after preconditioning reconstructs the original gradient with relative error 7.5e-16; the preconditioned gradient also had positive inner product with the gradient. On a condition-number-129 periodic quadratic, FFT-SGD reached loss -29.254 by step 10 versus -20.468 for tuned baseline SGD, but cost about 1.48x more wall-clock time. On the tiny CNN, FFT-SGD was slightly worse than SGD: final loss 0.208 vs 0.195 and accuracy 92.97% vs 93.36%, with 0.842s vs 0.651s runtime, so the promised practical effect was not observed.

Agent confidence
9/10
Baseline
Quadratic: step-10 loss -20.46795, final loss -28.86998, 0.0525s; CNN: step-10 loss 0.68033, final loss 0.19473, accuracy 93.36%, 0.6508s
Idea
Quadratic: step-10 loss -29.25388, final loss -29.25389, 0.0777s; CNN: step-10 loss 0.68068, final loss 0.20764, accuracy 92.97%, 0.8421s; math relative inverse error 7.54e-16

Limitations: The experiment used a synthetic 2-class image task rather than CIFAR-10, and did not test momentum, AdamW, adaptive spectral estimation, PDE benchmarks, multiple seeds, or broad hyperparameter tuning. CUDA execution failed in the environment and the script automatically reran on CPU.

How to run: python3 experiment.py

Verdict computed by deterministic test code from paired-seed statistics — not by the language model.

Artifacts

Implementation overview ⬇ Download all as ZIP 2 files · code, reports and structured results