Compositional Generalization via Forced Rendering of Disentangled Latents
Qiyao Liang, Daoyuan Qian, Liu Ziyin, Ila Fiete
TL;DR
The paper investigates why disentangled latent representations often fail to support robust compositional generalization, using a controlled 2D Gaussian bump task to reveal layerwise re-entanglement and memorization as key failure modes. By applying kernel and transport analyses, the authors show that factorized latents do not guarantee extrapolation when downstream layers warp the representation and memorize training data. They propose two practical remedies—architectural rendering of disentangled factors into the output space with low-rank embedding regularization, and data curricula that isolate factors as pixel-space building blocks (e.g., stripes)—which yield data-efficient, strong OOD compositional generalization. The findings emphasize that factorization must be preserved in the output representation, guiding design principles for more reliable, compositional neural models applicable to vision and beyond.
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.
