本文提出 Neuron to Graph(N2G),利用截断、显著性与数据增强将 LLM 神经元行为自动蒸馏为可解释图,并支持可视化与基于激活的自动验证。
摘要:
理解语言模型中单个神经元的功能对于机制可解释性研究至关重要。我们提出了 Neuron to Graph(N2G),这是一种工具,它接收一个神经元及其数据集示例,并自动将该神经元在这些示例上的行为蒸馏为一个可解释的图。与当前的人工方法相比,这提供了一种劳动密集度更低的神经元解释方法,将使这些方法更好地扩展到大型语言模型(LLM)。我们使用截断和显著性方法,仅呈现重要的 token,并通过更多样化的样本来增强数据集示例,以更好地捕捉神经元行为的范围。这些图可以被可视化,以帮助研究人员进行人工解释,但也可以输出文本上的 token 激活,与神经元的真实激活进行比较,从而实现自动验证。N2G 代表了迈向可扩展可解释性方法的一步,使我们能够将 LLM 中的神经元转换为具有可测量质量的可解释表示。
英文摘要:
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.
NeuronFair: Interpretable White-Box Fairness Testing through Biased Neuron Identification
Zhejiang University of Technology(浙江工业大学);Zhejiang University(浙江大学);Huawei International Pte. Ltd.(华为国际有限公司);National University of Defense Technology(国防科技大学)
Quantifying Local Specialization in Deep Neural Networks
University of California Berkeley(加州大学伯克利分校);Boston University(波士顿大学);Center for Human-Compatible AI (CHAI)(人类兼容人工智能中心);MIT Computer Science and Artificial Intelligence Laboratory (CSAIL)(麻省理工学院计算机科学与人工智能实验室)
Towards Interpretable Deep Neural Networks by Leveraging Adversarial Examples
Tsinghua National Lab for Information Science and Technology(清华大学信息科学与技术国家实验室);State Key Lab of Intelligent Technology and Systems(智能技术与系统国家重点实验室);Center for Bio-Inspired Computing Research(生物启发计算研究中心);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)
Interpretable Neuron Structuring with Graph Spectral Regularization
Yale Department of Computer Science(耶鲁大学计算机科学系);Yale Department of Genetics(耶鲁大学遗传学系);Université de Montréal, Dept. of Math. & Stat.(蒙特利尔大学数学与统计系);Mila(米拉研究院)
Interpretable statistical representations of neural population dynamics and geometry
EPFL(洛桑联邦理工学院);University Hospital Würzburg(维尔茨堡大学医院);Imperial College London(伦敦帝国学院);Blue Brain Project, EPFL(蓝脑计划(洛桑联邦理工学院));Medical University of Vienna(维也纳医科大学)
Exploring Task Performance with Interpretable Models via Sparse Auto-Encoders
The University of Sheffield(谢菲尔德大学);Tianjin University(天津大学);University of Manchester(曼彻斯特大学);Kyushu University(九州大学);City University of Hong Kong(香港城市大学)
PhagoStat a scalable and interpretable end to end framework for efficient quantification of cell phagocytosis in neurodegenerative disease studies
Sorbonne University(索邦大学);CNRS(法国国家科学研究中心);Inserm(法国国家健康与医学研究院);AP-HP(巴黎公共医疗集团);Inria(法国国家信息与自动化研究所);Paris Brain Institute - ICM(巴黎大脑研究所 - ICM);PSL Research university(巴黎文理研究大学);EPHE(高等研究实践学院)