On Color Alignment in VAE Latent Spaces and Its Applications
Julian D. Santamaria, Kai Wang, Jesús Malo, Javier Vazquez-Corral, Alexandra Gómez-Villa
Abstract
Variational autoencoders (VAEs) are a key part of modern text-to-image models, which generate images within their latent space. VAEs are known to disentangle the main factors of variation in the data, and color is known to be one of the most structured of these in natural images: decorrelating it yields one luminance axis and two opponent-color axes. Color should therefore be expected to emerge as a distinct factor in the VAE latent space. Yet how these latent spaces represent color remains largely unexplored. In this work, we show that the VAEs of text-to-image models share a color subspace aligned with brightness and opponent-colors. Through a linear approximation of the encoder and targeted latent steering, we find this subspace consistently across a broad range of VAEs, from SD1.5 to FLUX.2 and Z-Image. Building on this characterization, we propose three applications: ColorTuning, which achieves state-of-the-art in precise numerical color generation on the fine-grained CSS3/X11 system of GenColorBench, saturation control, to adjust the global chromatic intensity, and color transfer, to change the palette to match a reference. The code and models are publicly available at https://julian075.github.io/ColorSubspace/
Create a lesson
Metadata
- Categories
- cs.CV, cs.LG
Related papers
Bayesian Optimization in Sequence-to-Architecture Latent Space for Zero-Shot NAS
Shared title terminologycs.CVOndrej Tybl, Lukas Neumann
Detector Operating Behavior Inference via Data-Space Sampling
Shared title terminologycs.CVStefan Becker, Simon Weiss, Wolfgang Hübner
Exploring the Design Factors of Pixel-space Diffusion
Shared title terminologycs.CVMang Ning, Le Zhang, Albert Ali Salah et al.
From Diagnosing Alignment to Joint Supervision in Multimodal Draft Training
Shared title terminologycs.CVHaozhe Du, Runze Liu, Jiaming Fan et al.
Hijacking 3D Generation: Targeted Adversarial Attacks against Image-to-3D Models via Prefix Trajectory Alignment
Shared title terminologycs.CVYilong Yang, Jiale Teng, Yule Liu et al.
ScaleCurve: From Constant Scale to Consistent Motion for World-Space Human Mesh Recovery
Shared title terminologycs.CVSanghyeon Lee, Jong Taek Lee