<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://rdharini2001.github.io/feed.xml" rel="self" type="application/atom+xml"/><link href="https://rdharini2001.github.io/" rel="alternate" type="text/html" hreflang="en"/><updated>2026-06-08T21:54:26+00:00</updated><id>https://rdharini2001.github.io/feed.xml</id><title type="html">blank</title><subtitle>Dharini Raghavan — Ph.D. student in ECE at Georgia Tech. Representation learning for biomedical imaging, generative modeling, and embodied perception. </subtitle><entry><title type="html">Mean Flows for One-Step Generative Modeling</title><link href="https://rdharini2001.github.io/blog/2026/mean-flows-one-step/" rel="alternate" type="text/html" title="Mean Flows for One-Step Generative Modeling"/><published>2026-05-20T00:00:00+00:00</published><updated>2026-05-20T00:00:00+00:00</updated><id>https://rdharini2001.github.io/blog/2026/mean-flows-one-step</id><content type="html" xml:base="https://rdharini2001.github.io/blog/2026/mean-flows-one-step/"><![CDATA[<p>These are my notes from a recent <strong>Tech Talks</strong> session — the AI journal club I run — on <strong>Mean Flows for One-Step Generative Modeling</strong> by Geng et al. (2025). The paper proposes a clean reformulation of flow-based generative models around an <em>average velocity field</em> rather than an <em>instantaneous</em> one, and turns one-step generation into a primary, principled training objective rather than a distillation hack.</p> <h2 id="the-setup-why-flow-matching-and-where-it-hurts">The setup: why flow matching, and where it hurts</h2> <p>In standard <strong>flow matching</strong>, we train a network \(v_\theta(x_t, t)\) to match a target instantaneous velocity field \(u(x_t, t)\) along an interpolation between data and noise:</p> \[\mathcal{L}_{\text{FM}} = \mathbb{E}_{t, x_0, x_1} \Big[\, \big\| v_\theta(x_t, t) - u(x_t, t)\big\|^2 \,\Big]\] <p>At inference, we integrate the learned ODE \(\dot{x}_t = v_\theta(x_t, t)\) from noise to data. The quality of samples depends on how many ODE steps we can afford — more steps reduce discretization error, but cost more.</p> <p>This creates a tension. Few-step or one-step generation is hugely valuable for deployment, but the model was trained to be an <em>instantaneous</em> derivative, not a <em>finite-displacement</em> operator. Distillation approaches (consistency models, progressive distillation, rectified flow) try to bridge that gap after the fact.</p> <h2 id="the-mean-flow-idea">The mean-flow idea</h2> <p>The paper’s key move is to define and learn the <strong>average velocity</strong>:</p> \[\bar{u}(x_t, r, t) \;=\; \frac{1}{t - r}\int_r^t u(x_s, s)\, ds\] <p>i.e., the displacement-per-unit-time over a finite interval \([r, t]\), rather than the derivative at a single instant. The point: if you have \(\bar{u}\) exactly, then one Euler step over the whole interval is <em>exact</em>:</p> \[x_r \;=\; x_t - (t-r)\,\bar{u}(x_t, r, t)\] <p>So one-step generation is no longer an approximation — it’s the natural inference rule for a model that learned the right object.</p> <h2 id="the-identity-that-makes-training-tractable">The identity that makes training tractable</h2> <p>The trick is that you can’t differentiate through an integral target cheaply. The authors derive a self-referential identity by differentiating the defining equation with respect to \(t\):</p> \[\bar{u}(x_t, r, t) \;=\; u(x_t, t) \;-\; (t - r)\,\frac{d}{dt}\bar{u}(x_t, r, t)\] <p>The right-hand side mixes the <strong>instantaneous</strong> velocity (from a standard flow-matching teacher) with a <strong>time-derivative of the mean-flow network itself</strong>. That makes training feasible: you optimize the network to satisfy this consistency identity via JVPs.</p> <p>This is structurally reminiscent of consistency-model training — both ask a network to satisfy a self-referential invariant — but the invariant here is grounded in calculus, not in a discretization scheme.</p> <h2 id="why-i-find-this-interesting">Why I find this interesting</h2> <p>A few reasons it stood out at our journal club:</p> <ol> <li><strong>It reframes one-step generation as the primary object</strong>, not a distillation artifact. The hierarchy “train a continuous model, then distill to a few steps” is replaced by “train the few-step model directly.”</li> <li><strong>It is geometric.</strong> The mean-flow \(\bar{u}(x_t, r, t)\) is the natural finite-displacement operator along a transport path. This connects to my interest in <strong>flow-based generative geometry</strong> — what do the curvature, density concentration, and asymmetry of transport paths tell us about representation quality?</li> <li><strong>It hints at a state-modeling reading.</strong> If you think of generative modeling as inferring a latent state and rolling it forward, an instantaneous-velocity model is doing infinitesimal state updates, while a mean-flow model is doing <strong>calibrated finite-horizon predictions</strong> — closer to how world models behave.</li> </ol> <h2 id="caveats-and-open-questions">Caveats and open questions</h2> <ul> <li>Training stability with JVP-based self-referential losses is delicate; the paper reports tricks that matter.</li> <li>It is unclear (to me) how mean flows interact with <strong>conditional</strong> generation, especially with strong conditioning signals where the velocity changes rapidly near the data manifold.</li> <li>The connection to <strong>consistency models</strong> and to <strong>rectified flow</strong> deserves a careful theoretical comparison — they each impose different invariants on the same underlying object.</li> </ul> <h2 id="why-i-wrote-this-up">Why I wrote this up</h2> <p>I run <a href="/projects/">Tech Talks</a> as an AI journal club for critical discussion of recent generative-modeling, vision, and medical AI papers. These posts are an attempt to write up sessions in a form useful to others — short, opinionated, and focused on what I think <em>matters</em> in the paper rather than reproducing the table of results.</p> <p>If you’d like to suggest a paper or join a session, <a href="mailto:draghavan7@gatech.edu">reach out</a>.</p> <h2 id="references">References</h2> <p>Geng, Z. et al. (2025). <em>Mean Flows for One-Step Generative Modeling.</em> <a href="https://arxiv.org/abs/2505.13447">[arXiv]</a></p>]]></content><author><name></name></author><category term="tech-talks"/><category term="generative-modeling"/><category term="flow-matching"/><category term="diffusion"/><category term="tech-talks"/><summary type="html"><![CDATA[Tech Talks reading notes — what mean flows are, how they differ from flow matching and consistency models, and why they enable principled one-step generation.]]></summary></entry></feed>