Back to Search Start Over

Optimizing Resource Consumption in Diffusion Models through Hallucination Early Detection

Authors :
Betti, Federico
Baraldi, Lorenzo
Cucchiara, Rita
Sebe, Nicu
Publication Year :
2024

Abstract

Diffusion models have significantly advanced generative AI, but they encounter difficulties when generating complex combinations of multiple objects. As the final result heavily depends on the initial seed, accurately ensuring the desired output can require multiple iterations of the generation process. This repetition not only leads to a waste of time but also increases energy consumption, echoing the challenges of efficiency and accuracy in complex generative tasks. To tackle this issue, we introduce HEaD (Hallucination Early Detection), a new paradigm designed to swiftly detect incorrect generations at the beginning of the diffusion process. The HEaD pipeline combines cross-attention maps with a new indicator, the Predicted Final Image, to forecast the final outcome by leveraging the information available at early stages of the generation process. We demonstrate that using HEaD saves computational resources and accelerates the generation process to get a complete image, i.e. an image where all requested objects are accurately depicted. Our findings reveal that HEaD can save up to 12% of the generation time on a two objects scenario and underscore the importance of early detection mechanisms in generative models.<br />Comment: Accepted at ECCV Workshop 2024

Details

Database :
arXiv
Publication Type :
Report
Accession number :
edsarx.2409.10597
Document Type :
Working Paper