Abstract
Composition—the ability to generate myriad variations from finite means—is believed to underlie powerful generalization. However, compositional generalization remains a key challenge for deep learning. A widely held assumption is that learning disentangled (factorized) representations naturally supports this kind of extrapolation. Yet, empirical results are mixed, with many generative models failing to recognize and compose factors to generate out-of-distribution (OOD) samples. In this work, we investigate a controlled 2D Gaussian "bump" generation task with fully disentangled (x,y) inputs, demonstrating that standard generative architectures still fail in OOD regions when training with partial data, by re-entangling latent representations in subsequent layers. By examining the model's learned kernels and manifold geometry, we show that this failure reflects a "memorization" strategy for generation via data superposition rather than via composition of the true factorized features. We show that when models are forced—through architectural modifications with regularization or curated training data—to render the disentangled latents into the full-dimensional representational (pixel) space, they can be highly data-efficient and effective at composing in OOD regions. These findings underscore that disentangled latents in an abstract representation are insufficient and show that if models can represent disentangled factors directly in the output representational space, it can achieve robust compositional generalization.
Introduction
Compositional generalization is often considered the "holy grail" of machine learning: the capacity to learn independent concepts (e.g., color and shape) and combine them into novel, unseen configurations. While it is widely assumed that disentangled representations are the prerequisite for this ability, standard neural networks often fail to generalize even when provided with perfectly factorized latent inputs. This paper investigates why these failures occur and proposes "forced rendering" as a mechanism to ensure robust composition.
The Failure of Standard Decoders
To study this phenomenon, the authors utilize a controlled task: generating a 2D Gaussian "bump" on a grayscale image from $(x, y)$ coordinates. By withholding certain coordinate combinations during training (e.g., a "square-donut" or "corner" OOD region), they test the model's ability to extrapolate.
As shown in Figure 1, standard architectures fail to generate clean bumps in OOD regions. Instead of calculating the new position, the models perform a "lookup" of nearby seen data and superpose them. This results in multiple faint, blurry bumps rather than a single sharp one. Mechanistic analysis using Jacobian-based metric tensors reveals that subsequent layers "re-entangle" the initially factorized inputs, warping the representational manifold to fit the training distribution's geometry and destroying the coordinate system in OOD regions.
Forced Rendering: Architectural and Data-Centric Solutions
The authors propose that true composition requires the model to represent disentangled factors directly in the output representational space (pixels). They introduce two primary strategies to achieve this "forced rendering":
- Architectural Regularization: A low-rank regularization strategy is applied to the model's embedding matrices. By using entropy and variance penalties, the model is forced to learn simple, axis-aligned basis functions (resembling 1D stripes) that correspond to the input factors.
- Stripe Training: A data-centric approach where the model is trained on 1D "stripes" (isolated variations of $x$ or $y$). This forces the model to learn the independent rendering of each factor before composing them.
Key Results and Data Efficiency
As illustrated in Figure 4, the proposed regularization allows models to maintain a factorized metric tensor across all layers. This leads to sharp, accurate OOD generation that matches the ground truth. Furthermore, models trained on 1D stripes exhibit remarkable data efficiency, achieving zero-shot generalization to 2D bumps without ever seeing a 2D example during training. This reduces the data requirement from cubic ($N^3$) to linear ($N$) scaling relative to resolution.
Conclusion
Disentangled latent representations are insufficient for compositional generalization if the decoder is free to re-entangle them for memorization. By forcing the model to render these factors independently into the output space—either through architectural constraints or curated training—we can achieve robust, data-efficient generalization. Future work will explore scaling these principles to more complex architectures like Transformers and Diffusion models on natural datasets.
Summary updated