atlas

Research map / Image generation / Fast diffusion sampling

Cache Me if You Can: Accelerating Diffusion Models through Block Caching

CVPR 2024 · Image generation › Fast diffusion sampling · approach: Training-free diffusion acceleration · 35 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Block Caching, which reuses cached outputs of spatial-transformer blocks across diffusion denoising steps (with a learned scale-shift adjustment) to speed up U-Net inference by 1.5-1.8x without quality loss.

Problem

Diffusion model image generation is costly because a large denoising U-Net must be applied many times; prior work mostly treats the network as a black box and focuses on solvers or distillation.

Approach

Analyzing per-block outputs over timesteps reveals smooth, block-specific and often tiny step-to-step changes, so blocks can reuse cached outputs from earlier steps according to an automatic threshold-based schedule, with lightweight per-timestep scale-shift parameters trained to correct cache misalignment.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add block caching and scale-shift adjustment instead of using the 14-step baselineLDM-512 with DPM · COCO subset (faces removed), 20 steps versus 14-step baselineFID: 18.67 -> 15.95Helped
Add block caching and scale-shift adjustment instead of using the 14-step baselineLDM-512 with DDIM · COCO subset (faces removed), 20 steps versus 14-step baselineFID: 17.11 -> 16.02Helped
Add block caching and scale-shift adjustment instead of using the 30-step baselineLDM-512 with DPM · COCO subset (faces removed), 50 steps versus 30-step baselineFID: 17.21 -> 15.18Helped
Add block caching and scale-shift adjustment instead of using the 30-step baselineLDM-512 with DDIM · COCO subset (faces removed), 50 steps versus 30-step baselineFID: 17.42 -> 15.15Helped
Add scale-shift adjustment to block caching (ablation)LDM-512 with DPM · COCO subset (faces removed), 20 stepsFID: 17.58 -> 15.95Helped
Add scale-shift adjustment to block caching (ablation)LDM-512 with DDIM · COCO subset (faces removed), 20 stepsFID: 16.52 -> 16.02Helped
Add scale-shift adjustment to block caching (ablation)LDM-512 with DPM · COCO subset (faces removed), 50 stepsFID: 17.23 -> 15.18Helped
Add scale-shift adjustment to block caching (ablation)LDM-512 with DDIM · COCO subset (faces removed), 50 stepsFID: 16.65 -> 15.15Helped
Cache ResBlocks instead of SpatialTransformer blocks (ablation)EMU-768 · DPM, 20 stepsimage quality: 5%Hurt
Increase the cache threshold beyond δ = 0.5 (ablation)LDM-512 · DPM, 50 stepsimage qualityHurt
Set the cache threshold to δ = 0.5 (ablation)LDM-512 · DPM, 50 stepsthroughput: 1.5xHelped
Add block cachingEMU-768 · DPM, 20 steps versus 14-step baselinehuman visual-appeal win votes: 34.7% win, 28.4% loseHelped

Surprising findings

Limitations

Experimental setup

Datasets: Shutterstock internal images (LDM-512 training) COCO subset (FID evaluation) OUI Prompts PartiPrompts

Benchmarks: COCO subset (FID, faces removed) OUI Prompts PartiPrompts

Metrics: FID images per second speedup human win/tie/lose votes

Baselines: Baseline with fewer steps (14 or 30) Naive caching without scale-shift DDIM DPM-Solver

Builds on: DDIM DPM-Solver Latent Diffusion Models Emu Classifier-free guidance

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy