Multimodal Neurons in Pretrained Text-Only Transformers

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? 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. Project page: mmns.csail.mit.edu

Cite

Text

Schwettmann et al. "Multimodal Neurons in Pretrained Text-Only Transformers." IEEE/CVF International Conference on Computer Vision Workshops, 2023. doi:10.1109/ICCVW60793.2023.00308

Markdown

[Schwettmann et al. "Multimodal Neurons in Pretrained Text-Only Transformers." IEEE/CVF International Conference on Computer Vision Workshops, 2023.](https://mlanthology.org/iccvw/2023/schwettmann2023iccvw-multimodal/) doi:10.1109/ICCVW60793.2023.00308

BibTeX

@inproceedings{schwettmann2023iccvw-multimodal,
  title     = {{Multimodal Neurons in Pretrained Text-Only Transformers}},
  author    = {Schwettmann, Sarah and Chowdhury, Neil and Klein, Samuel and Bau, David and Torralba, Antonio},
  booktitle = {IEEE/CVF International Conference on Computer Vision Workshops},
  year      = {2023},
  pages     = {2854-2859},
  doi       = {10.1109/ICCVW60793.2023.00308},
  url       = {https://mlanthology.org/iccvw/2023/schwettmann2023iccvw-multimodal/}
}