Manuscript Offprint

arXiv:2610.10457

MORCA: Offline-to-Online Reinforcement Learning for Adaptive Cache Reuse in Video Diffusion Acceleration

Yuxiang Xiong, Ruiyan Wang, Wenqiang Wang, Teng Hu, Songhang Shen, Bohao Feng, Hongqian Deng, Ran Yi

ABSTRACT

Diffusion Transformers (DiTs) achieve remarkable performance in video synthesis, but their iterative denoising process suffers from high inference latency. To address this, caching has emerged as an effective acceleration strategy by capitalizing on inter-step redundancy during denoising. Existing dynamic caching methods typically estimate the error that cache reuse would introduce at each denoising step (step error) to guide cache decisions, whereas our concern is how much quality loss cache reuse would cause in the final generated video (terminal error). We show that step error does not directly correspond to terminal error and that latent information helps capture their relationship, thereby informing cache decisions. Moreover, existing threshold-based methods cannot provide precise speedup control, making it difficult to meet practical requirements for user-specified acceleration targets. To address these limitations, we introduce MORCA, a cache scheduling framework trained through offline-to-online reinforcement learning to make latent-aware reuse/recompute decisions under user-specified acceleration targets. Extensive experiments on different video generation models across multiple target acceleration ratios demonstrate that MORCA achieves better generation fidelity than state-of-the-art caching methods under comparable computational budgets. Code is available at https://github.com/x10ngyx/MORCA.

1 INTRODUCTION

Diffusion Transformers (DiTs) (Peebles & Xie, 2023) combined with Flow Matching paradigms (Lipman et al., 2023; Liu et al., 2023) have demonstrated remarkable capabilities in high-fidelity visual generation (Wan et al., 2025; Kong et al., 2025). Despite this progress, the multi-step iterative denoising process incurs substantial computational cost and high inference latency, particularly for video synthesis. To address this bottleneck, various acceleration approaches have emerged, including distillation, quantization, sparse attention, and caching. Among these, distillation requires additional training of the generative model, while quantization and sparse attention typically rely on specialized kernels. Caching offers a lightweight alternative with flexible speed-quality trade-offs.

Cache-based methods exploit inter-step redundancy by skipping the computation of the entire denoising network or selected components (typically the DiT blocks) at some denoising steps and reusing the corresponding results cached at previous steps. Early methods adopt fixed cache schedules (Ma et al., 2024; Li et al., 2024; Zhao et al., 2025b; Liu et al., 2025b) (e.g., recomputing only at fixed intervals), which do not account for runtime denoising dynamics. Dynamic caching methods (Liu et al., 2025a; Kahatapitiya et al., 2025; Chung et al., 2026; Bu et al., 2026) attempt to estimate the error that cache reuse would introduce at each denoising step and use these estimates to make cache decisions through threshold-based rules.

∗^{*}Equal contribution. †\daggerCorresponding author. ‡\ddaggerProject leader.

(a)

Figure

(b)

Step error (relative L1)

Terminal PSNR (dB; reversed)

Denoising step

Figure 1: Step error and terminal error. (a) Following SeaCache, we cache and reuse the residuals of the DiT blocks. For each step, we evaluate two cases: (i) reusing the residual cached at the previous step and (ii) recomputing the DiT blocks, with all other steps computed normally. We measure step error as the relative L1 difference between the cached and recomputed residuals, and terminal error using the PSNR of the resulting video with cache reuse relative to the no-cache reference. (b) Step error does not directly correspond to terminal error. Results are shown for Wan2.1.

However, this paradigm relies exclusively on the immediate error introduced by cache reuse (step error) to make decisions, whereas our concern is the quality loss in the final generated video (terminal error). How the former translates into the latter through subsequent denoising steps remains unclear. To investigate this relationship, we conduct a series of experiments. As shown in Fig. 1, step error exhibits similar patterns across these prompts, while terminal error varies substantially. Quantitative results in Table 1 further show that step error alone is insufficient to accurately predict terminal error.

We propose that latents may contain information that helps capture how step error translates into terminal error, thus informing cache decisions. To test this idea, we train a predictor to estimate terminal error from step error. As reported in Table 1, incorporating lightweight features extracted from the input latents at the current and previous steps (see Sec. 3.2) substantially improves prediction accuracy.

Table 1: Latent features improve terminal-error prediction. Terminal error is measured using PSNR. Results on Wan2.1.

InputRMSE (dB) ↓Spearman ↑
Step error6.9710.5288
Step error + step index4.4210.7528
Step error + latent2.8490.9357
Step error + latent + step index2.8320.9361

Motivated by this finding, we train a latent-aware scheduler to make terminal-error-guided cache decisions. We provide the scheduler with SeaCache's proxy signal for step error (see Sec. 3.1) and latent features to help bridge the gap between step error and terminal error. Given the sequential nature of cache scheduling, we formulate it as a Markov decision process (MDP) and optimize the scheduler using reinforcement learning. In practical applications, users often require a specific acceleration ratio. While existing threshold-based caching methods offer only approximate speedup control through threshold adjustment, we use the observed relationship between speedup and the number of reuse steps (Fig. 3) to translate the target acceleration ratio into a reuse budget constraint, then reduce the resulting constrained MDP to an equivalent standard augmented MDP (Sec. 3.2).

Since collecting training data requires costly inference runs, we adopt an offline-to-online reinforcement learning framework based on IQL (Kostrikov et al., 2022) to train the scheduler. As an off-policy algorithm, IQL offers higher data utilization than on-policy methods. Offline training provides an effective and stable initialization from limited data, while online fine-tuning allows the scheduler to explore under its current policy and further improve performance. Our contributions are summarized as follows:

  • We propose MORCA, a latent-aware cache scheduling framework trained through offline-to-online reinforcement learning to make adaptive cache decisions under user-specified speedups.

  • We design a budget-constrained and latent-aware scheduler that can make terminal-error-guided cache decisions while precisely controlling the acceleration ratio.

  • We introduce an offline-to-online RL paradigm for scheduler optimization: the offline stage provides an effective initialization, while online fine-tuning further improves its performance.

  • Extensive experiments on different video generation models demonstrate that MORCA achieves better speed-quality trade-offs than state-of-the-art caching methods.

References (39)