Semantic aware decoding improves image generation using latent models
It's Not Too Late to Boost Your Latents: Semantic-Aware Decoding for Latent Generative Models
Computer Vision and Pattern Recognition
Summary
Latent diffusion models create images by transforming compressed data, but usually throw away useful semantic information during decoding. The authors show that by feeding semantic details back into the decoder, image quality improves, even if those semantics weren’t generated together with the image data. They design a method to predict these semantic details directly from the compressed data, making it easier to enhance many models. Their experiments on ImageNet images confirm better image generation using this approach.
What this means in practice
- •For machine learning engineers: Improve image synthesis pipelines by adding semantic-aware decoding to existing latent diffusion models without retraining the generator.
- •For computer vision developers: Deploy more accurate image generation in applications by integrating semantic projectors that enhance decoding from latent vectors alone.
Authors
Giorgos Petsangourakis, Giorgos Sfikas, Ioannis Kakogeorgiou
Abstract
Latent diffusion models increasingly exploit semantic representations from vision foundation models to improve image generation. Yet models that jointly generate these representations alongside VAE latents discard them at decoding time, reconstructing images from the latents alone. We introduce semantic-aware decoding, which conditions the decoder on both representations while keeping the pretrained generator and latent space fixed. We further show that useful semantics need not be jointly generated: semantics extracted from a reconstruction and fed back to the semantic-aware decoder already improve generation, suggesting that conventional decoders do not fully exploit the information available in the latents. Building on this observation, we train a semantic projector that predicts semantics directly from the latents, extending semantic-aware decoding to models that generate only VAE latents without an additional reconstruction at inference. Experiments on ImageNet demonstrate improved generation across SiT, REPA, REG, ReDi, CoReDi, and REGLUE, spanning different model scales and both conditional and unconditional settings. Semantic conditioning reduces generation gFID by up to 16% over a strong latents-only transformer baseline. Our findings show that semantic representations can improve image synthesis even after sampling is complete. The code is available at https://github.com/giorgospets/semantic-aware-decoder.