Paper: 2603.06557 Authors: Joshua Brendan Melander, Zaki Alaoui, Shenghua Liu, Surya Ganguli, Stephen A. Baccus Categories: cs.LG, q-bio.NC

The Gap

Interpretability research has been stuck analyzing what neurons represent (their activation patterns) rather than what they do (their causal effects). Methods like feature visualization, probing classifiers, and activation atlases all ask: “What concept does this neuron encode?” They look for correlations between hidden-layer activations and human-interpretable features. But correlation isn’t causation. A neuron might activate for “dog ears” yet contribute negatively to the “dog” class prediction, or vice versa. Activation-based methods can’t see this because they ignore the downstream computational graph.

The gap: we lack tools to trace causal influence through the network’s nonlinear transformations. Existing gradient-based attribution methods (saliency maps, integrated gradients) attribute to inputs, not to intermediate computations. Circuit analysis manually traces connections but doesn’t scale. We need a systematic way to decompose how hidden neurons causally contribute to outputs across layers.

Problem: Activations != Causal Effects
   |
   v
Assumption: Contributions (activation * downstream weight)
            can be sparsely decomposed into interpretable motifs
   |
   v
Method: Train sparse autoencoders on contribution vectors
        to find recurring causal patterns
   |
   v
Evidence: Contributions grow sparser across layers,
          positive/negative effects decorrelate,
          sparse modes enable targeted interventions
   |
   v
Conclusion: Contribution decomposition reveals causal
            structure invisible to activation analysis

The Increment

One sentence: Before, we asked “what does this neuron detect?” — now we can ask “how does this neuron causally push the output, and through which sparse motifs?”

Core Mechanism

CODEC operates in three stages. First, it computes contribution vectors for each hidden neuron: the neuron’s activation multiplied by its outgoing weights to the next layer. This captures how much each neuron pushes or pulls on downstream computations. Unlike raw activations, contributions are signed (positive or negative) and dimensionally aligned with the next layer’s neurons.

Second, CODEC trains a sparse autoencoder on these contribution vectors across many inputs. The autoencoder learns to reconstruct each contribution vector as a sparse linear combination of learned basis vectors (called “contribution modes”). The sparsity constraint forces the autoencoder to discover recurring patterns — motifs of how neurons jointly influence outputs. Each mode represents a stereotyped causal pathway: a specific way that hidden neurons combine to drive particular downstream effects.

Third, CODEC uses these learned modes for interpretation and intervention. By examining which input features activate each mode, researchers can visualize what image components trigger specific causal pathways. By ablating or amplifying modes, they can surgically manipulate network behavior at the level of causal mechanisms rather than individual neurons.

Input Image
    |
    v
[Hidden Layer Activations]
    |
    | (multiply by outgoing weights)
    v
[Contribution Vectors] <--- what each neuron does to next layer
    |
    | (sparse autoencoder)
    v
[Sparse Modes] <--- recurring causal motifs
    |
    +---> Interpretation: visualize what triggers each mode
    |
    +---> Intervention: ablate/amplify modes to control output

Think of CODEC like analyzing a company’s financial flows instead of just employee headcounts. Activation analysis is like counting how many people work in each department — you see who’s present but not what they’re doing. CODEC tracks the money: it follows how each department’s budget (activation) gets allocated to downstream projects (weighted contributions). The sparse autoencoder is like an accountant finding recurring spending patterns — “R&D always funds these three initiatives together” or “Marketing’s budget splits into brand vs. performance channels.” These patterns (modes) reveal the company’s actual operational structure, not just its org chart. When you want to change outcomes, you intervene on spending patterns (modes), not individual employees (neurons).

