# 算子推断

算子推断（Operator inference，OpInf）是一种非侵入式的科学机器学习方法，它将一个具有选定多项式结构算子的低维动力系统拟合到来自高维仿真的快照数据上，从而为参数扫描、预测和控制等任务生成廉价的预测性降阶模型。

该方法针对的是一种常见情形：全模型是一个黑箱，它能对给定初始条件和输入计算状态轨迹，却不暴露其算子。<sup>[1](https://www.osti.gov/pages/biblio/1548303)</sup> OpInf 仅利用训练数据和对系统结构的部分知识，构建一个低维、计算廉价的系统，使其解接近高维模型的解。<sup>[2](https://operator-inference.github.io/opinf/source/opinf/intro.html)</sup> 与通用的黑箱代理模型不同，所学到的模型具有继承自物理的结构化、通常为多项式的形式，这使其适合进行稳定性和误差分析。<sup>[3](https://www.annualreviews.org/doi/pdf/10.1146/annurev-fluid-121021-025220)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 一个结构化的（多项式形式的）降阶模型，维度为 \( n \ll N \)，拟合到投影快照上 |
| 侵入性 | 无：从仿真数据中学习，无需访问或修改求解器源代码<sup>[4](https://kiwi.oden.utexas.edu/research/operator-inference)</sup> |
| 核心计算 | 一次奇异值分解和一个线性最小二乘问题<sup>[4](https://kiwi.oden.utexas.edu/research/operator-inference)</sup> |
| 提出 | Peherstorfer 与 Willcox，《应用力学与工程中的计算机方法》，2016<sup>[5](https://doi.org/10.1016/j.cma.2016.03.025)</sup> |
| 突出加速比 | 在一个超过 1800 万自由度的燃烧基准上，运行时减少高达九个数量级<sup>[6](https://kiwi.oden.utexas.edu/papers/Operator-Inference-partial-differential-equations-Qian-Farcas-Willcox.pdf)</sup> |
| 主要失效模式 | 过拟合，可能在测试输入上产生不稳定行为<sup>[7](https://www.osti.gov/servlets/purl/2421165)</sup> |

## 工作原理

假定全阶模型由一个常微分方程支配，其降阶形式包含常数项、线性算子、二次（或更高阶多项式）算子和输入算子。OpInf 用拟合到投影训练轨迹上的最小二乘回归，替代了从高维系统矩阵计算降阶算子的侵入式投影步骤。<sup>[7](https://www.osti.gov/servlets/purl/2421165)</sup> 将投影快照写作 \( \hat{q}_j = V^{\top} q_j \)，回归求解

\[ \min_{\hat{c},\, \hat{A},\, \hat{H},\, \hat{B}} \sum_j \left\| \hat{c} + \hat{A} \hat{q}_j + \hat{H}(\hat{q}_j \otimes \hat{q}_j) + \hat{B} u_j - \dot{\hat{q}}_j \right\|_2^2, \]

找到在最小残差意义上与投影快照数据最匹配的降阶算子。即使加入正则化，该最小化也可分解为 \( r \) 个独立的最小二乘问题，各降阶算子中相应的行共同对应一个。<sup>[6](https://kiwi.oden.utexas.edu/papers/Operator-Inference-partial-differential-equations-Qian-Farcas-Willcox.pdf)</sup> 在适当条件下，OpInf 能恢复出与侵入式投影模型降阶相同的降阶模型。<sup>[3](https://www.annualreviews.org/doi/pdf/10.1146/annurev-fluid-121021-025220)</sup>

## 实施步骤

该算法有三步<sup>[3](https://www.annualreviews.org/doi/pdf/10.1146/annurev-fluid-121021-025220)</sup>：

1. **快照生成。** 运行高保真求解器收集状态快照；若使用了提升或变量变换，则在将快照与初始条件拼接之前对每个快照应用这些变换。<sup>[3](https://www.annualreviews.org/doi/pdf/10.1146/annurev-fluid-121021-025220)</sup>
2. **基构造。** 计算快照矩阵的前 \( n \ll N \) 个左奇异向量，作为满足 \( V^{\top}V = I \) 的 POD 基 \( V \)；\( n \) 由启发式方法选取，最常见的是依据奇异值的衰减，全状态近似为 \( x(t;\mu) \approx V \hat{x}(t;\mu) \)。<sup>[3](https://www.annualreviews.org/doi/pdf/10.1146/annurev-fluid-121021-025220)</sup>
3. **回归。** 将快照和时间导数投影为 \( \hat{x}_i = V_r^{\top} x(t_i) \) 和 \( \dot{\hat{x}}_i = V_r^{\top} \dot{x}(t_i) \)<sup>[8](https://smallpondtom.github.io/LiftAndLearn.jl/stable/manual/nonintrusive/LS/)</sup>，然后以最小二乘意义拟合降阶算子。软件允许用户选择模型形式：线性、二次、输入、双线性或常数算子。<sup>[9](https://github.com/elizqian/operator-inference)</sup> 对于连续时间模型，时间导数由时间步长和差分格式估计；当有精确导数数据时应使用精确数据。<sup>[9](https://github.com/elizqian/operator-inference)</sup>

随后以可忽略的成本对拟合模型进行时间前向积分。在数值上，整个过程只需要一次奇异值分解和一次线性最小二乘求解，二者均可在现成的可扩展库中获得。<sup>[4](https://kiwi.oden.utexas.edu/research/operator-inference)</sup>

## 起源

算子推断由 Benjamin Peherstorfer 和 [Karen Willcox](https://www.edgepedia.org/zh/karen-willcox) 在《Data-driven operator inference for nonintrusive projection-based model reduction》（应用力学与工程中的计算机方法，2016）中提出。<sup>[5](https://doi.org/10.1016/j.cma.2016.03.025)</sup> 综述文献将其置于系统辨识、Loewner 方法、动态模态分解、Koopman 算子方法和基于 POD 的降阶等前驱工作之中。<sup>[3](https://www.annualreviews.org/doi/pdf/10.1146/annurev-fluid-121021-025220)</sup>

后续工作沿若干方向推广了该方法。Benner、Goyal、Kramer、Peherstorfer 和 Willcox 于 2020 年将其推广到具有非多项式非线性项的系统。<sup>[10](https://doi.org/10.1016/j.cma.2020.113433)</sup> McQuarrie、Huang 和 Willcox 于 2021 年针对单喷嘴燃烧过程引入了正则化算子推断。<sup>[11](https://doi.org/10.1080/03036758.2020.1863237)</sup> Qian、Farcaş 和 Willcox 于 2022 年将该方法推广到函数空间偏微分方程情形<sup>[12](https://doi.org/10.1137/21m1393972)</sup>，Sawant、Kramer 和 Peherstorfer 于 2022 年加入了物理信息正则化和结构保持。<sup>[13](https://doi.org/10.1016/j.cma.2022.115836)</sup>

## 变体

正则化引入一种偏置，引导 OpInf 朝向能泛化到未见参数、输入和初始条件的模型，当模型形式设定不当或数据带有数值噪声时尤其有用。<sup>[3](https://www.annualreviews.org/doi/pdf/10.1146/annurev-fluid-121021-025220)</sup>

结构保持：物理信息正则化对大范数的高阶项施加惩罚以引入稳定性偏置，约束则在线性项中强制对称性和定号性等性质；在无正则化和吉洪诺夫正则化导致模型不稳定的情形下，所学模型仍保持准确和稳定。<sup>[7](https://www.osti.gov/servlets/purl/2421165)</sup>

提升：当支配方程不是多项式时，变量变换可揭示多项式结构，从而将 OpInf 扩展到非多项式系统。<sup>[6](https://kiwi.oden.utexas.edu/papers/Operator-Inference-partial-differential-equations-Qian-Farcas-Willcox.pdf)</sup>

非多项式项：对于空间局部且以解析形式给出的非线性项，将非多项式项移到右端后，通过最小二乘学习线性算子和多项式算子。<sup>[14](https://www.sciencedirect.com/science/article/abs/pii/S0045782520306186)</sup>

[精确推断](https://www.edgepedia.org/zh/exact-inference)：[Rosenberger](https://www.edgepedia.org/zh/rosenberger)、Sanderse 和 Stabile 于 2026 年证明，通过为单个时间步模拟多条轨迹来生成对应于能使最小二乘矩阵满秩的降阶状态的快照，可在满秩最小二乘矩阵且无正则化的情况下保证精确重建侵入式投影 ROM；所需快照数量最少，且比启发式策略低若干数量级。<sup>[15](https://doi.org/10.1137/25m1772484)</sup> 由于推断出的算子是精确的，对称性或反对称性等性质得以保持，最小二乘问题变为数值上更稳定的线性系统<sup>[15](https://doi.org/10.1137/25m1772484)</sup>；2026 年的一篇配套论文表明，精确算子推断可解耦参数问题。<sup>[16](https://doi.org/10.1016/j.cma.2026.119199)</sup>

流式：Koike、Mohan、de Frahan、Bessac 和 Qian 于 2026 年提出了流式 OpInf，它使用增量 SVD 进行自适应基构造、使用递归最小二乘进行算子更新，从顺序到达的数据中学习降阶模型，从而无需存储完整数据集。<sup>[17](https://doi.org/10.48550/arxiv.2601.12161)</sup> 对于未训练的参数，可通过在训练参数处计算的算子之间插值获得降阶算子，插值可在矩阵流形上进行以保持结构。<sup>[3](https://www.annualreviews.org/doi/pdf/10.1146/annurev-fluid-121021-025220)</sup>

## 应用

已发表的应用涵盖火箭燃烧、增材制造、流体力学、化学动力学、冰盖建模、等离子体湍流、气动弹性颤振和太阳风动力学。<sup>[17](https://doi.org/10.48550/arxiv.2601.12161)</sup>

报告的数值很可观。在一个超过 1800 万自由度的三维燃烧仿真上，所学降阶模型实现了准确预测，降维达五个数量级，运行时减少高达九个数量级。<sup>[6](https://kiwi.oden.utexas.edu/papers/Operator-Inference-partial-differential-equations-Qian-Farcas-Willcox.pdf)</sup> 该燃烧 ROM 能预测温度、压力、速度、组分浓度和极限环振幅，加速比超过五个数量级，并且在超出训练区间 200% 时仍具有预测能力。<sup>[4](https://kiwi.oden.utexas.edu/research/operator-inference)</sup>

对于混沌系统，Lorenz 96 和 Kuramoto-Sivashinsky 方程的 OpInf 模型取得的有效预测时间范围优于通过反向传播训练的递归神经网络、储备池计算递归神经网络以及马尔可夫神经算子。<sup>[18](https://arxiv.org/pdf/2206.01604)</sup> 流式 OpInf 在匹配批处理精度的同时，将内存需求降低 99% 以上，并在一个近 1000 万自由度的湍流三维槽道流上实现了超过 31,000 倍的降维。<sup>[17](https://doi.org/10.48550/arxiv.2601.12161)</sup>

## 局限与替代方案

最小二乘问题病态且容易过拟合，可能在测试输入上产生不稳定行为；标准的缓解方法是采用正则化的岭回归形式。<sup>[18](https://arxiv.org/pdf/2206.01604)</sup> 推断算子向投影算子的收敛性在任何速率下都无保证。<sup>[14](https://www.sciencedirect.com/science/article/abs/pii/S0045782520306186)</sup> 该方法还假定多项式模型形式已知，且尚未发表关于需要多少仿真数据或应如何选择训练轨迹的一般性规定；只有精确、最少数据的变体给出了具体规定。<sup>[15](https://doi.org/10.1137/25m1772484)</sup>

侵入式基于 POD 的投影需要访问全模型算子，可以是显式的组装形式，也可以是通过返回其对给定向量作用的例程隐式获得，降阶基通过压缩时域快照获得<sup>[19](https://etna.ricam.oeaw.ac.at/vol.56.2022/pp28-51.dir/pp28-51.pdf)</sup>；OpInf 以可能过拟合为代价消除了这一要求。与拟合线性算子的 DMD 相比，OpInf 通过其结构化模型形式处理非线性项。<sup>[3](https://www.annualreviews.org/doi/pdf/10.1146/annurev-fluid-121021-025220)</sup> 已有直接对比的定量基准测试，例如对单喷嘴燃烧过程中 OpInf 三次模型与两个最先进降阶模型的详细性能比较<sup>[20](https://kramer.ucsd.edu/img/pubs/performance-comparison-reduced-order-models-single-injector-combustor-Jain-McQuarrie-Kramer-2021.pdf)</sup>，以及与储备池计算递归神经网络和马尔可夫神经算子的比较。<sup>[18](https://arxiv.org/pdf/2206.01604)</sup>

## References

1. [Data-driven operator inference for nonintrusive projection-based model reduction (OSTI.GOV record)](https://www.osti.gov/pages/biblio/1548303)
2. [What is Operator Inference? (opinf software documentation)](https://operator-inference.github.io/opinf/source/opinf/intro.html)
3. [Learning Nonlinear Reduced Models from Data with Operator Inference (Annual Review of Fluid Mechanics)](https://www.annualreviews.org/doi/pdf/10.1146/annurev-fluid-121021-025220)
4. [Reduced Models from Data with Operator Inference (Willcox group research page, Oden Institute)](https://kiwi.oden.utexas.edu/research/operator-inference)
5. [Benjamin Peherstorfer, Karen Willcox (2016). Data-driven operator inference for nonintrusive projection-based model reduction. Computer Methods in Applied Mechanics and Engineering.](https://doi.org/10.1016/j.cma.2016.03.025)
6. [Reduced Operator Inference for Nonlinear Partial Differential Equations (Qian, Farcas & Willcox)](https://kiwi.oden.utexas.edu/papers/Operator-Inference-partial-differential-equations-Qian-Farcas-Willcox.pdf)
7. [Physics-informed regularization and structure preservation for learning stable reduced models from data with operator inference (Sawant, Kramer, Peherstorfer)](https://www.osti.gov/servlets/purl/2421165)
8. [Standard OpInf · LiftAndLearn.jl documentation](https://smallpondtom.github.io/LiftAndLearn.jl/stable/manual/nonintrusive/LS/)
9. [elizqian/operator-inference (MATLAB software)](https://github.com/elizqian/operator-inference)
10. [Peter Benner and colleagues (2020). Operator inference for non-intrusive model reduction of systems with non-polynomial nonlinear terms. Computer Methods in Applied Mechanics and Engineering.](https://doi.org/10.1016/j.cma.2020.113433)
11. [Shane A. McQuarrie, Cheng Huang, Karen E. Willcox (2021). Data‐driven reduced‐order models via regularised Operator Inference for a single‐injector combustion process. Journal of the Royal Society of New Zealand.](https://doi.org/10.1080/03036758.2020.1863237)
12. [Elizabeth Qian, Ionuţ-Gabriel Farcaş, Karen Willcox (2022). Reduced Operator Inference for Nonlinear Partial Differential Equations. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/21m1393972)
13. [Nihar Sawant, Boris Kramer, Benjamin Peherstorfer (2022). Physics-informed regularization and structure preservation for learning stable reduced models from data with operator inference. Computer Methods in Applied Mechanics and Engineering.](https://doi.org/10.1016/j.cma.2022.115836)
14. [Operator inference for non-intrusive model reduction of systems with non-polynomial nonlinear terms (CMAME)](https://www.sciencedirect.com/science/article/abs/pii/S0045782520306186)
15. [Henrik Rosenberger, Benjamin Sanderse, Giovanni Stabile (2026). Exact Operator Inference with Minimal Data. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/25m1772484)
16. [Henrik Rosenberger, Benjamin Sanderse, Giovanni Stabile (2026). Exact operator inference decouples parametric problems. Computer Methods in Applied Mechanics and Engineering.](https://doi.org/10.1016/j.cma.2026.119199)
17. [Koike, Tomoki and colleagues (2026). Streaming Operator Inference for Model Reduction of Large-Scale Dynamical Systems. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2601.12161)
18. [Non-Intrusive Reduced Models based on Operator Inference for Chaotic Systems](https://arxiv.org/pdf/2206.01604)
19. [Operator Inference and Physics-Informed Learning of Low-Dimensional Models for Incompressible Flows (ETNA vol. 56, 2022)](https://etna.ricam.oeaw.ac.at/vol.56.2022/pp28-51.dir/pp28-51.pdf)
20. [Performance comparison of data-driven reduced models for a single-injector combustion process](https://kramer.ucsd.edu/img/pubs/performance-comparison-reduced-order-models-single-injector-combustor-Jain-McQuarrie-Kramer-2021.pdf)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/operator-inference

English original: https://www.edgepedia.org/operator-inference
