# 物理引导的机器学习

物理引导的机器学习是一类在物理定律、约束或模拟数据的控制下训练机器学习模型的方法，使预测在拟合含噪或稀疏观测的同时，仍与支配方程保持一致。它面向动力系统、偏微分方程（PDE）等科学与工程问题——在这些问题中，单纯基于物理的模型或单纯的深度学习都无法很好地处理海量真实数据；物理约束充当归纳偏置，旨在产生科学上有效的预测、降低样本复杂度并改善泛化能力。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC11228478/)</sup>

| 关键事实 | 详情 |
|---|---|
| 核心机制 | 物理以损失项（软约束）、架构（硬约束）或物理-数据混合模型结构的形式进入训练<sup>[2](https://www.nature.com/articles/s42254-021-00314-5)</sup><sup> • </sup><sup>[3](https://dl.acm.org/doi/10.1145/3766887)</sup> |
| 典型 PINN 损失 | \( \mathcal{L}(\theta) = \mathcal{L}_{ic}(\theta) + \mathcal{L}_{bc}(\theta) + \mathcal{L}_{r}(\theta) \)，所有梯度均通过自动微分计算<sup>[4](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup> |
| PGNN 形式 | 物理-数据混合模型，外加由超参数 \( \lambda_{PHY} \) 加权的物理一致性损失<sup>[5](https://doi.org/10.48550/arxiv.1710.11431)</sup> |
| 与有限元对比 | 在若干 PDE 测试案例上，FEM 比 PINN 快约 10 倍、精确约 100 倍<sup>[4](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup><sup> • </sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)</sup> |
| 基准成功率 | 在 10% 相对 \( L_{2} \) 误差阈值下，原版 PINN 解决了 PINNacle 22 项任务中的 10 项<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2024/file/8c63299fb2820ef41cb05e2ff11836f5-Paper-Datasets_and_Benchmarks_Track.pdf)</sup> |
| 损失平衡的收益 | 基于梯度统计的学习率退火在各类计算物理问题上将 PINN 精度提升 50 至 100 倍<sup>[8](https://link.springer.com/article/10.1007/s10462-025-11322-7)</sup> |
| 速度优势 | 神经算子代理模型报告在流体流动预测上加速 60 倍<sup>[9](https://link.springer.com/article/10.1007/s44379-025-00016-0)</sup>，相对传统求解器最高可达数千倍<sup>[10](https://ar5iv.labs.arxiv.org/html/2207.05748)</sup> |

## 工作原理

最主要的机制是软约束：通过自动微分在配点上计算 PDE 残差，并将其加入数据损失。常见形式为 \( \mathcal{L} = \mathcal{L}_{physics} + \mathcal{L}_{data} \)，其中 \( \mathcal{L}_{physics} = w_{f}\mathcal{L}_{f} + w_{b}\mathcal{L}_{b} + w_{i}\mathcal{L}_{i} \)，\( \mathcal{L}_{f} \) 为 PDE 残差损失，\( \mathcal{L}_{b} \) 为边界损失，\( \mathcal{L}_{i} \) 为初始条件损失，各自是配点集上的 \( L_{2} \) 均值。<sup>[8](https://link.springer.com/article/10.1007/s10462-025-11322-7)</sup>

物理也可以通过架构作为硬约束进入，即构造上就满足守恒律和对称性的架构，这更适合通用知识；基于损失的整合则适合可用 PDE 只能部分刻画动力学、模型必须学习修正项的情形。<sup>[9](https://link.springer.com/article/10.1007/s44379-025-00016-0)</sup> 第三条路线是[物理引导神经网络](https://www.edgepedia.org/zh/physics-guided-neural-network)的物理-数据混合（HPD）模型，它将基于物理的模拟器与神经网络结合，并加入由 \( \lambda_{PHY} \) 加权的物理一致性项，在物理不一致性与经验损失和模型复杂度之间取得平衡。<sup>[5](https://doi.org/10.48550/arxiv.1710.11431)</sup> 通用微分方程则把学习到的网络作为缺失项嵌入已知的微分方程模型内部，对低维时间序列可以准确外推到原始数据之外。<sup>[11](https://doi.org/10.21203/rs.3.rs-55125/v1)</sup> 由于物理损失不需要观测数据，物理约束正则化使模型能够从无标签数据中学习。<sup>[12](https://dl.acm.org/doi/fullHtml/10.1145/3514228)</sup> 一个实际结果是，物理信息学习是无网格的，避免了昂贵的网格生成，能处理不规则和移动的区域，并且即使问题并非完全适定——例如缺少条件或参数未知的反问题——也能找到有意义的解。<sup>[2](https://www.nature.com/articles/s42254-021-00314-5)</sup>

## 实施方法

推荐的流程包含三个主要步骤：PDE [无量纲化](https://www.edgepedia.org/zh/non-dimensionalization)，使输入和输出处于合理范围；选择合适的网络架构；采用适当的训练算法。<sup>[4](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup> 建议的主干网络是 MLP（例如 4 个隐藏层、每层 256 个神经元），配合傅里叶特征嵌入和随机权重分解、tanh 激活函数以及 Glorot 初始化，这些选择可缓解谱偏差并加速收敛。<sup>[4](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup> 配点通常每个 epoch 重新采样，以获得更好的区域覆盖。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)</sup>

由于不平衡的反向传播梯度是一种关键病态，基于梯度统计的学习率退火是一种自适应损失加权方法，它使各加权损失项的梯度范数趋于相等，在训练过程中自适应地重新加权损失项，而不是按固定的迭代计划进行；基于 NTK 的方案仅利用 NTK 矩阵的对角线来平衡收敛速率，但代价更高，因此建议优先采用基于梯度的方案。<sup>[4](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup> 验证时报告以参考解为基准的相对 \( L_{2} \) 误差。<sup>[4](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup>

## 起源

用函数逼近器通过梯度下降最小化 PDE 残差，被数值分析综述描述为 PINN 的前身。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)</sup><sup> • </sup><sup>[13](https://arxiv.org/pdf/2402.10926v1.pdf)</sup> 现代框架出现在 Raissi、Perdikaris 和 Karniadakis 于 2017 年发布在 arXiv 上的关于非线性 PDE 数据驱动解的预印本<sup>[14](https://doi.org/10.48550/arxiv.1711.10561)</sup>，以及期刊论文《物理信息神经网络：求解涉及非线性偏微分方程的正问题和反问题的深度学习框架》（M. Raissi、P. Perdikaris 和 G.E. Karniadakis，《计算物理学杂志》，2018 年在线发表，2019 年收入第 378 卷）中，该文描述了训练神经网络在求解监督学习任务的同时遵守由一般非线性 PDE 给出的物理定律。<sup>[15](https://doi.org/10.1016/j.jcp.2018.10.045)</sup> 与此同时，Daw 及其同事于 2017 年在 arXiv 上发布了用于湖泊温度建模的物理引导神经网络（PGNN）框架。<sup>[5](https://doi.org/10.48550/arxiv.1710.11431)</sup>

## 变体

各变体的差异主要在于残差的形式：变分形式给出 VPINN，弱形式给出 wPINN，最小化底层能量则给出 DeepRitz 方法。<sup>[13](https://arxiv.org/pdf/2402.10926v1.pdf)</sup> 通过区域分解进行 hp 细化的弱形式增强了网络的逼近能力<sup>[2](https://www.nature.com/articles/s42254-021-00314-5)</sup>，而 wPINN 面向双曲守恒律的熵解（De Ryck、Mishra 和 Molinaro，arXiv 2022）。<sup>[16](https://doi.org/10.48550/arxiv.2207.08483)</sup> 贝叶斯 PINN（B-PINN）整合[贝叶斯推断](https://www.edgepedia.org/zh/bayesian-inference)以进行不确定性量化。<sup>[2](https://www.nature.com/articles/s42254-021-00314-5)</sup> 区域分解是有限基物理信息神经网络（FBPINN）的基础，这是 Ben Moseley、Andrew Markham 和 Tarje Nissen-Meyer 提出的一种可扩展方法（《计算数学进展》，2023）。<sup>[17](https://doi.org/10.1007/s10444-023-10065-9)</sup>

另一条路线学习算子，即无限维函数空间之间的映射，主要用作 PDE 解算子的代理。<sup>[18](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-042424-070908)</sup> [DeepONet](https://www.edgepedia.org/zh/deeponet) 使用编码输入函数的分支网络和编码输出域的主干网络；预印本于 2019 年出现<sup>[19](https://doi.org/10.48550/arxiv.1910.03193)</sup>，期刊版于 2021 年发表在《自然·机器智能》上。<sup>[20](https://www.nature.com/articles/s42256-021-00302-5)</sup> 神经算子框架通过图核网络引入（Li 及其同事，arXiv 2020）<sup>[21](https://doi.org/10.48550/arxiv.2003.03485)</sup>，面向 Burgers 方程、Darcy 地下流动和 Navier-Stokes 方程的代理映射。<sup>[22](https://www.jmlr.org/papers/volume24/21-1524/21-1524.pdf)</sup> 傅里叶神经算子（Li 及其同事，arXiv 2020）用傅里叶空间中的卷积替代核积分算子，使映射对不同网格保持不变。<sup>[23](https://doi.org/10.48550/arxiv.2010.08895)</sup><sup> • </sup><sup>[3](https://dl.acm.org/doi/10.1145/3766887)</sup> 当支配方程已知时，物理信息神经算子加入 \( \mathcal{L} = \mathcal{L}_{data} + \mathcal{L}_{physics} \)，其中 \( \mathcal{L}_{physics} = \mathcal{L}_{init} + \mathcal{L}_{bound} + \mathcal{L}_{pde} \)。<sup>[10](https://ar5iv.labs.arxiv.org/html/2207.05748)</sup> 较新的架构包括拉普拉斯神经算子（Cao、Goswami 和 Karniadakis，《自然·机器智能》，2024）<sup>[24](https://doi.org/10.1038/s42256-024-00844-4)</sup>、基于 Kolmogorov-Arnold 网络的 KAN-ODE（Koenig、Kim 和 Deng，2024）<sup>[25](https://doi.org/10.1016/j.cma.2024.117397)</sup>、物理信息 KAN<sup>[26](https://doi.org/10.1007/s44379-025-00015-1)</sup>，以及基于 Transformer 并使用小波激活的 PINNsFormer（Zhao、Ding 和 Prakash，arXiv 2023）。<sup>[27](https://doi.org/10.48550/arxiv.2307.11833)</sup>

## 应用

最初的 PINN 演示涵盖了流体、量子力学、反应-扩散系统和非线性浅水波中的经典问题。<sup>[15](https://doi.org/10.1016/j.jcp.2018.10.045)</sup> PGNN 被应用于湖泊温度建模。<sup>[5](https://doi.org/10.48550/arxiv.1710.11431)</sup> 综述报告了其在流体力学、传热和电力系统中的应用。<sup>[4](https://export.arxiv.org/pdf/2308.08468v1.pdf)</sup> 傅里叶神经算子被用作聚变模拟的等离子体代理模型（Gopakumar 及其同事，《核聚变》，2024）。<sup>[28](https://doi.org/10.1088/1741-4326/ad313a)</sup>

## 局限与替代方案

与传统求解器相比，情况喜忧参半。在针对 Poisson（1D/2D/3D）、Allen-Cahn 和半线性 Schrödinger 问题的系统比较中，PINN 在求解时间或精度上并未优于 FEM，尽管它们在评估已求解的 PDE 时有时更快；值得注意的是，PINN 的成本从 2D Poisson 方程到 3D Poisson 方程并未增加，这暗示其在高维情形下具有效率，而 FEM 在高维则昂贵得难以承受。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)</sup> PINNacle 基准涵盖 20 多个 PDE 和约 10 种最先进方法，发现原版 PINN 在 10% 相对 \( L_{2} \) 误差阈值下仅解决了 22 项任务中的 10 项，区域分解在复杂几何上有帮助，PINN-NTK 在损失平衡方面表现强劲，而 PINN 的整体性能尚未与传统数值方法持平。<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2024/file/8c63299fb2820ef41cb05e2ff11836f5-Paper-Datasets_and_Benchmarks_Track.pdf)</sup>

已记录的失效模式包括：原版 PINN 训练在系数中等偏大的对流、反应和反应-扩散问题上，即使经过大量调参，相对误差仍接近 100%；<sup>[29](https://www.stat.berkeley.edu/~mmahoney/pubs/failure-modes-neurips21.pdf)</sup> 谱偏差和损失项之间的梯度不平衡；<sup>[2](https://www.nature.com/articles/s42254-021-00314-5)</sup> 以及刚性动力学和微分代数方程方面的困难、对含噪数据的敏感性、在训练域之外外推能力差，以及新初始条件需要重新训练。<sup>[3](https://dl.acm.org/doi/10.1145/3766887)</sup> 物理引导的损失函数是弱约束，不能保证物理一致性或泛化性，尽管此类模型比基础 ML 模型更有可能在样本外泛化。<sup>[12](https://dl.acm.org/doi/fullHtml/10.1145/3514228)</sup> 补救措施包括课程正则化和序列到序列重构，可将误差降低最多 1-2 个数量级<sup>[29](https://www.stat.berkeley.edu/~mmahoney/pubs/failure-modes-neurips21.pdf)</sup>，以及基于梯度统计的学习率退火，可将精度提升 50-100 倍。<sup>[8](https://link.springer.com/article/10.1007/s10462-025-11322-7)</sup>

在方法之间选择：当需要精确输出且支配方程已知时，传统求解器更可取，因为它们提供已知的误差界且计算效率更高；当先验物理不精确、参数缺失、边界条件未知或测量含噪稀疏时，物理信息 ML 最为有用。<sup>[9](https://link.springer.com/article/10.1007/s44379-025-00016-0)</sup> 最近的一篇综述将 PINN 和神经算子视为共享物理-数据连续统上的互补点：神经算子更适合多查询工作负载，如设计循环、不确定性量化和数字孪生，而 PINN 和混合方法更适合稀疏数据反问题和约束可行性。<sup>[30](https://www.ijcai.org/proceedings/2026/0868.pdf)</sup>

## References

1. [Learning dynamical systems from data: An introduction to physics-guided deep learning (PNAS, 2024)](https://pmc.ncbi.nlm.nih.gov/articles/PMC11228478/)
2. [Physics-informed machine learning (Nature Reviews Physics, 2021)](https://www.nature.com/articles/s42254-021-00314-5)
3. [Physics-Guided Deep Learning for Dynamical Systems: A Survey (ACM Computing Surveys)](https://dl.acm.org/doi/10.1145/3766887)
4. [Best Practices for Physics-Informed Neural Networks (PINNs): training pipeline tutorial and benchmark](https://export.arxiv.org/pdf/2308.08468v1.pdf)
5. [Daw, Arka and colleagues (2017). Physics-guided Neural Networks (PGNN): An Application in Lake Temperature Modeling. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1710.11431)
6. [Can physics-informed neural networks beat the finite element method?](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197852/)
7. [PINNacle: A Comprehensive Benchmark of Physics-Informed Neural Networks for Solving PDEs (NeurIPS 2024 Datasets and Benchmarks)](https://proceedings.neurips.cc/paper_files/paper/2024/file/8c63299fb2820ef41cb05e2ff11836f5-Paper-Datasets_and_Benchmarks_Track.pdf)
8. [Physics-informed neural networks for PDE problems: a comprehensive review (Artificial Intelligence Review, 2025)](https://link.springer.com/article/10.1007/s10462-025-11322-7)
9. [When physics meets machine learning: a survey of physics-informed machine learning (Springer, 2025)](https://link.springer.com/article/10.1007/s44379-025-00016-0)
10. [Physics-Informed Deep Neural Operator Networks (review of operator-learning variants)](https://ar5iv.labs.arxiv.org/html/2207.05748)
11. [Christopher Rackauckas and colleagues (2020). Universal Differential Equations for Scientific Machine Learning. Research Square.](https://doi.org/10.21203/rs.3.rs-55125/v1)
12. [Integrating Scientific Knowledge with Machine Learning for Engineering and Environmental Systems (ACM Computing Surveys, 2022)](https://dl.acm.org/doi/fullHtml/10.1145/3514228)
13. [Numerical analysis of physics-informed neural networks and related models in physics-informed machine learning](https://arxiv.org/pdf/2402.10926v1.pdf)
14. [Raissi, Maziar, Perdikaris, Paris, Karniadakis, George Em (2017). Physics Informed Deep Learning (Part I): Data-driven Solutions of Nonlinear Partial Differential Equations. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1711.10561)
15. [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)
16. [De Ryck, Tim, Mishra, Siddhartha, Molinaro, Roberto (2022). wPINNs: Weak Physics informed neural networks for approximating entropy solutions of hyperbolic conservation laws. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2207.08483)
17. [Ben Moseley, Andrew Markham, Tarje Nissen-Meyer (2023). Finite basis physics-informed neural networks (FBPINNs): a scalable domain decomposition approach for solving differential equations. Advances in Computational Mathematics.](https://doi.org/10.1007/s10444-023-10065-9)
18. [Operator Learning: A Statistical Perspective (Annual Review of Statistics, 2024/2025)](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-042424-070908)
19. [Lu, Lu, Jin, Pengzhan, Karniadakis, George Em (2019). DeepONet: Learning nonlinear operators for identifying differential equations based on the universal approximation theorem of operators. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1910.03193)
20. [Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators (Nature Machine Intelligence; arXiv 1910.03193 is the same paper)](https://www.nature.com/articles/s42256-021-00302-5)
21. [Li, Zongyi and colleagues (2020). Neural Operator: Graph Kernel Network for Partial Differential Equations. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2003.03485)
22. [Neural Operator: Learning Maps Between Function Spaces With Applications to PDEs (JMLR)](https://www.jmlr.org/papers/volume24/21-1524/21-1524.pdf)
23. [Li, Zongyi and colleagues (2020). Fourier Neural Operator for Parametric Partial Differential Equations. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2010.08895)
24. [Qianying Cao, Somdatta Goswami, George Em Karniadakis (2024). Laplace neural operator for solving differential equations. Nature Machine Intelligence.](https://doi.org/10.1038/s42256-024-00844-4)
25. [Benjamin C. Koenig, Suyong Kim, Sili Deng (2024). KAN-ODEs: Kolmogorov–Arnold network ordinary differential equations for learning dynamical systems and hidden physics. Computer Methods in Applied Mechanics and Engineering.](https://doi.org/10.1016/j.cma.2024.117397)
26. [Juan Diego Toscano and colleagues (2025). From PINNs to PIKANs: recent advances in physics-informed machine learning. Machine learning for computational science and engineering.](https://doi.org/10.1007/s44379-025-00015-1)
27. [Zhao, Zhiyuan, Ding, Xueying, Prakash, B. Aditya (2023). PINNsFormer: A Transformer-Based Framework For Physics-Informed Neural Networks. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2307.11833)
28. [Vignesh Gopakumar and colleagues (2024). Plasma surrogate modelling using Fourier neural operators. Nuclear Fusion.](https://doi.org/10.1088/1741-4326/ad313a)
29. [Characterizing possible failure modes in physics-informed neural networks (NeurIPS 2021)](https://www.stat.berkeley.edu/~mmahoney/pubs/failure-modes-neurips21.pdf)
30. [Learning PDE Solvers with Physics and Data: A Unifying View of Physics-Informed Neural Networks and Neural Operators (IJCAI 2026)](https://www.ijcai.org/proceedings/2026/0868.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 25, 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-guided-machine-learning

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