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

Necessary Conditions for Compositional Generalization in Visual Models

Arnas Uselis, Andrea Dittadi, Seong Joon OhOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

To recognize a "person on a cat" after only seeing a "cat on a person," a model’s internal "brain" needs a specific geometric structure. This paper proves that for a model to generalize to novel combinations of concepts, its embeddings must be linearly factorized (decomposable into a sum of parts) and near-orthogonal (different concepts shouldn't overlap).

What Problem Does This Paper Address?

The world is combinatorially explosive. There are more combinations of objects, attributes, and relations than any dataset could ever hope to cover. While modern Vision-Language Models (VLMs) like CLIP are impressive, they often stumble when faced with "unusual" combinations—like a purple lemon or a person being carried by a cat.

The researchers wanted to move beyond just observing that models fail. They asked a fundamental theoretical question: If a model were to succeed at compositional generalization, what must its internal representations look like? By establishing these "necessary conditions," they provide a geometric blueprint for what makes a model truly "intelligent" in its ability to recombine learned concepts.

Methods

The authors approach the problem by defining three "non-negotiable" desiderata (requirements) for any system claiming to be compositional:

  1. Divisibility: Every possible combination of concepts must be representable and classifiable in the embedding space.
  2. Transferability: A classifier trained on a tiny subset of combinations must work on the full set.
  3. Stability: Retraining the model on a different subset of data shouldn't radically flip its predictions or confidence.

Using these rules, they mathematically prove that under standard training regimes (Gradient Descent with Cross-Entropy loss), a model must develop a linearly factorized geometry. This means an image's embedding should essentially be the sum of vectors representing its constituent parts (e.g., $z_{image} \approx v_{cat} + v_{orange} + v_{sitting}$).

They also establish a dimension bound: to represent $k$ independent concepts, the embedding space needs at least $k$ dimensions. Finally, they developed a "whitened $R^2$ score" to measure how much of a real-world model's embedding variance is explained by this linear sum.

Datasets

The study evaluates several families of pretrained models (OpenAI CLIP, OpenCLIP, SigLIP, and SigLIP 2) across four key compositional benchmarks:

  • PUG-Animal: Photorealistic synthetic images with controllable factors like animal type, texture, and background.
  • dSprites: A classic benchmark of 2D shapes with varying scale, rotation, and position.
  • MPI3D: 3D objects on a robotic arm with controlled physical properties.
  • ImageNet-AO: A dataset specifically designed to test "Attribute-Object" combinations (e.g., a "wicker" "bus").

Key Insights and Ideas

  • Linearity is a Requirement, Not an Accident: The "Linear Representation Hypothesis"—the idea that models represent concepts as directions in space—is often treated as a curious empirical finding. This paper argues it is a mathematical necessity for stable compositional transfer.
  • Orthogonality as "Non-Interference": For a model to understand "red" and "square" independently, the "red" vector and the "square" vector must be near-orthogonal. If they overlap, changing the color of an object would accidentally change the model's perception of its shape.
  • The Geometry of "Rare" Combinations: The paper shows that for zero-shot transfer to work, the model must treat unseen combinations as simple additive shifts from seen ones. If the geometry is "tangled" or non-linear, the model can't "calculate" where an unseen combination should live in its embedding space.

Key Results

  • The "Linearity-Accuracy" Link: Across all models and datasets, there is a tight correlation between a model's $R^2$ score (how linear its representations are) and its compositional accuracy. Models that are "more linear" generalize better.
  • Partial Success: Current state-of-the-art models like SigLIP 2 only partially satisfy these conditions, with $R^2$ scores typically between 0.4 and 0.6. This gap explains why they still struggle with complex compositional tasks.
  • Low-Dimensional Factors: Most semantic concepts (like "size" or "position") are represented in very low-dimensional subspaces (often 1D or 2D), allowing the model to "pack" many concepts into a single embedding.
  • Empirical Orthogonality: Pretrained models show much higher orthogonality between different concepts (~0.12 cosine similarity) compared to randomly initialized models (~0.39), proving that training naturally pushes concepts apart to avoid interference.

Limitations and Future Work

The authors acknowledge a few key boundaries to their current work:

  • Linear Readouts: The theory focuses on models with linear classification heads (like CLIP). While this covers most "foundation models," it doesn't explicitly account for models using complex non-linear decoders.
  • The "Binding" Problem: The current framework treats concepts as a "bag of properties." It doesn't yet fully address how models handle complex spatial relations (e.g., "the cat is inside the box" vs. "the cat is on the box").
  • Training Recipes: While the paper identifies what the representations should look like, it doesn't prescribe a specific new loss function to force this geometry during training—leaving that as a promising path for future research.

Summary updated

BibTeX
@misc{uselis2026necessary,
  author = {Arnas Uselis and Andrea Dittadi and Seong Joon Oh},
  title = {{Necessary Conditions for Compositional Generalization in Visual Models}},
  year = {2026},
  url = {https://openreview.net/forum?id=yi06ZiVl2H},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure