SAFR: Neuron Redistribution for Interpretability
Ruidi Chang, Chunyuan Deng, Hanjie Chen
TL;DR
SAFR tackles interpretability in neural networks by explicitly redistributing neuron usage through two regularizations: monosemantic emphasis for important tokens via a VMASK-based mechanism and polysemantic encouragement for correlated token pairs using attention weights. The joint loss $\mathcal{L}= \mathcal{L}_{\mathrm{CE}} + \lambda_{\mathrm{Imp}} \mathcal{L}_{\mathrm{Imp}} + \lambda_{\mathrm{Inter}} \mathcal{L}_{\mathrm{Inter}}$ guides the model to separate salient features across neurons while preserving interactions. Experiments on SST-2 and IMDB show improved interpretability, quantified by the Superposition Regularization Score (SRS), with minimal impact on accuracy and with clear visualizations of neuron allocation in FFN layers. This work advances mechanistic interpretability in NLP by making neuron utilization more interpretable and amenable to visualization, and it opens avenues for scaling SAFR to larger architectures and broader tasks.
Abstract
Superposition refers to encoding representations of multiple features within a single neuron, which is common in deep neural networks. This property allows neurons to combine and represent multiple features, enabling the model to capture intricate information and handle complex tasks. Despite promising performance, the model's interpretability has been diminished. This paper presents a novel approach to enhance model interpretability by regularizing feature superposition. We introduce SAFR, which simply applies regularizations to the loss function to promote monosemantic representations for important tokens while encouraging polysemanticity for correlated token pairs, where important tokens and correlated token pairs are identified via VMASK and attention weights respectively. We evaluate SAFR with a transformer model on two classification tasks. Experiments demonstrate the effectiveness of SAFR in improving model interpretability without compromising prediction performance. Besides, SAFR provides explanations by visualizing the neuron allocation within the intermediate layers.
