Structure by Architecture: Structured Representations without Regularization

Felix Leeb, Giulia Lanzillotta, Yashas Annadani, Michel Besserve, Stefan Bauer, Bernhard SchölkopfICLR 2023

In the pursuit of representation learning, researchers strive to build models that can isolate the underlying "factors of variation" in data. For instance, a model analyzing a face should ideally separate independent factors like skin tone, hair color, and facial expression.

Traditionally, the Variational Autoencoder (VAE) has been the go-to tool for this task. However, VAEs come with a significant "regularization tax." To force the latent space to resemble a simple probability distribution (like a Gaussian), VAEs rely on aggressive mathematical regularization, such as the KL-divergence penalty.

Researchers from the Max Planck Institute have introduced a compelling alternative: the Structural Autoencoder (SAE). By leveraging a hierarchical decoder architecture and a novel "hybrid sampling" technique, the SAE achieves highly structured and disentangled representations without the drawbacks of VAE regularization.

The Problem with VAE Regularization

The mathematical regularization used in VAEs often acts as a double-edged sword, leading to three primary issues:

  1. Blurry Results: The regularization penalty fundamentally conflicts with the model's goal of accurate reconstruction, frequently resulting in lossy, blurry images.
  2. Posterior Collapse: The model will sometimes ignore certain latent variables entirely to minimize the regularization penalty.
  3. Holes in Latent Space: Sampling from the predefined prior often yields "nonsense" images because the model fails to learn how to interpolate the gaps between actual training data points.

The core question the authors pose is: Can we achieve the benefits of a structured latent space through architectural design alone, rather than forcing it via loss functions?

The Architectural Solution

The SAE introduces two primary innovations to bypass the need for strong regularization.

1. The Structural Decoder

Instead of feeding an entire latent vector into the very first layer of the decoder—as is standard practice—the SAE infuses latent information one variable at a time.

Architecture of the Structural Decoder, injecting latent variables sequentially.
  • Hierarchy by Design: The earliest latent variables pass through more layers, granting them greater "computational power" to represent complex, non-linear, and global features (like object shape or orientation).
  • Structural Transform (Str-Tfm) Layers: Drawing inspiration from FiLM and Ada-In layers, these blocks apply pixel-wise affine transformations to feature maps. Because each layer only interacts with one specific latent variable, the architecture is inherently biased to separate information.

2. Hybrid Sampling

Standard generative models sample from a predefined "prior" (like a bell curve). The SAE instead utilizes Hybrid Sampling:

  • It gathers a set of latent vectors encoded from the training set.
  • To generate a novel image, it constructs a new latent vector by randomly selecting the $i$-th component from different existing vectors.
  • This technique relies purely on the statistical independence of the variables rather than forcing them into a specific distribution shape, allowing for highly expressive and realistic generations.

Key Insights and Results

The authors evaluated the SAE across a variety of datasets, ranging from simple geometric objects (3D-Shapes) and robotic manipulation (MPI3D Toy, Sim, and Real, plus the Robot Finger Dataset) to complex real-world images (Celeb-A).

Weak Bias, Strong Ordering

Unlike VAEs, which use a "strong" mathematical penalty to force independence, the SAE relies on a "weak" architectural bias. By simply restricting which layers see which variables, the model naturally learns to separate features. A spontaneous ordering emerges: the model consistently places "global" information in the early latent variables and "local" details in the later ones. Furthermore, because there is no regularization term to minimize, the SAE avoids the posterior collapse common in VAEs.

Superior Reconstruction and Disentanglement

Reconstruction FID scores across multiple datasets, showing Structural models outperforming baselines.
  • Reconstruction Quality: SAEs consistently outperformed VAEs and other baselines in reconstruction fidelity. Measured by FID and MSE, the SAE produced significantly sharper images, which was especially evident on complex datasets like Celeb-A.
  • Disentanglement: On the 3D-Shapes and MPI3D datasets, the SAE-12 (using 12 latent variables) achieved the highest disentanglement scores (DCI and MIG), surpassing specialized models like $\beta$-TCVAE and FactorVAE.
  • Generative Performance: Hybrid sampling from an SAE often yielded higher-quality samples than sampling from a VAE's prior, demonstrating that the "holes" in the latent space were effectively minimized.

Limitations and Future Directions

While the SAE excels at interpolating within the distribution of data it has seen, it struggles with "zero-shot extrapolation" (e.g., imagining a shape it has never encountered), a limitation shared by its competitors.

Currently, the model assumes a simple sequential hierarchy. Future work could explore more complex "Structural Causal Models" (SCMs) where the network architecture explicitly mirrors known real-world causal relationships. Additionally, testing the limits of this architectural bias on higher-resolution, highly diverse datasets like ImageNet remains an exciting open challenge.

Summary updated

BibTeX
@inproceedings{leeb2023structure,
  author = {Felix Leeb and Giulia Lanzillotta and Yashas Annadani and Michel Besserve and Stefan Bauer and Bernhard Schölkopf},
  title = {{Structure by Architecture: Structured Representations without Regularization}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=O_lFCPaF48t},
}
Figure