# 物理信息机器学习

物理信息机器学习（PIML）是一类方法的总称，其核心是将物理定律——通常是偏微分方程（PDE）和守恒原理——嵌入机器学习模型的训练过程，使预测在拟合稀疏或含噪数据的同时遵循已知物理规律。物理信息神经网络（PINN）是一种经过训练以求解监督学习任务的神经网络，同时遵循由一般非线性偏微分方程描述的物理定律。<sup>[1](https://doi.org/10.1016/j.jcp.2018.10.045)</sup> 物理知识起正则化作用，约束可容许解的空间，从而能够从少量训练样本中获得良好的泛化能力。<sup>[1](https://doi.org/10.1016/j.jcp.2018.10.045)</sup> PIML 占据一个中间地带：它无需网格，在处理缺失参数、未知边界条件以及含噪或稀疏测量方面优于传统求解器，但在方程已知且需要具有已知误差界的精确输出时，它并不能取代传统求解器。<sup>[2](https://www.nature.com/articles/s42254-021-00314-5)</sup><sup> • </sup><sup>[3](https://link.springer.com/article/10.1007/s44379-025-00016-0)</sup>

| 关键事实 | 详情 |
|---|---|
| 奠基论文 | 拉伊西、佩尔迪卡里斯和卡尼亚达基斯于 2017 年发表的两部分 arXiv 预印本，后合并为《计算物理学杂志》论文（2018 年 11 月在线发表；期刊引用卷 378，第 686–707 页，2019 年）<sup>[4](https://arxiv.org/abs/1711.10561)</sup><sup> • </sup><sup>[5](https://www.osti.gov/pages/biblio/1595805)</sup><sup> • </sup><sup>[2](https://www.nature.com/articles/s42254-021-00314-5)</sup> |
| 损失函数 | 均方误差拆分为 \( \mathrm{MSE} = \mathrm{MSE}_{u} + \mathrm{MSE}_{f} \)：数据/初始/边界项加上配点处的 PDE 残差<sup>[4](https://arxiv.org/abs/1711.10561)</sup> |
| 残差计算 | 对网络关于输入坐标和参数进行自动微分<sup>[4](https://arxiv.org/abs/1711.10561)</sup> |
| 典型优化器 | Adam 后接拟牛顿 L-BFGS<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)</sup> |
| 最佳实践精度 | 相对 L2 误差为 \( 5.37 \times 10^{-5} \)（Allen–Cahn 方程）、\( 6.88 \times 10^{-4} \)（平流方程）、\( 8.04 \times 10^{-5} \)（Stokes 方程）、\( 1.61 \times 10^{-1} \)（Kuramoto–Sivashinsky 方程）<sup>[7](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup> |
| 基准测试现实 | 在 10% 相对误差阈值下，原始 PINN 仅解决了 PINNacle 22 项任务中的 10 项<sup>[8](https://papers.nips.cc/paper_files/paper/2024/file/8c63299fb2820ef41cb05e2ff11836f5-Paper-Datasets_and_Benchmarks_Track.pdf)</sup> |
| 成本示例 | 含 5,080 个配点的 Burgers 方程 PINN 在 NVIDIA Tesla T4 GPU 上训练约 50 秒<sup>[9](https://www.mdpi.com/2075-1680/12/10/982)</sup> |

## 工作原理

PINN 将未知解表示为一个神经网络 \( u_{\theta}(t,x) \)，其参数 \( \theta \) 通过最小化复合损失函数进行训练。在原始表述中，均方误差为

\[ \mathrm{MSE} = \mathrm{MSE}_{u} + \mathrm{MSE}_{f}, \]

其中 \( \mathrm{MSE}_{u} \) 涵盖初始和边界数据，\( \mathrm{MSE}_{f} \) 在有限配点集上强制执行 PDE 结构。<sup>[4](https://arxiv.org/abs/1711.10561)</sup><sup> • </sup><sup>[10](https://github.com/maziarraissi/PINNs/blob/master/docs/index.md)</sup> 在更一般的连续形式中，物理信息损失将域上 PDE 残差的平方与边界和初始条件残差的加权平方相结合，权重超参数为 \( \lambda_{s}, \lambda_{t} > 0 \)。<sup>[11](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/A059C6E13478F0F7C70EC7C976716F9F/S0962492923000089a.pdf/numerical_analysis_of_physicsinformed_neural_networks_and_related_models_in_physicsinformed_machine_learning.pdf)</sup>

残差中的导数通过对网络关于其输入坐标的自动微分精确计算，而关于模型参数的梯度则通过反向传播计算以优化损失。<sup>[4](https://arxiv.org/abs/1711.10561)</sup> 因此在标准表述中，物理定律以软惩罚的形式进入损失函数，而非硬约束；硬表述则选择一种模型类别，使每个 \( u_{\theta} \) 都精确满足边界条件。<sup>[11](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/A059C6E13478F0F7C70EC7C976716F9F/S0962492923000089a.pdf/numerical_analysis_of_physicsinformed_neural_networks_and_related_models_in_physicsinformed_machine_learning.pdf)</sup> 根据数据的组织方式，原始框架区分连续时间与离散时间算法类别<sup>[1](https://doi.org/10.1016/j.jcp.2018.10.045)</sup>；离散时间变体将网络包裹在具有任意多级的隐式龙格–库塔格式中，允许大时间步长同时保持稳定性。<sup>[4](https://arxiv.org/abs/1711.10561)</sup>

## 实施方法

根据已发表的最佳实践总结出的从业者工作流程如下<sup>[7](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup>：

1. **无量纲化** PDE 并选择架构，通常为带傅里叶特征嵌入和随机权重分解的 MLP，tanh 激活函数，Glorot 初始化。<sup>[7](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup>
2. **采样配点**：在域内以及初始和边界面上采样点。拉丁超立方采样是常见的默认选择。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)</sup>
3. **加权并平衡损失项。** 使用梯度统计的学习率退火来均衡反向传播的梯度范数，在一系列计算物理问题上将精度提高了 50–100 倍。<sup>[12](https://link.springer.com/article/10.1007/s10462-025-11322-7)</sup>
4. **优化**：首先用 Adam，然后用拟牛顿 L-BFGS——一种基于梯度的优化器，与 Adam 结合可提高精度。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)</sup>
5. **自适应细化**残差较大的区域。基于残差的自适应细化（RAR）在 PDE 残差较大处添加残差点，保留–重采样–释放（R3）算法针对传播失败；gPINN 结合 RAR 在陡梯度 PDE 上表现良好。<sup>[12](https://link.springer.com/article/10.1007/s10462-025-11322-7)</sup>

软件库直接实现了这一流程：DeepXDE<sup>[13](https://doi.org/10.1137/19m1274067)</sup> 和 SciANN<sup>[14](https://doi.org/10.1016/j.cma.2020.113552)</sup> 用于物理信息深度学习，TorchPhysics 则为 PDE 和条件定义残差函数、采样点，并使用 PyTorch 自动微分最小化残差的 L2 范数平方和。<sup>[15](https://boschresearch.github.io/torchphysics/tutorial/Introduction_Tutorial_PINNs.html)</sup>

## 起源

现代 PINN 由 玛齐亚尔·拉伊西、帕里斯·佩尔迪卡里斯和乔治·埃姆·卡尼亚达基斯 在 2017 年的两篇 arXiv 预印本中提出并命名<sup>[4](https://arxiv.org/abs/1711.10561)</sup>，后合并为他们的《计算物理学杂志》论文，记录为 2018 年 11 月在线日期，引用为卷 378，第 686–707 页（2019 年）。<sup>[5](https://www.osti.gov/pages/biblio/1595805)</sup><sup> • </sup><sup>[2](https://www.nature.com/articles/s42254-021-00314-5)</sup> 同一团队此前的高斯过程工作为其先导：非线性 PDE 的隐藏物理模型（拉伊西和卡尼亚达基斯，2017）<sup>[16](https://doi.org/10.1016/j.jcp.2017.11.039)</sup> 以及时间依赖和非线性 PDE 的数值高斯过程（拉伊西、佩尔迪卡里斯和卡尼亚达基斯，2017）。<sup>[17](https://doi.org/10.48550/arxiv.1703.10230)</sup>

这一思想更为久远。一篇数值分析综述将 迪萨纳亚克和潘天（1994）以及拉加里斯、利卡斯和福蒂亚迪斯（1998）认定为 PINN 的先驱<sup>[11](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/A059C6E13478F0F7C70EC7C976716F9F/S0962492923000089a.pdf/numerical_analysis_of_physicsinformed_neural_networks_and_related_models_in_physicsinformed_machine_learning.pdf)</sup>；拉加里斯及其同事 1998 年的论文《用于求解常微分和偏微分方程的人工神经网络》发表于《IEEE 神经网络汇刊》<sup>[18](https://doi.org/10.1109/72.712178)</sup>，而 PINN 论文自身的相关记录包括 普西霍吉奥斯和昂加尔于 1992 年在《AIChE 杂志》上发表的混合神经网络–第一性原理工作。<sup>[5](https://www.osti.gov/pages/biblio/1595805)</sup>

## 变体

变体主要在物理如何进入训练目标方面有所不同<sup>[11](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/A059C6E13478F0F7C70EC7C976716F9F/S0962492923000089a.pdf/numerical_analysis_of_physicsinformed_neural_networks_and_related_models_in_physicsinformed_machine_learning.pdf)</sup>：

- **变分与弱形式。** VPINN 使用 PDE 的变分（弱、测试函数）形式<sup>[19](https://doi.org/10.48550/arxiv.1912.00873)</sup>，hp-VPINN 通过域分解对其扩展<sup>[20](https://doi.org/10.1016/j.cma.2020.113547)</sup>；wPINN 针对双曲守恒律的熵解。<sup>[21](https://doi.org/10.1137/22m1522504)</sup>
- **能量方法。** DeepRitz 方法最小化底层能量，Deep Galerkin 方法（西里尼亚诺和斯皮利奥普洛斯，2018）是一种相关的深度 PDE 算法。<sup>[11](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/A059C6E13478F0F7C70EC7C976716F9F/S0962492923000089a.pdf/numerical_analysis_of_physicsinformed_neural_networks_and_related_models_in_physicsinformed_machine_learning.pdf)</sup><sup> • </sup><sup>[22](https://doi.org/10.1016/j.jcp.2018.08.029)</sup>
- **域分解。** cPINN 在离散域上强制跨子域界面的通量连续性<sup>[23](https://doi.org/10.1016/j.cma.2020.113028)</sup>，XPINN 将其推广到任意时空分解并实现高效并行计算。<sup>[24](https://doi.org/10.4208/cicp.oa-2020-0164)</sup>
- **不确定性与随机性。** B-PINN 为含噪数据的 PDE 正问题和反问题提供贝叶斯处理<sup>[25](https://doi.org/10.1016/j.jcp.2020.109913)</sup>，物理信息生成对抗网络处理随机微分方程。<sup>[26](https://doi.org/10.1137/18m1225409)</sup>
- **分数阶与无惩罚表述。** fPINN 处理分数阶 PDE<sup>[27](https://doi.org/10.1137/18m1229845)</sup>；PFNN 针对复杂几何上的一类二阶边值问题移除了惩罚项。<sup>[28](https://doi.org/10.1016/j.jcp.2020.110085)</sup>
- **算子学习。** DeepONet 基于算子的通用逼近定理学习非线性算子（陆路及其同事，2021）<sup>[29](https://doi.org/10.1038/s42256-021-00302-5)</sup>；[傅里叶神经算子](https://www.edgepedia.org/zh/fourier-neural-operator)是一种相关的参数化 PDE 架构。

## 应用

原始框架在流体、量子力学、反应–扩散和浅水问题上进行了演示，涵盖数据驱动求解和数据驱动发现 PDE 参数 \( \lambda \)，例如 Burgers 算子 \( \mathcal{N}[u;\lambda] = \lambda_{1} u \cdot u_{x} - \lambda_{2} u_{xx} \)。<sup>[1](https://doi.org/10.1016/j.jcp.2018.10.045)</sup><sup> • </sup><sup>[30](https://ar5iv.labs.arxiv.org/html/1711.10566)</sup> 综述报告了在流体动力学、传热、固体力学和磁学中的采用。<sup>[31](https://www.sciopen.com/article/10.26599/TST.2025.9010157)</sup> 最明显的比较优势在于不适定和反问题，PINN 在这些问题上有效且高效，并且结合域分解可扩展到大型问题。<sup>[2](https://www.nature.com/articles/s42254-021-00314-5)</sup> 工业界的采用归因于免除了网格生成、数据与物理的融合以及发现控制方程的能力。<sup>[32](https://arxiv.org/html/2408.16806)</sup>

## 局限与替代方案

**与传统求解器的对比。** 在一项求解 1D–3D 泊松方程、1D Allen–Cahn 方程以及 1D 和 2D 半线性薛定谔方程的系统研究中，PINN 在求解时间或精度上均未超过有限元方法，尽管在某些实验中训练好的 PINN 在评估已求解 PDE 时更快。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)</sup> PINNacle 基准涵盖 20 多个 PDE 问题和 10 种 PINN 方法，发现在 10% 相对 L2 误差阈值下，原始 PINN 仅解决了 22 项任务中的 10 项，且多为较简单的方程，在复杂几何、多尺度现象、非线性和较长时间跨度上表现不佳；作者得出结论，PINN 的性能尚未达到传统数值方法的水平。<sup>[8](https://papers.nips.cc/paper_files/paper/2024/file/8c63299fb2820ef41cb05e2ff11836f5-Paper-Datasets_and_Benchmarks_Track.pdf)</sup> 在三个 Burgers 方程测试问题上，步长足够细的显式有限差分格式显示出比 PINN 更高的精度。<sup>[9](https://www.mdpi.com/2075-1680/12/10/982)</sup> 原始作者本人也指出，这些方法不应被视为有限元或谱方法等经典数值方法的替代品。<sup>[4](https://arxiv.org/abs/1711.10561)</sup>

**失效模式。** 已记录的训练病态包括谱偏差、因果性违背以及损失项之间反向传播梯度不平衡。<sup>[7](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup> 误差分析表明，初始和边界条件上的 L2 惩罚削弱了误差衰减所在的范数，并且由于神经网络逼近类不是子向量空间，Galerkin 正交性失效，经典 Céa 引理证明对 PINN 不成立。<sup>[33](https://ar5iv.labs.arxiv.org/html/2311.00529)</sup> 训练误差被认定为 PIML 模型中的关键瓶颈。<sup>[11](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/A059C6E13478F0F7C70EC7C976716F9F/S0962492923000089a.pdf/numerical_analysis_of_physicsinformed_neural_networks_and_related_models_in_physicsinformed_machine_learning.pdf)</sup>

**理论。** 关于训练点数量的首批收敛结果——针对线性二阶椭圆和抛物型 PDE——归功于申、达尔邦和卡尼亚达基斯（2020）。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)</sup><sup> • </sup><sup>[34](https://doi.org/10.4208/cicp.oa-2020-0193)</sup>

**何时选择 PIML。** 当任务需要精确输出且控制方程已知时，传统求解器可能更可取，因为它提供已知的误差界且计算效率更高；PIML 以部分可靠性换取灵活性，在先验物理知识不精确时尤为有用。<sup>[3](https://link.springer.com/article/10.1007/s44379-025-00016-0)</sup>

## References

1. [M. Raissi, P. Perdikaris, G.E. Karniadakis (2018). Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics.](https://doi.org/10.1016/j.jcp.2018.10.045)
2. [Physics-informed machine learning | Nature Reviews Physics](https://www.nature.com/articles/s42254-021-00314-5)
3. [When physics meets machine learning: a survey of physics-informed machine learning](https://link.springer.com/article/10.1007/s44379-025-00016-0)
4. [Physics Informed Deep Learning (Part I): Data-driven Solutions of Nonlinear Partial Differential Equations](https://arxiv.org/abs/1711.10561)
5. [OSTI.GOV record of the PINN journal paper](https://www.osti.gov/pages/biblio/1595805)
6. [Can physics-informed neural networks beat the finite element method?](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)
7. [Physics-Informed Neural Networks: Best Practices and Benchmarks (JAX-PIPINN best-practices paper)](https://export.arxiv.org/pdf/2308.08468v1.pdf)
8. [PINNacle: A Comprehensive Benchmark of Physics-Informed Neural Networks for Solving PDEs](https://papers.nips.cc/paper_files/paper/2024/file/8c63299fb2820ef41cb05e2ff11836f5-Paper-Datasets_and_Benchmarks_Track.pdf)
9. [A Comparative Study of the Explicit Finite Difference Method and Physics-Informed Neural Networks for Solving the Burgers' Equation](https://www.mdpi.com/2075-1680/12/10/982)
10. [PINNs official repository documentation (Raissi)](https://github.com/maziarraissi/PINNs/blob/master/docs/index.md)
11. [Numerical analysis of physics-informed neural networks and related models in physics-informed machine learning (De Ryck & Mishra, Acta Numerica)](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/A059C6E13478F0F7C70EC7C976716F9F/S0962492923000089a.pdf/numerical_analysis_of_physicsinformed_neural_networks_and_related_models_in_physicsinformed_machine_learning.pdf)
12. [Physics-informed neural networks for PDE problems: a comprehensive review (Artificial Intelligence Review)](https://link.springer.com/article/10.1007/s10462-025-11322-7)
13. [Lu Lu and colleagues (2021). DeepXDE: A Deep Learning Library for Solving Differential Equations. SIAM Review.](https://doi.org/10.1137/19m1274067)
14. [Ehsan Haghighat, Ruben Juanes (2020). SciANN: A Keras/TensorFlow wrapper for scientific computations and physics-informed deep learning using artificial neural networks. Computer Methods in Applied Mechanics and Engineering.](https://doi.org/10.1016/j.cma.2020.113552)
15. [TorchPhysics tutorial: PINNs implementation steps](https://boschresearch.github.io/torchphysics/tutorial/Introduction_Tutorial_PINNs.html)
16. [Maziar Raissi, George Em Karniadakis (2017). Hidden physics models: Machine learning of nonlinear partial differential equations. Journal of Computational Physics.](https://doi.org/10.1016/j.jcp.2017.11.039)
17. [Raissi, Maziar, Perdikaris, Paris, Karniadakis, George Em (2017). Numerical Gaussian Processes for Time-dependent and Non-linear Partial Differential Equations. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1703.10230)
18. [I.E. Lagaris, A. Likas, D.I. Fotiadis (1998). Artificial neural networks for solving ordinary and partial differential equations. IEEE Transactions on Neural Networks.](https://doi.org/10.1109/72.712178)
19. [Kharazmi, E., Zhang, Z., Karniadakis, G. E. (2019). Variational Physics-Informed Neural Networks For Solving Partial Differential Equations. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1912.00873)
20. [Ehsan Kharazmi, Zhongqiang Zhang, George E.M. Karniadakis (2020). hp-VPINNs: Variational physics-informed neural networks with domain decomposition. Computer Methods in Applied Mechanics and Engineering.](https://doi.org/10.1016/j.cma.2020.113547)
21. [Tim De Ryck, Siddhartha Mishra, Roberto Molinaro (2024). wPINNs: Weak Physics Informed Neural Networks for Approximating Entropy Solutions of Hyperbolic Conservation Laws. SIAM Journal on Numerical Analysis.](https://doi.org/10.1137/22m1522504)
22. [Justin Sirignano, Konstantinos Spiliopoulos (2018). DGM: A deep learning algorithm for solving partial differential equations. Journal of Computational Physics.](https://doi.org/10.1016/j.jcp.2018.08.029)
23. [Ameya D. Jagtap, Ehsan Kharazmi, George Em Karniadakis (2020). Conservative physics-informed neural networks on discrete domains for conservation laws: Applications to forward and inverse problems. Computer Methods in Applied Mechanics and Engineering.](https://doi.org/10.1016/j.cma.2020.113028)
24. [Ameya D. Jagtap, George Em Karniadakis (2020). Extended Physics-Informed Neural Networks (XPINNs): A Generalized Space-Time Domain Decomposition Based Deep Learning Framework for Nonlinear Partial Differential Equations. Communications in Computational Physics.](https://doi.org/10.4208/cicp.oa-2020-0164)
25. [Liu Yang, Xuhui Meng, George Em Karniadakis (2020). B-PINNs: Bayesian physics-informed neural networks for forward and inverse PDE problems with noisy data. Journal of Computational Physics.](https://doi.org/10.1016/j.jcp.2020.109913)
26. [Liu Yang, Dongkun Zhang, George Em Karniadakis (2020). Physics-Informed Generative Adversarial Networks for Stochastic Differential Equations. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/18m1225409)
27. [Guofei Pang, Lu Lu, George Em Karniadakis (2019). fPINNs: Fractional Physics-Informed Neural Networks. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/18m1229845)
28. [Hailong Sheng, Chao Yang (2020). PFNN: A penalty-free neural network method for solving a class of second-order boundary-value problems on complex geometries. Journal of Computational Physics.](https://doi.org/10.1016/j.jcp.2020.110085)
29. [Lu Lu and colleagues (2021). Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators. Nature Machine Intelligence.](https://doi.org/10.1038/s42256-021-00302-5)
30. [Physics Informed Deep Learning (Part II): Data-driven Discovery of Nonlinear Partial Differential Equations](https://ar5iv.labs.arxiv.org/html/1711.10566)
31. [Embedding Physics into Machine Learning: A Review of Physics Informed Neural Networks as PDE Forward Solvers (Tsinghua Science and Technology, published 19 December 2025)](https://www.sciopen.com/article/10.26599/TST.2025.9010157)
32. [Physics-Informed Neural Networks and Extensions (arXiv, 2024)](https://arxiv.org/html/2408.16806)
33. [A Unified Framework for the Error Analysis of Physics-Informed Neural Networks](https://ar5iv.labs.arxiv.org/html/2311.00529)
34. [Yeonjong Shin, Jérôme Darbon, George Em Karniadakis (2020). On the Convergence of Physics Informed Neural Networks for Linear Second-Order Elliptic and Parabolic Type PDEs. Communications in Computational Physics.](https://doi.org/10.4208/cicp.oa-2020-0193)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/physics-informed-machine-learning

English original: https://www.edgepedia.org/physics-informed-machine-learning
