Multimodal Neurons in Pretrained Text-Only Transformers

Sarah Schwettmann, Neil Chowdhury, Samuel Klein, David Bau, Antonio Torralba
8/3/2023
cs.CVcs.CL
transformer-attention

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Language models demonstrate remarkable capacity to generalize representations learned in one modality to downstream tasks in other modalities. Can we trace this ability to individual neurons?

Show full abstract

We study the case where a frozen text transformer is augmented with vision using a self-supervised visual encoder and a single linear projection learned on an image-to-text task. Outputs of the projection layer are not immediately decodable into language describing image content; instead, we find that translation between modalities occurs deeper within the transformer. We introduce a procedure for identifying "multimodal neurons" that convert visual representations into corresponding text, and decoding the concepts they inject into the model's residual stream. In a series of experiments, we show that multimodal neurons operate on specific visual concepts across inputs, and have a systematic causal effect on image captioning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{schwettmann2023multimodal,
  title  = {Multimodal Neurons in Pretrained Text-Only Transformers},
  author = {Sarah Schwettmann and Neil Chowdhury and Samuel Klein and David Bau and Antonio Torralba},
  year   = {2023},
  eprint = {2308.01544},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.01544v2}
}

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/2308.01544.svg)](https://codeofpaper.com/paper/2308.01544)

Discussion