Medical video generation / training-free acceleration

MedCache: Training-free spatially aware caching for medical video generation.

Ufaq Khan Umair Nawaz Sathira Silva Numan Saeed Muhammad Umer Sheikh Muhammad Bilal Junaid Qadir Lena Maier-Hein Yutong Xie Muhammad Haris Khan

MedCache accelerates rectified-flow medical video generation by estimating cache-reuse risk directly in latent space. The cache protects localized structures such as tool-tissue contact, anatomical interfaces, fluid boundaries, and motion-sensitive details without probing the generator.

arXiv Code Coming soon Method

Motivation

Medical video caching needs spatial risk, not only global drift.

Lightweight caches are fast but collapse latent change into one scalar. Probe-based caches recover richer signals but execute part of the network before deciding whether to skip. MedCache targets the third design point: spatially selective reuse from cheap latent operations.

Spatial asymmetry

Small regions can dominate clinical relevance.

Tool boundaries, tissue deformation, mucosal texture, and ultrasound-like interfaces can be decisive even when the global frame is stable.

Probe-free decision

The cache decision should not spend the speedup.

MedCache reads boundary, high-frequency, and relative-motion cues directly from the latent, avoiding fixed transformer-block probe cost.

Training-free use

No retraining or architecture changes.

The method is inserted at inference time and evaluated on released WAN2.1, Cosmos-Predict-2.5, Cosmos-H-Surgical, and HunyuanVideo settings.

Method

MedCache adds a spatially aware cache-decision layer.

The framework has three components: a latent-derived spatial risk map, risk-weighted accumulated drift, and a lazy high-frequency consistency guard. A prompt-derived domain prior scales the threshold but does not replace the latent decision signal.

MedCache framework diagram from the paper
Main framework. A prompt-derived prior sets the effective threshold, a latent-derived spatial risk map reweights drift estimation, and a lazy high-frequency guard is evaluated only in borderline cases.
Latent collapse x‾h,w=1CT∑c,txc,t,h,w
Spatial risk map r=clip[0,1](αSS~+αFF~+αMM~)
Risk-weighted accumulated drift δnMC=Eh,w[(1+βrh,w)|x‾n-x‾n-2|]1+βEh,w[rh,w]
Lazy guard ρn=∑(h,w)∈Ω(Δ*y^n)2∑(h,w)∈Ω(Δ*yn-2)2+ε,  compute if  ρn>1.50

Mechanism in practice

First identify where reuse is risky. Then decide when it is safe.

Generated medical frame followed by structural, high-frequency, motion, and combined latent risk maps
01 / Spatial readout Reuse risk is localized, not uniform.

MedCache composes structural, high-frequency, and relative-motion evidence directly in latent space. The combined response concentrates around the instrument-tissue interaction without probing the generator.

  • SStructure
  • FFrequency
  • MMotion
02 / Temporal decision Safe reuse emerges after warm-up.

Risk-weighted drift controls the denoising trajectory. On this representative Image2World rollout, MedCache settles into a stable skip/compute rhythm while preserving forced computation at the trajectory boundaries.

21 / 35 steps skipped 0 guard recomputes
Accumulated drift and MedCache skip or compute decisions across denoising steps

Qualitative Evidence

Local structure is where cache failures become visible.

The paper includes Image2World and Text2World qualitative comparisons. These figures show the same conditioning or prompt across baselines, highlighting local degradation near active surgical regions and temporal coherence across rollout frames.

Main Image2World qualitative comparison
Main qualitative Image2World comparison. Given the same input image and prompt, WorldCache introduces local artifacts around the active tool-tissue interface, while MedCache preserves the corresponding region more coherently over time.
Supplementary Image2World qualitative comparisons
Additional Image2World comparisons. Red boxes mark representative WorldCache artifacts; green boxes mark corresponding MedCache regions.
Supplementary Text2World qualitative comparisons
Additional Text2World comparisons. MedCache maintains temporally coherent rollouts close to the uncached baseline while avoiding stronger texture degradation.

Complete Results

Main Text2World and Image2World tables.

Metrics follow the paper: Image Quality (IQ), Subject Consistency (SC), Background Consistency (BC), Motion Smoothness (MS), Total, latency, and speedup relative to the uncached baseline.

