Abstract
Deep generative models (DGMs) compress high-dimensional data but often entangle distinct physical factors in their latent spaces. We present an auxiliary-variable-guided framework for disentangling representations of thermal Sunyaev-Zel'dovich (tSZ) maps of dark matter halos. We introduce halo mass and concentration as auxiliary variables and apply a lightweight alignment penalty to encourage latent dimensions to reflect these physical quantities. To generate sharp and realistic samples, we extend latent conditional flow matching (LCFM), a state-of-the-art generative model, to enforce disentanglement in the latent space. Our Disentangled Latent-CFM (DL-CFM) model recovers the established mass-concentration scaling relation and identifies latent space outliers that may correspond to unusual halo formation histories. By linking latent coordinates to interpretable astrophysical properties, our method transforms the latent space into a diagnostic tool for cosmological structure. This work demonstrates that auxiliary guidance preserves generative flexibility while yielding physically meaningful, disentangled embeddings, providing a generalizable pathway for uncovering independent factors in complex astronomical datasets.
Introduction
Deep Generative Models (DGMs) have revolutionized the creation of synthetic astronomical data. However, a persistent challenge is entanglement: internal variables often represent a mixture of physical properties, making it difficult for scientists to isolate specific drivers like mass or age. In cosmology, thermal Sunyaev–Zel’dovich (tSZ) maps—which trace electron pressure in galaxy clusters—are vital for understanding dark matter halos. While mass ($M_{200c}$) and concentration ($c_{200c}$) are known primary drivers, complex histories like cluster mergers introduce significant morphological noise. This paper introduces Disentangled Latent-Conditional Flow Matching (DL-CFM) to separate these known physical drivers from residual morphological features.
Methodology
The DL-CFM framework integrates the structured latent space of Variational Autoencoders (VAEs) with the high-fidelity generation capabilities of Conditional Flow Matching (CFM).
- Latent Compression: A VAE encoder compresses $64 \times 64$ tSZ images into a low-dimensional latent code ($z$).
- Auxiliary Guidance: The latent space is partitioned into Guided Latents ($z_{aux}$), which are aligned with $M_{200c}$ and $c_{200c}$ via a lightweight alignment penalty, and Residual Latents ($z_{rec}$), which capture remaining morphological details.
- Flow Matching Decoder: To avoid the "blurry" outputs typical of standard VAEs, a CFM decoder learns a vector field to transport a simple noise distribution into sharp, realistic tSZ maps.
- Regularization: Three loss components—explicitness, intra-independence, and inter-independence—ensure the latent space is interpretable and that physical variables do not "leak" into the residual space.
Results and Discussion
The model was trained on 10,142 tSZ maps from the CRK-HACC hydrodynamic simulation. DL-CFM successfully achieves disentanglement without sacrificing image quality.
As shown in the figure above, latent dimension 1 strongly correlates with mass, while latent dimension 2 correlates with concentration. The remaining dimensions (3-5) show no significant correlation, effectively isolating the "residual" morphological noise.
The generated samples (above) demonstrate that DL-CFM maintains high fidelity, capturing the complex structures of dark matter halos. Crucially, by fixing $z_{aux}$ and varying $z_{rec}$, the researchers identified that the "tails" of the residual distribution correspond to "disturbed" halos—those undergoing mergers or possessing multi-peaked morphologies. This transforms the latent space into a diagnostic tool for identifying unusual cosmic events.
Conclusion
DL-CFM provides a robust method for creating interpretable generative models in cosmology. By guiding the latent space with auxiliary physical variables, the model preserves generative flexibility while enabling precise control over physical properties. Future work will focus on scaling this framework to include more variables, such as halo ellipticity, and applying it to real-world observational data containing instrumental noise.
Summary updated