N2G: A Scalable Approach for Quantifying Interpretable Neuron Representations in Large Language Models

Alex Foote, Neel Nanda, Esben Kran, Ionnis Konstas, Fazl Barez
4/22/2023
cs.LG

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

Abstract

Understanding the function of individual neurons within language models is essential for mechanistic interpretability research. We propose $\textbf{Neuron to Graph (N2G)}$, a tool which takes a neuron and its dataset examples, and automatically distills the neuron's behaviour on those examples to an interpretable graph. This presents a less labour intensive approach to interpreting neurons than current manual methods, that will better scale these methods to Large Language Models (LLMs). We use truncation and saliency methods to only present the important tokens, and augment the dataset examples with more diverse samples to better capture the extent of neuron behaviour. These graphs can be visualised to aid manual interpretation by researchers, but can also output token activations on text to compare to the neuron's ground truth activations for automatic validation. N2G represents a step towards scalable interpretability methods by allowing us to convert neurons in an LLM to interpretable representations of measurable quality.

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. 2 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{foote2023ng,
  title  = {N2G: A Scalable Approach for Quantifying Interpretable Neuron Representations in Large Language Models},
  author = {Alex Foote and Neel Nanda and Esben Kran and Ionnis Konstas and Fazl Barez},
  year   = {2023},
  eprint = {2304.12918},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.12918v1}
}

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

Discussion