40 神经元玩具模型中测试叠加与纯净神经元

提出“叠加”(superposition)一词的人之一发布了一篇26000字的论文,称自己此前的判断有误。此后,AI 社区就此展开了激烈争论。
10月15日,Nick Cammarata 发表了《Neural Networks Are Already Clean》[1]。如果你对这个名字感到陌生,那你很可能熟悉他的研究成果。他参与合著了2020年那篇颇具影响力的 Distill 论文,该论文展示了一个著名的神经元,它对猫和汽车的前部都会产生激活反应[2]。他与 Chris Olah 一起帮助提出了叠加概念——本质上,这是一个神经元数量偏少的网络,会把不相似的信息归到一起,却仍能正常工作[4]。但如今他主张这是错误的。“我们当初看错了,”他对 MIT Technology Review 说[3]。
他再次分析了猫和汽车的图片,思考它们的共同点。他注意到两者共有一个 V 形。尖角状的火焰、甚至狐狸的脸也符合这一特征。然而关键在于,这个神经元从来都不是在组合不相似的信息。相反,它表征的是此前未被命名的信息。
此外,他认为,与其说网络处于一种杂乱无章的状态,不如说它处于一种树状状态,新信息从既有信息中延伸出来。他估计,在 Qwen3-32B 中,神经元的“极”(即神经元中高度正相关和负相关的部分)大约十之八九执行单一功能。相比之下,他在2023年发起的一个 OpenAI 项目只能解释其所分析神经元中约1.7%的部分[4]。因此,他补充说:“如果网络本身不是一个结,那么去解它反倒可能让它看起来像一个结”[4]。
并非所有人都被说服。尽管 Google DeepMind 的 Neel Nanda 认为这项工作很有意思,但他并不认为这是可解释性这一整体领域的一项重大进展 [3]。曾在 InceptionV1 模型上使用过稀疏自编码器的 Liv Gorton 指出,按她的定义,叠加(superposition)仅仅意味着模型所表示的信息量超过了其所拥有的神经元数量所能承载的范围。树状神经元与这一点并不冲突 [4]。此外,本应随该博客文章一同发布、详细描述语言模型实验的配套论文,在当时尚未发表。鉴于 Goodfire 提供可解释性工具,该公司在这一结果上同样有既得利益 [4]。
虽然我无法在自己的笔记本电脑上分析一个 320 亿参数的模型,但我可以对其中的一部分进行拆解和分析。如果一个网络必须把一个世界压缩进数量有限的神经元中,那么哪些信息片段会被归入同一个神经元?是随机选取、彼此基本无关的信息,暗示一种杂乱无章的状态?还是按主题相互关联的信息,暗示一种树状状态?这取决于那个世界的性质,于是我构建了三个世界。
与 Anthropic 的叠加论文 [5] 一样,这个网络执行的是绝对值函数。它有 40 个输入特征、40 个 ReLU 神经元和一个输出层。由于绝对值具有非线性性质,关键在于神经元。理想情况下,每个特征会分配两个神经元,一个负责正值,一个负责负值。这样就会有 80 个神经元。然而,只有 40 个可用,因此必然存在共享。特征有 5% 的时间处于激活状态,取值在 -1 到 1 之间。
虽然有 40 个特征,但实际上它们分为 8 组,每组 5 个。以 V 形实体为例:火焰、狐狸脸和猫脸。3 个世界之间的差异在于这些组的行为方式。
世界 1:无。在这里,特征之间互不相关。因此,如果混乱假说是准确的,那么这里就应该是它显现的地方。
世界 2:同一组内的特征倾向于一起激活。一个组以概率 p/r 开启(其中 p 为 5%),一旦开启,组内每个成员以概率 r 激活。我对此进行了调整,使得如同世界 1 一样,每个特征仍有 5% 的时间处于激活状态。分组改变的是哪些特征一起出现,而不是每个特征出现的频率。
世界 3:与世界 2 相同,但一个组的成员还共享一个隐藏值。它们具有相同的符号和大致相同的幅值,并带有 20% 的噪声。跨组来看,这个共享值仍然均匀分布在 -1 和 1 之间。
图 1 展示了网络在每个世界中所感知到的内容。
图 1。网络在 3 个世界中所感知到的信息。分析了 70 个随机输入。行表示输入,列表示特征。线条将各组分隔开。(作者)
下面是生成这些世界和网络的代码。设置 r = 0.05 会使分组变得无关紧要,从而生成世界 1。
import numpy as npF, G, S = 40, 8, 5 # features, families, features per familyFAM = np.repeat(np.arange(G), S) # which family each feature belongs todef make_batch(rng, B, p=0.05, r=0.5, shared=False): q = p / r # chance a family is awake (keeps every feature on p of the time) fam_on = rng.random((B, G)) < q on = fam_on[:, FAM] & (rng.random((B, F)) < r) x = 2 * rng.random((B, F)) - 1 # values in [-1, 1] if shared: # family members share one hidden value, +-20% jitter x = np.clip(rng.uniform(-1, 1, (B, G))[:, FAM] * (0.8 + 0.4 * rng.random((B, F))), -1, 1) return on * xdef forward(P, X): z1 = X @ P["W1"].T + P["b1"]; h = np.maximum(z1, 0) # 40 ReLU neurons z2 = h @ P["W2"].T + P["b"]; out = np.maximum(z2, 0) # try to output |x| return z1, h, z2, outdef loss_grad(P, X): T = np.abs(X); z1, h, z2, out = forward(P, X); B = X.shape[0] L = np.sum((out - T) ** 2) / B dz2 = 2 * (out - T) / B * (z2 > 0) g = {"W2": dz2.T @ h, "b": dz2.sum(0)} dz1 = (dz2 @ P["W2"]) * (z1 > 0) g["W1"] = dz1.T @ X; g["b1"] = dz1.sum(0) return L, g
训练使用基础 Adam 优化器进行,最小化平方误差。梯度为手动计算。为验证其准确性,我将其与通过有限差分方法获得的梯度进行了比较。最大相对误差约为 3e-7。每种配置使用五个随机种子。测试损失由 20,000 个新输入得到。
我使用了 Adam,学习率为 0.01,批量大小为 256 个输入,训练 2,000 步,学习率以余弦方式衰减至初始值的十分之一。
最初,我尝试训练网络去复制其输入。在全部 3 个世界中,每个神经元都大致分散在 5-10 个特征上。因此,没有什么可分析的。只有当网络被要求计算绝对值时,专门化才会出现。
我把每个神经元拆分为正、负两个分量。正分量由具有正权重的特征构成,因此当这些特征为正时,该神经元就会激活。反过来,负分量由具有负权重的特征构成。由于输入范围是 -1 到 1,负权重并不会抑制该神经元:它让神经元在该特征为负时激活。这有点类似于 Cammarata 的极点(pole)概念。对这两者,我都把平方后的权重转换为占比。如果一个分量完全专注于某一个特征,那么该特征得到的占比就是 1。接下来,我分析了某个分量的权重中有多少与来自同一组的成对耦合特征相关。如果特征是随机分配的,那么大约会是 10%,因为其余 39 个特征中有 4 个属于同一组。为了确定每个已训练网络的精确概率,我对组身份进行了 500 次置换。
def neuron_sides(P): W = P["W1"] S = np.concatenate([np.maximum(W, 0), np.maximum(-W, 0)]) # 正侧、负侧 m = (S ** 2).sum(1) S = S[m > 0.05 * m.max()] # 丢弃几乎不起作用的侧 return S ** 2 / (S ** 2).sum(1, keepdims=True) # 每个特征上各侧的权重占比 def same_family_share(mf, labels=FAM): A = mf[:, :, None] * mf[:, None, :] A[:, np.arange(F), np.arange(F)] = 0 # 只取不同特征之间的配对 same = labels[:, None] == labels[None, :] return (A * same).sum() / A.sum() mf = neuron_sides(P) # P = 一个训练好的网络 rng = np.random.default_rng(0) chance = np.mean([same_family_share(mf, rng.permutation(FAM)) for _ in range(500)]) print(same_family_share(mf), chance)
在训练好的网络中,通常有 60 到 80 个侧存活下来;当各家族内部更紧密时,存活的数量会更少。
图 2。每一对特征共享同一个神经元的频率,对五个随机种子取平均。颜色越深表示共享得越多。方框标出的是各个家族。图片由作者提供。
先从第一个世界说起,那里特征是相互独立的。同家族配对上所占的权重份额为 0.100,而随机基线为 0.103。这是一个症结:谁与谁共享神经元,完全看不出家族的任何影响。这是那个老故事,而这个玩具模型把它复现了出来。
原文较长,译文为节选;译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Superposition vs. Clean Neurons Tested in a 40-Neuron Toy Model)
One of the individuals who coined the term ‘superposition’ has released a 26,000-word paper stating that he was in error. Since then, debate has raged in the AI community.
On October 15, Nick Cammarata published “Neural Networks Are Already Clean” [1]. If you are unfamiliar with this name then you may well be familiar with his work. He co-authored the influential 2020 Distill paper that showed a famous neuron that activates in response to both cat and car fronts [2]. Alongside Chris Olah he helped develop superposition — essentially, a network that is low on neurons, groups dissimilar information together, and gets away with it [4]. However, he now argues that this is incorrect. “We were looking at it wrong,” he told MIT Technology Review [3].
He analysed once more the cat and car pictures and considered what they had in common. He noticed a shared V-shape. Pointed flames and even fox faces also conform. Crucially, however, this neuron was never combining disparate information. Rather it was representing previously unnamed information.
Furthermore, he argues that rather than being in a state of disarray, a network is better conceptualised as being in a tree-like state, with new information extending from existing information. He approximates that around nine out of ten neuron ‘poles’, or highly positive and negative aspects of a neuron, in Qwen3-32B perform a singular function. By comparison, a 2023 OpenAI project that he initiated could explain only around 1.7% of the neurons it analysed [4]. As such, he adds, “If the network isn't a knot, untangling it can make it look like one” [4].
Not all are persuaded. Whilst Google DeepMind’s Neel Nanda thought the work was interesting, he did not consider it to be a major development for the overarching area of interpretability [3]. Liv Gorton, who has used sparse autoencoders on the InceptionV1 model, notes that superposition, as she defines it, merely implies that a model represents more information than it contains neurons for. Tree-like neurons do not conflict with this [4]. Moreover, the companion paper that was meant to accompany the blog post, and which details the language model experiments, had not been published at the time. Given that Goodfire provides interpretability tools, the company too has a vested interest in the outcome [4].
Whilst I cannot analyse a 32 billion parameter model on my laptop, I can deconstruct and analyse a section of it. If a network must condense a world into a limited number of neurons, which pieces of information are grouped into a neuron? Randomly selected and largely unfamiliar information, implying a state of disarray? Or thematically linked information implying a tree-like state? It depends on the nature of the world, so I constructed three.
As with Anthropic’s superposition paper [5], this network performs an absolute value function. There are 40 input features, 40 ReLU neurons and an output layer. Due to the non-linear nature of absolute value, it is the neurons that are key. Ideally, two neurons would be allocated to each feature, one for positive and one for negative. This would result in 80 neurons. However, only 40 are available so there must be sharing. Features are active 5% of the time and take values between -1 and 1.
Whilst there are 40 features, these are in fact 8 groups of 5. Consider the V-shaped entities, for example: flames, fox and cat faces. The difference between the 3 worlds lies in the behaviour of these groups.
World 1: Nothing. Here, features are unrelated. Therefore, if the disarray hypothesis is accurate, this is where it should manifest.
World 2: Features within a group tend to be active together. A group switches on with probability p/r (where p is 5%), and once it is on, each of its members is active with probability r. I adjust this so that, as in world 1, every feature is still active 5% of the time. Grouping changes which features appear together, not how often each one appears.
World 3: As in world 2, but the members of a group also share a hidden value. They have the same sign and roughly the same magnitude, with 20% noise. Across groups, this shared value is still uniform between -1 and 1.
Figure 1 shows what the network perceives in each world.

Figure 1. The information perceived by the network in the 3 worlds. 70 random inputs were analysed. Rows represent input and columns represent features. Lines separate groups. (Author)
Below is the code to generate both the worlds and network. Setting r = 0.05 renders groups inconsequential and so produces world 1.
import numpy as npF, G, S = 40, 8, 5 # features, families, features per familyFAM = np.repeat(np.arange(G), S) # which family each feature belongs todef make_batch(rng, B, p=0.05, r=0.5, shared=False): q = p / r # chance a family is awake (keeps every feature on p of the time) fam_on = rng.random((B, G)) < q on = fam_on[:, FAM] & (rng.random((B, F)) < r) x = 2 * rng.random((B, F)) - 1 # values in [-1, 1] if shared: # family members share one hidden value, +-20% jitter x = np.clip(rng.uniform(-1, 1, (B, G))[:, FAM] * (0.8 + 0.4 * rng.random((B, F))), -1, 1) return on * xdef forward(P, X): z1 = X @ P["W1"].T + P["b1"]; h = np.maximum(z1, 0) # 40 ReLU neurons z2 = h @ P["W2"].T + P["b"]; out = np.maximum(z2, 0) # try to output |x| return z1, h, z2, outdef loss_grad(P, X): T = np.abs(X); z1, h, z2, out = forward(P, X); B = X.shape[0] L = np.sum((out - T) ** 2) / B dz2 = 2 * (out - T) / B * (z2 > 0) g = {"W2": dz2.T @ h, "b": dz2.sum(0)} dz1 = (dz2 @ P["W2"]) * (z1 > 0) g["W1"] = dz1.T @ X; g["b1"] = dz1.sum(0) return L, g
Training occurs using basic Adam optimisation, minimising squared error. Gradients were manually calculated. To verify their accuracy, I compared them to those obtained through finite difference methods. The maximum relative error was around 3e-7. Five random seeds were used for each configuration. Test loss was attained from 20,000 new inputs.
I used Adam with a learning rate of 0.01, batches of 256 inputs and 2,000 steps, with the learning rate decaying (cosine) to a tenth of its starting value.
Initially, I attempted to train the network to replicate its input. In all 3 worlds, every neuron was broadly spread across 5-10 features. Consequently, there was nothing to analyse. Only when the network is asked to calculate an absolute value does specialisation occur.
I divided each neuron into positive and negative components. The positive component comprises the features with positive weights, so the neuron fires when those features are positive. Conversely, the negative component comprises the features with negative weights. As inputs range from -1 to 1, a negative weight does not suppress the neuron: it makes the neuron fire when that feature is negative. This is somewhat akin to Cammarata’s pole concept. For both, I converted squared weights into proportions. If a component is wholly devoted to one feature then this receives a proportion of 1. Next, I analysed how much of a component’s weight relates to coupled pairs of features from the same group. If features were randomly allocated then approximately 10% would, given that 4 of the remaining 39 features belong to the same group. To establish the precise probability for each trained network I permuted group identities 500 times.
def neuron_sides(P): W = P["W1"] S = np.concatenate([np.maximum(W, 0), np.maximum(-W, 0)]) # positive side, negative side m = (S ** 2).sum(1) S = S[m > 0.05 * m.max()] # drop sides that barely do anything return S ** 2 / (S ** 2).sum(1, keepdims=True) # each side's share of weight per featuredef same_family_share(mf, labels=FAM): A = mf[:, :, None] * mf[:, None, :] A[:, np.arange(F), np.arange(F)] = 0 # only pairs of different features same = labels[:, None] == labels[None, :] return (A * same).sum() / A.sum()mf = neuron_sides(P) # P = a trained networkrng = np.random.default_rng(0)chance = np.mean([same_family_share(mf, rng.permutation(FAM)) for _ in range(500)])print(same_family_share(mf), chance)
Usually 60 to 80 sides survive in a trained network, fewer when the families are tight.
Figure 2. How often each pair of features shares a neuron, averaged over five seeds. Darker means they share more. The squares mark the families. Image by author.
Start with the first world, where the features are independent. The share of weight on same-family pairs was 0.100, against a chance level of 0.103. That is a knot: nothing about the families shows up in who shares a neuron. It is the old story, and the toy reproduces it.
The second world went the other way. When families switched on together (r = 0.5), the same-family share dropped to 0.077 against that same 0.103 chance level, below chance in all five seeds. At r = 0.75 it fell to 0.056, about half of chance. These networks aren't grouping family members into neurons. They keep them apart. My reading, which I haven't tested separately, is that features that always arrive together would collide inside a shared neuron, so the cheapest packing pairs up strangers that rarely fire at the same moment.
The third world is the tree. With the shared value and r = 0.75, the same-family share rose to 0.23, which is 2.2 times chance, in all five seeds. Against the shuffled labels that is a gap of 9 to 12 standard deviations. The dark squares on the right of Figure 2 are Cammarata's picture: neurons built out of things that belong together.
Thus, depending solely on the world’s structure, one network, one function and one sparsity level could produce a state of disarray, an inverse tree and a tree.
Interestingly, in world 3, when r = 1.0 and all groups are perpetually fully active, the knot re-emerges. Neurons then become highly blended, encompassing around 7 features. There is no group pattern and no single feature dominates any component.
To check that these three outcomes are not a quirk of 5% sparsity and 40 neurons, I repeated all three worlds at 2% and 10% sparsity, and with 20 and 80 neurons (r = 0.75 for worlds 2 and 3, five seeds each). The table gives the same-family share as a multiple of chance. A value of 1 means no grouping, below 1 means group members are kept apart, and above 1 means they are combined.
5% sparsity, 40 neurons (main setting)
10% sparsity, 40 neurons
The ordering holds in every setting. World 1 stays close to chance (0.84 to 1.07), world 2 stays below it (0.60 to 0.77) and world 3 stays above it (1.6 to 2.85). The effects are weaker in places. At 80 neurons, where there is nearly room for two neurons per feature, one of the five world 2 seeds sits above chance. At 2% sparsity, world 1 drifts a little below chance (4 of 5 seeds), though no seed is more than 1.8 standard deviations away, so I would not read much into it.
The indistinguishable analysis
I consider this to be particularly valuable in the debate surrounding this issue. The easiest analysis is to determine the proportion of neuron components that specialise, i.e. where 80% or more of a component’s weight is associated with one feature. Within the disarray world, 10% of components specialise. In the tree world (r = 0.75), this rises to 12%. Almost identically, then, different structures can yield similar specialisation rates (Figure 3).
However, the largest change observed overall is unrelated to trees. In world 2, as group cohesion intensifies, around 40% of components specialise. Simultaneously, test loss reduces considerably, from 0.40 to 0.08. Grouping facilitated performance on the function and allowed the network to allocate individual neurons to features.
Figure 3. Left: Excess/deficit relative to chance of neurons combining features from the same group. Right: Proportion of specialised neuron components. Each point represents one trained network. (Author)
Therefore, the extent to which neurons can be analysed does not necessarily hinge on good underlying structure. Furthermore, two networks with the same number of neurons can differ greatly in test loss (0.40 against 0.08 above), purely because the data is structured differently.
What is and is not conveyed
This does not provide information regarding Qwen or actual models. The main results use only 40 neurons, 5% sparsity, 5 random seeds, one function and one specialisation criterion, although the sweep above varies the first two. Moreover, I manually defined the group structure. Further still, it does not incorporate Cammarata’s own process, which involves neurons’ development throughout training. My toy investigation simply considers whether data structure is sufficient. It does not address Gorton’s point. As all 3 worlds involve more features than neurons, by her definition superposition exists in all 3.
Yet it does illustrate that although neurons may be blended, this does not occur automatically. My toy enforced a specific structure whereby groups shared a variable. Merely knowing that features frequently occur together had the opposing influence. Whether real data conforms more to world 2 or 3 is something to be empirically ascertained. Broadly speaking, the V-shape suggests that it adheres to world 3. Being an open model, Qwen3-32B can also be similarly analysed by anybody [4].
Until then, the debate regarding whether networks are in a state of disarray or tree-like will persist. Based on this toy investigation, it appears that this will hinge on assessing the quality of actual data’s underlying structure. Merely analysing neurons will not suffice.
[1] Nick Cammarata, Neural Networks Are Already Clean (2026), Goodfire, https://already-clean.goodfire.com/
[2] Chris Olah, Nick Cammarata, Ludwig Schubert, Gabriel Goh, Michael Petrov, Shan Carter, Zoom In: An Introduction to Circuits (2020), Distill
[3] Will Douglas Heaven, “We were looking at it wrong”: The explosive claim that's upended the AI world (2026), MIT Technology Review
[4] Marcus Schuler, Goodfire Researcher Says AI Neurons Are Far Easier to Read, Rejecting His Own Theory (2026), Implicator.ai
[5] Nelson Elhage, Tristan Hume, Catherine Olsson, et al., Toy Models of Superposition (2022), Transformer Circuits Thread
Diving Deeper into Human Emotion and Gesture Recognition
August 13, 20206 min read
TensorFlow goes 2.0, but what is dataflow?
October 6, 20195 min read
So that you do not get lost in the sea of papers.
October 29, 20214 min read
Introduction to a new "Python-How-to" series on forecasting electricity prices based on ANNs.
December 17, 20214 min read
And implemented from scratch.
June 18, 20203 min read
We're going to look at the two major types of statistics - descriptive statistics and inferential statistics.
January 30, 20203 min read
FreaAI: a new method from researchers at IBM
August 31, 20216 min read
Making Generative Audio-Visual Art Easy and Incredibly Customizable
March 13, 20217 min read
A comparison of two cutting-edge dynamic topic models solving consumer complaints classification exercise
January 22, 202511 min read
原文为英文,正文由自动抓取并保留原文。
原文发布于 Towards Data Science(Superposition vs. Clean Neurons Tested in a 40-Neuron Toy Model),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。