Skip to content

Latest commit

Β 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

BAG: Budget-Aware Gating for Diffusion Caching

One gate Β· any budget Β· exact NFE

arXiv License

Tong Zhao1,2, Mingkun Lei2, Yucheng Han3, Chi Zhang2,πŸ“§

1Zhejiang University 2AGI Lab, Westlake University 3StepFun

πŸ“§ Corresponding author

teaser

Qwen-Image-2512 accelerated by a single BAG gate β€” the number on each image is its speedup (2.5Γ— β†’ 5.0Γ—).

πŸ“° News

  • 2026-08 πŸ–ΌοΈ Added Qwen-Image-2512 results.
  • 2026-08 πŸ“„ Paper released on arXiv.

πŸ” What is BAG?

Diffusion caching skips denoising steps by reusing cached features β€” but online heuristics ignore the compute budget, and static schedules ignore the trajectory dynamics. BAG distills offline-searched schedules into a gate of under 1K parameters that reads the remaining budget and the realized trajectory at every step, then decides compute-or-reuse on the fly:

  • 🎯 Budget-exact β€” realized NFE equals the requested budget
  • πŸ” One gate, any budget β€” a single checkpoint covers all evaluated budgets, resolutions, and step counts
  • πŸ“Š Strong results β€” outperforms strong static and online caching baselines at matched compute, on FLUX.1-dev, Wan2.1, and Qwen-Image-2512

overview

🎞️ One checkpoint across the budget range

Columns run from NFE 24 down to 10 on FLUX.1-dev; leftmost is the same-seed 50-step output. Per case, top: naive step reduction, bottom: BAG at the same NFE β€” step reduction settles on a different image as steps shrink, while the single gate stays close to the full-compute output across the whole range.

sweep-pow sweep-boat

βœ… TODO

  • Inference code + trained gates (FLUX.1-dev / Wan2.1 / Qwen-Image-2512)
  • Offline search + gate training code (the full pipeline)

πŸ“– Citation

@article{zhao2026bag,
  title={BAG: Budget-Aware Gating for Diffusion Caching},
  author={Zhao, Tong and Lei, Mingkun and Han, Yucheng and Zhang, Chi},
  journal={arXiv preprint arXiv:2608.09231},
  year={2026}
}

About

Official implementation of BAG: Budget-Aware Gating for Diffusion Caching

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors