AB
AiBoss
project

SmoothCache - Roblox and Queen's University Introduce General Inference Acceleration Technology for DiT

SmoothCache is a general inference acceleration technique for Diffusion Transformers (DiT) models, developed by a research team at Roblox and Queen's University. It is based on analyzing the similarity of layer outputs at adjacent diffusion time steps...

What is SmoothCache?

SmoothCache is a general inference acceleration technique for Diffusion Transformers (DiT) models, developed by a research team from Roblox and Queen's University. Based on analyzing the similarity of layer outputs at adjacent diffusion time steps, it adaptively caches and reuses key features, reducing computational requirements. Experiments show that SmoothCache can achieve speedups of 8% to 71% while maintaining or improving generation quality. It is suitable for multiple modalities, including images, video, and audio, and helps promote the widespread use of DiT models in real-time applications.

Main functions of SmoothCache

  • Inference accelerationAccelerate the inference process of Diffusion Transformers (DiT) models and reduce the computational cost of model runtime.
  • Model independenceIt can be applied to different DiT architectures without the need for training or tuning for a specific model.
  • Quality maintenanceWhile accelerating the process, the quality of the generative model is maintained or even improved, ensuring that the quality of the output during inference is comparable to that of the original model.
  • Cross-modal applicabilitySmoothCache is suitable for image generation and can be extended to multiple modalities such as video and audio, demonstrating its wide applicability.
  • Easy to integrateIt can be easily integrated into existing DiT model inference processes, is compatible with different solvers, and requires no modification to the model architecture.
  • Performance improvementBased on caching key features, redundant calculations are reduced, achieving speedups of 8% to 71% across different modalities.

SmoothCache Technical Principles

  • Layer output similarityBased on the observed high similarity of DiT model layer outputs between adjacent diffusion time steps.
  • Adaptive cachingSmoothCache analyzes the layer representation error of a small calibration set and dynamically determines which features should be cached during the denoising process.
  • Feature ReuseDuring inference, previously cached features are reused to avoid redundant computations and reduce resource-intensive operations.
  • Error AnalysisBased on the hierarchical representation error, the similarity of features between different diffusion steps is determined, and a caching strategy is formulated accordingly.
  • Static caching schemeBased on error analysis, a static caching scheme is generated to guide feature caching and reuse during the inference process.

SmoothCache project address

Application scenarios of SmoothCache

  • Image generation:Quickly generate image assets in content creation, game design, and digital art.
  • Video generation:Generate video content from text prompts; suitable for filmmaking, video games, and online advertising.It enables the generation of real-time video effects and dynamic backgrounds.
  • Audio generation:It generates corresponding audio or music based on text descriptions, and is suitable for music production, speech synthesis, and audiobooks.
  • 3D model generation:Quickly generate 3D models for architectural visualization, game development, and virtual reality applications.
  • Augmented Reality (AR) and Virtual Reality (VR):Generate and render high-quality virtual content in real time in AR/VR applications.