The Random Feature Method (RFM) has emerged as a powerful mesh-free approach for solving partial differential equations (PDEs) using neural networks. By keeping inner-layer parameters random and optimizing only the outer layer, RFM transforms complex nonlinear problems into linear least squares problems. However, to achieve high accuracy, these systems must be solved with extreme precision. In practice, these systems are often massive, overdetermined, and severely ill-conditioned, posing significant challenges for standard solvers.
The Challenge of Ill-Conditioned Systems
RFM systems typically involve millions of collocation points (rows) and thousands of features (columns). Their condition numbers can be astronomical, causing standard iterative solvers like LSQR or Conjugate Gradient (CG) to stall. While direct solvers like QR decomposition offer high accuracy, they scale poorly for large 3D problems due to memory and time constraints.
Proposed Randomized Iterative Algorithms
To address these issues, the authors introduce two new randomized iterative algorithms: CSQRP-LSQR and CSSVDP-LSQR. These methods combine sparse dimensionality reduction with explicit preconditioning to achieve near-machine precision while maintaining computational efficiency.
As detailed in Algorithm 1, the pipeline consists of three main steps:
- Sketching: A "count sketch" matrix $\mathbf{S}$ projects the massive matrix $\mathbf{A}$ into a smaller matrix $\tilde{\mathbf{A}} = \mathbf{SA}$.
- Preconditioning:
- CSQRP-LSQR uses QR factorization on $\tilde{\mathbf{A}}$ to find a triangular preconditioner $\mathbf{R}$.
- CSSVDP-LSQR employs Singular Value Decomposition (SVD) for rank-deficient matrices.
- Iterative Solving: The original system is transformed into a well-conditioned one, $\mathbf{B} = \mathbf{AR}^{-1}$, and solved using LSQR.
Efficient Sketching with Count Sketch
A key component of these algorithms is the choice of sketching method. The authors utilize "count sketch" matrices, which are extremely sparse. This sparsity allows for very fast computation of the sketched matrix, as the operation $\tilde{\mathbf{A}} = \mathbf{SA}$ essentially involves only additions and subtractions.
As shown in the table above, the complexity of count sketch is $\mathcal{O}(\text{nnz}(\mathbf{A}))$, making it significantly more efficient than Gaussian Random Projections (GRP) or Subsampled Randomized Hadamard Transforms (SRHT) for large-scale sparse matrices.
Key Insights: Explicit Preconditioning and Linear Scaling
A major novelty of this work is the use of explicit preconditioning. Unlike previous randomized solvers that apply the preconditioner implicitly, the authors found that explicitly forming the matrix $\mathbf{B} = \mathbf{AR}^{-1}$ allows LSQR to reach relative errors as low as $10^{-15}$ to $10^{-17}$. This approach ensures that the resulting condition number is bounded independently of the original matrix's condition.
Furthermore, while theoretical proofs for subspace embeddings often suggest a quadratic sketch size ($s = \mathcal{O}(n^2)$), the authors empirically demonstrated that a simple linear oversampling factor (e.g., $s = 3n$) is sufficient for excellent preconditioning in practical RFM applications.
Performance and Robustness
The proposed methods were evaluated on diverse problems, including 2D/3D elasticity, Stokes flow, and Poisson equations, as well as challenging matrices from the Florida Sparse Matrix Collection.
Key results include:
- Accuracy: Performance on par with gold-standard Householder QR at a fraction of the cost.
- Speed: Significant speedups over state-of-the-art sparse direct solvers like SPQR for large 3D problems.
- Robustness: Successful handling of matrices with condition numbers up to $10^{18}$, transforming them into systems with condition numbers between 3 and 7.
Conclusion
The CSQRP-LSQR and CSSVDP-LSQR algorithms provide a robust and efficient solution for the high-precision requirements of the Random Feature Method. By leveraging sparse count sketches and explicit preconditioning, these methods bridge the gap between the accuracy of direct solvers and the scalability of iterative methods. Future work will focus on optimizing memory management for even larger problems and closing the theoretical gap regarding linear oversampling.
Summary updated