<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Generative Models on Chen Kai Blog</title><link>https://www.chenk.top/zh/tags/generative-models/</link><description>Recent content in Generative Models on Chen Kai Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Wed, 30 Jul 2025 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/zh/tags/generative-models/index.xml" rel="self" type="application/rss+xml"/><item><title>重参数化技巧与 Gumbel-Softmax 详解</title><link>https://www.chenk.top/zh/standalone/%E9%87%8D%E5%8F%82%E6%95%B0%E5%8C%96%E8%AF%A6%E8%A7%A3%E4%B8%8Egumbel-softmax%E6%B7%B1%E5%85%A5%E6%8E%A2%E8%AE%A8/</link><pubDate>Wed, 30 Jul 2025 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/standalone/%E9%87%8D%E5%8F%82%E6%95%B0%E5%8C%96%E8%AF%A6%E8%A7%A3%E4%B8%8Egumbel-softmax%E6%B7%B1%E5%85%A5%E6%8E%A2%E8%AE%A8/</guid><description>&lt;p>一旦模型中引入采样操作，训练便会立即面临一个关键难题：梯度如何流经随机节点&lt;/p>
&lt;p>重参数化（reparameterization）给出的答案非常直接——把 &lt;span class="math-inline">$z\sim p_\theta(z)$&lt;/span>
 改写成 &lt;span class="math-inline">$z=g_\theta(\epsilon)$&lt;/span>
，把随机性隔离到与参数无关的噪声 &lt;span class="math-inline">$\epsilon$&lt;/span>
 里，于是反向传播可以顺着 &lt;span class="math-inline">$g_\theta$&lt;/span>
 走下去。麻烦在于离散变量：&lt;span class="math-inline">$\arg\max$&lt;/span>
 一类操作不可导，梯度会断掉。&lt;strong>Gumbel-Softmax&lt;/strong>（也叫 Concrete 分布）用“带温度的 softmax + Gumbel 噪声”把离散采样变成可微近似，让你在保留离散结构的同时仍能端到端训练。&lt;/p></description></item><item><title>偏微分方程与机器学习（七）：扩散模型与 Score Matching</title><link>https://www.chenk.top/zh/pde-ml/07-%E6%89%A9%E6%95%A3%E6%A8%A1%E5%9E%8B%E4%B8%8Escore-matching/</link><pubDate>Tue, 30 Jul 2024 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/pde-ml/07-%E6%89%A9%E6%95%A3%E6%A8%A1%E5%9E%8B%E4%B8%8Escore-matching/</guid><description>&lt;p>扩散模型的输出端我们很熟悉：一张高质量图片。但训练目标乍看之下却很反直觉——&lt;strong>先把数据加噪声加到完全是高斯，再学怎么一步步去噪&lt;/strong>。为什么这个绕远路的策略反而比直接学数据分布有效？&lt;/p></description></item><item><title>变分自编码器 (VAE)：从直觉到实现与调试</title><link>https://www.chenk.top/zh/standalone/%E5%8F%98%E5%88%86%E8%87%AA%E7%BC%96%E7%A0%81%E5%99%A8-vae-%E8%AF%A6%E8%A7%A3/</link><pubDate>Tue, 27 Jun 2023 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/standalone/%E5%8F%98%E5%88%86%E8%87%AA%E7%BC%96%E7%A0%81%E5%99%A8-vae-%E8%AF%A6%E8%A7%A3/</guid><description>&lt;p>普通自编码器仅能压缩与重建，而变分自编码器（VAE）则具备生成能力——它学习到一个平滑且结构化的潜在空间，可以从中采样生成全新数据。将编码器从“输出一个向量”改为“输出一个分布”，这一步骤使模型从一个花哨的压缩器升级为带可优化似然下界的生成模型。&lt;/p></description></item></channel></rss>