arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.01042cs.CLcs.AI
收藏

探测大型语言模型的神经拓扑

Probing Neural Topology of Large Language Models

Massachusetts Institute of Technology(麻省理工学院);New York University(纽约大学);Tsinghua University(清华大学);Harvard Medical School(哈佛医学院)

Yu Zheng, Yuan Yuan, Yue Zhuo, Yong Li, Gabriel Kreiman, Tomaso Poggio, Paolo Santi

AI总结:

本研究提出图探测方法,通过分析LLM神经拓扑揭示其语言生成性能,发现拓扑信息比激活信息更丰富,可提升模型效率和可靠性。

摘要:

通过将神经激活与可解释的语义联系起来,探测大型语言模型(LLMs)已提供了关于其内部机制的有价值见解。然而,将神经元功能共激活与模型涌现能力之间的复杂机制仍然 largely 未知,这阻碍了对LLMs的更深入理解和更安全的发展。在本工作中,我们介绍了图探测,一种用于揭示LLM神经元的功能连接并将其与语言生成性能相关联的方法。通过在多样化的LLM家族和规模上探测模型,我们发现仅使用神经拓扑即可预测语言生成和理解性能,即使只保留1%的神经元连接。令人惊讶的是,拓扑探测在困惑度和时空语义回归方面分别比激活探测高出130.4%和67.7%,表明神经拓扑包含比神经激活更丰富的LLM性能信息,这种信息可以通过简单的线性或MLP探测器轻松提取。为了解释神经拓扑与语言性能之间的依赖关系,我们识别了LLM中的默认网络和枢纽神经元,并通过在多个基准上的干预实验提供因果证据,表明LLM实际上利用了这些拓扑信息。进一步分析表明,图探测可以通过在模型剪枝和幻觉检测中的概念验证应用,有效提高LLM的效率和可靠性。图探测工具箱的代码和数据可在https://github.com/DavyMorgan/llm-graph-probing获取。

英文摘要:

Probing large language models (LLMs) has yielded valuable insights into their internal mechanisms by linking neural activations to interpretable semantics. However, the complex mechanisms that link neuron's functional co-activation with the emergent model capabilities remains largely unknown, hindering a deeper understanding and safer development of LLMs. In this work, we introduce graph probing, a method for uncovering the functional connectivity of LLM neurons and relating it to language generation performance. By probing models across diverse LLM families and scales, we discover a universal predictability of language generation and understanding performance using only neural topology, which persists even when retaining just 1% of neuron connections. Strikingly, probing on topology outperforms probing on activation by up to 130.4% and 67.7% on perplexity and space/time semantic regression respectively, suggesting that neural topology contains orders of richer information of LLM performance than neural activation, which can be easily extracted with simple linear or MLP probes. To explain the dependence between neural topology and language performance, we identify default networks and hub neurons in LLMs and provide causal evidence by interventional experiments on multiple benchmarks, showing that LLMs actually exploit these topological information. Further analyses suggest that graph probing can be effectively leveraged to improve the efficiency and reliability of LLMs through proof-of-concept applications in model pruning and hallucination detection. Codes and data for the graph probing toolbox are available at https://github.com/DavyMorgan/llm-graph-probing.

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

↑