# RA-CFGCache: From Branch-Level Criteria to Guided-Risk Control under Classifier-Free Guidance

*Yiming Liu, Ben Wan, Hui Chen, Ao Wang, Yuqi Xiong, Fan Zhang, Tongxuan Liu, guiguang ding*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150708) · [Open on the map](../papers.html#p150708)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Diffusion Model Acceleration](../pgroup/211.md) · Type: new method · Keywords: diffusion models, classifier-free guidance, caching, risk alignment, propagation-aware rescaling, visual generation

Areas: [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Diffusion Language Modeling › Diffusion Model Caching

## Summary
RA-CFGCache is a risk-aligned caching framework that addresses branch-guided and local-final mismatches in classifier-free guidance, improving efficiency-fidelity trade-offs for diffusion models.

## Explained to a 5-year-old
Diffusion models are like smart artists that create images by slowly removing noise. They work step by step, each step making the picture clearer. To make the pictures even nicer, a technique called guidance tells the model what to focus on. Guidance helps the model produce higher-quality images, but it also makes each step take much longer. Some tricks try to remember parts of the drawing to speed things up, but they forget important hints. This paper finds two problems with those tricks and creates a new way to remember the right hints and adjust the speed, so the pictures stay good while being faster.

## Explained to a 5-year-old, longer
Diffusion models are like smart artists that create images by slowly removing noise. They work step by step, each step making the picture clearer. To make the pictures even nicer, a technique called guidance tells the model what to focus on. Guidance helps the model produce higher-quality images, but it also makes each step take much longer. Researchers want to speed up the process without losing picture quality. One idea is to remember some of the model’s predictions from earlier steps and reuse them later. However, the current way of remembering only looks at one part of the prediction, which can be wrong for the guided update. This mismatch can cause the cached information to be inaccurate. Another issue is that errors can grow as the steps continue, so a small early mistake may become a big final error. The paper points out these two problems, calling them branch-guided mismatch and local-final mismatch. To fix them, the authors create a new caching method that aligns the cached information with the guided prediction and adjusts the risk based on how errors propagate. This new method makes the speed-up tricks work better, giving faster generation while keeping the images high quality. It also works with other existing caching tricks, boosting their performance. The code is publicly available for others to try.

## For a technical reader
The paper identifies two mismatches in current training-free caching for classifier-free guidance: the cached prediction does not match the guided update, and early errors do not reflect final generation errors. It proposes CFG-aware guided-risk composition to align caching with the guided prediction and propagation-aware rescaling to calibrate local risks against final deviation. Experiments on FLUX.1-dev, Wan2.1-T2V-1.3B, and CogVideoX-2B show improved efficiency-fidelity trade-offs, with PSNR gains over MagCache from 21.46 to 24.02. The method is compatible with existing caching strategies and is released as open source.

## Problem
Adapting diffusion models under classifier-free guidance is computationally expensive, and existing training-free caching methods misestimate denoising errors due to mismatches between caching criteria and guided predictions, leading to suboptimal generation quality.

## Method
The approach introduces CFG-aware guided-risk composition to align caching decisions with the guided prediction, and propagation-aware rescaling to adjust local guided risks against final generative deviation.

## Results
The approach achieves superior efficiency-fidelity trade-offs over existing training-free caching methods and improves PSNR over MagCache from 21.46 to 24.02 under CFG.

## Contributions
It identifies branch-guided and local-final mismatches in caching for CFG and proposes CFG-aware guided-risk composition and propagation-aware rescaling to align caching decisions with guided predictions, enhancing both efficiency and fidelity.

## Research questions this paper is counted under

- [How can diffusion model guidance be made more efficient and accurate while preserving generation quality?](../q/270.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150708)
