# Tackling the Curse of Dimensionality with Physics-Informed Neural Networks

Zheyuan Hu, Khemraj Shukla, George Em Karniadakis, Kenji Kawaguchi · arXiv · 2023-7-23

- **Problem** PINN training on high-dimensional PDEs runs out of GPU memory because the residual gradient needs a second-order derivative term for every dimension.
- **Method** SDGD splits the residual-loss gradient into one piece per PDE dimension and updates the PINN with a randomly sampled subset of those pieces, rescaled so the expected update equals the full gradient.
- **Results** Reached a relative L2 error of 2.175E-3 on the Poisson equation at 100,000 dimensions, where vanilla PINN runs out of memory above 5,000 dimensions.

![Table 1: Relative L2 error, time, and memory costs for vanilla PINNs \[54\] and SDGD (Ours) across different PDEs under various high dimensions. Vanilla PINNs \[5…](https://refivu.com/papers/06c237e9-b634-4450-8252-7fb4dd712d2e/figures/figure-ecd8bf57f25f9f4c0b1eae4c01c7da7c.png?thumb=512)

**Table 1** : Relative L2 error, time, and memory costs for vanilla PINNs \[54\] and SDGD (Ours) across different PDEs under various high dimensions. Vanilla PINNs \[54\] run out-of-memory for an A100 GPU with 81252MB memory in more than 5,000 D, while SDGD scales up to 100,000 D. SDGD’s errors are similar to those of vanilla PINNs in relatively lower dimensions (100 D, 1,000 D, and 5,000 D) while being much faster and more memory-efficient.

[Original paper](https://arxiv.org/abs/2307.12306v6) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zheyuan Hu, Khemraj Shukla, George Em Karniadakis, Kenji Kawaguchi · Tackling the Curse of Dimensionality with Physics-Informed Neural Networks · Original paper figure · Extracted the figure area from page 15 of the original PDF.

## Where the memory goes in high-dimensional PINNs

A PINN represents the PDE solution with a neural network and trains it on the PDE residual and boundary conditions evaluated at sampled points. For a Poisson-type equation the operator is a sum of one second-order derivative per coordinate, so the operator itself grows with the dimension d. The memory cost grows quadratically with d, because the first layer of the network grows with d and the number of second-order derivatives grows with d as well.

Shrinking the batch of collocation points does not remove this cost, since a single point already requires backpropagation through all d second-order terms. The input layer also scales with d, so the network itself adds memory on top of the derivative terms. The authors therefore locate the bottleneck in the backward pass over the per-dimension terms rather than in the number of points.

Earlier high-dimensional solvers \[1, 21, 52\] avoid this cost through Monte Carlo simulation of stochastic processes. According to the authors, those methods predict the solution at a single test point per training run and are tied to particular parabolic PDE types, which motivates a PINN-based route.

## Splitting the residual gradient by dimension

For the Poisson-type residual, the gradient of the squared residual loss can be written as a residual factor multiplied by a sum over dimensions of the parameter gradients of the second derivatives. \\\[ \\mathrm{grad}(\\theta)=\\Big(\\sum\_{i=1}^{d}\\partial^2\_{x\_i}u\_\\theta(x)-R(x)\\Big)\\sum\_{i=1}^{d}\\frac{\\partial}{\\partial\\theta}\\partial^2\_{x\_i}u\_\\theta(x) \\\] The residual factor is a scalar, so it can be computed and detached from the graph, which leaves the sum over dimensions as the part that needs backpropagation.

Each iteration draws a random index set I of dimensions and computes all second-derivative terms in the forward pass, but keeps the graph only for the indices in I. The sampled gradient is rescaled by d divided by the size of I, so that it matches the full gradient in expectation. \\\[ \\mathrm{grad}\_I(\\theta)=\\frac{d}{\|I\|}\\Big(\\sum\_{i=1}^{d}\\partial^2\_{x\_i}u\_\\theta(x)-R(x)\\Big)\\sum\_{i\\in I}\\frac{\\partial}{\\partial\\theta}\\partial^2\_{x\_i}u\_\\theta(x) \\\] Because the estimator is unbiased, standard optimizers such as Adam can be used on top of it.

Plain SGD over collocation points has a smallest unit of one point with all d dimensions backpropagated, while SDGD can use one point with one dimension as its smallest unit.

A full-batch gradient can also be built by accumulating gradients over non-overlapping index sets that cover all dimensions. This is memory-efficient but slow, because the loop over index sets runs one set at a time and cannot be parallelized.

## Sampling the forward pass as well

Sampling only the backward pass still computes every second-derivative term in the forward pass, which becomes the bottleneck when the dimension is in the thousands. Algorithm 2 therefore draws a second, independent index set J for the forward pass, computes only the sampled forward terms, and combines both sets in one update. \\\[ \\mathrm{grad}\_{I,J}(\\theta)=\\frac{N\_L}{\|I\|}\\Big(\\frac{N\_L}{\|J\|}\\sum\_{j\\in J}\\mathcal{L}\_j u\_\\theta(x)-R(x)\\Big)\\sum\_{i\\in I}\\frac{\\partial}{\\partial\\theta}\\mathcal{L}\_i u\_\\theta(x) \\\] Since I and J are chosen independently, this estimator is unbiased.

The bias shrinks as the dimension batch size \|I\| grows, so the method keeps its behavior when \|I\| is not too small. The authors accept the extra randomness in exchange for speed, arguing that early in training an imprecise gradient is enough to lower the loss quickly.

## Unbiasedness and the batch-size trade-off

The loss is normalized by the number of residual points N\_r and the number of PDE terms N\_L, because the residual scale otherwise grows with dimension. The proof is given in the appendix, which is not part of this excerpt.

The theorem holds at the current parameters, so it describes the variance of the next update, and the variance tends to decrease as either batch size grows.

At a fixed budget of \|B\| times \|I\|, there is a particular split that minimizes the variance, according to the authors. In the extreme case where the PDE terms have no variance, the authors pick 100 points with a single term for a budget of 100, and the reverse split is preferred when the points carry no variance. Real problems have both sources of variance, so the choice of batch sizes is a trade-off between them.

Sine and cosine activations satisfy this assumption. The convergence proof itself is not in this excerpt, so the claims supported here are unbiasedness, the variance form and the stated assumptions.

## Scaling to 100,000 dimensions on three elliptic PDEs

The three elliptic equations, Poisson, Allen-Cahn and Sine-Gordon, are posed on the unit ball with zero boundary values, and their exact solution is a sum of sines of coupled coordinates with random coefficients. The model is a 4-layer MLP with 128 hidden units trained with Adam for 10K epochs, starting at a learning rate of 1e-3. SDGD uses Algorithm 3 with 100 residual points and 100 sampled dimensions per epoch, while vanilla PINN uses the full dimensionality as its batch size.

Each setting is repeated five times with independent random seeds.

At 100,000 dimensions SDGD reaches relative L2 errors of 2.175E-3 for Poisson, 2.178E-3 for Allen-Cahn and 2.177E-3 for Sine-Gordon, with 32777 MB of memory. Vanilla PINN runs out of the A100 memory above 5,000 dimensions, with memory listed as more than 81252 MB at 10,000 and 100,000 dimensions. Below that, the errors are close: at 5,000 dimensions the Poisson error is 1.758E-3 for SDGD and 1.768E-3 for vanilla PINN, while vanilla PINN takes 30.54 hours and SDGD takes 1.18 hours.

The authors report that memory and time grow about linearly with dimension, and that moving from 10K to 100K dimensions raises both by less than a factor of 10. The authors attribute the gap with vanilla PINN to computing the entire second-order Laplacian in every step, which makes its cost grow quadratically with the dimension. At 100 dimensions the sampled batch of 100 dimensions covers all terms, so SDGD and vanilla PINN are the same algorithm.

## Batch sizes for residual points and dimensions at a fixed budget

The ablation uses the time-dependent Sine-Gordon equation in 100,000 dimensions, with an initial condition and one test point, sampled along stochastic trajectories. The default run uses Algorithm 2 with \|I\| = \|J\| = 10, a 4-layer MLP with 1024 hidden units, and 100 random SDE trajectories per epoch, and Table 2 varies the two batch sizes.

The first column of Table 2 reports 12.08 hours, which belongs to this time-dependent setting and differs from the 12 hours in the elliptic experiment.

Their memory stays between 32163 MB and 33056 MB, while their time ranges from 8.92 hours to 155.92 hours. The configuration with 1 sampled dimension and 10,000 points has no error entry (N.A.) and took 1518.22 hours.

At smaller products, memory falls to between 1849 MB and 5965 MB. The smallest product, 10 points with 10 terms, gives the largest error in the table at 2.794E-3, so lower memory comes with higher error here. The authors present these results as a guideline for choosing the batch sizes of PDE terms and residual points.

## Adversarial training for HJB equations

Adversarial training alternates between minimizing the residual loss over network parameters and maximizing it over residual point coordinates, which approximates an L-infinity loss. The authors describe this procedure as slow, and state that the prior work by Wang et al. and He et al. scaled it only to 250 dimensions. The authors use the exact HJB-LQG solution, given through a Gaussian integral, to benchmark PINN performance.

The network form \\( u\_\\theta(x,t)(1-t)+g(x) \\) satisfies the terminal condition automatically, so only the residual loss is trained. SDGD uses Algorithm 3 with 100 dimension terms for the gradient-descent step and 10 dimension terms for the adversarial step. Testing uses 20K points, with reference values from a Monte Carlo simulation of 1e5 samples, and each experiment is repeated five times.

In 250-dimensional HJB-LQG, reaching a relative L2 error of 1e-2 with the method of Wang et al. takes one day, while the authors' approach reaches a better error in 3.5 hours. In 1000 dimensions, full-batch adversarial training takes over 5 days, while the SDGD version reaches a relative L2 error of 5.852E-3 in 217 minutes. At 10,000 and 100,000 dimensions the reported relative L2 errors are about 5E-2.

On the HJB-Log benchmark the authors report that SDGD outperforms earlier methods, including the PINN-based approaches of He et al. and Wang et al. On HJB-Rosenbrock the authors report that their method is consistently better than the others.

## Gradient accumulation on the CQHO eigenvalue problem

The CQHO potential couples neighboring coordinates, and the domain is truncated to \[-5, 5\]^d. The metric is the relative L1 error of the minimum eigenvalue, written as \\( \|\\lambda\_{true}-\\lambda\_{approx}\|/\|\\lambda\_{true}\| \\). Gradient accumulation sums gradients over batches of dimension indices, which the authors say matches full-batch gradient descent in theory while saving memory.

Figure 2 covers 100, 1000, 10000 and 20000 dimensions, with dimension batches of 50, 500, 5000 and 2500. Across these dimensions the relative error stays below 1e-6.

The authors attribute the quick early drop to the large gradients that appear when the randomly initialized parameters are far from the solution. No numerical comparison with full-batch gradient descent is given, since the authors treat the two as theoretically equal.

## Limits of the sampling scheme

In extremely high dimensions SDGD needs a comparatively large dimension batch, since a too-small batch raises the stochastic gradient variance and slows convergence.

For the Schrödinger equation the residual points cannot be sampled, because the integral term in the denominator would make the sampled gradient biased. In that problem the network uses a separate network for each dimension, which costs memory even without differential terms. The authors leave an unbiased stochastic gradient for such problems as an open question.

The authors' description of earlier methods as limited to parabolic PDEs is their own characterization and was not tested here.

## Paper info

- **Authors**: Zheyuan Hu, Khemraj Shukla, George Em Karniadakis, Kenji Kawaguchi
- **Venue**: arXiv · Preprint
- **First published**: 2023-7-23
- **Added**: 2026-11-6
- **Updated**: 2024-5-17
- **Version**: v6
- **arXiv**: 2307.12306
- **DOI**: 10.1016/j.neunet.2024.106369
- **Category**: cs.LG · cs.AI · math.DS · math.NA · stat.ML
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2307.12306v6) · [PDF ↗](https://arxiv.org/pdf/2307.12306v6)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

The curse-of-dimensionality taxes computational resources heavily with exponentially increasing computational cost as the dimension increases. This poses great challenges in solving high-dimensional PDEs, as Richard E. Bellman first pointed out over 60 years ago. While there has been some recent success in solving numerically partial differential equations (PDEs) in high dimensions, such computations are prohibitively expensive, and true scaling of general nonlinear PDEs to high dimensions has never been achieved. We develop a new method of scaling up physics-informed neural networks (PINNs) to solve arbitrary high-dimensional PDEs. The new method, called Stochastic Dimension Gradient Descent (SDGD), decomposes a gradient of PDEs into pieces corresponding to different dimensions and randomly samples a subset of these dimensional pieces in each iteration of training PINNs. We prove theoretically the convergence and other desired properties of the proposed method. We demonstrate in various diverse tests that the proposed method can solve many notoriously hard high-dimensional PDEs, including the Hamilton-Jacobi-Bellman (HJB) and the Schrödinger equations in tens of thousands of dimensions very fast on a single GPU using the PINNs mesh-free approach. Notably, we solve nonlinear PDEs with nontrivial, anisotropic, and inseparable solutions in 100,000 effective dimensions in 12 hours on a single GPU using SDGD with PINNs. Since SDGD is a general training methodology of PINNs, it can be applied to any current and future variants of PINNs to scale them up for arbitrary high-dimensional PDEs.

## Quote from the paper

Zheyuan Hu, Khemraj Shukla, George Em Karniadakis, Kenji Kawaguchi (2023). Tackling the Curse of Dimensionality with Physics-Informed Neural Networks. arXiv:2307.12306v6. https://doi.org/10.1016/j.neunet.2024.106369

**BibTeX**

```
@article{hu2023tackling,
  title = {{Tackling the Curse of Dimensionality with Physics-Informed Neural Networks}},
  author = {Zheyuan Hu and Khemraj Shukla and George Em Karniadakis and Kenji Kawaguchi},
  year = {2023},
  eprint = {2307.12306},
  archivePrefix = {arXiv},
  doi = {10.1016/j.neunet.2024.106369},
  url = {https://arxiv.org/abs/2307.12306v6}
}
```

## Other paper commentary

- [Continuous online sequence learning with an unsupervised neural network model](https://refivu.com/en/papers/2850b462-149b-4637-8186-0e3a02a69df4-continuous-online-sequence-learning-with-an-unsupervised.md)
- [A Cost-Sensitive Deep Belief Network for Imbalanced Classification](https://refivu.com/en/papers/140fac18-43ea-4f02-a761-0549f84a0de3-a-cost-sensitive-deep-belief-network-for-imbalanced.md)
- [Weakly-Supervised Convolutional Neural Networks for Multimodal Image Registration](https://refivu.com/en/papers/bfc7dfd6-1596-4541-9723-c26ab0c5a3f5-weakly-supervised-convolutional-neural-networks-for.md)
- [A Deep Cascade of Convolutional Neural Networks for Dynamic MR Image Reconstruction](https://refivu.com/en/papers/c81adf70-889d-4a7a-93f1-14353887187b-a-deep-cascade-of-convolutional-neural-networks-for.md)
- [Learning to (Learn at Test Time): RNNs with Expressive Hidden States](https://refivu.com/en/papers/6a02f8bd-d757-4f00-9d97-6829bf6db29f-learning-to-learn-at-test-time-rnns-with.md)
- [GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints](https://refivu.com/en/papers/11792bcd-8c73-4a2d-8b43-c855c3d7ad48-gqa-training-generalized-multi-query-transformer-models-from.md)
- [A Dependable Hybrid Machine Learning Model for Network Intrusion Detection](https://refivu.com/en/papers/ed6bed44-96ef-4320-bbfe-461ed585a922-a-dependable-hybrid-machine-learning-model-for-network.md)
- [EDiffSR: An Efficient Diffusion Probabilistic Model for Remote Sensing Image Super-Resolution](https://refivu.com/en/papers/76f50706-1489-43e9-9b29-6e7734ea5128-ediffsr-an-efficient-diffusion-probabilistic-model-for.md)
- [FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention](https://refivu.com/en/papers/da96ee97-6c27-4d11-88b7-679762995493-fastcomposer-tuning-free-multi-subject-image-generation-with.md)
- [Multi-Temporal Land Cover Classification with Sequential Recurrent Encoders](https://refivu.com/en/papers/fbc752d9-1a2a-4b13-ac64-8967dd7bd971-multi-temporal-land-cover-classification-with-sequential.md)
- [StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows](https://refivu.com/en/papers/49804159-5719-4639-92c6-0d48431420f2-styleflow-attribute-conditioned-exploration-of-stylegan.md)
- [Deep Reinforcement Learning for Stochastic Computation Offloading in Digital Twin Networks](https://refivu.com/en/papers/3abcd222-e3a8-4466-ab8d-04aeace1e847-deep-reinforcement-learning-for-stochastic-computation.md)

## Terms in this paper

- [ADAM](https://refivu.com/en/terms/0e9ad0199e08-adam)
- [Algorithm 2](https://refivu.com/en/terms/04b0827776b6-algorithm-2)
- [Physics-informed neural networks](https://refivu.com/en/terms/b02fd38bd572-physics-informed-neural-networks)
- [PINN](https://refivu.com/en/terms/96c0b7870f76-pinn)
- [Relative L1 Error](https://refivu.com/en/terms/b90cbafc7bc5-relative-l1-error)
- [residual loss](https://refivu.com/en/terms/d5d8e3acf238-residual-loss)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/06c237e9-b634-4450-8252-7fb4dd712d2e-tackling-the-curse-of-dimensionality-with-physics-informed)
