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

Compositional Generalization Requires Linear, Orthogonal Representations in Vision Embedding Models

Arnas Uselis, Andrea Dittadi, Seong Joon Oh

Modern vision models are trained on massive datasets, yet they still encounter only a tiny fraction of the combinatorial possibilities of objects, attributes, and relations in the real world. While a model might know what "pink" looks like and what a "cat" looks like, it often fails to identify a "pink cat" if that specific combination was absent during training.

This paper addresses a fundamental question: What must be true about a model's internal embedding space for it to successfully generalize to unseen combinations? The authors prove that compositional generalization—the ability to recombine known parts into novel wholes, such as recognizing "a person on a cat" after only seeing "a cat on a person"—mathematically requires embeddings to be linearly factorized and orthogonal across different concepts.

The Theoretical Framework: Three Desiderata

To formalize this problem, the researchers define three "desiderata" for any model claiming to generalize compositionally:

  1. Divisibility: The embedding space must be large enough to represent every possible combination of concepts.
  2. Transferability: A classifier trained on a small subset of combinations must correctly predict concepts across the full combinatorial space.
  3. Stability: Retraining the model on different valid subsets of data should not fundamentally alter its concept predictions.

The Geometric Imperative

Using these requirements, the authors provide a theoretical proof showing that under standard training dynamics (Gradient Descent with Cross-Entropy loss), these conditions force the embedding space into a specific geometry.

First, it requires linear factorization, meaning an embedding is the literal sum of its parts. Second, it requires cross-concept orthogonality, where the "direction" of one concept (like color) is perpendicular to another (like shape). This orthogonality prevents "crosstalk" or interference; if the "redness" direction were not orthogonal to the "squareness" direction, changing an object's color might accidentally alter the model's perception of its shape.

This grounds the well-known "Linear Representation Hypothesis" not merely as an empirical observation, but as a mathematical necessity for robust generalization. Furthermore, it establishes a lower bound on embedding size: to distinguish $k$ independent concepts, the embedding dimension $d$ must be at least $k$.

Empirical Evaluation

To test this theory, the authors developed a Projected $R^2$ metric to measure how much of a model's embedding variance can be explained by a simple linear sum of concept factors. They evaluated a wide range of pretrained models—including vision-language models like CLIP and SigLIP, and self-supervised vision models like DINO—across several compositional benchmarks:

  • dSprites: A classic benchmark with 6 latent concepts (shape, scale, orientation, etc.).
  • MPI3D: A dataset of 3D-rendered objects with 7 concepts.
  • PUG-Animal: A complex, photorealistic dataset featuring animals in various environments with 4 main concepts.
  • ImageNet-AO: A zero-shot benchmark of unusual Adjective-Object pairs (e.g., "moss-covered hippopotamus").

Key Findings

The empirical results strongly support the theoretical claims. There is a robust positive correlation between a model's Projected $R^2$ (how linear its representations are) and its compositional accuracy on unseen combinations. Simply put, models that organize their space more linearly generalize better.

Interestingly, different model families seem to be converging toward the same geometric structure as they scale, despite being trained with different objectives. However, current state-of-the-art models (like SigLIP2) only partially satisfy these conditions, with $R^2$ scores typically between 0.4 and 0.6. This gap suggests that today's models still rely heavily on memorizing specific combinations rather than truly understanding underlying components. Additionally, individual concepts are usually captured in very low-dimensional subspaces (often $\le 4$ principal components), allowing many concepts to be packed into a single embedding.

Limitations and Future Directions

The authors note a few limitations to their framework. The theory relies on an idealized definition of "Stability," whereas real-world training is stochastic; relaxing this to "approximate stability" is a logical next step. The study also assumes a fixed encoder with a linear readout, leaving room to explore how the encoder itself evolves during training to satisfy these constraints. Finally, while linear sums work well for independent attributes, complex relations (e.g., "A is inside B") may require more sophisticated geometric structures than simple additive factorization.

Summary updated

BibTeX
@inproceedings{uselis2026compositional,
  author = {Arnas Uselis and Andrea Dittadi and Seong Joon Oh},
  title = {{Compositional Generalization Requires Linear, Orthogonal Representations in Vision Embedding Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=AQZZWVp6XA},
}
Figure