Identification of Knowledge Neurons in Protein Language Models

Divya Nori, Shivali Singireddy, Marina Ten Have
12/17/2023
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Neural language models have become powerful tools for learning complex representations of entities in natural language processing tasks. However, their interpretability remains a significant challenge, particularly in domains like computational biology where trust in model predictions is crucial. In this work, we aim to enhance the interpretability of protein language models, specifically the state-of-the-art ESM model, by identifying and characterizing knowledge neurons - components that express understanding of key information. After fine-tuning the ESM model for the task of enzyme sequence classification, we compare two knowledge neuron selection methods that preserve a subset of neurons from the original model. The two methods, activation-based and integrated gradient-based selection, consistently outperform a random baseline. In particular, these methods show that there is a high density of knowledge neurons in the key vector prediction networks of self-attention modules. Given that key vectors specialize in understanding different features of input sequences, these knowledge neurons could capture knowledge of different enzyme sequence motifs. In the future, the types of knowledge captured by each neuron could be characterized.

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. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

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

Cite this paper

@article{nori2023identification,
  title  = {Identification of Knowledge Neurons in Protein Language Models},
  author = {Divya Nori and Shivali Singireddy and Marina Ten Have},
  year   = {2023},
  eprint = {2312.10770},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.10770v1}
}

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

Discussion