Universal Neurons in GPT2 Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Gurnee, Wes, Horsley, Theo, Guo, Zifan Carl, Kheirkhah, Tara Rezaei, Sun, Qinyi, Hathaway, Will, Nanda, Neel, Bertsimas, Dimitris
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916101965742080
author Gurnee, Wes
Horsley, Theo
Guo, Zifan Carl
Kheirkhah, Tara Rezaei
Sun, Qinyi
Hathaway, Will
Nanda, Neel
Bertsimas, Dimitris
author_facet Gurnee, Wes
Horsley, Theo
Guo, Zifan Carl
Kheirkhah, Tara Rezaei
Sun, Qinyi
Hathaway, Will
Nanda, Neel
Bertsimas, Dimitris
contents A basic question within the emerging field of mechanistic interpretability is the degree to which neural networks learn the same underlying mechanisms. In other words, are neural mechanisms universal across different models? In this work, we study the universality of individual neurons across GPT2 models trained from different initial random seeds, motivated by the hypothesis that universal neurons are likely to be interpretable. In particular, we compute pairwise correlations of neuron activations over 100 million tokens for every neuron pair across five different seeds and find that 1-5\% of neurons are universal, that is, pairs of neurons which consistently activate on the same inputs. We then study these universal neurons in detail, finding that they usually have clear interpretations and taxonomize them into a small number of neuron families. We conclude by studying patterns in neuron weights to establish several universal functional roles of neurons in simple circuits: deactivating attention heads, changing the entropy of the next token distribution, and predicting the next token to (not) be within a particular set.
format Preprint
id arxiv_https___arxiv_org_abs_2401_12181
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Universal Neurons in GPT2 Language Models
Gurnee, Wes
Horsley, Theo
Guo, Zifan Carl
Kheirkhah, Tara Rezaei
Sun, Qinyi
Hathaway, Will
Nanda, Neel
Bertsimas, Dimitris
Machine Learning
Artificial Intelligence
Computation and Language
A basic question within the emerging field of mechanistic interpretability is the degree to which neural networks learn the same underlying mechanisms. In other words, are neural mechanisms universal across different models? In this work, we study the universality of individual neurons across GPT2 models trained from different initial random seeds, motivated by the hypothesis that universal neurons are likely to be interpretable. In particular, we compute pairwise correlations of neuron activations over 100 million tokens for every neuron pair across five different seeds and find that 1-5\% of neurons are universal, that is, pairs of neurons which consistently activate on the same inputs. We then study these universal neurons in detail, finding that they usually have clear interpretations and taxonomize them into a small number of neuron families. We conclude by studying patterns in neuron weights to establish several universal functional roles of neurons in simple circuits: deactivating attention heads, changing the entropy of the next token distribution, and predicting the next token to (not) be within a particular set.
title Universal Neurons in GPT2 Language Models
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2401.12181