about
Improving Neuron-Level Interpretability with White-Box Language Models (arxiv.org)
3 points by PaulHoule on Nov 3, 2024 | hide | past | pdf | discuss on HN

In plain words: Rather than compressing a model's neurons afterward to interpret them, this design builds that compression into the network itself, so each neuron fires on clearer patterns. It made neurons up to 103% easier to interpret than the usual after-the-fact cleanup, across layers and sizes.

Abstract · Improving Neuron-level Interpretability with White-box Language Models

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. 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.

Hao Bai, Yi Ma
arXiv:2410.16443 · cs.CL, cs.LG · submitted Oct 21, 2024 · updated Feb 27, 2025
abstract · pdf · html · CPAL 2025 camera-ready version. Selected as Oral

add comment on HN