Abstract
Latent image representations arising from vision-language models have proved immensely useful for a variety of downstream tasks. However, their utility is limited by their entanglement with respect to different visual attributes. For instance, recent work has shown that CLIP image representations are often biased toward specific visual properties (such as objects or actions) in an unpredictable manner. In this paper, we propose to separate representations of the different visual modalities in CLIP's joint vision-language space by leveraging the association between parts of speech and specific visual modes of variation (e.g. nouns relate to objects, adjectives describe appearance). This is achieved by formulating an appropriate component analysis model that learns subspaces capturing variability corresponding to a specific part of speech, while jointly minimising variability to the rest. Such a subspace yields disentangled representations of the different visual properties of an image or text in closed form while respecting the underlying geometry of the manifold on which the representations lie. What's more, we show the proposed model additionally facilitates learning subspaces corresponding to specific visual appearances (e.g. artists' painting styles), which enables the selective removal of entire visual themes from CLIP-based text-to-image synthesis. We validate the model both qualitatively, by visualising the subspace projections with a text-to-image model and by preventing the imitation of artists' styles, and quantitatively, through class invariance metrics and improvements to baseline zero-shot classification.
Introduction: The Entanglement Problem
Vision-Language Models (VLMs) like CLIP are the backbone of modern AI, powering everything from image search to generative models. However, CLIP’s internal representations are often "entangled." For example, a prompt for "Vincent Van Gogh" is visually polysemous: it might lead a generative model to create a portrait of the man himself (noun-heavy) or a landscape in his signature style (adjective-heavy). This lack of control makes models vulnerable to "typographic attacks" and complicates generative tasks where specific attributes need to be isolated.
Methodology: Learning PoS-Grounded Subspaces
The core innovation of this work is using the inherent structure of human language—specifically parts of speech (PoS)—to organize visual features. Nouns naturally map to objects, while adjectives map to appearance and style.
The researchers developed a geometry-aware method to learn these subspaces:
- PoS Supervision: They use the WordNet database to gather large lists of words categorized as nouns, adjectives, verbs, and adverbs.
- Trace Maximization: They formulate a mathematical objective to find a subspace that captures the maximum variance for a target category (e.g., nouns) while simultaneously minimizing the variance for "nuisance" categories (e.g., adjectives).
- Manifold Awareness: CLIP embeddings live on a hypersphere. To respect this geometry, the analysis is performed in the tangent space of the data's intrinsic mean, creating "geodesic submanifolds."
- Closed-Form Efficiency: Unlike many deep learning methods, this approach has a closed-form solution that can be solved in seconds on a standard GPU.
Style Blocking and Theme Removal
A powerful application of this method is the ability to "erase" specific visual themes. By projecting a prompt onto the orthogonal complement of an "artist subspace," the model can be prevented from imitating a specific style while still generating the intended subject (e.g., a mountain or the Eiffel Tower).
This "style blocking" addresses major ethical and copyright concerns in the AI art community. Remarkably, a subspace trained on a general list of artists can successfully block the style of an artist not in the training set, proving the model learns a general concept of "artistic style" rather than just memorizing names.
Key Results and Evaluation
- Improved Accuracy: Using the "noun submanifold" for zero-shot classification improved Top-1 accuracy on 14 out of 15 tested datasets compared to standard CLIP.
- Visual Separation: In generative tasks, the model successfully separated the person from the style. For the prompt "Claude Monet," the noun-complement projection produced paintings in his style, while the adjective-complement projection produced portraits of the man himself.
- Theme Removal: The authors demonstrated the ability to remove "gore" from generated images or prevent the imitation of famous painters like Rothko or Lichtenstein by projecting prompts onto the complement of the adjective space.
Conclusion and Future Directions
By grounding visual subspaces in linguistic parts of speech, this research provides a mathematically elegant and computationally efficient way to disentangle CLIP's latent space. While challenges remain—such as handling intra-PoS polysemy (e.g., "crane" the bird vs. "crane" the machine) or manually selecting subspace dimensions—this approach opens new doors for safer, more controllable vision-language models.
Summary updated