Forecasting When to Forecast: Accelerating Diffusion Models with Confidence-Gated Taylor
2508.02240v2
cs.CV, cs.AI
2025-08-09
Авторы:
Xiaoliu Guan, Lielin Jiang, Hanqi Chen, Xu Zhang, Jiaxing Yan, Guanzhong Wang, Yi Liu, Zetao Zhang, Yu Wu
Резюме на русском
Авторы рассматривают проблему низкой скорости инференса Diffusion Transformers (DiTs), которая ограничивает их применение в приложениях с ограниченными ресурсами. Основной причиной является высокая стоимость инференса по отдельным модулям (например, внимательным или питаторным блокам) и неэффективное использование кэширования представлений. Ранее предложенный подход TaylorSeer уменьшал число кэшируемых представлений, но использовал модульный подход к предсказанию и не учитывал разного рода надежность предсказаний.
В новой работе предлагается продвинутый подход, который снижает накладные расходы на кэширование, акцентируя его на последнем блоке, а также вводит динамический механизм управления закэшированными представлениями. Механизм основывается на сравнении выхода предсказания Taylor-модели с реальным выходом первого блока и позволяет использовать предсказание только при достаточной точности. Эксперименты показали, что предложенный подход позволяет значительно ускорить инференс (до 3.17x на FLUX, 2.36x на DiT и 4.14x на Wan Video), сохранив высокую качественную результативность.
Abstract
Diffusion Transformers (DiTs) have demonstrated remarkable performance in
visual generation tasks. However, their low inference speed limits their
deployment in low-resource applications. Recent training-free approaches
exploit the redundancy of features across timesteps by caching and reusing past
representations to accelerate inference. Building on this idea, TaylorSeer
instead uses cached features to predict future ones via Taylor expansion.
However, its module-level prediction across all transformer blocks (e.g.,
attention or feedforward modules) requires storing fine-grained intermediate
features, leading to notable memory and computation overhead. Moreover, it
adopts a fixed caching schedule without considering the varying accuracy of
predictions across timesteps, which can lead to degraded outputs when
prediction fails. To address these limitations, we propose a novel approach to
better leverage Taylor-based acceleration. First, we shift the Taylor
prediction target from the module level to the last block level, significantly
reducing the number of cached features. Furthermore, observing strong
sequential dependencies among Transformer blocks, we propose to use the error
between the Taylor-estimated and actual outputs of the first block as an
indicator of prediction reliability. If the error is small, we trust the Taylor
prediction for the last block; otherwise, we fall back to full computation,
thereby enabling a dynamic caching mechanism. Empirical results show that our
method achieves a better balance between speed and quality, achieving a 3.17x
acceleration on FLUX, 2.36x on DiT, and 4.14x on Wan Video with negligible
quality drop. The Project Page is
\href{https://cg-taylor-acce.github.io/CG-Taylor/}{here.}
Ссылки и действия
Дополнительные ресурсы: