<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Diffusion on itu</title>
		<link>/tags/diffusion/</link>
		<description>Recent content in Diffusion on itu</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
			<copyright>&amp;copy; 2024 itsublog. All rights reserved.
</copyright>
		
		
			<lastBuildDate>Sat, 10 Oct 2026 02:49:00 +0900</lastBuildDate>
		
			<atom:link href="/tags/diffusion/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>MDP &amp; Timestep RL for Discrete Diffusion LLMs</title>
				<link>/posts/research_notes/mdp-diffusion-llms/</link>
				<pubDate>Wed, 30 Sep 2026 15:44:00 +0900</pubDate>
				<guid>/posts/research_notes/mdp-diffusion-llms/</guid>
				<description>&lt;p&gt;Semi-AR (Block AR); Agentic multi turn; Only terminal/outcome reward, \(\gamma=1\) as the convention for LLM RL.&lt;/p&gt;&#xA;&lt;h1 id=&#34;setup&#34;&gt;Setup&lt;/h1&gt;&#xA;&lt;h2 id=&#34;index&#34;&gt;Index&lt;/h2&gt;&#xA;&lt;p&gt;Some canvas with idx \(c\) (length \(C\)) includes denoising timestep index (not token index) \([n_c, n_c&amp;#43;T_c)\), \(T_c\) is not constant over \(c\) by early-stopping. Global denoising step \(n\).&lt;/p&gt;&#xA;&lt;p&gt;From \(n\), a tuple of indices can be specified&#xA;&lt;/p&gt;&#xA;\[&#xA;n\mapsto (j(n),c(n),t(n))&#xA;\]&lt;ul&gt;&#xA;&lt;li&gt;\(j(n)\): (global) turn index&lt;/li&gt;&#xA;&lt;li&gt;\(c(n)\): global canvas index&lt;/li&gt;&#xA;&lt;li&gt;\(t(n)\): timestep index in the canvas&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;thus&#xA;&lt;/p&gt;&#xA;\[&#xA;n=\sum_{c&amp;lt; c(n)}T_c&amp;#43;t(n).&#xA;\]&lt;h2 id=&#34;state&#34;&gt;State&lt;/h2&gt;&#xA;&lt;p&gt;For some timestep \(n\), define its realized state \(s_n\) (and r.v. \(S\))&#xA;&lt;/p&gt;</description>
			</item>
			<item>
				<title>[Flow] Rectified Flow Explained</title>
				<link>/posts/cs180-pjs/rectified-flow/</link>
				<pubDate>Wed, 20 Nov 2024 20:39:29 +0800</pubDate>
				<guid>/posts/cs180-pjs/rectified-flow/</guid>
				<description>&lt;p&gt;Here is the (simple) explanation for the framework &lt;strong&gt;&lt;a href=&#34;https://arxiv.org/abs/2209.03003&#34;&gt;Rectified Flow&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/itsuitsuki/simple-rectified-flow&#34;&gt;&lt;strong&gt;A simple implementation&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h1 id=&#34;overview&#34;&gt;Overview&lt;/h1&gt;&#xA;&lt;p&gt;Rectified Flow (RF) is a generative modeling method, which tries to transport data from source distribution \(\pi_0\) (which corresponds to the pure Gaussian distribution \(\pi_0=N(0,I)\)) and the target distribution \(\pi_1\), which is the distribution of clean images.&lt;/p&gt;&#xA;&lt;p&gt;The overall objective is to &lt;strong&gt;align the velocity estimate&lt;/strong&gt; (using the UNet, denoted as \(v_\theta\) now) &lt;strong&gt;to the actual velocity&lt;/strong&gt; between the source image \(X_0\) and the target image \(X_1\). First, the timesteps here are all normalized between \(t\in[0,1]\), instead of spreading in \(\{0,\cdots, T\}\).&lt;/p&gt;</description>
			</item>
			<item>
				<title>DDPM Sampling, Applications &amp; Training from Scratch</title>
				<link>/posts/cs180-pjs/ddpm-hw/</link>
				<pubDate>Sun, 10 Nov 2024 01:01:49 -0800</pubDate>
				<guid>/posts/cs180-pjs/ddpm-hw/</guid>
				<description>&lt;p&gt;The original project spec at UC Berkeley CS180 is &lt;a href=&#34;https://cal-cs180.github.io/fa24/hw/proj5/index.html&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Mirror of &lt;a href=&#34;https://itsuitsuki.github.io/cs180_pj_webpages/p5_chyzhou&#34;&gt;CS180 Project 5 Showcase Webpage&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;div style=&#34;display: flex; justify-content: space-around;&#34;&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/1/9/2/result.png&#34; alt=&#34;&#34; style=&#34;width: 400px;&#34;&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_2_im_0_step20.png&#34; alt=&#34;&#34; style=&#34;width: 400px;&#34;&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/2/logo/result.png&#34; alt=&#34;&#34; style=&#34;width: 400px;&#34;&gt;&#xA;  &lt;/figure&gt;&#xA;&lt;/div&gt;&#xA;&lt;div style=&#34;display: flex; justify-content: space-around;&#34;&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5b_pics/4/classcond/epoch_20_animation.gif&#34; alt=&#34;Epoch 20 Animation&#34; style=&#34;width: 800px;&#34;&gt;&#xA;  &lt;/figure&gt;&#xA;&lt;/div&gt;&#xA;&lt;h1 id=&#34;part-a&#34;&gt;Part A&lt;/h1&gt;&#xA;&lt;h2 id=&#34;0-setup&#34;&gt;0. Setup&lt;/h2&gt;&#xA;&lt;h3 id=&#34;2-stages&#34;&gt;2 Stages&lt;/h3&gt;&#xA;&lt;p&gt;We first use 3 prompts to let the model generate output images. Here are images and captions displayed below, with different inference steps:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;5 steps (i.e. &lt;code&gt;num_inference_steps=5&lt;/code&gt;):&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Size: 64px * 64px (Stage 1)&#xA;&lt;div style=&#34;display: flex; justify-content: space-around;&#34;&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_1_im_0_step5.png&#34; alt=&#34;&#34; style=&#34;width: 128px;&#34;&gt;&#xA;      &lt;figcaption&gt;an oil painting of &lt;br&gt; a snowy mountain village&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_1_im_1_step5.png&#34; alt=&#34;&#34; style=&#34;width: 128px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a man wearing a hat&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_1_im_2_step5.png&#34; alt=&#34;&#34; style=&#34;width: 128px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a rocket ship&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;&lt;/div&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Size: 256px * 256px (Stage 2)&#xA;&lt;div style=&#34;display: flex; justify-content: space-around;&#34;&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_2_im_0_step5.png&#34; alt=&#34;&#34; style=&#34;width: 512px;&#34;&gt;&#xA;      &lt;figcaption&gt;an oil painting of a snowy mountain village&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_2_im_1_step5.png&#34; alt=&#34;&#34; style=&#34;width: 512px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a man wearing a hat&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_2_im_2_step5.png&#34; alt=&#34;&#34; style=&#34;width: 512px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a rocket ship&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;&lt;/div&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;20 steps:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Stage 1:&#xA;&lt;div style=&#34;display: flex; justify-content: space-around;&#34;&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_1_im_0_step20.png&#34; alt=&#34;&#34; style=&#34;width: 128px;&#34;&gt;&#xA;      &lt;figcaption&gt;an oil painting of a &lt;br&gt; snowy mountain village&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_1_im_1_step20.png&#34; alt=&#34;&#34; style=&#34;width: 128px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a man wearing a hat&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_1_im_2_step20.png&#34; alt=&#34;&#34; style=&#34;width: 128px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a rocket ship&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;&lt;/div&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Stage 2:&#xA;&lt;div style=&#34;display: flex; justify-content: space-around;&#34;&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_2_im_0_step20.png&#34; alt=&#34;&#34; style=&#34;width: 512px;&#34;&gt;&#xA;      &lt;figcaption&gt;an oil painting of a &lt;br&gt; snowy mountain village&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_2_im_1_step20.png&#34; alt=&#34;&#34; style=&#34;width: 512px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a man wearing a hat&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_2_im_2_step20.png&#34; alt=&#34;&#34; style=&#34;width: 512px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a rocket ship&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;&lt;/div&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;100 steps:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Stage 1:&#xA;&lt;div style=&#34;display: flex; justify-content: space-around;&#34;&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_1_im_0_step100.png&#34; alt=&#34;&#34; style=&#34;width: 128px;&#34;&gt;&#xA;      &lt;figcaption&gt;an oil painting of &lt;br&gt; a snowy mountain village&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_1_im_1_step100.png&#34; alt=&#34;&#34; style=&#34;width: 128px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a man wearing a hat&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_1_im_2_step100.png&#34; alt=&#34;&#34; style=&#34;width: 128px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a rocket ship&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;&lt;/div&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Stage 2:&#xA;&lt;div style=&#34;display: flex; justify-content: space-around;&#34;&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_2_im_0_step100.png&#34; alt=&#34;&#34; style=&#34;width: 512px;&#34;&gt;&#xA;      &lt;figcaption&gt;an oil painting of a &lt;br&gt; snowy mountain village&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_2_im_1_step100.png&#34; alt=&#34;&#34; style=&#34;width: 512px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a man wearing a hat&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;  &lt;figure style=&#34;text-align: center; margin: 10px;&#34;&gt;&#xA;    &lt;img src=&#34;p5a_pics/0/stage_2_im_2_step100.png&#34; alt=&#34;&#34; style=&#34;width: 512px;&#34;&gt;&#xA;    &#x9;&lt;figcaption&gt;a rocket ship&lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;&lt;/div&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;reflection-on-the-generation&#34;&gt;Reflection on the generation&lt;/h3&gt;&#xA;&lt;p&gt;We find that for 5 steps, the outputs are not so clear, specifically, the noise added are not removed so completely. We can observe lots of noisy dots in the generated images. The generated feature is also not so clear.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
