# 福克–普朗克（Fokker–Planck）模型（机器学习）

机器学习中的福克–普朗克模型利用福克–普朗克方程描述随机过程的概率密度如何随时间演化，并将这种描述转化为用于生成建模、采样和密度估计的工具。训练后的模型实际输出什么取决于具体变体：有些产生一个采样器，将参考噪声映射为数据样本，而无需显式密度<sup>[1](https://arxiv.org/pdf/2509.14575)</sup>；有些可直接访问演化过程中的密度、概率流和熵<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup>；扩散模型族则产生一个得分场（对数密度的梯度），采样器和似然均可由此得到。<sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup>

| 关键事实 | 值 |
|---|---|
| 控制偏微分方程（伊藤（Itô）形式） | \( \partial_{t} \rho_{t}(x) = -\nabla \cdot ( b_{t}(x) \rho_{t}(x) ) + \partial_{i}\partial_{j} ( D_{t}(x) \rho_{t}(x) ) \)<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup> |
| 得分定义 | \( \nabla_{x} \log p(x) \)，由网络 \( s_{\theta} \) 近似<sup>[4](https://doi.org/10.48550/arxiv.1907.05600)</sup> |
| 概率流ODE | \( dx = [ f(x,t) - \tfrac{1}{2} g(t)^{2} \nabla_{x} \log p_{t}(x) ] \, dt \)，与SDE具有相同边缘分布<sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup> |
| CIFAR-10无条件生成（SDE框架） | Inception分数9.89，FID 2.20，似然2.99比特/维<sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup> |
| 采样成本降低 | 使用黑箱ODE求解器时，函数评估次数减少90%以上，无明显质量损失<sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup> |
| 得分FPE正则化（FP-Diffusion） | CIFAR-10负对数似然（NLL）3.36（VE）对3.61原版，但FID为10.83对3.33<sup>[5](https://doi.org/10.48550/arxiv.2210.04296)</sup> |
| 直接求解PDE的局限 | 当维度 \( d \) 小至五六维时，网格方法即变得不可行<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup> |

## 工作原理

福克–普朗克方程是描述随机或确定性动力系统中状态 \( x \) 的概率密度 \( \rho_{t}(x) \) 随时间演化的偏微分方程。<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup><sup> • </sup><sup>[6](https://arxiv.org/html/2606.31576)</sup> 对于漂移为 \( b_{t} \)、扩散为 \( D_{t} \) 的伊藤过程，一般方程为 \( \partial_{t} \rho_{t}(x) = -\nabla \cdot ( b_{t}(x) \rho_{t}(x) ) + \partial_{i}\partial_{j} ( D_{t}(x) \rho_{t}(x) ) \)；下方展示的通量形式 \( \partial_{t} \rho_{t}(x) = -\nabla \cdot ( b_{t}(x) \rho_{t}(x) - D_{t}(x) \nabla \rho_{t}(x) ) \) 在扩散矩阵为常数时成立，描述密度因概率流入和流出各点的通量而变化。<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup>

加噪过程的逆向是另一个SDE，其漂移依赖于得分 \( \nabla_{x} \log p_{t}(x) \)<sup>[7](https://d2l.smola.org/chapter_mdl-dynamics/mdl-fokker-planck-probability-flow.html)</sup>，因此学习每个时刻的得分可使密度演化可逆。由于密度与其得分之间存在一一映射（密度可确定到一个常数因子），密度福克–普朗克方程有一个等价的得分PDE系统，称为得分福克–普朗克方程。<sup>[5](https://doi.org/10.48550/arxiv.2210.04296)</sup> 具有相同边缘分布的确定性替代方案是概率流ODE，\( dx = [ f(x,t) - \tfrac{1}{2} g(t)^{2} \nabla_{x} \log p_{t}(x) ] \, dt \)<sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup>，等价于输运方程 \( \partial_{t} \rho_{t}^{*} = -\nabla \cdot ( v_{t}^{*} \rho_{t}^{*} ) \)，其速度场为 \( v_{t}^{*}(x) = b_{t}(x) - D_{t}(x) \nabla \log \rho_{t}^{*}(x) \)。<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup> 沿该流，密度可通过变量替换恢复，\( \rho_{t}(x) = \rho_{0}(X_{t,0}(x)) \exp( -\int_{0}^{t} \nabla \cdot v_{\tau}(X_{t,\tau}(x)) \, d\tau ) \)，这正是仅靠SDE轨迹无法提供的密度、概率流和熵得以获取的原因。<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup>

## 实现方式

标准流程分为三个阶段。首先，选择一个前向SDE，将数据逐渐扩散为简单先验；例如，2015年的扩散流程通过迭代前向扩散过程，系统而缓慢地破坏数据分布中的结构。<sup>[8](https://proceedings.mlr.press/v37/sohl-dickstein15)</sup> 其次，训练一个以时间或噪声水平为条件的得分网络 \( s_{\theta}: \mathbb{R}^{D} \to \mathbb{R}^{D} \)，以近似 \( \nabla_{x} \log p_{t}(x) \)，即前向过程每一阶段扰动边缘分布的得分，通常通过将去噪得分匹配应用于这些扰动分布来实现；干净数据得分 \( \nabla_{x} \log p_{\text{data}}(x) \) 只是一个极限目标。<sup>[4](https://doi.org/10.48550/arxiv.1907.05600)</sup> 第三，通过模拟学到的逆向动力学来采样。朴素朗之万（Langevin）动力学迭代 \( \tilde{x}_{t} = \tilde{x}_{t-1} + (\varepsilon/2) \nabla_{x} \log p(\tilde{x}_{t-1}) + \sqrt{\varepsilon} \, z_{t} \)，其中 \( z_{t} \sim \mathcal{N}(0, I) \)；在适当的正则性和遍历性条件下，当 \( \varepsilon \to 0 \) 且总模拟时间无界增长时，其分布收敛到 \( p(x) \)；在固定步长下，未调整方案带有离散化偏差。<sup>[4](https://doi.org/10.48550/arxiv.1907.05600)</sup>

现代实现用两类特殊采样器取代朴素朗之万：预测–校正采样器将SDE求解器与朗之万MCMC校正步骤结合；确定性概率流ODE采样器还可实现精确似然计算。<sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup> [离散化](https://www.edgepedia.org/zh/discretization)对成本很重要：使用黑箱ODE求解器（多曼–普林斯（Dormand–Prince））和更大的误差容限，函数评估次数可减少90%以上，而不影响样本的视觉质量。<sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup>

## 起源

生成建模这一脉络始于2015年的一篇ICML论文，该论文描述了学习一个逆向扩散过程，以恢复被前向扩散过程破坏的结构，从而得到可处理的生成模型；该论文将其流程与退火重要性采样（Annealed Importance Sampling）联系起来，后者由拉德福德·M·尼尔（Radford M. Neal）于2001年在《[统计与计算](https://www.edgepedia.org/zh/statistics-and-computing)》（Statistics and Computing）中描述，该方法使用[马尔可夫链](https://www.edgepedia.org/zh/markov-chain)将一个分布缓慢转换为另一个分布，以计算归一化常数之比。<sup>[8](https://proceedings.mlr.press/v37/sohl-dickstein15)</sup><sup> • </sup><sup>[9](https://doi.org/10.1023/a:1008923215028)</sup> 将得分匹配与[朗之万动力学](https://www.edgepedia.org/zh/langevin-dynamics)结合的基于得分的生成建模，出现在宋（Song）与埃尔蒙（Ermon）2019年的论文中<sup>[4](https://doi.org/10.48550/arxiv.1907.05600)</sup>；随后，何（Ho）、贾因（Jain）与阿比尔（Abbeel）的《去噪扩散概率模型》（Denoising Diffusion Probabilistic Models）于2020年发表。<sup>[10](https://doi.org/10.48550/arxiv.2006.11239)</sup> 据赖（Lai）等人，宋、索尔-迪克斯坦（Sohl-Dickstein）、金马（Kingma）、库马尔（Kumar）、埃尔蒙与普尔（Poole）于2020年通过由前向SDE驱动的连续时间随机过程，统一了去噪得分匹配与扩散概率模型。<sup>[5](https://doi.org/10.48550/arxiv.2210.04296)</sup><sup> • </sup><sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup> 类似且更早的福克–普朗克方法存在于时间序列场景，而非生成建模。<sup>[6](https://arxiv.org/html/2606.31576)</sup>

## 变体

**基于得分的SDE模型**通过（去噪）得分匹配训练 \( s_{\theta} \)，并从逆向时间SDE或其预测–校正采样器与概率流ODE采样器采样。<sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup> 在不改变边缘分布的情况下将SDE转为ODE，反之亦然，这使得从扩散模型进行确定性采样、从确定性流模型进行随机采样成为可能<sup>[6](https://arxiv.org/html/2606.31576)</sup>；由利普曼（Lipman）、陈（Chen）、本-哈穆（Ben-Hamu）、尼克尔（Nickel）与勒（Le）于2022年提出的流匹配（flow matching）直接训练此类确定性速度场<sup>[11](https://doi.org/10.48550/arxiv.2210.02747)</sup>；随机插值（stochastic interpolants）（阿尔贝戈（Albergo）、博菲（Boffi）与范登-艾因登（Vanden-Eijnden），2023）则在一个框架中统一了流与扩散。<sup>[12](https://doi.org/10.48550/arxiv.2303.08797)</sup>

**直接福克–普朗克求解器**直接处理PDE本身。神经参数化福克–普朗克方程将FPE表述为神经网络参数空间上的ODE系统，推导为KL散度的受约束 \( L^{2} \)-Wasserstein梯度流，并通过时间相关映射 \( T_{\theta_{t}} \) 推动参考分布来采样。<sup>[13](https://ww3.math.ucla.edu/camreport/cam20-08.pdf)</sup> 无网格求解器直接用神经网络表示福克–普朗克方程的解，处理该方程典型的无界高维区域。<sup>[14](https://par.nsf.gov/biblio/10345329)</sup> FPNN求解复杂物理系统的4–20维稳态福克–普朗克方程，无需标注数据或零边界条件，并将边界约束与归一化约束作为正则化纳入。<sup>[15](https://proceedings.iclr.cc/paper_files/paper/2025/file/23aa2163dea287441ebebc1295d5b3fc-Paper-Conference.pdf)</sup> 弱对抗方法通过在FPE的弱形式上进行对抗训练，从简单参考分布学习神经前推映射 \( F_{\vartheta} \)；在该弱形式中，伴随算子作用于检验函数。<sup>[1](https://arxiv.org/pdf/2509.14575)</sup> 薛定谔桥（Schrödinger bridge）改进在扩散采样器 \( dX_{t} = [ f_{t}(X_{t}) + \sigma_{t} u_{\theta_{t}}(X_{t}) ] \, dt + \sigma_{t} \, dW_{t} \) 内学习参数化漂移 \( u_{\theta_{t}} \)，给定基础漂移 \( f_{t} \)、噪声调度 \( \sigma_{t} \) 和源分布。<sup>[16](https://papers.nips.cc/paper_files/paper/2025/file/174692c52dc84fad2b2e99dd8637ce6a-Paper-Conference.pdf)</sup>

## 应用

在CIFAR-10和1024×1024图像上的无条件图像生成，是基于SDE的福克–普朗克机制记录最充分的基准场景。<sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup> 在物理学中，概率流解已在相互作用粒子系统上得到演示，其中得分由深度神经网络建模，并在无需目标密度样本的情况下即时学习<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup>；这可直接获取从随机轨迹难以估计的量，如概率流、密度本身及其熵。<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup> 诸如FPNN的稳态福克–普朗克求解器面向4–20维复杂物理系统<sup>[15](https://proceedings.iclr.cc/paper_files/paper/2025/file/23aa2163dea287441ebebc1295d5b3fc-Paper-Conference.pdf)</sup>，一致性模型采样器则用于基于模拟的推断。<sup>[17](https://paulbuerkner.com/publications/pdf/2024__Schmitt_et_al__NeurIPS.pdf)</sup>

## 局限与替代方案

**得分模型可能违背自身动力学。** 实践中，许多现有预训练得分模型在数值上并不满足得分福克–普朗克方程，这促使在得分匹配目标中加入得分-FPE正则项。<sup>[5](https://doi.org/10.48550/arxiv.2210.04296)</sup>

**ODE与SDE采样器。** 已发表文献在质量上存在分歧：SDE论文报告，使用黑箱ODE求解器时，函数评估次数可减少90%以上，而不影响视觉样本质量<sup>[3](https://doi.org/10.48550/arxiv.2011.13456)</sup>；而后来的一项研究指出：“经验上已有报告称，基于常微分方程（ODE）的采样器劣于基于随机微分方程（SDE）的采样器。”<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC12139524/)</sup> 这一分歧至少已部分解决：对两种极限情形的数学分析发现，结果取决于得分误差在生成时间范围上的分布方式——当得分误差仅出现在生成后期时，ODE（零扩散）采样器能够胜出；而SDE会收缩过程中间误差，并在离散化误差较小时胜过ODE。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC12139524/)</sup>

**维度。** 对于福克–普朗克PDE，标准基于网格的数值方法在 \( d \) 小至五六维时就变得不可行，因为计算复杂度随 \( d \) 指数增长；神经、无网格和基于流的求解器正是为避免这一点而存在。<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup><sup> • </sup><sup>[14](https://par.nsf.gov/biblio/10345329)</sup> 反过来，蒙特卡洛/SDE方法只提供样本，因此密度本身或微分熵需要插值方法，而这些方法通常在高维上扩展不佳。<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup>

**训练控制。** 在来自SDE的外部样本上学习得分，并不能控制KL散度的任一方向；而基于概率流的自洽训练控制从学习解到目标的KL散度。<sup>[2](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)</sup> 神经参数化福克–普朗克方法也明确区别于朗之万蒙特卡洛（LMC、MALA）方法，后者面向SDE的稳态分布，而非演化密度。<sup>[13](https://ww3.math.ucla.edu/camreport/cam20-08.pdf)</sup> 除这一区别外，已发表来源未提供针对GAN、VAE、归一化流或MCMC的直接定量基准，因此此处无法给出直接对比。

## References

1. [Learning Neural Pushforward Samplers for Distributions from Fokker-Planck Equations by Weak Adversarial Training](https://arxiv.org/pdf/2509.14575)
2. [Probability flow solution of the Fokker–Planck equation](https://iopscience.iop.org/article/10.1088/2632-2153/ace2aa/pdf)
3. [Song, Yang and colleagues (2020). Score-Based Generative Modeling through Stochastic Differential Equations. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2011.13456)
4. [Song, Yang, Ermon, Stefano (2019). Generative Modeling by Estimating Gradients of the Data Distribution. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1907.05600)
5. [Lai, Chieh-Hsin and colleagues (2022). FP-Diffusion: Improving Score-based Diffusion Models by Enforcing the Underlying Score Fokker-Planck Equation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2210.04296)
6. [Introduction to Stochastic Differential Equations for Generative Machine Learning: A Variational Perspective](https://arxiv.org/html/2606.31576)
7. [The Fokker–Planck Equation and Probability Flow – Dive into Deep Learning](https://d2l.smola.org/chapter_mdl-dynamics/mdl-fokker-planck-probability-flow.html)
8. [Deep Unsupervised Learning using Nonequilibrium Thermodynamics](https://proceedings.mlr.press/v37/sohl-dickstein15)
9. [Radford M. Neal (2001). Annealed importance sampling. Statistics and Computing.](https://doi.org/10.1023/a:1008923215028)
10. [Ho, Jonathan, Jain, Ajay, Abbeel, Pieter (2020). Denoising Diffusion Probabilistic Models. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2006.11239)
11. [Lipman, Yaron and colleagues (2022). Flow Matching for Generative Modeling. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2210.02747)
12. [Albergo, Michael S., Boffi, Nicholas M., Vanden-Eijnden, Eric (2023). Stochastic Interpolants: A Unifying Framework for Flows and Diffusions. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2303.08797)
13. [Neural Parametric Fokker-Planck Equations (UCLA CAM report)](https://ww3.math.ucla.edu/camreport/cam20-08.pdf)
14. [A deep learning method for solving Fokker-Planck equations](https://par.nsf.gov/biblio/10345329)
15. [Score-Based Free-Form Architectures for High-Dimensional Fokker-Planck Equations](https://proceedings.iclr.cc/paper_files/paper/2025/file/23aa2163dea287441ebebc1295d5b3fc-Paper-Conference.pdf)
16. [Adjoint Schrödinger Bridge Sampler](https://papers.nips.cc/paper_files/paper/2025/file/174692c52dc84fad2b2e99dd8637ce6a-Paper-Conference.pdf)
17. [Consistency Models for Scalable and Fast Simulation-Based Inference](https://paulbuerkner.com/publications/pdf/2024__Schmitt_et_al__NeurIPS.pdf)
18. [Closing the ODE–SDE gap in score-based diffusion models through the Fokker–Planck equation](https://pmc.ncbi.nlm.nih.gov/articles/PMC12139524/)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 机器学习与神经计算 › 机器学习方法

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/fokker-planck-model-machine-learning

English original: https://www.edgepedia.org/fokker-planck-model-machine-learning
