Deciphering the Role of Representation Disentanglement: Investigating Compositional Generalization in CLIP Models
Reza Abbasi, Mohammad Hossein Rohban, Mahdieh Soleymani Baghshah
TL;DR
This work tackles compositional OoD generalization in CLIP models by introducing ImageNet-AO, a benchmark of unseen attribute–object combinations designed to be novel relative to CLIP training data. It shows that CLIP models pretrained on large, well-curated datasets exhibit stronger C-OoD performance, and that strong text and image representation disentanglement—especially in the text space and its transfer to the image space via contrastive learning—correlates with improved C-OoD generalization. The authors formalize and measure disentanglement using multiple metrics (including Z-diff, Explicitness, and completeness) and demonstrate that intrinsic dimensionality of composition representations declines as C-OoD accuracy rises, indicating more compact, decomposed representations. Through text–image retrieval experiments and analysis on Shapes3D/Sprites, they argue that decomposable, disentangled representations enable more robust compositional reasoning, offering a principled direction for boosting OoD generalization in vision–language models and informing dataset curation strategies.
Abstract
CLIP models have recently shown to exhibit Out of Distribution (OoD) generalization capabilities. However, Compositional Out of Distribution (C-OoD) generalization, which is a crucial aspect of a model's ability to understand unseen compositions of known concepts, is relatively unexplored for the CLIP models. Our goal is to address this problem and identify the factors that contribute to the C-OoD in CLIPs. We noted that previous studies regarding compositional understanding of CLIPs frequently fail to ensure that test samples are genuinely novel relative to the CLIP training data. To this end, we carefully synthesized a large and diverse dataset in the single object setting, comprising attributes for objects that are highly unlikely to be encountered in the combined training datasets of various CLIP models. This dataset enables an authentic evaluation of C-OoD generalization. Our observations reveal varying levels of C-OoD generalization across different CLIP models. We propose that the disentanglement of CLIP representations serves as a critical indicator in this context. By utilizing our synthesized datasets and other existing datasets, we assess various disentanglement metrics of text and image representations. Our study reveals that the disentanglement of image and text representations, particularly with respect to their compositional elements, plays a crucial role in improving the generalization of CLIP models in out-of-distribution settings. This finding suggests promising opportunities for advancing out-of-distribution generalization in CLIPs.
