Content-Style Learning from Unaligned Domains: Identifiability under Unknown Latent Dimensions

Sagar Shrestha, Xiao Fu

Introduction

In multi-domain representation learning, a primary goal is to separate the underlying "content" of an image (shared features, such as the pose of an animal) from its "style" (domain-specific features, such as the exact species or texture). Achieving this disentanglement from unaligned data is essential for tasks like image-to-image translation and diverse data generation.

However, separating content from style without knowing the exact number of dimensions each requires has remained a major hurdle. This paper introduces a novel analytical framework called Latent Distribution Matching (LDM), proving that clean disentanglement is both theoretically possible and practically achievable, even when latent dimensions are over-estimated.

The Bottlenecks of Existing Methods

Existing methods for content-style identification typically face two stringent bottlenecks:

  1. Strict Independence Assumptions: Many approaches rely on Independent Component Analysis (ICA), assuming every single latent component is mutually independent. In complex, high-dimensional data like images, this is rarely true.
  2. The Dimension Guessing Game: Researchers usually have to guess the exact number of dimensions for content and style variables. If the style dimensions are over-estimated, the model often "leaks" content information into the style variable. This leakage leads to a severe loss of diversity in generated images, as the model uses the extra style capacity to memorize content rather than explore stylistic variations.

This paper aims to establish identifiability—the mathematical guarantee that a model can recover the true latent variables—under much more relaxed conditions, completely bypassing the need to know the exact latent dimensions beforehand.

Methodology: Latent Distribution Matching (LDM)

The authors propose the LDM framework to find an injective mapping that matches the distribution of learned content across all domains while ensuring that the content and style "blocks" remain independent.

Key technical innovations include:

  • Block Independence: Instead of requiring every individual latent factor to be independent, LDM only requires the set of content variables to be independent from the set of style variables.
  • Sparsity-Driven Identifiability: To handle unknown dimensions, the framework designates "excessive" dimensions for style and applies a sparsity penalty (such as an $\ell_1$ or $\ell_p$ norm). This forces the model to "squeeze out" redundant information, preventing content from hiding in the extra style dimensions.
  • GAN-based Implementation: Because directly matching distributions in latent space is computationally expensive, the authors prove that LDM can be reformulated as a regularized multi-domain GAN loss. This allows the model to learn the generative process directly in the data domain, making it significantly more efficient.

Key Insights: The Power of Sparsity

The most significant theoretical breakthrough in this work is the proof that sparsity constraints act as an anchor for identifiability. If a model is given too much dimensional "room," it gets lazy. Sparsity forces the model to find the most compact, and therefore the most accurate, representation of style.

Comparison of content-style disentanglement showing the critical role of sparsity.

Furthermore, while previous theoretical proofs often required a large number of domains (at least $2d_s + 1$), this paper proves identifiability can hold with as few as two domains, vastly widening the practical applicability of the method.

Key Results

The researchers validated their theory using standard benchmarks like AFHQ (Animal Faces-HQ), CelebA-HQ, and synthetic datasets like Rotated/Colored MNIST. The results strongly corroborate the theoretical claims:

  • Superior Style Diversity: In the AFHQ dataset, the proposed method achieved style diversity scores 3 to 5 times higher than baselines like I-GAN. The model successfully captured a wide variety of species characteristics rather than collapsing to a single "average" look.
  • Content Preservation: Qualitative results demonstrate that the model can change an animal's species (style) while perfectly maintaining its original pose (content), even when the latent dimensions are intentionally over-estimated.
The proposed method achieves significantly higher style diversity across different domains compared to baseline models like I-GAN.
  • Competitive Quality & Training Speedup: The model maintained high image quality, achieving an FID of 6.19 on AFHQ, outperforming or matching state-of-the-art conditional GANs. Because the method avoids separate translation networks by recasting the problem as a GAN loss, it is significantly faster. On a Tesla V100 GPU, it trained 22 to 69 hours faster than competitive baselines like StarGANv2.

Limitations and Future Directions

While a significant step forward, the framework has limitations. The current theory assumes domains are "homogeneous" (e.g., all are images of the same resolution); extending this to heterogeneous data, like mixing text and images, remains an open challenge. Additionally, the framework is designed for continuous latent variables, meaning adaptation for discrete data (like categorical text tokens) will require new theoretical support. Finally, while the paper provides sufficient conditions for identifiability, determining the absolute necessary conditions is an exciting task for future theoretical work.

Summary updated

BibTeX
@inproceedings{shrestha2025content,
  author = {Sagar Shrestha and Xiao Fu},
  title = {{Content-Style Learning from Unaligned Domains: Identifiability under Unknown Latent Dimensions}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=p60Y6o85Cj},
}
Figure