Key Concepts

  • Contribution vs. Activation: An activation tells you a neuron fired strongly. A contribution tells you what that firing did to the output. Concretely: if neuron i has activation a_i and connects to neuron j with weight w_ij, its contribution to j is a_i × w_ij. This is signed (can be negative) and directional (points toward specific downstream neurons). A neuron can activate strongly but contribute weakly if its weights are small, or contribute negatively even when active if weights are negative. Contributions capture causal influence; activations don’t.

  • Sparse Autoencoder for Decomposition: You have 10,000 contribution vectors (one per neuron per input). Each vector is high-dimensional (size of next layer). A sparse autoencoder learns, say, 100 basis vectors (modes) such that any contribution vector can be approximated as a sparse sum of ~5-10 modes. The sparsity constraint (L1 penalty on coefficients) forces the model to reuse a small vocabulary of patterns rather than memorizing each vector. This is like PCA but with sparsity: you get interpretable, reusable motifs instead of dense, entangled components.

  • Decorrelation of Positive/Negative Effects: CODEC found that in early layers, neurons that increase class A’s score often simultaneously decrease class B’s score (correlated effects). In deeper layers, these effects separate: some modes purely boost A, others purely suppress B (decorrelated). This wasn’t predicted. It suggests the network progressively disentangles “evidence for X” from “evidence against Y” as computation proceeds — a form of causal structure that activation analysis misses entirely because it can’t see the sign of influence.

Framework Shift

Before (activation analysis):        After (CODEC):

Input                                Input
  |                                    |
  v                                    v
[Neurons: what fires?]               [Neurons: activations]
  |                                    |
  | (correlation)                      | (multiply weights)
  v                                    v
"This neuron detects dogs"           [Contributions: causal push/pull]
                                       |
                                       | (sparse decomposition)
                                       v
                                     [Modes: recurring causal motifs]
                                       |
                                       v
                                     "This mode suppresses cat 
                                      while boosting dog via 
                                      texture pathway"

From “what concepts do neurons encode?” to “what causal operations do computation pathways perform?” — the core shift is from representational correlation to mechanistic decomposition.

Expert Assessment

Problem choice: This is a real gap. The field has been circling around causality for years (circuit analysis, causal scrubbing, path patching) but lacked a scalable, layer-agnostic method. CODEC sits at the intersection of mechanistic interpretability and sparse coding, which is timely given recent interest in SAEs for language models. Not groundbreaking conceptually — contribution analysis is old, SAEs are standard — but the combination addresses a genuine need.

Method maturity: Clever but not revolutionary. The core insight (decompose contributions, not activations) is simple and should’ve been tried earlier. The use of SAEs is competent but unexciting — they’re the default tool for sparse decomposition now. I’d want to see ablations: what if you used NMF instead? What if you decomposed gradients rather than contributions? The paper doesn’t explore alternatives, which makes me wonder if SAEs are necessary or just convenient.

Experimental integrity: Solid but narrow. The image classification experiments (ResNet, VGG) are convincing for the core claims about sparsity and decorrelation. The retina model application is interesting but feels tacked on — it’s a different domain with different evaluation criteria, and the paper doesn’t deeply engage with neuroscience literature. Baselines are reasonable (comparing to activation-based methods) but not exhaustive (no comparison to other causal attribution methods like path patching). The decorrelation finding is intriguing but under-analyzed: why does this happen? Is it universal or architecture-specific?

Writing quality: The paper front-loads motivation well but buries key details. The sparse autoencoder training procedure is vague (hyperparameters, convergence criteria, how many modes to use). The visualization section is pretty but doesn’t rigorously validate that modes are more interpretable than raw neurons — it’s mostly qualitative. The retina section feels rushed, like they wanted a second application but didn’t have space to do it justice. If I were reviewing, I’d ask them to either expand the retina analysis or cut it and deepen the image classification results.

Verdict: weak accept — addresses a real gap with a straightforward method, but the execution is workmanlike rather than insightful, and the paper doesn’t fully explore the implications of its own findings.

Takeaways

The big steal: when analyzing any neural network, compute contributions (activation × outgoing weights) instead of just activations. This is trivial to implement and immediately gives you signed, causal information. You can do this without CODEC’s full machinery.

The sparse decomposition trick: if you have high-dimensional vectors you want to interpret (contributions, gradients, embeddings), train a sparse autoencoder to find recurring patterns. This is more interpretable than PCA and scales better than manual clustering. Useful beyond interpretability — think data compression, anomaly detection, feature engineering.

The decorrelation observation: if you’re designing architectures or loss functions, consider whether you want positive/negative effects to decorrelate across layers. CODEC suggests this happens naturally in classification networks, but you could explicitly encourage or discourage it depending on your task. For instance, in multi-label classification, you might want effects to stay correlated; in disentangled representation learning, you’d want decorrelation.

The intervention angle: sparse modes give you better control knobs than individual neurons. If you’re doing model editing, steering, or adversarial robustness work, decomposing into sparse causal pathways might give you more precise, less brittle interventions. This is underexplored in the paper but seems like the most practically useful direction.

