Abstract
Cross-domain mapping tasks, such as image captioning and text-to-image synthesis, are inherently many-to-many. A single image can be described in various ways, and a single text prompt can correspond to numerous visual representations. Traditional models often struggle with this diversity, frequently collapsing into a single "safe" average output due to restrictive unimodal priors. We introduce LNFMM (Latent Normalizing Flows for Many-to-Many Mappings), a semi-supervised framework designed to capture the richness of these distributions. By factorizing the latent space into shared semantic and domain-specific components and employing Normalizing Flows as flexible priors, LNFMM successfully models complex, multimodal distributions for diverse and accurate generation.
Introduction
In cross-domain learning, the mapping between images and text is rarely one-to-one. Most existing frameworks, such as standard Variational Autoencoders (VAEs) or Generative Adversarial Networks (GANs), map data into a single shared latent space. This approach typically suffers from two major limitations: it ignores domain-specific "style" or "noise" (e.g., lighting in images or syntactic variety in text), and it relies on unimodal Gaussian priors that lead to "mode collapse."
LNFMM addresses these issues by explicitly modeling the inherent many-to-many nature of the data, allowing for a variety of outputs for a single input by accounting for both shared concepts and domain-specific variations.
Methodology
The core innovation of LNFMM is its Factorized Latent Space. For any given input, the model generates a latent vector $z$ partitioned into two distinct parts:
- Shared Latent Space ($z_s$): Encodes semantic information common to both domains (e.g., the core objects and actions).
- Domain-Specific Latent Space ($z'$): Encodes residual variations unique to a specific domain (e.g., image lighting or textual style).
Invertible Alignment and Normalizing Flows
To bridge the domains, LNFMM uses an invertible neural network to align the shared latent spaces ($z_s$) of images and text. This ensures that the semantic core is preserved during translation.
Furthermore, the model replaces traditional Gaussian priors with Normalizing Flows. These are a series of invertible transformations that "warp" a simple distribution into a complex, multi-peaked one. This flexibility allows the model to learn multiple "correct" ways to fill in domain-specific details ($z'$) given a shared semantic core ($z_s$), effectively capturing the multimodal nature of the data.
Experimental Evaluation
The framework was evaluated on the MS COCO dataset, using approximately 82,783 training images with five captions each. The model was tested in both fully supervised and semi-supervised settings (using only 30% labeled data).
Key Results
- Image Captioning: LNFMM outperformed state-of-the-art models like AG-CVAE in both accuracy (Bleu, CIDEr) and diversity metrics (Div-1, Div-2).
- Text-to-Image Synthesis: The model achieved superior LPIPS scores compared to AttnGAN, demonstrating significantly higher perceptual diversity in generated images.
- Human Evaluation: Blind tests confirmed that human annotators preferred LNFMM's outputs for both their accuracy and their descriptive variety.
Conclusion
LNFMM represents a significant step forward in cross-domain mapping by moving beyond the one-to-one paradigm. By separating shared semantics from domain-specific variations and utilizing the expressive power of Normalizing Flows, the model captures the true complexity of image-text relationships. While future work may focus on improving visual fidelity and attribute disentanglement, LNFMM provides a robust foundation for diverse and accurate multimodal generation.
Summary updated