VIVAT: Virtuous Improving VAE Training through Artifact Mitigation

Lev Novitskiy, Viacheslav Vasilev, Maria Kovaleva, Vladimir Arkhipkin, Denis DimitrovarXiv 2025 · DOI

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.

Taxonomy of common VAE artifacts: (a) Original, (b) Color shift, (c) Grid, (d) Blur, (e) Corner artifact, and (f) Droplet artifact.

Methodology

The VIVAT framework categorizes five primary artifacts and proposes specific technical solutions:

  1. Color Shift: Mitigated through prolonged training or decoder-only finetuning to stabilize adversarial training.
  2. Grid Patterns: Reduced by lowering the adversarial loss weight to prevent discriminator over-dominance.
  3. Blur: Addressed by decreasing the KL-divergence loss weight (by 10x), allowing the latent space to retain higher information capacity.
  4. Corner Artifacts: Eliminated by replacing standard zero-padding with reflection padding, providing necessary spatial context at image boundaries.
  5. Droplet Artifacts: Resolved using Spatially Conditional Normalization in the decoder to modulate high activation norms and prevent value "explosions."
The VIVAT VAE architecture, featuring an optimized encoder-decoder structure with specific attention and ResNet blocks.

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

Abstract

Variational Autoencoders (VAEs) remain a cornerstone of generative computer vision, yet their training is often plagued by artifacts that degrade reconstruction and generation quality. This paper introduces VIVAT, a systematic approach to mitigating common artifacts in KL-VAE training without requiring radical architectural changes. We present a detailed taxonomy of five prevalent artifacts - color shift, grid patterns, blur, corner and droplet artifacts - and analyze their root causes. Through straightforward modifications, including adjustments to loss weights, padding strategies, and the integration of Spatially Conditional Normalization, we demonstrate significant improvements in VAE performance. Our method achieves state-of-the-art results in image reconstruction metrics (PSNR and SSIM) across multiple benchmarks and enhances text-to-image generation quality, as evidenced by superior CLIP scores. By preserving the simplicity of the KL-VAE framework while addressing its practical challenges, VIVAT offers actionable insights for researchers and practitioners aiming to optimize VAE training.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
ImageNet-1K · ImageNet, 256 × 256VIVATPSNR31.25+0.16 vs baselineresolution=256×256
Source quote
L209: VIVAT (Our) │ 31.25 │ 33.82 │ 32.61 │ 39.35
ImageNet-1K · ImageNet, 256 × 256VIVATSSIM0.90+0.01 vs baselineresolution=256×256
Source quote
L217: VIVAT (Our) │ 0.90 │ 0.92 │ 0.91 │ 0.96
FFHQ · 1024 × 1024VIVATPSNR39.35+0.23 vs baselineresolution=1024×1024
Source quote
L209: VIVAT (Our) │ 31.25 │ 33.82 │ 32.61 │ 39.35
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
ImageNet-1K · ImageNet, 256 × 256Flux VAE baselinePSNR31.09resolution=256×256
Source quote
L207: Flux VAE │ 31.09 │ 33.99 │ 32.65 │ 38.14
ImageNet-1K · ImageNet, 256 × 256Flux VAE baselineSSIM0.89resolution=256×256
Source quote
L215: Flux VAE │ 0.89 │ 0.93 │ 0.91 │ 0.96
FFHQ · 1024 × 1024Cosmos-0.1-Tokenizer-CI8×8 baselinePSNR39.12resolution=1024×1024
Source quote
L206: Cosmos-0.1-Tokenizer-CI8×8 │ 30.54 │ 33.76 │ 32.28 │ 39.12
BibTeX
@misc{novitskiy2025vivat,
  author = {Lev Novitskiy and Viacheslav Vasilev and Maria Kovaleva and Vladimir Arkhipkin and Denis Dimitrov},
  title = {{VIVAT: Virtuous Improving VAE Training through Artifact Mitigation}},
  year = {2025},
  eprint = {2506.07863},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.07863},
}
Figure