All models

SlimFlow

A small U-Net trained with SlimFlow, a rectified flow method for one-step diffusion models.

Diffusion and generative · 435 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (83 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
27.9M
Operations
435
Framework
PyTorch
Recurrent
No
Published
ECCV 2024
Cited by
8 (as of 24 October 2026)
Authors
Yuanzhi Zhu, Xingchao Liu, Qiang Liu
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20463
Graph hash
4cc5ccf98185128ec991acc603664f02bba4c922a465227c292ba61cf21cb3b2
Skeleton hash
6ae61a3b48e2d0e49f928724c1d2af313a6fc58bab182701b69e5276d57172e1
Architecture hash
1e6eb9455512e681b4d3ebf46ba57e705b7d9aaf2fb64d394045c021b914ee6c
Diagram SHA-256
6a2423b0e799e6ea05d61e4a5186e6c38781141543918570859a7553a27f6cc9
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

SlimFlow is a training framework for small diffusion models that generate an image in one step, built on rectified flow. The paper's starting point is that methods for turning diffusion models into one-step generators had neglected model size reduction. For its CIFAR10 32×32 and FFHQ 64×64 experiments the paper uses the U-Net architecture of NCSN++.

Rectified flow reaches one-step generation through two operations, reflow and distillation. Reflow normally starts the student from the teacher's weights, which the paper notes is inapplicable when the student network has a different structure. Annealing Reflow instead starts training with random pairs and gradually shifts to pairs generated from the teacher flow. Flow-Guided Distillation then uses the pre-trained 2-rectified flow as an additional regularization while distilling the one-step model.

On CIFAR10 the paper reports a one-step model with an FID of 5.02 and 15.7M parameters, against an FID of 6.47 and 19.4M parameters for the earlier one-step diffusion model it compares with.

Key idea. SlimFlow combines Annealing Reflow and Flow-Guided Distillation to train one-step diffusion models with smaller networks under the rectified flow framework.

  • slimflow
  • slim flow
  • one-step diffusion
  • rectified flow
  • annealing reflow
  • flow-guided distillation
  • small diffusion model
  • one-step image generation
  • diffusion distillation

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhu2024slimflowtrainingsmalleronestep,
      title={SlimFlow: Training Smaller One-Step Diffusion Models with Rectified Flow}, 
      author={Yuanzhi Zhu and Xingchao Liu and Qiang Liu},
      year={2024},
      eprint={2407.12718},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2407.12718}, 
}