NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Vector-based Representation is the Key: A Study on Disentanglement and Compositional Generalization

Tao Yang, Yuwang Wang, Cuiling Lan, Yan Lu, Nanning ZhengarXiv 2023 · DOI

Abstract

Recent advancements in disentangled representation learning have highlighted a persistent challenge: models that excel at isolating individual factors of variation often struggle to generalize these concepts to unseen combinations. This paper proposes that the traditional "one factor, one scalar" approach limits the information bandwidth necessary for robust compositional generalization. By transitioning to vector-based representations, where each latent factor is represented by a multi-dimensional vector, the authors achieve a 51% average improvement in compositional generalization across various model architectures on the Shapes3D benchmark.

Introduction: The Compositional Generalization Paradox

Humans possess an innate ability for compositional generalization—the capacity to recognize novel combinations of known concepts, such as a "red sphere," even if that specific pairing has never been encountered. In machine learning, this is typically pursued through disentangled representation learning, aiming to map specific neurons to independent real-world factors like color or shape.

However, a paradox has emerged: higher disentanglement scores often correlate with poorer performance on downstream tasks involving novel combinations. Most existing models represent each factor as a single scalar value. This research investigates whether this scalar bottleneck is the primary obstacle to achieving human-like flexibility in AI.

Methodology: From Scalars to Vectors

The core proposal is a shift from scalar-based to vector-based latent representations. Instead of a single neuron encoding "color," a group of neurons (a vector) is dedicated to the concept. This approach is inspired by population coding in neuroscience, where information is represented by the collective activity of neuronal groups.

Architectural comparison between scalar-based and vector-based representations across VAE, Structure-based, and Transformer-based models.

The authors applied this vectorization to three major framework types:

  1. Variational Autoencoders (VAEs): Models like $\beta$-TCVAE and FactorVAE were modified to output vectors for each latent factor. Loss functions (KL divergence and Total Correlation) were reformulated to maintain disentanglement at the vector level.
  2. Structure-based Autoencoders (SAE): Encoded scalars were replaced with vectors, integrated into an AdaIn-like decoder structure.
  3. Transformers: Naturally vector-based models like Visual Concept Tokenization (VCT) were analyzed, and conversely, "scalarized" to observe performance degradation.

Experimental Setup and Datasets

The study utilized two standard benchmarks:

  • Shapes3D: A synthetic dataset featuring 6 ground-truth factors (e.g., floor color, object shape).
  • MPI3D-Real: Images of a robotic arm with 7 controlled factors.

To rigorously test compositional generalization, a 1:9 train-test split was employed, ensuring the test set contained factor combinations entirely absent from the training data.

Key Results and Insights

The transition to vector-based representations yielded substantial performance gains. Vectorized versions of $\beta$-TCVAE, FactorVAE, and SAE demonstrated an average 51% increase in compositional generalization on the Shapes3D dataset compared to their scalar counterparts.

Performance metrics (R2, ACC, DCI, FactorVAE) as a function of vector dimension, showing the benefits of increased bandwidth.

The Bandwidth Benefit

Scalar representations are inherently "information-poor." Vectors provide the necessary "bandwidth" to capture the subtle nuances of a concept, which is critical for both accurate reconstruction and generalization to new contexts. Importantly, the authors demonstrated that these gains are not merely due to an increase in total parameters; the specific grouping of dimensions into concept-specific vectors is the driving force.

Resolving the Trade-off

Contrary to previous findings of a trade-off between disentanglement and generalization, this study shows that for vector-based methods, there is a positive correlation between disentanglement and classification-based generalization. This suggests that vectorization aligns better with the underlying structure of the data.

Conclusion and Future Work

This research identifies vector-based representation as a critical component for bridging the gap between disentanglement and compositional generalization. While highly effective on controlled datasets like Shapes3D and MPI3D-Real, future work is needed to scale these methods to complex, high-dimensional natural datasets where the number of underlying factors is unknown. Investigating the broader societal implications of models capable of sophisticated concept recomposition remains a priority.

Summary updated

BibTeX
@misc{yang2023vector,
  author = {Tao Yang and Yuwang Wang and Cuiling Lan and Yan Lu and Nanning Zheng},
  title = {{Vector-based Representation is the Key: A Study on Disentanglement and Compositional Generalization}},
  year = {2023},
  eprint = {2305.18063},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18063},
}
Figure