论文: 2603.06557 作者: Joshua Brendan Melander, Zaki Alaoui, Shenghua Liu, Surya Ganguli, Stephen A. Baccus 分类: cs.LG, q-bio.NC

缺口

可解释性研究一直困在分析神经元”表征什么”(激活模式)而非”做什么”(因果效应)。

特征可视化、探测分类器、激活图谱等方法都在问:“这个神经元编码了什么概念?”它们寻找隐藏层激活与人类可理解特征之间的相关性。

但相关不是因果。

一个神经元可能因”狗耳朵”而激活,却对”狗”类别预测产生负贡献,反之亦然。

基于激活的方法看不到这点,因为它们忽略了下游计算图。

缺口在于:我们缺乏工具来追踪因果影响如何穿过网络的非线性变换。

现有的基于梯度的归因方法(显著图、积分梯度)归因到输入而非中间计算。

电路分析手动追踪连接但无法扩展。

我们需要一种系统化的方法来分解隐藏神经元如何跨层因果贡献到输出。

问题: 激活值 != 因果效应
   |
   v
假设: 贡献(激活 * 下游权重)可以被稀疏分解为可解释的模式
   |
   v
方法: 在贡献向量上训练稀疏自编码器以发现重复的因果模式
   |
   v
证据: 贡献跨层变得更稀疏,正负效应去相关,
      稀疏模式支持定向干预
   |
   v
结论: 贡献分解揭示了激活分析看不见的因果结构

增量

一句话: 以前我们问”这个神经元检测什么?”——现在我们能问”这个神经元如何因果推动输出,通过哪些稀疏模式?”

核心机制

CODEC分三个阶段运作。

首先,它为每个隐藏神经元计算贡献向量:神经元的激活乘以其到下一层的出边权重。

这捕获了每个神经元对下游计算的推拉力度。

与原始激活不同,贡献是有符号的(正或负)且在维度上与下一层神经元对齐。

其次,CODEC在这些贡献向量上训练稀疏自编码器,跨多个输入。

自编码器学习将每个贡献向量重构为学习到的基向量(称为”贡献模式”)的稀疏线性组合。

稀疏性约束迫使自编码器发现重复模式——神经元如何联合影响输出的模式。

每个模式代表一种定型的因果路径:隐藏神经元组合驱动特定下游效应的特定方式。

第三,CODEC使用这些学习到的模式进行解释和干预。

通过检查哪些输入特征激活每个模式,研究者可以可视化什么图像成分触发特定因果路径。

通过消融或放大模式,他们可以在因果机制层面而非单个神经元层面精确操纵网络行为。

输入图像
    |
    v
[隐藏层激活]
    |
    | (乘以出边权重)
    v
[贡献向量] <--- 每个神经元对下一层做了什么
    |
    | (稀疏自编码器)
    v
[稀疏模式] <--- 重复的因果模式
    |
    +---> 解释: 可视化什么触发每个模式
    |
    +---> 干预: 消融/放大模式以控制输出

把CODEC想象成分析公司的资金流而非仅仅统计员工人数。

激活分析像是统计每个部门有多少人——你看到谁在场但不知道他们在做什么。

CODEC追踪资金:它跟踪每个部门的预算(激活)如何分配到下游项目(加权贡献)。

稀疏自编码器像是会计发现重复的支出模式——“研发总是一起资助这三个项目”或”市场预算分成品牌渠道和效果渠道”。

这些模式(模式)揭示了公司的实际运营结构,而非仅仅组织架构图。

当你想改变结果时,你干预支出模式(模式),而非单个员工(神经元)。

关键概念

  • 贡献 vs 激活: 激活告诉你神经元强烈放电。

贡献告诉你那次放电对输出做了什么。

具体来说:如果神经元i的激活是a_i,连接到神经元j的权重是w_ij,它对j的贡献是a_i × w_ij。

这是有符号的(可以是负的)且有方向的(指向特定下游神经元)。

一个神经元可以强烈激活但贡献微弱(如果权重小),或者即使激活时也负贡献(如果权重是负的)。

贡献捕获因果影响;激活不能。

  • 用于分解的稀疏自编码器: 你有10,000个贡献向量(每个输入每个神经元一个)。

