AutoCache: Agent-Designed Caching for Image and Video Generation

Canyu Shen1 · Yang Chen1 · Gezhi Zhu1 · Xuemei Zhou2 · Teng Long3 · Vincent Tao Hu1

1School of Software Engineering, Huazhong University of Science and Technology
2Centrum voor Wiskunde en Informatica (CWI) · 3University of Trento

Overview

AutoCache uses an AI agent to find when a model can reuse earlier calculations. After this search, the selected rule runs on its own: no retraining and no more agent calls.

Across three tested image and video models, generation is 1.99–3.14× faster than running without caching. Outputs also stay closer to the uncached results than with the compared caching methods.

Method

  1. Search. An AI agent writes and tests caching rules on a development set.
  2. Choose. Select a rule for each model and keep it fixed.
  3. Generate. NEW computes a fresh update from the model blocks. REUSE applies their saved update instead.
The animation compares two 40-step generation runs. In the held-out DrawBench test, Qwen-Image-2.1 averages 2.81 s per image with AutoCache, down from 8.82 s without caching (H100, batch size one).

Measured generation speedup over uncached inference · DrawBench for images · VBench for video

Video comparisons

Image comparisons

Speed and output similarity

Figure 1. Reference fidelity and speed comparisons for Qwen-Image-2.1, FLUX3-Image-Klein-Base, and Wan2.1-1.3B, with the Qwen-Image-2.1 PSNR–speedup trade-off.
TeaCache (CVPR 2025) SeaCache (CVPR 2026) DiCache (ICLR 2026) AutoCache (Ours)

AutoCache Single uses one selected rule per model. It scores better on PSNR, SSIM, and LPIPS than the reported caching baselines on all three models. These metrics compare outputs with the results generated without caching.

The radar plots show the best score for each metric across several rules. Those scores may come from different rules.

See the numbers
  • Qwen: PSNR rises from 25.60 to 29.43 dB, while time per image falls from 2.95 to 2.81 s, compared with MagCache, the fastest baseline.
  • FLUX3: PSNR rises from 31.92 to 32.80 dB compared with SeaCache.
  • Wan2.1: PSNR rises from 24.47 to 25.51 dB, and speedup rises from 2.15× to 2.41×, compared with SeaCache.
  • Best speedups across selected rules: 3.38× on Qwen, 2.58× on FLUX3, and 2.45× on Wan2.1.

Models and test sets

BackboneBenchmarkDevelopmentEvaluationSteps
Qwen-Image-2.1DrawBench3017040
FLUX3-Image-Klein-BaseDrawBench3017050
Wan2.1-T2V-1.3BVBench12482050

Reuse the same rule

Model transferFLUX3 (5.6B) → FLUX.1-dev (12B)
MethodPSNR ↑SSIM ↑LPIPS ↓Speedup ↑
ECAD Fast13.210.4460.4632.28×
TeaCache19.900.7550.1621.91×
DPCache22.970.8280.1061.81×
SeaCache25.740.8770.0702.28×
DiCache29.120.9230.0432.01×
AutoCache (Ours)31.640.9490.0261.96×
Benchmark transferDrawBench → GenEval 2
MethodPSNR ↑SSIM ↑LPIPS ↓Speedup ↑
DiCache26.820.8870.1122.77×
SeaCache25.720.8840.1152.96×
AutoCache (Ours)27.500.9060.0913.02×

Both tests reuse the selected rules without another search.

FLUX3 → FLUX.1-dev: AutoCache has the best output similarity on all three metrics, with 31.64 dB PSNR at 1.96× speedup. SeaCache is faster at 2.28× among the 50-step methods.

DrawBench → GenEval 2: The same Qwen rule reaches 27.50 dB PSNR at 3.02× speedup, ahead of DiCache and SeaCache on all three similarity metrics and speed.

Test setup
  • Model transfer: The rule from FLUX3-Image-Klein-Base (5.6B, 1024 × 1024) runs unchanged on FLUX.1-dev (12B, 256 × 256), using 170 DrawBench prompts.
  • Test-set transfer: The Qwen rule found on DrawBench runs unchanged on 800 GenEval 2 prompts. Methods use matched prompts and seeds.

Citation

BibTeX
@misc{shen2026autocache,
  title={{AutoCache}: Agent-Designed Caching for Image and Video Generation},
  author={Shen, Canyu and Chen, Yang and Zhu, Gezhi and Zhou, Xuemei and Long, Teng and Hu, Vincent Tao},
  year={2026},
  howpublished={Research preprint},
  url={https://vibe-hust.github.io/autocache_page/}
}