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

硅世界中的朋友与祖母:在语言模型中本地化实体细胞

Friends and Grandmothers in Silico: Localizing Entity Cells in Language Models

Mentaleap;Independent Researcher(独立研究者);Tel Aviv University(特拉维夫大学)

Itay Yona, Dan Barzilay, Michael Karasik, Mor Geva

AI总结:

研究通过寻找稀疏的实体选择性MLP神经元(实体细胞)探讨语言模型如何检索实体特定事实,并发现这些细胞在早期层聚集,具有因果作用。

摘要:

语言模型如何从参数中检索实体特定事实?我们通过寻找稀疏、实体选择性的MLP神经元(称为实体细胞,类比神经科学中的'祖母细胞'假说)来探讨这一问题,并测试这些细胞在事实回忆中的因果作用。我们通过在不同提示下对同一实体的激活一致性对MLP神经元进行排名,跨七个模型在Curated PopQA子集上应用此过程。所有模型中,本地化神经元主要集中在早期层,这一经验模式并非由架构强制。使用Qwen2.5-7B base作为模型生物,我们发现最清晰的因果证据:抑制局部细胞会擦除其匹配实体的回忆,而其他保持不变;激活单个细胞足以恢复大多数实体的正确知识,即使实体不在上下文中。相同的细胞在别名、缩写、拼写错误和多语言表层形式下仍能恢复,并在指令微调中保持稳定,表明它们编码的是实体身份而非表层标记模式。因果信号在不同模型家族中变化,指出了架构差异如何影响实体知识的组织。这些发现为理解、控制和纠正语言模型中的事实知识提供了具体且可解释的访问点,并与神经科学中关于稀疏编码概念的长期问题建立了令人惊讶的经验平行。

英文摘要:

How do language models retrieve entity-specific facts from their parameters? We investigate this question by searching for sparse, entity-selective MLP neurons - which we call entity cells, by analogy to the "grandmother cell" hypothesis in neuroscience - and testing whether they play a causal role in factual recall. We localize candidate entity cells by ranking MLP neurons for activation consistency across varied prompts about the same entity, applying this procedure across seven models on a curated subset of PopQA. In all models, localized neurons cluster predominantly in early layers, an empirical pattern not imposed by the architecture. Using Qwen2.5-7B base as a model organism, we find the clearest causal evidence: suppressing a localized cell selectively erases recall for its matched entity while leaving others intact, and activating a single cell is sufficient to recover correct knowledge for most entities - even when the entity is absent from the context. The same cells are recovered under aliases, acronyms, misspellings, and multilingual surface forms, and remain stable through instruction tuning, suggesting they encode canonical entity identity rather than surface token patterns. Causal signals vary across model families, pointing to architectural differences in how entity knowledge is organized. These findings offer concrete, interpretable access points for understanding, controlling, and correcting factual knowledge in language models, and draw a surprising empirical parallel to longstanding questions in neuroscience about sparse coding of concepts.

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

↑