CuBic: Curvature-Driven Dynamic Inference Caching for Fast, High-Fidelity Flow Matching
Yuyang Chen, Linqian Zeng, Yijin Zhou, Hengjie Li, Jidong Zhai
NeurIPS page · Open on the map
Category: Diffusion & Image Generation › Diffusion Model Acceleration · Type: new method · Keywords: Flow Matching, dynamic caching, curvature analysis, speedup acceleration, model-agnostic inference
Areas: Generative Models (Diffusion & Flows) › Diffusion Language Modeling › Diffusion Model Caching
Summary
CuBic introduces a curvature-driven dynamic inference caching framework that adaptively partitions and updates cache based on Flow Matching velocity curvature, achieving up to 2.5× speedup while preserving generation quality.
Explained to a 5-year-old
When we want to draw pictures or make videos using a computer, it often takes a long time. The computer looks at every part of the picture at once, which is slow. To make it faster, we watch how the drawing lines move and bend. We use those bends to decide which parts of the picture we can remember and when we need to update them. This helps the computer skip some work while still making good pictures.
Explained to a 5-year-old, longer
When we want to draw pictures or make videos using a computer, it often takes a long time. The computer looks at every part of the picture at once, which is slow. To make it faster, we watch how the drawing lines move and bend. We use those bends to decide which parts of the picture we can remember and when we need to update them. This helps the computer skip some work while still making good pictures. The method works without needing extra training, so it’s easy to use. It can speed up the drawing process a lot, making it quicker for everyone. The pictures still look nice and clear. It works for many different kinds of drawing programs. It also helps when we need to make videos quickly. The idea is simple: use the shape of the lines to guide what to remember. This makes the whole process faster and more efficient. Overall, it lets us create images and videos faster without losing quality.
For a technical reader
The paper addresses the high latency of Flow Matching models that rely on full-attention over long sequences. It proposes a curvature-driven caching scheme that uses a proxy signal derived from the velocity field to adaptively partition the computation and schedule updates within a budget. A sparse forward engine implements these policies, achieving linear FLOP savings and speedups of up to 2.5× on multiple generation models. The solution is model-agnostic and requires no additional training, making it easy to integrate into existing pipelines. Evaluation on Wan2.1, Flux.1, and FireRed-Image-Edit shows consistent quality preservation while delivering the advertised acceleration.
Problem
Generating high-fidelity images and videos using Flow Matching is computationally expensive due to full-attention over long sequences, and existing caching methods suffer from suboptimal performance because they use fixed spatial granularity and heuristic update schedules.
Method
The approach leverages the curvature of the Flow Matching velocity field to derive adaptive spatial granularity and update intervals, using a proxy signal to avoid explicit curvature computation, and implements a sparse forward engine to apply the caching policies efficiently.
Results
The approach achieves an average 2.5× speedup over baselines while maintaining or improving generation quality across the evaluated models.
Contributions
It provides a theoretical analysis linking curvature to caching staleness, a model-agnostic proxy for curvature-driven adaptive caching, and a system implementation that yields linear FLOP savings and quality-preserving acceleration.
Practical relevance
Enables faster generation of high-quality images and videos on existing hardware, reducing latency for diffusion-based synthesis.
Research questions this paper is counted under
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