Finding and Editing Multi-Modal Neurons in Pre-Trained Transformers

Haowen Pan, Yixin Cao, Xiaozhi Wang, Xun Yang, Meng Wang
11/13/2023
52 citations
cs.CL
transformer-attention

Official code: opanhw/MM_Neurons (13 stars, Python, MIT, last commit 2025-08-28).

Abstract

Understanding the internal mechanisms by which multi-modal large language models (LLMs) interpret different modalities and integrate cross-modal representations is becoming increasingly critical for continuous improvements in both academia and industry. In this paper, we propose a novel method to identify key neurons for interpretability -- how multi-modal LLMs bridge visual and textual concepts for captioning.

Show full abstract

Our method improves conventional works upon efficiency and applied range by removing needs of costly gradient computation. Based on those identified neurons, we further design a multi-modal knowledge editing method, beneficial to mitigate sensitive words or hallucination. For rationale of our design, we provide theoretical assumption. For empirical evaluation, we have conducted extensive quantitative and qualitative experiments. The results not only validate the effectiveness of our methods, but also offer insightful findings that highlight three key properties of multi-modal neurons: sensitivity, specificity and causal-effect, to shed light for future research.

View on arXivView PDF

Code Implementations(1)

opanhw/MM_NeuronsOfficial100%
MIT

Code for "Finding and Editing Multi-Modal Neurons in Pre-Trained Transformers" (Findings of ACL 2024)

132PythonMay 16, 20241 years agoMIT

Similar Papers

Cite this paper

@article{pan2023finding,
  title  = {Finding and Editing Multi-Modal Neurons in Pre-Trained Transformers},
  author = {Haowen Pan and Yixin Cao and Xiaozhi Wang and Xun Yang and Meng Wang},
  year   = {2023},
  eprint = {2311.07470},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.07470v2}
}

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

Discussion