[Paper Review] FastLSQ: Solving PDEs in One Shot via Fourier Features with Exact Analytical Derivatives
FastLSQ uses sinusoidal random Fourier features to assemble PDE operators in closed form, enabling a one-shot linear solve for linear PDEs and Newton–Raphson iterations for nonlinear ones, with accuracy and speed far surpassing PINNs and other baselines.
We present FastLSQ, a framework for PDE solving and inverse problems built on trigonometric random Fourier features with exact analytical derivatives. Trigonometric features admit closed-form derivatives of any order in $\mathcal{O}(1)$, enabling graph-free operator assembly without autodiff. Linear PDEs: one least-squares call; nonlinear: Newton--Raphson reusing analytical assembly. On 17 PDEs (1--6D), FastLSQ achieves $10^{-7}$ in 0.07s (linear) and $10^{-8}$--$10^{-9}$ in $<$9s (nonlinear), orders of magnitude faster and more accurate than iterative PINNs. Analytical higher-order derivatives yield a differentiable digital twin; we demonstrate inverse problems (heat-source, coil recovery) and PDE discovery. Code: github.com/sulcantonin/FastLSQ and exttt{pip install fastlsq}.
Motivation & Objective
- Motivate fast, accurate PDE solving without iterative training or autodiff.
- Develop a one-shot solver using sinusoidal random Fourier features with exact analytical derivatives.
- Extend to nonlinear PDEs via Newton–Raphson with reusable analytical assembly.
- Demonstrate robustness and accuracy across high-dimensional and time-dependent PDEs.
- Showcase inverse problems and PDE discovery enabled by analytical derivative dictionaries.
Proposed method
- Approximate the solution with u_N(x) = (1/√N) sum_j β_j φ_j(x) where φ_j(x) = sin(W_j^T x + b_j).
- Freeze W_j and b_j at initialization; solve for β via a single least-squares call after assembling the operator matrix A analytically.
- Use exact analytical derivatives of sin features: D^α φ_j(x) = (∏_k W_jk^α_k) Φ_{|α| mod 4}(W_j^T x + b_j) enabling closed-form L[φ_j] for any linear operator L.
- Assemble A by computing L[φ_j](x_i) in O(1) per entry, without automatic differentiation.
- For linear PDEs: solve [A^pde; λ A_bc] β = [f; λ g] via QR or SVD to obtain the solution directly.
- For nonlinear PDEs: apply Newton–Raphson with linearized system using the same analytical assembly, including regularization μ and backtracking line search.
- In nonlinear/advection problems, use warm-start, continuation, and convergence criteria based on solution change rather than coefficient change.

Experimental results
Research questions
- RQ1Can sinusoidal random Fourier features enable a graph-free, closed-form assembly of PDE operators for linear and nonlinear problems?
- RQ2How does FastLSQ’s one-shot linear solve compare in accuracy and speed to PINNs, RF-PDE, PIELM, and conventional solvers across diverse PDEs?
- RQ3Is the Newton–Fast-LSQ extension robust and efficient for nonlinear PDEs, and what components are essential for convergence?
- RQ4Can analytical derivatives enable effective inverse problems and PDE discovery with minimal training time?
Key findings
- FastLSQ achieves 10^-7 accuracy in under 0.1 s on linear PDEs and 10^-8 to 10^-9 on nonlinear PDEs in under 9 s across 17 PDEs in up to 6 dimensions.
- Sinusoidal features enable exact closed-form derivatives for any linear operator, enabling graph-free operator assembly and avoiding autodiff.
- Compared to baselines, FastLSQ is orders of magnitude faster and more accurate than PINNacle variants and RF-PDE, with errors 10× to 1000× smaller in many cases.
- Newton–Fast-LSQ achieves 10^-8 to 10^-9 relative L2 errors on nonlinear problems in under 9 s with robust convergence aided by warm-start, backtracking, line search, and continuation when needed.
- Gradient errors for FastLSQ are within an order of magnitude of value errors, highlighting accurate derivative computation (Table 4).
- The framework supports inverse problems and PDE discovery via analytical derivative dictionaries, enabling efficient gradient-based optimization and improved noise robustness for SINDy-like discovery.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.