Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

Motion-Aware Caching for Efficient Autoregressive Video Generation

Official implementation of MotionCache

Paper | Code

MotionCache is a training-free, motion-aware caching framework for efficient autoregressive video generation.


Table of Contents


Overview

Autoregressive video generation can synthesize long videos by generating chunks sequentially, but each chunk still requires expensive iterative denoising. Existing cache-reuse methods usually make coarse chunk-level reuse decisions, which can miss fine-grained motion differences inside a video: highly dynamic tokens need more updates, while static tokens can be reused more aggressively.

MotionCache addresses this with motion-aware token-level caching. It uses inter-frame differences as a lightweight proxy for motion importance, then applies motion-weighted reuse so different tokens can receive different update frequencies during generation.

MotionCache qualitative comparison


Method

MotionCache follows a coarse-to-fine caching strategy:

  • Warm-up for semantic coherence: early denoising steps are computed normally to establish stable video content.
  • Motion-aware token weighting: inter-frame differences estimate which spatial tokens are more motion-sensitive.
  • Token-wise cache reuse: static or low-motion regions reuse cached activations more aggressively, while high-motion regions are recomputed more often to reduce error accumulation.
  • Model-agnostic integration: the method is implemented on both MAGI-1 and SkyReels-V2 without retraining.

Motion-aware caching motivation

Motion-aware token ranking correlation

MotionCache framework

For full derivations and ablations, please refer to the paper.


Main Results

MotionCache improves the speed-quality tradeoff on both SkyReels-V2 and MAGI-1. The table below reports the main VBench results from the paper.

MotionCache main quantitative results

SkyReels-V2

MethodPFLOPsSpeedupLatency (s)VBenchPSNRSSIMLPIPS
Vanilla1131.00x154083.84%---
TeaCache-slow581.89x81482.67%21.960.75010.1472
TeaCache-fast492.20x68680.06%18.390.61210.3063
FlowCache-slow316.26x24682.70%21.830.87330.1417
FlowCache-fast277.19x21482.38%21.170.86970.1634
MotionCache-slow306.28x24582.84%23.460.90930.0875
MotionCache-fast267.26x21282.75%21.780.87230.1478

MAGI-1

MethodPFLOPsSpeedupLatency (s)VBenchPSNRSSIMLPIPS
Vanilla1391.00x152077.26%---
TeaCache-slow1291.14x133976.64%14.740.41320.6189
TeaCache-fast1011.41x107568.81%11.980.26320.7670
FlowCache-slow1041.39x109477.08%18.160.64860.3451
FlowCache-fast781.94x78273.42%14.920.39980.6088
MotionCache-slow1001.64x92577.25%19.710.72310.2510
MotionCache-fast642.07x73374.59%17.700.56000.4861

Quick Start

Environment preparation follows the corresponding base projects and the FlowCache setup style. After dependencies and model checkpoints are ready, run MotionCache with the provided scripts.

MAGI-1 VBench

cd MotionCache4MAGI-1
bash scripts/motioncache.sh

The script uses MotionCache4MAGI-1/addconfig/config.yaml as the MotionCache configuration file.

SkyReels-V2 VBench

cd MotionCache4SkyReels-V2
bash run_vbench.sh

Please update model paths, VBench prompt paths, GPU IDs, and output directories in the scripts before running.


Citation

If you find MotionCache useful for your research, please cite:

@misc{xu2026motionawarecachingefficientautoregressive,
title={Motion-Aware Caching for Efficient Autoregressive Video Generation},
author={Jing Xu and Yuexiao Ma and Xuzhe Zheng and Xing Wang and Shiwei Liu and Chenqian Yan and Xiawu Zheng and Rongrong Ji and Fei Chao and Songwei Liu},
year={2026},
eprint={2605.01725},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2605.01725}
}

Acknowledgments

This repository builds on the following projects:

About

[ICML 2026]

Resources

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages