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

并非所有语言模型特征都是一维线性的

Not All Language Model Features Are One-Dimensionally Linear

MIT(麻省理工学院);IAIFI(人工智能与基础研究所)

Joshua Engels, Eric J. Michaud, Isaac Liao, Wes Gurnee, Max Tegmark

AI总结:

本研究提出语言模型特征可能本质上是多维的,通过稀疏自编码器在GPT-2和Mistral 7B中发现可解释的循环特征,并证明其在模运算任务中的核心作用,强调理解多维特征对机制分解的重要性。

摘要:

近期研究提出,语言模型通过在激活空间中操纵概念(“特征”)的一维表示来执行计算。相比之下,我们探索某些语言模型表示是否可能本质上是多维的。我们首先基于特征能否被分解为独立的或非共现的低维特征,开发了不可约多维特征的严格定义。受这些定义启发,我们设计了一种可扩展的方法,利用稀疏自编码器在GPT-2和Mistral 7B中自动发现多维特征。这些自动发现的特征包括极具可解释性的实例,例如表示星期几和月份中的日期的循环特征。我们识别了这些精确的循环特征被用于解决涉及星期几和月份中日期模运算的计算任务。接下来,我们通过Mistral 7B和Llama 3 8B上的干预实验,提供证据表明这些循环特征确实是这些任务中的基本计算单元,并检查了Mistral 7B中星期几特征的连续性。总体而言,我们的工作论证了理解多维特征对于机械地分解某些模型行为是必要的。

英文摘要:

Recent work has proposed that language models perform computation by manipulating one-dimensional representations of concepts ("features") in activation space. In contrast, we explore whether some language model representations may be inherently multi-dimensional. We begin by developing a rigorous definition of irreducible multi-dimensional features based on whether they can be decomposed into either independent or non-co-occurring lower-dimensional features. Motivated by these definitions, we design a scalable method that uses sparse autoencoders to automatically find multi-dimensional features in GPT-2 and Mistral 7B. These auto-discovered features include strikingly interpretable examples, e.g. circular features representing days of the week and months of the year. We identify tasks where these exact circles are used to solve computational problems involving modular arithmetic in days of the week and months of the year. Next, we provide evidence that these circular features are indeed the fundamental unit of computation in these tasks with intervention experiments on Mistral 7B and Llama 3 8B, and we examine the continuity of the days of the week feature in Mistral 7B. Overall, our work argues that understanding multi-dimensional features is necessary to mechanistically decompose some model behaviors.

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

↑