Parts of Speech-Grounded Subspaces in Vision-Language Models

James Oldfield, Christos Tzelepis, Yannis Panagakis, Mihalis A. Nicolaou, Ioannis Patras
5/23/2023
cs.CVcs.LG

No official code found. Best implementation: james-oldfield/PoS-subspaces (29 stars, last commit 2024-02-25).

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.

View on arXivView PDF

Code Implementations(1)

[NeurIPS'23] Parts of Speech–Grounded Subspaces in Vision-Language Models

292Shell, PythonMay 22, 20232 years ago
text-to-imagevision-language

Similar Papers

Cite this paper

@article{oldfield2023parts,
  title  = {Parts of Speech-Grounded Subspaces in Vision-Language Models},
  author = {James Oldfield and Christos Tzelepis and Yannis Panagakis and Mihalis A. Nicolaou and Ioannis Patras},
  year   = {2023},
  eprint = {2305.14053},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.14053v2},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.14053.svg)](https://codeofpaper.com/paper/2305.14053)

Discussion