arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.12918cs.LG
收藏

N2G:一种用于量化大型语言模型中可解释神经元表示的可扩展方法

N2G: A Scalable Approach for Quantifying Interpretable Neuron Representations in Large Language Models

Apart Research(阿帕特研究);Edinburgh Centre for Robotics(爱丁堡机器人中心);University of Oxford(牛津大学)

Alex Foote, Neel Nanda, Esben Kran, Ionnis Konstas, Fazl Barez

AI总结:

本文提出 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