[ICLR 2026] MeanCache: From Instantaneous to Average Velocity for Accelerating Flow Matching Inference

February 5, 2026 ยท View on GitHub

1Data Science & Artificial Intelligence Research Institute, China Unicom,
2Unicom Data Intelligence, China Unicom,
3National Key Laboratory for Novel Software Technology, Nanjing University
(* Corresponding author.)
Project Page Paper License GitHub Stars

๐ŸŽฌ Demo Video

https://github.com/user-attachments/assets/6deadbcf-0a7f-4ecc-96fa-645ca86bba7f

Introduction

In Flow Matching inference, existing caching methods primarily rely on reusing Instantaneous Velocity or its feature-level proxies. However, we observe that instantaneous velocity often exhibits sharp fluctuations across timesteps. This leads to severe trajectory deviations and cumulative errors, especially as the cache interval increases. Inspired by MeanFlow, we propose MeanCache. Compared to unstable instantaneous velocity, Average Velocity is significantly smoother and more robust over time. By shifting the caching perspective from a single "point" to an "interval," MeanCache effectively mitigates trajectory drift under high acceleration ratios.

Latest News

  • [2026/02/05] Community Contribution: ComfyUI-MeanCache-Z is now available! thanks to @facok!
  • [2025/02/04] Support Z-Image and released the MeanCache vs. LeMiCa comparative study.
  • [2025/02/02] Support Qwen-Image and Inference Code Released !

MeanCache vs. LeMiCa

This benchmark evaluates the performance of MeanCache against LeMiCa using the Qwen-Image-2512 model as the base.

๐Ÿš€ Efficiency

Baseline Latency (Original Qwen-Image-2512): 32.8s

ConstraintMethodLatencySpeedupTime Reduction
B=25B=25LeMiCa18.83 s1.74x-
MeanCache17.13 s1.91x9.0%
B=17B=17LeMiCa14.35 s2.29x-
MeanCache11.67 s2.81x18.7%
B=10B=10LeMiCa10.41 s3.15x-
MeanCache6.95 s4.72x33.2%

๐ŸŽจ Quality

ConstraintMethodPSNR (โ†‘)SSIM (โ†‘)LPIPS (โ†“)
B=25B=25LeMiCa29.200.9450.065
MeanCache29.460.9440.057
B=17B=17LeMiCa24.310.8350.176
MeanCache26.490.9070.104
B=10B=10LeMiCa17.800.6370.368
MeanCache19.440.7670.237

Demo

Z-Image

Z-Image-baseMeanCache(B=25)MeanCache(B=20)MeanCache(B=15)MeanCache(B=13)
18.07 s9.15 s7.36 s5.58 s4.85 s

Qwen-Image-2512

MethodQwen-Image-2512MeanCache(B=25)MeanCache(B=17)MeanCache(B=10)
Latency32.8 s17.13 s11.67 s6.95 s
T2IQwen-Image-2512Meancache_b25Meancache_b17Meancache_b10

Qwen-Image

MethodQwen-ImageMeanCache(B=25)MeanCache(B=17)MeanCache(B=10)
Latency33.13 s17.04 s11.63 s6.92 s
T2IQwen-ImageMeancache_b25Meancache_b17Meancache_b10

License

The majority of this project is released under the Apache 2.0 license as found in the LICENSE file.

๐Ÿ“– Citation

If you find MeanCache useful in your research or applications, please consider giving us a star โญ and citing it by the following BibTeX entry:

@inproceedings{gao2025meancache,
  title     = {MeanCache: From Instantaneous to Average Velocity for Accelerating Flow Matching Inference},
  author    = {Huanlin Gao and Ping Chen and Fuyuan Shi and Ruijia Wu and Yantao Li and Qiang Hui and Yuren You and Ting Lu and Chao Tan and Shaoan Zhao and Zhaoxiang Liu and Fang Zhao and Kai Wang and Shiguo Lian},
  journal   = {International Conference on Learning Representations (ICLR)},
  year      = {2026},
  url       = {https://arxiv.org/abs/2601.19961}
}