每个向量是高维的(下一层的大小)。

稀疏自编码器学习比如100个基向量(模式),使得任何贡献向量可以近似为约5-10个模式的稀疏和。

稀疏性约束(系数上的L1惩罚)迫使模型重用小词汇表的模式而非记忆每个向量。

这像PCA但带稀疏性:你得到可解释的、可重用的模式而非密集的、纠缠的成分。

  • 正负效应的去相关: CODEC发现在早期层,增加类别A分数的神经元常常同时降低类别B分数(相关效应)。

在更深层,这些效应分离:一些模式纯粹提升A,其他纯粹抑制B(去相关)。

这是未预料到的。

它表明网络随着计算进行逐渐解开”支持X的证据”和”反对Y的证据”——一种激活分析完全错过的因果结构形式,因为它看不到影响的符号。

框架转变

之前(激活分析):                  之后(CODEC):

输入                              输入
  |                                 |
  v                                 v
[神经元:什么放电?]                [神经元:激活]
  |                                 |
  | (相关性)                        | (乘以权重)
  v                                 v
"这个神经元检测狗"                [贡献:因果推拉]
                                    |
                                    | (稀疏分解)
                                    v
                                  [模式:重复的因果模式]
                                    |
                                    v
                                  "这个模式通过纹理路径
                                   抑制猫同时提升狗"

从”神经元编码什么概念?”到”计算路径执行什么因果操作?”——核心转变是从表征相关性到机制分解。

专家评审

选题眼光: 这是真缺口。

该领域多年来一直围绕因果性打转(电路分析、因果擦除、路径修补)但缺乏可扩展的、层无关的方法。

CODEC位于机制可解释性和稀疏编码的交叉点,鉴于最近对语言模型SAE的兴趣,这很及时。

概念上不算突破——贡献分析是老的,SAE是标准的——但组合解决了真实需求。

方法成熟度: 巧妙但非革命性。

核心洞察(分解贡献而非激活)简单且本应更早尝试。

使用SAE是称职的但不令人兴奋——它们现在是稀疏分解的默认工具。

我想看消融:如果用NMF会怎样?如果分解梯度而非贡献呢?论文没探索替代方案,这让我怀疑SAE是必需的还是仅仅方便。

实验诚意: 扎实但狭窄。

图像分类实验(ResNet、VGG)对关于稀疏性和去相关的核心主张有说服力。

视网膜模型应用有趣但感觉硬凑——它是不同领域有不同评估标准,论文没深入接触神经科学文献。

基线合理(与基于激活的方法比较)但不详尽(没与其他因果归因方法如路径修补比较)。

去相关发现有趣但分析不足:为什么发生?是普遍的还是架构特定的?

写作功力: 论文前置动机做得好但埋藏关键细节。

稀疏自编码器训练过程模糊(超参数、收敛标准、用多少模式)。

可视化部分漂亮但没严格验证模式比原始神经元更可解释——主要是定性的。

视网膜部分感觉仓促,像是他们想要第二个应用但没空间充分展开。

如果我在审稿,我会要求他们要么扩展视网膜分析要么删掉它并深化图像分类结果。

判决: 弱接收——用直接方法解决真缺口,但执行是工匠式而非洞察式,论文没充分探索自己发现的含义。

要点总结

大收获:分析任何神经网络时,计算贡献(激活×出边权重)而非仅仅激活。

这实现起来微不足道且立即给你有符号的、因果的信息。

你可以不用CODEC的全套机制做到这点。

稀疏分解技巧:如果你有想解释的高维向量(贡献、梯度、嵌入),训练稀疏自编码器找重复模式。

这比PCA更可解释且比手动聚类扩展性更好。

在可解释性之外有用——想想数据压缩、异常检测、特征工程。

去相关观察:如果你在设计架构或损失函数,考虑你是否想要正负效应跨层去相关。

CODEC表明这在分类网络中自然发生,但你可以根据任务显式鼓励或阻止它。

例如在多标签分类中,你可能想要效应保持相关;在解耦表征学习中,你会想要去相关。

干预角度:稀疏模式比单个神经元给你更好的控制旋钮。

如果你在做模型编辑、引导或对抗鲁棒性工作,分解成稀疏因果路径可能给你更精确、更不脆弱的干预。

这在论文中探索不足但似乎是最实用的方向。