Best accelerated Second best accelerated Uncached baseline excluded from ranking
SettingModelMethodIQSCBCMSTotalLatencySpeedUp
Small-scale models -- Text2World
T2WCosmos-Predict-2.5 2BBaseline0.7510.9590.9610.9910.916271.001.00x
T2WCosmos-Predict-2.5 2BFasterCache0.3830.9170.9430.9360.795102.002.65x
T2WCosmos-Predict-2.5 2BEasyCache0.6910.8780.9080.9750.863198.001.37x
T2WCosmos-Predict-2.5 2BDiCache0.7250.9480.9570.9770.902205.001.32x
T2WCosmos-Predict-2.5 2BWorldCache0.7010.9320.9430.9870.891128.002.12x
T2WCosmos-Predict-2.5 2BMedCache0.7470.9180.9420.9900.899108.002.51x
T2WCosmos-H-Surgical 2BBaseline0.6250.9060.9340.9820.862272.001.00x
T2WCosmos-H-Surgical 2BFasterCache0.3480.8930.9710.9620.794130.002.09x
T2WCosmos-H-Surgical 2BEasyCache0.4620.7740.8990.9330.767185.001.47x
T2WCosmos-H-Surgical 2BDiCache0.4450.8680.9300.9810.806250.001.09x
T2WCosmos-H-Surgical 2BWorldCache0.4670.8770.9290.9840.814140.001.94x
T2WCosmos-H-Surgical 2BMedCache0.5490.8840.9280.9860.83795.002.86x
Large-scale models -- Text2World
T2WWAN2.1 14BBaseline0.7130.9470.9680.9900.904663.521.00x
T2WWAN2.1 14BEasyCache0.7130.9330.9630.9870.898560.621.18x
T2WWAN2.1 14BFasterCache0.7110.9290.9610.9860.897345.581.92x
T2WWAN2.1 14BDiCache0.7130.9330.9600.9870.898562.771.18x
T2WWAN2.1 14BWorldCache0.7130.9330.9600.9870.898561.131.18x
T2WWAN2.1 14BMedCache0.7040.9250.9490.9870.891183.093.62x
T2WCosmos-Predict-2.5 14BBaseline0.7260.9290.9410.9870.896767.971.00x
T2WCosmos-Predict-2.5 14BFasterCache0.4780.9160.9360.8860.804442.361.74x
T2WCosmos-Predict-2.5 14BEasyCache0.7060.9280.9440.9860.891434.601.78x
T2WCosmos-Predict-2.5 14BDiCache0.7230.9280.9420.9850.895700.641.10x
T2WCosmos-Predict-2.5 14BWorldCache0.7150.9160.9370.9840.888365.052.10x
T2WCosmos-Predict-2.5 14BMedCache0.7250.9230.9440.9870.895331.402.32x

Ablations + Analysis

Component, domain-prior, VBench, and sensitivity evidence.

The ablation map separates speed-driving components from fidelity safeguards and includes transfer to a generic VBench/HunyuanVideo setting.

Component removal: Cosmos-H-Surgical Image2World

ConfigWallSpeedupSkipIQSCBCMSTotal
Vanilla55.71.00x-0.6100.8660.9460.9520.844
EasyCache40.11.39x-0.5940.8650.9430.9590.840
+ risk weighting22.12.52x64.0%0.5930.8620.9430.9610.840
+ domain prior23.52.37x61.1%0.5930.8650.9420.9600.840
+ lazy guard23.52.37x61.1%0.6120.8670.9460.9600.846

VBench transfer: HunyuanVideo

MethodIQSCBCMSTotalLatencySpeedUp
Baseline0.6610.9600.9710.9930.896984.041.00x
EasyCache0.6620.9620.9720.9930.897485.682.03x
WorldCache0.6370.9590.9710.9930.890334.782.93x
MedCache0.6640.9610.9740.9950.899286.543.44x

Per-domain skip shift

DomainSigmaNoPrior skipWithPrior skipDelta
Intervention0.7048.6%58.1%+9.5 pp
Diagnostic imaging0.8559.0%62.9%+3.9 pp
Clinical exam0.9560.0%61.9%+1.9 pp
Rehabilitation1.0059.0%59.0%0.0 pp
Animation/education1.2562.9%61.9%-1.0 pp
All meanN/A57.9%60.8%+2.9 pp

Risk-map composition

ConfigSpeedupSkipwS(wM,wF)IQSCBCMSTotal
Vanilla1.00x---0.6100.8660.9460.9520.844
M-only2.28x61.4%0.0(1.25,0.0)0.5930.8640.9430.9600.840
S-only2.23x60.0%1.0(0.0,0.0)0.5920.8660.9440.9590.840
S+M2.29x60.0%1.0(1.25,0.0)0.5930.8660.9440.9590.841
S+F+M2.24x60.0%1.0(1.25,0.75)0.6010.8670.9460.9600.844

Resources

Paper, code, and citation.

Citation details are available below. The arXiv record and public implementation will be linked here at release.

Citation

BibTeX

@misc{khan2026medcache,
  title  = {MedCache: Training-Free Spatially Aware Caching for Accelerated Medical Video Generation},
  author = {Khan, Ufaq and Nawaz, Umair and Silva, Sathira and Saeed, Numan and Sheikh, Muhammad Umer and Bilal, Muhammad and Qadir, Junaid and Maier-Hein, Lena and Xie, Yutong and Khan, Muhammad Haris},
  year   = {2026},
  note   = {Manuscript under review}
}