SODA: Sensitivity-Oriented Dynamic Acceleration for Diffusion Transformer
Organizations: Harbin Institute of Technology, Shenzhen
Abstract
Diffusion Transformers have become a dominant paradigm in visual generation, yet their low inference efficiency remains a key bottleneck hindering further advancement. Among common training-free techniques, caching offers high acceleration efficiency but often compromises fidelity, whereas pruning shows the opposite trade-off. Integrating caching with pruning achieves a balance between acceleration and generation quality. However, existing methods typically employ fixed and heuristic schemes to configure caching and pruning strategies. While they roughly follow the overall sensitivity trend of generation models to acceleration, they fail to capture fine-grained and complex variations, inevitably skipping highly sensitive computations and leading to quality degradation. Furthermore, such manually designed strategies exhibit poor generalization. To address these issues, we propose SODA, a Sensitivity-Oriented Dynamic Acceleration method that adaptively performs caching and pruning based on fine-grained sensitivity. SODA builds an offline sensitivity error modeling framework across timesteps, layers, and modules to capture the sensitivity to different acceleration operations. The cache intervals are optimized via dynamic programming with sensitivity error as the cost function, minimizing the impact of caching on model sensitivity. During pruning and cache reuse, SODA adaptively determines the pruning timing and rate to preserve computations of highly sensitive tokens, significantly enhancing generation fidelity. Extensive experiments on DiT-XL/2, PixArt-, and OpenSora demonstrate that SODA achieves state-of-the-art generation fidelity under controllable acceleration ratios. Our code is released publicly at: https://github.com/leaves162/SODA.
Figures & tables
| DiT-XL/2 | Sampling | Latency(s)↓ | FLOPs(T)↓ | Speed↑ | FID↓ | sFID↓ | IS↑ | Precision↑ | Recall↑ |
| 250 steps | DDPM | 2.508 | 118.68 | 1.00× | 2.23 | 4.57 | 275.65 | 0.82 | 0.58 |
| SODA ( =125) | DDPM | 1.778 | 76.70 | 1.55× | 2.21 | 4.72 | 272.01 | 0.82 | 0.58 |
| FORA [ 46 ] | DDPM | - | 43.36 | 2.74× | 2.80 | 6.13 | / | 0.80 | 0.59 |
| ToCa [ 68 ] | DDPM | 1.211 | 43.22 | 2.75× | 2.58 | 5.74 | 256.26 | 0.80 | 0.59 |
| DuCa [ 69 ] | DDPM | 1.170 | 43.42 | 2.73× | 2.59 | 5.68 | 256.36 | 0.80 | 0.59 |
| SODA ( =72) | DDPM | 1.070 | 43.42 | 2.73× | 2.47 | 5.09 | 262.30 | 0.81 | 0.59 |
| PixArt- | Latency (s)↓ | FLOPs (T)↓ | Spe.↑ | MS-COCO2017 w/ difference(‰) | |
| FID-30k↓ | CLIP↑ | ||||
| 20 steps | 0.857 | 11.18 | 1.00× | 28.10 | 16.29 |
| 10 steps | 0.491 | 5.54 | 2.00× | 37.57 | 15.83 |
| FORA(ArXiv24) | - | 5.66 | 1.98× | 29.67 55.9↓ | 16.40 6.7↑ |
| ToCa(ICLR25) | 0.492 | 6.05 | 1.85× | 28.38 9.9↓ | 16.43 8.6↑ |
| DuCa(ArXiv24) | 0.479 | 5.99 | 1.87× | 28.05 1.8↑ | 16.42 8.0↑ |
| OpenSora | Latency (s)↓ | FLOPs (T)↓ | Spe.↑ | VBench(%↑) w/ degrad(‰) |
| 30 steps | 102.287 | 3283.20 | 1.00× | 79.13 |
| SODA ( =21) | 86.684 | 2319.94 | 1.42× | 79.13 0.00↓ |
| PAB(ICLR25) | - | 2558.25 | 1.28× | 76.95 27.55↓ |
| FORA(ArXiv24) | - | 1751.32 | 1.87× | 76.91 28.06↓ |
| -DiT(ArXiv24) | - | 3166.47 | 1.04× | 78.21 11.62↓ |
| ToCa(ICLR25) | 54.698 | 1394.03 | 2.36× | 78.34 9.98↓ |
| Modules | FID↓ | sFID↓ | IS↑ | Precision↑ | Recall↑ |
| Vanilla | 3.83 | 5.24 | 213.12 | 0.77 | 0.57 |
| OFS w/ DCS | 2.78 | 4.63 | 234.78 | 0.80 | 0.58 |
| OFS w/ UAS | 2.89 | 4.75 | 235.01 | 0.79 | 0.58 |
| SODA (Ours) | 2.75 | 4.56 | 235.65 | 0.80 | 0.58 |
| L1 | 2.92 | 4.91 | 233.62 | 0.79 | 0.58 |
| L2 | 2.88 | 4.88 | 233.91 | 0.79 | 0.58 |
| Phase | Cost | DiT-XL/2 | PixArt- | OpenSora |
| # of samples | 100 | 100 | 10 | |
| Offline modeling | Time of generation | 69.71s | 90.13s | 24.23m |
| Time of OFS | 91.23s | 98.71s | 31.03m | |
| Memory of generation | 4.09GB | 22.31GB | 52.40GB | |
| Memory of OFS | 4.65GB | 22.65GB | 52.40GB | |
| Online use | Memory of | 0.16MB | 0.13MB | 0.27MB |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Sampling | Latency(s)↓ | FLOPs(G)↓ | Speed↑ | FID↓ | sFID↓ | IS↑ | Precision↑ | Recall↑ |
| DiT | DDPM | 2.508 | 118.68 | 1.00× | 2.23 | 4.57 | 275.65 | 0.82 | 0.58 |
| SODA ( =125) | DDPM | 1.778 | 76.70 | 1.55× | 2.21 | 4.72 | 272.01 | 0.82 | 0.58 |
| SODA ( =72) | DDPM | 1.070 | 43.42 | 2.73× | 2.47 | 5.09 | 262.30 | 0.81 | 0.59 |
| SODA ( =69) | DDPM | 0.839 | 35.25 | 3.37× | 2.88 | 6.11 | 252.03 | 0.80 | 0.59 |
| SODA ( =63) | DDPM | 0.704 | 29.66 | 4.00× | 3.33 | 6.76 | 237.69 | 0.78 | 0.60 |
| DiT | DDIM | 0.533 | 23.74 | 1.00× | 2.25 | 4.33 | 239.97 | 0.80 | 0.59 |
| Model | Latency(s)↓ | FLOPs(G)↓ | VBench(%)↑ | |||
| Total | Imaging quality | Subject consistency | Scene | |||
| OpenSora | 102.287 | 3283.20 | 79.13 | 61.14 | 95.09 | 52.46 |
| SODA ( =21) | 86.684 | 2319.94 1.42× | 79.13 | 60.63 | 95.26 | 53.35 |
| -DiT (ArXiv24) | - | 3166.47 | 78.21 | - | - | - |
| PAB (ICLR25) | - | 2558.25 | 76.95 | - | - | - |
| FORA (ArXiv24) | - | 1751.32 | 76.91 | - | - | - |
| Qwen-Img | Lat.(s)↓ /Spe.↑ | CLIP↑ | IR↑ | Wan2.1 | Lat.(s)↓ /Spe.↑ | Vbench (%)↑ |
| Origin | 73.431 1.00× | 35.69 | 1.0242 | Origin | 187.46 1.00× | 78.97 |
| Base | 41.135 1.79× | 35.14 | 0.8677 | Base | 118.82 1.58× | 74.24 |
| Ours | 40.749 1.80× | 35.72 | 1.0352 | Ours | 119.46 1.57× | 75.61 |
| DiT-XL/2 | Lat.(s)↓ | Spe.↑ | IS↑ | FID↓ | sFID↓ | P↑ | R↑ |
| DDPM/250 | 2.508 | 1.00× | 275.65 | 2.23 | 4.57 | 0.82 | 0.58 |
| -DiT [ 6 ] | - | 1.52× | 271.03 | 2.31 | - | - | - |
| Ours | 1.778 | 1.41× | 272.01 | 2.21 | 4.72 | 0.82 | 0.58 |
| Ours | 1.651 | 1.52× | 271.77 | 2.23 | 4.76 | 0.82 | 0.59 |
| DDIM/20 | 0.243 | 1.00× | 223.23 | 3.51 | 4.92 | 0.79 | 0.57 |
| GOC(FORA) [ 40 ] | 0.167 | 1.46× | 191.44 | 6.78 | 8.74 | 0.74 | 0.53 |
| Training caching | Lat.(s)↓ /Spe.↑ | IS↑ | FID↓ | sFID↓ | Distillation one-step | Spe.↑ | Fidelity↑ ( )(%) | Costs↓ GPU/time |
| DiT-XL/2 | 0.533 1.00× | 239.97 | 2.25 | 4.33 | DiT-XL/2 | 1× | 100 | - |
| L2C [ 35 ] | None 1.25× | 233.26 | 2.62 | 4.50 | ShortCut [ 13 ] | 50× | 40 | TPUV3s/2days |
| HarmoniCa [ 20 ] | None 1.30× | 238.74 | 2.36 | 4.24 | -flow [ 3 ] | 50× | 78 | Not mentioned |
| Ours | 0.403 1.32× | 241.71 | 2.37 | 4.58 | Ours | 4× | 98 | Free |
| Model | VBench(%)↑ | |||
| Total | Imaging quality | Subject consistency | Scene | |
| Vanilla | 76.41 | 54.23 | 93.54 | 50.51 |
| OFS w/ DCS | 78.37 | 56.54 | 94.12 | 53.41 |
| OFS w/ UAS | 78.41 | 57.55 | 94.07 | 53.03 |
| SODA (Ours) | 78.49 | 58.14 | 94.60 | 53.33 |
| FID↓ | ||||||
| 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | ||
| 0.4 | 27.46 | 27.44 | 27.42 | 27.38 | 27.33 | |
| 0.5 | 27.44 | 27.42 | 27.37 | 27.33 | 27.32 | |
| 0.6 | 27.36 | 27.35 | 27.34 | 27.33 | 27.32 | |
| DiT-XL/2 | FlashAtt | Lat.(s)↓ | Spe.↑ | IS↑ | FID↓ | sFID↓ | P↑ | R↑ |
| Mean | ✓ | 0.201 | 2.65× | 233.22 | 2.80 | 4.61 | 0.80 | 0.58 |
| Variance | ✓ | 0.211 | 2.53× | 233.20 | 2.82 | 2.67 | 0.80 | 0.58 |
| Norm | ✓ | 0.197 | 2.70× | 233.18 | 2.83 | 4.66 | 0.80 | 0.58 |
| Attn weights | ✗ | 0.300 | 1.78× | 233.25 | 2.81 | 4.63 | 0.80 | 0.58 |
Diffusion Model Inference Acceleration
Diffusion model inference acceleration reduces the time and compute needed to generate or reconstruct outputs while preserving quality.
See all 506 papers