arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.16254cs.LGcs.AIcs.CL
收藏

语言模型中的置信度调节神经元

Confidence Regulation Neurons in Language Models

ETH Zürich(苏黎世联邦理工学院);University of Sheffield(谢菲尔德大学);MIT(麻省理工学院);Technion(以色列理工学院)

Alessandro Stolfo, Ben Wu, Wes Gurnee, Yonatan Belinkov, Xingyi Song, Mrinmaya Sachan, Neel Nanda

AI总结:

本研究揭示了语言模型中熵神经元和词元频率神经元对下一词元预测不确定性的调节机制,并首次描述了词元频率神经元,通过案例展示了熵神经元在归纳任务中的置信度管理作用。

摘要:

尽管大型语言模型(LLMs)被广泛使用,但其在下一词元预测中表示和调节不确定性的机制在很大程度上仍未得到探索。本研究调查了被认为影响这种不确定性的两个关键组成部分:最近发现的熵神经元,以及我们称为词元频率神经元的一组新组件。熵神经元的特征是具有异常高的权重范数,并影响最终层归一化(LayerNorm)的尺度,从而有效地缩小logits。我们的工作表明,熵神经元通过写入一个非嵌入零空间来运作,使其能够以对logits本身最小的直接影响来影响残差流范数。我们在一系列模型中观察到熵神经元的存在,参数规模高达70亿。另一方面,我们首次发现并在此描述的词元频率神经元,会按每个词元的对数频率成比例地提升或抑制其logit,从而将输出分布向或远离单字分布移动。最后,我们提供了一个详细的案例研究,其中熵神经元在归纳(即检测和继续重复子序列)的设置中主动管理置信度。

英文摘要:

Despite their widespread use, the mechanisms by which large language models (LLMs) represent and regulate uncertainty in next-token predictions remain largely unexplored. This study investigates two critical components believed to influence this uncertainty: the recently discovered entropy neurons and a new set of components that we term token frequency neurons. Entropy neurons are characterized by an unusually high weight norm and influence the final layer normalization (LayerNorm) scale to effectively scale down the logits. Our work shows that entropy neurons operate by writing onto an unembedding null space, allowing them to impact the residual stream norm with minimal direct effect on the logits themselves. We observe the presence of entropy neurons across a range of models, up to 7 billion parameters. On the other hand, token frequency neurons, which we discover and describe here for the first time, boost or suppress each token's logit proportionally to its log frequency, thereby shifting the output distribution towards or away from the unigram distribution. Finally, we present a detailed case study where entropy neurons actively manage confidence in the setting of induction, i.e. detecting and continuing repeated subsequences.

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

↑