OTCache: Optimal Transport for Geometry-Aware Caching in Diffusion Models
OTCache is a training-free framework that accelerates diffusion model sampling by modeling caching schedules as a smooth evolution in policy space using Optimal Transport, achieving significant speedups and improved fidelity across various models by interpolating between a high-fidelity reference schedule and an optimized low-budget anchor.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to paint a masterpiece, but you are only allowed to make a very limited number of brushstrokes. If you try to paint the whole picture in just a few strokes, you might miss important details or make the colors look wrong. This is the challenge facing modern AI image and video generators: they usually need hundreds of "brushstrokes" (called steps) to create a high-quality image, which takes a long time and uses a lot of computer power.
To speed things up, researchers have tried a trick called caching. Think of this like a painter who, instead of mixing new paint for every single stroke, reuses a bucket of paint they mixed a moment ago. If the scene hasn't changed much, reusing the old paint saves time.
However, the old way of deciding when to reuse the paint (the "caching schedule") had a major flaw. It assumed that every decision to reuse paint was independent of the others. It was like a GPS that calculates the shortest path by adding up the distance of each tiny road segment, ignoring the fact that taking a shortcut early on might force you into a terrible traffic jam later. In the "low-stroke" regime (where you are trying to be extremely fast), this old method breaks down, leading to blurry or distorted images.
Enter OTCache: The "Smart Navigator"
The authors of this paper propose a new system called OTCache. Instead of treating every decision as an isolated math problem, they view the entire painting process as a smooth, flowing journey. They use a mathematical concept called Optimal Transport, which you can think of as a "smoothie blender" for strategies.
Here is how OTCache works in three simple steps:
- The Safe Map (Reference): First, the system looks at a "safe" scenario where it has plenty of time (a high number of steps). It uses a standard, reliable method to figure out the best way to paint in this comfortable setting. This gives them a high-quality "map" of how the painting should evolve.
- The Extreme Test (Anchor): Next, they look at the opposite extreme: a scenario where they have almost no time (very few steps). Here, the old "add-up-the-distances" method fails. So, OTCache uses a smart, lightweight search tool to find the absolute best way to paint in this rush, even if it has to break the old rules. This becomes their "anchor" point for the extreme speed.
- The Smooth Blend (Interpolation): Now, imagine you want to paint at a speed between the safe map and the extreme test. Instead of guessing, OTCache takes the "Safe Map" and the "Extreme Test" and blends them together smoothly. It treats the painting schedule like a flexible rubber band, stretching and warping it to fit the exact speed you need. Because the "Safe Map" and the "Extreme Test" are connected by a smooth mathematical curve, the middle speeds work perfectly too.
The Results
The paper tested this on three powerful AI models (FLUX.1, Qwen-Image, and HunyuanVideo). The results were impressive:
- Speed: OTCache made the AI 3.6 to 4.7 times faster than before.
- Quality: Unlike other fast methods that made the images look weird or distorted (like a goat with extra legs or a giraffe facing the wrong way), OTCache kept the images looking sharp and true to the original description.
- Reliability: It solved the problem where other methods would fail completely when asked to go too fast.
In a Nutshell
Think of OTCache as a smart travel planner. Old planners would tell you, "Take the fastest road for the first mile, then the fastest road for the second mile," without realizing that the first road might lead to a dead end. OTCache looks at the whole trip from start to finish, understands how the journey changes as you speed up, and creates a smooth, optimized path that gets you to your destination (the perfect image) quickly without crashing. It is a "training-free" solution, meaning it doesn't need to relearn how to paint; it just learns how to paint faster by being smarter about when to reuse its tools.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.