<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Variational Inference on Chen Kai Blog</title><link>https://www.chenk.top/zh/tags/variational-inference/</link><description>Recent content in Variational Inference on Chen Kai Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 02 Feb 2026 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/zh/tags/variational-inference/index.xml" rel="self" type="application/rss+xml"/><item><title>机器学习数学推导（十四）：变分推断与变分 EM</title><link>https://www.chenk.top/zh/ml-math-derivations/14-%E5%8F%98%E5%88%86%E6%8E%A8%E6%96%AD%E4%B8%8E%E5%8F%98%E5%88%86em/</link><pubDate>Mon, 02 Feb 2026 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/ml-math-derivations/14-%E5%8F%98%E5%88%86%E6%8E%A8%E6%96%AD%E4%B8%8E%E5%8F%98%E5%88%86em/</guid><description>&lt;p>后验 &lt;span class="math-inline">$p(\mathbf{z}\mid\mathbf{x})$&lt;/span>
 无法直接计算时，我们面临两条路径。&lt;strong>采样方法&lt;/strong>（MCMC）通过构造一条马尔可夫链，使其平稳分布恰好等于目标后验——理论上最终能精确逼近，但收敛缓慢且诊断困难。&lt;strong>变分推断&lt;/strong>（VI）则另辟蹊径：先选定一个结构简单的分布族 &lt;span class="math-inline">$\mathcal{Q}$&lt;/span>
，再从中找出最接近真实后验的那个成员 &lt;span class="math-inline">$q^\star$&lt;/span>
。如此一来，推断问题就转化为优化问题——训练神经网络的那一套工具，现在也能用来拟合贝叶斯模型了。&lt;/p></description></item><item><title>偏微分方程与机器学习（四）：变分推断与 Fokker-Planck 方程</title><link>https://www.chenk.top/zh/pde-ml/04-%E5%8F%98%E5%88%86%E6%8E%A8%E6%96%AD%E4%B8%8Efokker-planck%E6%96%B9%E7%A8%8B/</link><pubDate>Sat, 15 Jun 2024 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/pde-ml/04-%E5%8F%98%E5%88%86%E6%8E%A8%E6%96%AD%E4%B8%8Efokker-planck%E6%96%B9%E7%A8%8B/</guid><description>&lt;p>为什么变分推断（一个看起来纯优化的方法）和 Langevin MCMC（一个看起来纯采样的方法）最后会汇到同一个偏微分方程？&lt;/p>
&lt;p>&lt;figure class="article-figure">
 &lt;img src="https://blog-pic-ck.oss-cn-beijing.aliyuncs.com/posts/zh/pde-ml/04-Variational-Inference/illustration_1.png" alt="偏微分方程与机器学习（四）：变分推断与 Fokker-Planck 方程 — 章节概览图" loading="lazy" decoding="async" class="content-image">
 
&lt;/figure>
&lt;/p>
&lt;p>这一篇我想讲的就是这件事。它们在连续时间下其实是&lt;strong>同一个 Fokker-Planck PDE 的两面&lt;/strong>：一边是密度的演化，一边是 KL 散度沿 Wasserstein 几何的梯度流。看清这一点之后，许多看起来不相关的工具——SVGD 的粒子算法、对数 Sobolev 不等式给出的指数收敛、贝叶斯神经网络的训练——会突然落到同一张图上。&lt;/p></description></item></channel></rss>