Reproduce “Disentangling visual and written concepts in CLIP” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Joanna Materzynska, Antonio Torralba, David Bau

Researchers at MIT and Harvard developed a method using orthogonal linear projections to separate CLIP's internal representations of natural visual concepts from written words, even recognizing nonsense strings. This disentanglement suppresses unwanted text generation in CLIP-guided image models and boosts robustness against typographic attacks, increasing classification accuracy on attacked images from 49.4% to 77.2%.

Key insights

  • CLIP's image encoder possesses a robust capability to process letter sequences, including nonsense strings, somewhat independently of semantic meaning, in addition to correlating written words with visual concepts.
  • Orthogonal linear projections can effectively disentangle specific functional capabilities within complex multimodal models, allowing for targeted manipulation of representations without significant information loss.
  • Selectively enhancing or suppressing text representations within CLIP's image encoder offers direct control over its behavior in text-to-image generation and classification tasks, demonstrating improved interpretability and robustness.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.