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

通过联合计算图剪枝与灵活粒度进行 Sheaf 发现

Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity

University of Toronto(多伦多大学);UKP Lab(UKP实验室);Stevens Institute of Technology(斯蒂文斯理工学院)

Lei Yu, Jingcheng Niu, Zining Zhu, Xi Chen, Gerald Penn

AI总结:

提出 DiscoGP 框架,通过联合剪枝计算图边与权重参数,从语言模型中提取稀疏自包含的 sheaf,并在多任务上以 1%–7% 参数保留 93%–100% 性能。

摘要:

本文介绍 DiscoGP,这是一种用于在神经语言模型(LM)中提取自包含模块化单元(即 sheaf)的新型框架。Sheaf 扩展了功能回路这一在可解释性研究中被广泛探索的单元概念,不仅考虑 LM 计算图中的边子集,还考虑模型的权重参数。我们的框架通过一种基于梯度的剪枝算法识别 sheaf;该算法同时作用于这两者,从而将原始 LM 约简为保留某些核心能力的稀疏骨架。实验结果表明,在一系列语言和推理任务中,DiscoGP 提取的 sheaf 保留了模型在所识别任务上 93%–100% 的性能,而仅包含原始权重和连接的 1%–7%。此外,我们的分析显示,与此前识别出的 LM 回路相比,DiscoGP 发现的 sheaf 表现出更优的模块性和功能保真度。将我们的方法扩展到神经元层面,还揭示了关于 LLM 内部运作机制的新见解。

英文摘要:

In this paper, we introduce DiscoGP, a novel framework for extracting self-contained modular units, or sheaves, within neural language models (LMs). Sheaves extend the concept of functional circuits, a unit widely explored in interpretability research, by considering not only subsets of edges in an LM's computation graph but also the model's weight parameters. Our framework identifies sheaves through a gradient-based pruning algorithm that operates on both of these in such a way that reduces the original LM to a sparse skeleton that preserves certain core capabilities. Experimental results demonstrate that, across a range of linguistic and reasoning tasks, DiscoGP extracts sheaves that preserve 93%-100% of a model's performance on the identified task while comprising only 1%-7% of the original weights and connections. Furthermore, our analysis reveals that, compared to previously identified LM circuits, the sheaves discovered by DiscoGP exhibit superior modularity and functional fidelity. Extending our method to the neuron level also unveils novel insights into the inner workings of LLMs

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

↑