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

Deciphering the Role of Representation Disentanglement: Investigating Compositional Generalization in CLIP Models

Reza Abbasi, Mohammad Hossein Rohban, Mahdieh Soleymani Baghshah · DOI

Introduction

Vision-Language Models (VLMs), particularly CLIP, have demonstrated remarkable zero-shot capabilities across various tasks. However, their ability to generalize to Compositional Out-of-Distribution (C-OoD) scenarios—recognizing novel combinations of known concepts, such as a "transparent cash machine"—remains a significant challenge. A primary hurdle in studying this phenomenon is the "data contamination" inherent in web-scale training; it is often difficult to ascertain whether a model is truly reasoning compositionally or simply recalling a specific combination encountered during training on billions of images.

This research investigates the underlying mechanisms of compositional generalization, introducing a rigorous new benchmark, ImageNet-AO, and identifying representation disentanglement as a critical factor in a model's ability to handle unseen concept combinations.

The ImageNet-AO Benchmark

To address the limitations of existing datasets, the authors developed ImageNet-AO (Attribute-Object), a dataset comprising approximately 60,000 images across 23,000 unique, rare combinations. To ensure these combinations were truly "unseen" by the models under evaluation, a multi-stage synthesis and filtering pipeline was employed:

  1. Generation: Images were synthesized using SD-XL Turbo.
  2. Human Validation: Verification that images accurately depicted the requested attribute-object pairs.
  3. Novelty Filtering: Any combination appearing in public training sets (e.g., LAION, CommonPool) was removed.
  4. Visual Similarity Filtering: Faiss-based similarity searches ensured the generated images were not near-duplicates of existing training data.

Representation Disentanglement and Compositionality

The core hypothesis of this work is that compositional generalization is driven by representation disentanglement—the degree to which a model stores distinct concepts (like "red" and "square") in independent "slots" or subspaces within its embedding space.

The Role of the Text Encoder

The study finds that disentanglement is primarily initiated in the text encoder. Because language is inherently discrete, the text encoder learns to separate concepts into distinct units. Through the contrastive learning objective, this disentangled structure is "transferred" to the image encoder, aligning visual features with these independent linguistic concepts.

Measuring Disentanglement

The researchers utilized several metrics to quantify this property:

  • Z-Diff, DCI, and Explicitness: Standard metrics for measuring how well individual latent dimensions correspond to specific generative factors.
  • Soft Rank: A measure of intrinsic dimensionality. The authors discovered that models with higher C-OoD performance typically exhibit a lower soft rank, suggesting they compress information into more efficient, independent subspaces rather than entangled, high-dimensional representations.

Key Findings

The investigation yielded several critical insights into the behavior of modern VLMs:

  1. Correlation with Generalization: There is a strong positive correlation between a model's level of disentanglement and its accuracy on ImageNet-AO. Models that "tangle" concepts (e.g., using overlapping neurons for "color" and "shape") fail when those concepts appear in novel configurations.
  2. Vector Orthogonality: In high-performing models (such as those using EVA02 or ViT-bigG architectures trained on LAION-2B or DataComp-XL), the vectors for adjectives and nouns are nearly orthogonal. This allows the model to represent a new composition by simply summing the constituent vectors without interference.
  3. The SigLIP Paradox: Some models, notably those trained using the SigLIP objective on WebLI, showed high in-distribution accuracy but significantly lower C-OoD performance. This suggests that optimizing for standard benchmarks may sometimes lead to "shortcut" learning that sacrifices true compositional understanding.

Conclusion and Future Directions

This research demonstrates that for VLMs to achieve human-like flexibility in visual understanding, they must maintain disentangled representations of the world. While current contrastive learning objectives encourage this to some extent, the results suggest that explicitly forcing disentanglement during training could lead to more robust models.

Limitations of the current study include a focus on single-object attribute pairs and the use of synthetic data. Future work should explore more complex scenes involving multiple objects and spatial relationships, as well as methods to further decouple representations in increasingly large-scale models.

Summary updated

BibTeX
@inproceedings{abbasi2024deciphering,
  author = {Reza Abbasi and Mohammad Hossein Rohban and Mahdieh Soleymani Baghshah},
  title = {{Deciphering the Role of Representation Disentanglement: Investigating Compositional Generalization in CLIP Models}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73024-5\_3},
}
Figure