TL;DR
Training text-to-image diffusion models from scratch usually feels like a privilege reserved for labs with massive GPU clusters. MiniDog flips that script: it is an open-source educational framework that lets anyone pretrain a text-to-image diffusion transformer in 55 minutes and fine-tune it in 15 minutes on just four consumer RTX 3090 GPUs—plus a CPU-friendly notebook for learning the math on 2D toy data.
What Problem Does This Paper Address?
If you are a student or engineer trying to get into generative AI, there is a frustrating gap between reading papers and actually training a text-to-image (T2I) model end-to-end. Frontier models require staggering amounts of compute, which prices out beginners from ever running the full pipeline—from pretraining to supervised fine-tuning (SFT) and evaluation. MiniDog (an Education Track paper at NeurIPS 2026) tackles this accessibility barrier by scoping the problem down to 20 dog breeds and optimizing the pipeline so it runs fast on consumer hardware, without claiming new algorithmic breakthroughs.
Methods
The curriculum is split into two hands-on tasks:
- Task 1 (CPU-only Flow Matching Basics): A self-contained notebook where students train a small MLP on 2D concentric circles embedded in either 2D or 32D space. They compare two prediction targets—x-prediction (predicting the clean data) and v-prediction (predicting the velocity)—to see firsthand how v-prediction degrades in higher dimensions while x-prediction holds steady.
- Task 2 (T2I Pretraining & SFT on GPUs): Using the DiffusionBench framework and a 12-block LightningDiT (Diffusion Transformer), the pipeline pairs:
- Frozen encoders: Qwen3-0.6B for text captions, E2E-INVAE as the image tokenizer (latents are precomputed and cached to save time), and EUPE-B as an external vision encoder.
- In-context conditioning: Timestep and text tokens are concatenated with noisy image latents into a single sequence.
- Alignment & Flow Matching: During pretraining (200 epochs, ~20k steps), the model uses both flow-matching loss and iREPA (an accelerated representation alignment loss) at Block 4 with mean squared error (MSE). During SFT (100 epochs, ~700 steps), the alignment loss is turned off, leaving only flow matching.
Datasets
All three datasets are released on HuggingFace:
- Pretraining: 26,000 recaptioned ImageNet images covering 20 dog breeds.
- Supervised Fine-Tuning (SFT): 2,000 high-quality images of the same 20 breeds, generated using FLUX.1-schnell from prompts written by GPT-5.5.
- Evaluation: 500 held-out prompts.
Key Insights and Ideas
- Caching is king for consumer GPUs: Because the VAE and text encoder are frozen, precomputing and caching image latents and text tokens (~15 minutes on one 3090) slashes training time.
- Dimension matters for prediction targets: In Task 1, both x-prediction and v-prediction work at $D=2$, but at $D=32$, v-prediction breaks down—giving students an intuitive, visual grasp of why modern diffusion models care about parameterization.
- iREPA + MSE + EUPE-B speeds up convergence: Aligning intermediate transformer features with an external vision encoder (iREPA) using MSE loss consistently beats standard REPA and no-REPA baselines in generative FID (gFID).
Key Results
- Speed & Hardware: On 4× RTX 3090 GPUs, pretraining takes 55 minutes and SFT takes 15 minutes. On a single RTX 3090, it takes ~3 hours for pretraining and 21 minutes for SFT, requiring at least 10 GiB VRAM (or 15 GiB if evaluating FID during training).
- Generation Quality: The best pretraining recipe (E2E-INVAE, 128-token captions, iREPA with MSE, EUPE ViT-B/16) achieves a gFID of 8.32.
- Human Preference Proxies: Fine-tuning with SFT boosts HPSv2 from
0.1625to0.2427and PickScore from18.42to19.61, producing noticeably sharper, more aesthetic dog portraits.
Limitations and Future Work
Because the SFT images are generated by FLUX.1-schnell, part of the SFT improvement likely comes from distilling FLUX's visual style—a style that automated metrics like HPSv2 and PickScore may also naturally favor. The authors note that a proper human evaluation study is left for future work.
Summary updated