One gate Β· any budget Β· exact NFE
Tong Zhao1,2, Mingkun Lei2, Yucheng Han3, Chi Zhang2,π§
1Zhejiang Universityβ2AGI Lab, Westlake Universityβ3StepFun
π§ Corresponding author
- 2026-08 πΌοΈ Added Qwen-Image-2512 results.
- 2026-08 π Paper released on arXiv.
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
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.
- Inference code + trained gates (FLUX.1-dev / Wan2.1 / Qwen-Image-2512)
- Offline search + gate training code (the full pipeline)
@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}
}


