TUM Finds FLUX.1's Hidden 3D Color Map, Beating Every Learned Baseline
Researchers found that color in FLUX's VAE latent space lives in a clean 3D subspace mirroring HSL, enabling training-free color control.
ProTakeaways
- Color in FLUX's VAE latent space lives in a 3D subspace that mirrors HSL as a bicone (paper).
- First three PCA components account for 100% of variance across 400 solid-color images.
- Same structure appears in SD3.5, FLUX.2, and Qwen-Image VAEs, suggesting a general property.
- Training-free color intervention raises GenEval color accuracy from 9% to 72% without prompt changes.
- Beats ColorPeel, ReNO, IP-Adapter, and best-of-50 on both color accuracy and structure preservation.
- Code released at github.com/ExplainableML/LCS, closed-form latent manipulation, no extra models.
Text-to-image models produce gorgeous pictures, but getting a specific shade of teal on a specific teddy bear without touching the rest of the scene is still surprisingly hard. A new paper from the Explainable ML group at TUM/Helmholtz Munich, The Latent Color Subspace: Emergent Order in High-Dimensional Chaos, argues that the reason we cannot control color precisely is that we do not understand how the model stores it. Their answer turns out to be surprisingly tidy.
The authors develop an interpretation of color in the Variational Autoencoder latent space of FLUX.1 [Dev], revealing a structure that reflects Hue, Saturation, and Lightness. Once you know where color lives, you can move it around with linear algebra, no fine-tuning, no adapters, no extra networks.

Color hiding in three dimensions
The setup is almost embarrassingly simple. The team encoded 400 solid-color images sampled uniformly from HSV space with FLUX's VAE, averaged the patch latents for each image, and ran PCA. The first three principal components accounted for 100% of the variance, meaning color information is confined to a 3D subspace of the VAE latent space. They call this the Latent Color Subspace, or LCS.
The geometry is where it gets interesting. The first dimension spans light to dark, while the second and third jointly form a circular hue structure with radius encoding saturation. Together, this geometry closely resembles the HSL color representation, organized in a bicone, representing hue as an angle, saturation as the distance from the center, and lightness as an axis. A bicone is essentially two cones stuck base-to-base, which is the shape graphic designers already use to visualize HSL.

This is not just a FLUX quirk. The authors repeated the experiment on SD3.5, FLUX.2, and Qwen-Image, and observed similar color organization across all models, hinting that this bicone structure may be a general property of VAE-based image generators.
Watching color emerge, then bending it
FLUX generates images with flow matching, which is a training objective that learns a velocity field to transport pure noise into a clean image latent over a series of timesteps. That means the latents at step 10 out of 50 are not the same as at step 50, and any color reading has to account for that trajectory.
The authors compute per-timestep shift and scale statistics so they can project a mid-generation latent into the LCS, normalize it to timestep 50, and decode it into HSL coordinates using six hue anchors plus black and white. Two things fall out of this:
- Observation: you can predict the final colors of an image from an intermediate latent without ever running the VAE decoder, which is a 50-million-parameter model in FLUX.
- Intervention: you can rewrite the LCS coordinates of specific patches to push them toward a target HSL color.
For intervention, they define three strategies. Type I shifts all patch coordinates in the LCS by a single offset. Type II decodes patches to HSL, shifts them there, and re-encodes. Type ★ interpolates between the two with a coefficient derived from the flow matching scheduler. Type I can lose texture at late timesteps because unintended saturation changes cause color to appear as a thin surface layer, while Type II can have little influence at early timesteps. The interpolated Type ★ approach applied at timesteps 8 to 10 enables color integration while preserving fine-grained texture.

Numbers that hold up against the usual suspects
To localize edits to a specific object, the authors pull segmentation masks from text-image cross-attention activations in transformer layer 18, using Seg4Diff. No extra segmentation model required.
On GenEval's color task, mechanistic control alone raises color accuracy from 9% to 72% without changing the prompt, approaching the 79% achievable with color-explicit prompts. On a harder custom benchmark called PRECISE with 51 HSL colors, LCS beats prompting and every learned baseline they compare against:
| Method | ΔE₀₀ ↓ | SSIM ↑ | LPIPS ↓ |
|---|---|---|---|
| Prompt | 27 | 0.48 | 0.48 |
| Best-of-N (N=50) | 19 | 0.32 | 0.57 |
| ColorPeel | 29 | 0.22 | 0.66 |
| ReNO | 23 | 0.25 | 0.61 |
| IP-Adapter | 40 | 0.29 | 0.52 |
| LCS (local) | 10 | 0.62 | 0.32 |
ΔE₀₀ is the CIEDE2000 perceptual color difference; lower means closer to the target color. The interesting part is that LCS also wins on structure preservation, since it only touches the color subspace and leaves the rest of the latent alone. LCS is also the only color-control approach among these that improves interpretability of the underlying model, rather than adding uninterpretable optimization on top.
When it works and when it does not
The method is training-free, closed-form, and cheap. If you have FLUX loaded already, applying an intervention is a matter of projecting patches into a 3D subspace, shifting them, and projecting back. The catch is that the intervention window is narrow: very early interventions are limited by the model's attention-based segmentation, and late interventions produce artifacts and sharp patch-induced boundaries that require model cleaning to smooth out. Timesteps 8 to 10 out of 50 is the sweet spot.
There are also fine-grained tradeoffs. Early intervention can subtly change semantics, sometimes for the better (a red steak looks more raw, a green stump gets moss) and sometimes not. For strict image editing where structure must be identical, the authors recommend later timestep interventions with cleaner bounding boxes.
Code is on GitHub under the ExplainableML org, and the paper will appear at ICML. If you have been reaching for ControlNet or IP-Adapter just to nudge a hue, the diff on your pipeline might be a few dozen lines of numpy.