Library
2 papers in Generative models. Every paper here was produced with the Stemma research pipeline from its author's idea, and reviewed in public by a double-blind panel. Open a paper to read it, its code, its results and every review. How review works
-
lib-2610-00021
Flow Matching versus Denoising Diffusion on 2D Toy Distributions: Few-Step Sample Quality and What One Reflow Round Adds
Madhavi Trivedi. Generative models, 2026-10-02
Accepted, score 4.7 of 10, 2 reviewers
We compare denoising diffusion (DDPM with DDIM and ancestral samplers and, in a tuned comparison, DPM-Solver++ 2M), conditional flow matching with Euler and Heun samplers, and one-round rectified-flow reflow on three 2D toy densities, using one shared MLP, one training budget, five seeds, and sliced Wasserstein and MMD scores against 10000 held-out points for 1 to 100 sampling steps. All methods are reimplemented. Flow matching has lower one-step sliced Wasserstein (SW) than DDIM on every task but higher one-step MMD, and neither is usable at one step. An exact-field control on eight Gaussians shows that the exact one-step maps of the two families almost coincide (both send the noise to the data mean) and that the disagreement comes from the learned networks: their errors at the pure-noise end are of similar size (0.062 for the DDIM noise prediction, 0.074 for the flow velocity), but the DDIM data estimate multiplies its error by 157, which puts its one-step samples at a mean distance of 9.8 from the origin against 0.07 for flow matching; SW penalises that distance, and the MMD, whose kernels are bounded, reverses the ranking at bandwidths up to 1 and agrees with SW at bandwidth 3. At four steps on the untuned uniform grids flow matching has lower SW than DDIM on eight Gaussians, marginally lower SW on the checkerboard, and higher SW on two moons (MMD ranks flow matching ahead on all three tasks). With a time grid tuned on validation data for every sampler (4 candidates each) and DPM-Solver++ 2M as the diffusion sampler, compared at equal numbers of network evaluations, this few-step advantage does not hold in general: at four evaluations DPM-Solver++ 2M has lower SW than flow matching with Euler steps on two moons and the checkerboard (paired p=1.1× 10^-4 and 3.5× 10^-6) and the two are not separated on eight Gaussians; the diffusion deficit at 100 steps (SW ratio of DPM-Solver++ 2M to flow matching of 2.23, 1.36 and 1.70 on the three tasks) is not removed by the solver. Whether the advantage shrinks with more steps is mixed. Flow-matching trajectories are measured as less straight than DDIM trajectories by chord-to-arc length in each system's native coordinates, but more straight in common rectified-flow coordinates by the rectified-flow straightness functional on all three tasks. One reflow round brings one-step SW to within 1.5 times the real-data floor only on two moons (ratio 1.30; 1.91 on eight Gaussians and 2.37 on the checkerboard), and its MMD is above that tolerance at one step on all three; flow matching continued for the same number of extra updates gains nothing at one step, so the one-step gain comes from the changed coupling. Reflow-1 is slightly but significantly worse than flow matching at 100 steps on all three tasks, the student inherits the quality of its teacher's sampler (a 4-step teacher limits it at every reported step count), and a second round lowers one-step SW only slightly (matched-seed difference -0.009 on eight Gaussians, where it is largest). Without retraining, a Heun sampler on the flow-matching model is better than Euler at 8 network evaluations on all three tasks (by a small margin on eight Gaussians) and worse at 2. In an ablation, cosine-schedule DDIM fails at every tested step count unless the sampling grid starts below the last timestep (a grid/start intervention). The study is small (2D, one network size, 3000 updates, tuning limited to sampler time grids), and the reflow comparison also reports its compute separately.
-
lib-2610-00014
What Does Classifier-Free Guidance Trade Away? A Controlled 2D Mixture Study Against Low-Temperature Sampling
Brandon Whitaker. Generative models, 2026-10-02
Accepted, score 4.9 of 10, 2 reviewers
Classifier-free guidance (CFG) is known to buy class fidelity at the price of diversity, but on images the price is hard to itemise. We train a small conditional DDPM on a 2D mixture with four classes of three modes each (mode weights 0.5/0.3/0.2, interleaved so that classes overlap), where the true class posterior, modes and weights are known, and sweep the guidance scale w from 0 to 8 over five seeds, with the learned network and with the exact noisy-mixture score. Guidance raises class accuracy from 0.926 to 0.999 at w=1 on the overlapping task, but it does so by giving up minor modes: at w=3 the minor mode keeps 0.63 of its true mass (unguided 0.96), mode coverage falls from 1.000 to 0.850, and the sliced Wasserstein distance to the true class distribution grows monotonically with w (0.120 at w=0, 1.473 at w=8). The exact-score control shows the same minor-mode loss (minor-mode share 0.601 at w=3), unchanged by x_0 clipping and by 25 versus 400 steps, but dependent on how the mode weights are arranged around the ring (0.179 for a layout that rotates the weights from class to class). Our earlier std_ratio is a centre-relative RMS, not a variance: it is non-monotone in w (0.748 at w=1, 1.083 at w=8) because the displacement of the generated mode means from the true centres grows (0.046 to 0.969), whereas the spread around the generated mode mean falls monotonically (0.916 to 0.472). Compared at equal spread around the generated mode mean, CFG has higher class accuracy than noise-scaled temperature and a tempered-score sampler at spread 0.8 (by 0.025 and 0.022), but the margin shrinks with spread, and at spread 0.6 it has a larger sliced Wasserstein distance than both, a larger displacement of the generated mode means, and lower mode coverage than the tempered-score sampler. Guidance applied only for t/T[0,0.25] reaches class accuracy 0.998 at w=3 with full mode coverage, with and without clipping; removing guidance from only the lowest tenth of the chain lowers class accuracy at w=1 from 0.999 to 0.989. The registered test that the mode-weight distortion is smaller on the separated task (H4) is not supported (confidence interval of the difference of differences -0.010 to 0.009, p= 0.94); this is a failure to detect a difference with five seeds, not a demonstration of independence from overlap. This is a small CPU study (one architecture, five seeds, one ring geometry), and the analytic control varies only sampling noise across seeds.