Unsupervised Learning of Semantic Mappings

Tomer Galanti, Lior Wolf

Abstract

Unsupervised image-to-image translation is fundamentally ill-posed: without paired examples, infinitely many mappings can transform one image distribution into another. This paper proposes the Simplicity Hypothesis, which posits that the semantically "correct" mapping is typically the one with the lowest functional complexity. By employing neural network depth as a proxy for complexity and proposing a two-step regularization algorithm, the authors demonstrate that carefully constraining architecture size is the key to forcing models toward meaningful alignments. We present a theoretical framework and experimental results that leverage this hypothesis to achieve superior results on standard benchmarks.

The Ambiguity of Unsupervised Mapping

In tasks like horse-to-zebra translation, a model must learn a mapping between two sets of images without direct supervision. While distribution matching (ensuring the output looks like a zebra) is a necessary constraint, it is not sufficient. A sufficiently complex model could learn to map a specific horse to a completely unrelated zebra or even a scrambled version of the target domain, provided the overall distribution is preserved.

Ambiguity in unsupervised mapping: multiple distinct functions can map the same source distribution to the same target distribution.

As illustrated above, even in simple cases, multiple distinct mappings (such as identity-like vs. permutation-like) can satisfy the same distribution constraints. This theoretical "semantic garbage" problem persists even with cycle-consistency constraints, as complex models can still find nonsensical permutations that satisfy the math while failing to preserve semantic content.

The Simplicity Hypothesis and Complexity-Based Regularization

To resolve this ambiguity, the authors introduce a framework centered on Functional Complexity ($C(f)$). They define complexity as the minimum number of layers (depth) required for a neural network to implement a given function, acting as a practical proxy for Kolmogorov complexity.

Theoretical framework for mapping between domains $D_A$ and $D_B$ via a latent space $D_Z$.

The Simplicity Hypothesis conjectures that the mapping humans perceive as "semantic" is the one with minimal complexity that achieves low discrepancy with the target domain. Based on this, the authors propose a two-step training process (Algorithm 1):

  1. Alignment: Train a small, low-complexity network ($g$) to find the basic semantic mapping.
  2. Refinement: Train a larger, high-complexity network ($h$) that is regularized to stay close to the mapping learned by $g$ while refining visual details and fidelity.

Key Insights: The "Goldilocks" Architecture

A central finding is that unsupervised learning requires a "just right" architecture. If a network is too shallow, it fails to match the target distribution. If it is too deep, it gains the "freedom" to learn non-semantic permutations. Unlike supervised learning, where extra depth is rarely harmful, unsupervised learning is highly sensitive to over-parameterization.

Furthermore, the authors demonstrate that when the architecture is sufficiently constrained, a simple GAN loss often suffices to learn semantic mappings, challenging the notion that cycle consistency is the primary driver of alignment. They theoretically show that the number of low-complexity "Density Preserving Mappings" (DPMs) is very small, which explains why minimal-complexity models tend to converge on unique, semantic solutions.

Experimental Results

The hypothesis was validated on benchmarks including CelebA (face attributes), Edges2Shoes, and product category mappings.

  • Depth Sensitivity: On CelebA gender tasks, 6-8 layers provided optimal alignment. Shallower models failed to transform the images, while deeper models (12+ layers) satisfied the GAN loss but lost the identity of the input person.
  • Algorithm Performance: The proposed two-step algorithm outperformed baselines like DiscoGAN. For instance, in "Male to Female" translation, it successfully removed facial hair while maintaining identity, whereas simpler models often left visual artifacts.
  • Quantitative Validation: Using VGG face descriptors, the authors showed that complexity-regulated mappings maintained significantly higher identity similarity (cosine similarity) compared to unconstrained deep models.

Conclusion and Future Work

This work provides a theoretical foundation for why unsupervised models work in practice: they are implicitly regularized by their own architectural simplicity. While proving uniqueness for deep architectures remains a challenge, this research highlights the importance of architecture design as a form of prior knowledge. Future work will explore how these dynamics apply to non-image modalities and more modern architectures like U-Nets with skip connections or patch-based discriminators.

Summary updated

Abstract

We discuss the feasibility of the following learning problem: given unmatched samples from two domains and nothing else, learn a mapping between the two, which preserves semantics. Due to the lack of paired samples and without any definition of the semantic information, the problem might seem ill-posed. Specifically, in typical cases, it seems possible to build infinitely many alternative mappings from every target mapping. This apparent ambiguity stands in sharp contrast to the recent empirical success in solving this problem. We identify the abstract notion of aligning two domains in a semantic way with concrete terms of minimal relative complexity. A theoretical framework for measuring the complexity of compositions of functions is developed in order to show that it is reasonable to expect the minimal complexity mapping to be unique. The measured complexity used is directly related to the depth of the neural networks being learned and a semantically aligned mapping could then be captured simply by learning using architectures that are not much bigger than the minimal architecture. Various predictions are made based on the hypothesis that semantic alignment can be captured by the minimal mapping. These are verified extensively. In addition, a new mapping algorithm is proposed and shown to lead to better mapping results.
BibTeX
@inproceedings{galanti2018unsupervised,
  author = {Tomer Galanti and Lior Wolf},
  title = {{Unsupervised Learning of Semantic Mappings}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=H1VjBebR-},
}
Figure