Abstract
Variational Autoencoders (VAEs) are critical components in latent diffusion models, yet their training often results in persistent visual artifacts. VIVAT (Virtuous Improving VAE Training) introduces a systematic framework to identify and mitigate these issues—including color shifts, grid patterns, blur, corner artifacts, and droplets—through targeted architectural and training refinements. By implementing "low-effort, high-impact" changes such as reflection padding and Spatially Conditional Normalization, VIVAT achieves state-of-the-art reconstruction quality, outperforming existing models like Flux and Stable Diffusion 3 VAE.
Introduction
Modern generative AI relies heavily on VAEs to compress high-resolution images into efficient latent spaces. However, training high-fidelity KL-VAEs is challenging, frequently yielding artifacts that degrade downstream generation quality. Common glitches include unnatural color shifts, blurry textures, and localized "droplets" of light. VIVAT addresses these by establishing a systematic taxonomy of artifacts and providing actionable mitigation strategies, arguing that the classic KL-VAE framework is under-optimized rather than fundamentally flawed.
Methodology
The VIVAT framework categorizes five primary artifacts and proposes specific technical solutions:
- Color Shift: Mitigated through prolonged training or decoder-only finetuning to stabilize adversarial training.
- Grid Patterns: Reduced by lowering the adversarial loss weight to prevent discriminator over-dominance.
- Blur: Addressed by decreasing the KL-divergence loss weight (by 10x), allowing the latent space to retain higher information capacity.
- Corner Artifacts: Eliminated by replacing standard zero-padding with reflection padding, providing necessary spatial context at image boundaries.
- Droplet Artifacts: Resolved using Spatially Conditional Normalization in the decoder to modulate high activation norms and prevent value "explosions."
Experimental Setup
VIVAT was trained on a massive dataset of 100 million high-aesthetic images (>4.5 score) from the LAION Aesthetic HighRes collection. Evaluation was conducted across standard benchmarks including ImageNet (256/512), MS COCO 2017, and FFHQ (1024) to assess high-fidelity reconstruction across diverse domains.
Results and Discussion
VIVAT achieves state-of-the-art results in image reconstruction. Quantitatively, it surpassed models such as Flux VAE and Stable Diffusion 3 VAE in PSNR and SSIM metrics. For instance, on ImageNet-256, VIVAT reached a PSNR of 31.25, compared to Flux VAE's 31.09.
Qualitatively, the model demonstrates superior sharpness in text and fine textures like hair. The researchers found that "padding is a silent killer"; reflection padding significantly reduces corner blur by providing the context convolutions need to stay sharp. Furthermore, when used as a backbone for a 2-billion parameter Diffusion Transformer (DiT), VIVAT led to more stable training and higher CLIP scores, indicating improved prompt adherence in generative tasks.
Conclusion
VIVAT demonstrates that significant gains in VAE performance can be achieved through rigorous training hygiene and targeted architectural tweaks rather than radical redesigns. While currently focused on static images, the principles of artifact mitigation established here provide a foundation for future work in video generation, where temporal consistency and flickering remain primary challenges.
Summary updated