1.1 · Transformer from Scratch
从零实现 Transformer
Learning Focus
理解 Transformer 的输入输出、注意力、MLP、训练流程与采样过程,建立后续可解释性分析所需的模型结构直觉。
Mechanistic Interpretability
从 Transformer 基础、线性探针与模型转向出发,逐步学习 SAE、特征归因、回路分析与算法机制反向工程。
1.1 · Transformer from Scratch
理解 Transformer 的输入输出、注意力、MLP、训练流程与采样过程,建立后续可解释性分析所需的模型结构直觉。
1.2 · Intro to Mech Interp
学习 TransformerLens、Hook 与激活缓存,识别 induction heads,并使用消融和组合分数反向分析 induction circuit。
1.3.1 · Linear Probes
1.3.2 · Function Vectors & Model Steering
使用 nnsight 读取与干预隐状态,提取任务编码向量、function vectors 与 steering vectors,观察其对模型行为的影响。
1.3.3 · Interpretability with SAEs
理解 SAE latent、稀疏性与重构误差,学习解释、训练和评估 SAE,并讨论单义特征与超位现象。
1.3.4 · Activation Oracles
学习用 activation oracle 理解神经元或特征,实现 oracle 组件,并探索 secret extraction 和自定义 oracle 训练。
1.4.1 · Indirect Object Identification
在 IOI 任务上使用 logit attribution、activation patching、path patching 与消融,逐步恢复模型的因果计算图。
1.4.2 · SAE Circuits
使用 latent gradients、transcoders 和 attribution graphs 构造特征级回路,并通过干预验证回路假设。
1.5.1 · Balanced Bracket Classifier
从输出向前追踪平衡括号分类器的计算,识别 total elevation 等中间变量与关键回路。
1.5.2 · Grokking & Modular Arithmetic
用傅里叶基分析模算术网络,理解 grokking 过程、周期特征与模型内部实现的算法回路。
1.5.3 · OthelloGPT
1.5.4 · Toy Models of Superposition & SAEs
研究非特权基与特权基中的超位、特征几何、deep double descent,并用玩具模型理解 SAE 的学习动力学。
1.5.X · Monthly Algorithmic Problems