Search papers, labs, and topics across Lattice.
This paper reveals that denoising diffusion generative models inherently utilize an attention mechanism akin to that found in transformer architectures, suggesting that attention is a universal principle in machine learning. By establishing functional equivalences between diffusion models and attention-based models, the authors propose a reformulation that streamlines the training process and reduces computational demands for image generation. Their results demonstrate that this attention-based approach can achieve comparable performance to traditional methods while significantly lowering resource requirements.
Attention isn't just for transformers—it's the secret sauce behind denoising diffusion models too, enabling faster and more efficient image generation.
Denoising diffusion models are the dominant architecture for image generation, whereas most natural language generation and modeling are primarily handled by well-known transformer architectures employing attention mechanism. Here, we show that diffusion models also inherently use an attention mechanism very similar to that of transformers. Therefore, attention emerges as a universal machine learning principle, based on a general training objective. We also show similarities in basic functional principle of auto-encoders and attention-based models. These equivalences allows us to interchange these designs based on practical requirements. As an example, we can reformulate the diffusion framework to reduce the lengthy training process and computation-intensive image generation. Using this approach, a simplified algorithm is proposed for image generation which is based on attention mechanism. Results show that the attention-based implementation achieves comparable performance with significantly less effort and computational resources.