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.
From Human Cognition to Neural Activations: Probing the Computational Primitives of Spatial Reasoning in LLMs
School of Information Science, Beijing Language and Culture University(北京语言大学信息科学学院);School of Artificial Intelligence, Beijing Normal University(北京师范大学人工智能学院)
Construction Grammar Provides Unique Insight into Neural Language Models
Center for Information and Language Processing, LMU Munich(慕尼黑大学信息与语言处理中心);Munich Center of Machine Learning(慕尼黑机器学习中心);Language Technologies Institute, Carnegie Mellon University(卡内基梅隆大学语言技术研究所)
Topic Aware Probing: From Sentence Length Prediction to Idiom Identification how reliant are Neural Language Models on Topic?
ADAPT Research Centre(ADAPT研究中心);Technological University Dublin(都柏林理工大学);School of Computer Science and Statistics(计算机科学与统计学院);Trinity College Dublin(都柏林圣三一学院)
提出主题感知探测方法,通过 BERT 与 RoBERTa 在句长预测到习语识别等任务上的表现,揭示模型对主题信息的依赖。
Tabula nearly rasa: Probing the Linguistic Knowledge of Character-Level Neural Language Models Trained on Unsegmented Text
Stanford University(斯坦福大学);Facebook AI Research(脸书人工智能研究院);UPF Linguistics Department(庞培法布拉大学语言学系)
递归神经网络(RNN)在许多自然语言处理任务中取得了惊人的性能。这重新引起了人们对这些通用序列处理设备是否诱导真正的语言知识的兴趣。然而,几乎所有当前的分析研究都用已知单词的词汇表初始化RNN,并在训练过程中为它们提供标记化的输入。我们提出了一个多语言的语言知识编码的RNN训练字符级语言模型,在输入数据与词边界删除的研究。这些网络面临着一个更艰难、更现实的认知任务,必须根据输入统计数据从头开始发现任何有用的语言单元。结果表明,我们的“near tabula rasa”RNN大多能够解决直观地假设单词级别知识的形态,句法和语义任务,并且确实在某种程度上学会了跟踪单词边界。我们的研究为语言学习和使用中明确的、严格的词汇库的必要性的思考打开了大门。