Improving Neuron-level Interpretability with White-box Language Models

Hao Bai, Yi Ma
10/21/2024
3 citations
cs.CLcs.LG
transformer-attention

No official code found. Best implementation: crate-lm/crate-lm (6 stars, Jupyter Notebook, MIT, last commit 2025-02-25).

Abstract

Neurons in auto-regressive language models like GPT-2 can be interpreted by analyzing their activation patterns. Recent studies have shown that techniques such as dictionary learning, a form of post-hoc sparse coding, enhance this neuron-level interpretability.

Show full abstract

In our research, we are driven by the goal to fundamentally improve neural network interpretability by embedding sparse coding directly within the model architecture, rather than applying it as an afterthought. In our study, we introduce a white-box transformer-like architecture named Coding RAte TransformEr (CRATE), explicitly engineered to capture sparse, low-dimensional structures within data distributions. Our comprehensive experiments showcase significant improvements (up to 103% relative improvement) in neuron-level interpretability across a variety of evaluation metrics. Detailed investigations confirm that this enhanced interpretability is steady across different layers irrespective of the model size, underlining CRATE's robust performance in enhancing neural network interpretability. Further analysis shows that CRATE's increased interpretability comes from its enhanced ability to consistently and distinctively activate on relevant tokens. These findings point towards a promising direction for creating white-box foundation models that excel in neuron-level interpretation.

View on arXivView PDF

Code Implementations(1)

crate-lm/crate-lmCommunity68%
MIT

Official Repository of the Paper "Improving Neuron-level Interpretability with White-box Language Models".

62Jupyter Notebook, PythonOct 17, 20241 years agoMIT

Similar Papers

Cite this paper

@article{bai2024improving,
  title  = {Improving Neuron-level Interpretability with White-box Language Models},
  author = {Hao Bai and Yi Ma},
  year   = {2024},
  eprint = {2410.16443},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.16443v4}
}

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

Discussion