ReCache: Learning Budget-Aware Caching Schedules for Diffusion Models via REINFORCE

Mishan Aliev, Eva Neudachina, Ilya Bykov, Aleksandr Oganov, Kirill Struminsky +2 more
6/4/2026
6 citations
cs.CV
diffusion-flow

Official code: thecrazymage/ReCache (95 stars, last commit 2026-06-05).

Abstract

Modern diffusion models generate high-quality images and videos, but their iterative denoising process makes inference expensive. Feature caching accelerates sampling by reusing or predicting intermediate activations across neighboring denoising steps, exploiting the redundancy of computations along the reverse trajectory.

Show full abstract

In this work, we focus on the caching schedule: selecting which denoising steps should be fully recomputed. Existing schedules are either fixed (e.g. uniform) or chosen adaptively from per-step error heuristics; in both cases, the actual compute cost is a side-effect of hand-tuned thresholds rather than a quantity the user can specify. We propose ReCache, which inverts this: given a target budget k, it learns the recomputation schedule that maximizes generation quality, turning compute into a directly controllable input. ReCache trains via policy gradients, sidestepping backpropagation through full diffusion inference, and uses no labelled data. Generations from uncached inference serve as matching targets, paired with a reward for generation quality. ReCache is compatible with any caching mechanism, including feature reuse and feature forecasting; for each mechanism, a single trained policy adapts across computational budgets at inference time. ReCache consistently outperforms scheduling baselines: under a $\times5.04$ FLOPs reduction on FLUX, it reduces LPIPS by 31% (from 0.456 to 0.316) compared to DiCache; on Wan 2.1 at a $\sim \times2.6$ speedup, it drops LPIPS by 65% (from 0.480 to 0.169) and boosts the VBench score by 7% (5.6 points, from 70.4 to 76.0) over uniform HiCache. Code is available at https://github.com/thecrazymage/ReCache.

View on arXivView PDF

Code Implementations(1)

ReCache: Learning Budget-Aware Caching Schedules for Diffusion Models via REINFORCE

950Jun 4, 20265 months ago

Similar Papers

Cite this paper

@article{aliev2026recache,
  title  = {ReCache: Learning Budget-Aware Caching Schedules for Diffusion Models via REINFORCE},
  author = {Mishan Aliev and Eva Neudachina and Ilya Bykov and Aleksandr Oganov and Kirill Struminsky and Aibek Alanov and Denis Rakitin},
  year   = {2026},
  eprint = {2606.06060},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.06060v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.06060.svg)](https://codeofpaper.com/paper/2606.06060)

Discussion