paper-with-me

홈 › Papers

SpeCa: Accelerating Diffusion Transformers with Speculative Feature Caching

2025-09-15 · Jiacheng Liu, Chang Zou, Yuanhuiyi Lyu, Fei Ren, Shaobo Wang, Kaixin Li, Linfeng Zhang arxiv

Diffusion models have revolutionized high-fidelity image and video synthesis, yet their computational demands remain prohibitive for real-time applications. These models face two fundamental challenges: strict temporal dependencies preventing parallelization, and computationally intensive forward passes required at each denoising step. Drawing inspiration from speculative decoding in large language models, we present SpeCa, a novel 'Forecast-then-verify' acceleration framework that effectively addresses both limitations. SpeCa's core innovation lies in introducing Speculative Sampling to diffusion models, predicting intermediate features for subsequent timesteps based on fully computed reference timesteps. Our approach implements a parameter-free verification mechanism that efficiently evaluates prediction reliability, enabling real-time decisions to accept or reject each prediction while incurring negligible computational overhead. Furthermore, SpeCa introduces sample-adaptive computation allocation that dynamically modulates resources based on generation complexity, allocating reduced computation for simpler samples while preserving intensive processing for complex instances. Experiments demonstrate 6.34x acceleration on FLUX with minimal quality degradation (5.5% drop), 7.3x speedup on DiT while preserving generation fidelity, and 79.84% VBench score at 6.1x acceleration for HunyuanVideo. The verification mechanism incurs minimal overhead (1.67%-3.5% of full inference costs), establishing a new paradigm for efficient diffusion model inference while maintaining generation quality even at aggressive acceleration ratios. Our codes have been released in Github: \textbf{https://github.com/Shenyi-Z/Cache4Diffusion}

📄 PDF Abstract BibTeX arXiv:2509.11628

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

SpecAttn: Speculating Sparse Attention

2025-10-31 · Harsh Shah arxiv

Large Language Models (LLMs) face significant computational bottlenecks during inference due to the quadratic complexity of self-attention mechanisms, particularly as context lengths increase. We introduce SpecAttn, a no…

Fast LLM Post-training via Decoupled and Fastest-of-N Speculation

2025-11-20 · Rongxin Cheng, Kai Zhou, Xingda Wei, Siyuan Liu 외 arxiv

Rollout dominates the training time in large language model (LLM) post-training, where the trained model is used to generate tokens given a batch of prompts. This work, SpecActor, achieves fast rollout with speculative d…

SpecAgent: A Speculative Retrieval and Forecasting Agent for Code Completion

2025-10-20 · George Ma, Anurag Koul, Qi Chen, Yawen Wu 외 arxiv

Large Language Models (LLMs) excel at code-related tasks but often struggle in realistic software repositories, where project-specific APIs and cross-file dependencies are crucial. Retrieval-augmented methods mitigate th…

Code Completion

SpeCache: Speculative Key-Value Caching for Efficient Generation of LLMs

2025-03-20 · Shibo Jie, Yehui Tang, Kai Han, Zhi-Hong Deng 외

Transformer-based large language models (LLMs) have already achieved remarkable results on long-text tasks, but the limited GPU memory (VRAM) resources struggle to accommodate the linearly growing demand for key-value (K…

CPUGPUQuantization

Speculative Diffusion Decoding: Accelerating Language Generation through Diffusion

2024-08-10 · Jacob K Christopher, Brian R Bartoldson, Tal Ben-Nun, Michael Cardei 외

Speculative decoding has emerged as a widely adopted method to accelerate large language model inference without sacrificing the quality of the model outputs. While this technique has facilitated notable speed improvemen…

Language ModelingLanguage ModellingLarge Language ModelText Generation