Accelerating Rectified Flow Models via Trajectory-Aware Caching
Xiao Liu, Kai Liu, Naiyang Guan, Hongliang Lu, Zhixin Wang, Zhikai Chen, Renjing Pei, Yulun Zhang
NeurIPS page · OpenReview · Open on the map
Category: Diffusion & Image Generation › Diffusion Model Acceleration · Type: new method · Keywords: rectified flow models, trajectory-aware caching, skip-then-compensate, text-to-image generation, text-to-video generation
Areas: Generative Models (Diffusion & Flows) › Diffusion Language Modeling › Diffusion Model Caching
Summary
TACache is a training-free acceleration framework that caches trajectory information to skip timesteps while compensating errors, achieving up to 4.14× speedup for text-to-image generation and 2.11× for text-to-video generation.
Explained to a 5-year-old
When making pictures or videos, a computer draws many small steps to get the final result. This takes a lot of time. A new trick lets the computer remember what it has already drawn and skip some steps. It then uses the memory to fill in the missing parts so the picture stays nice. This makes the computer finish faster.
Explained to a 5-year-old, longer
To create a picture or video, a computer follows a series of tiny steps. Each step adds a little bit of detail to the final image. Doing many steps one after another can be slow and use a lot of computer power. Researchers wanted a way to make this process quicker without making the picture look blurry. They discovered that the computer could remember some of the earlier steps and reuse them later. By storing this memory, the computer can skip drawing some steps entirely. When it skips a step, it uses the stored memory to guess what that step should look like. This guessing helps keep the picture clear even though some steps were missed. The method works for both still pictures and moving videos. It helps text-to-image and text-to-video tasks, which are common in many applications. The result is that the computer can generate images and videos much faster. This speed-up lets people see results more quickly and use less powerful hardware.
For a technical reader
TACache is a training-free acceleration framework for rectified flow models that follows a skip-then-compensate paradigm. It decomposes the discrete velocity acceleration along the generation trajectory into parallel and orthogonal components, using offline thresholds to decide how far to skip timesteps. During sampling, when a step is skipped, the framework reconstructs the missing velocity from stored orthogonal direction statistics and the sample’s history without extra forward passes. Experiments on BAGEL, FLUX.1-dev, and Wan2.1-1.3B show speedups of up to 4.14× for text-to-image and 2.11× for text-to-video generation while preserving fidelity.
Problem
Generating high-fidelity images and videos with rectified flow models requires many iterative velocity evaluations, making sampling computationally expensive. Existing caching methods accelerate sampling by skipping timesteps, but coarse approximations cause accumulated errors and degrade quality when acceleration is aggressive.
Method
The approach decomposes the discrete velocity acceleration along the rectified flow trajectory into parallel and orthogonal components, using offline cumulative variation thresholds to decide skip intervals and online reconstruction of skipped velocities from historical orthogonal directions without extra forward passes.
Results
The approach achieves up to 4.14× speedup on text-to-image generation and 2.11× speedup on text-to-video generation, consistently improving prior cache-based methods on reference-based fidelity metrics.
Contributions
A training-free acceleration framework that adaptively skips timesteps while compensating errors, an orthogonal decomposition of velocity acceleration to isolate error sources, and empirical validation across multiple text-to-image and text-to-video models.
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