SCALAR:在小型LLM中基准测试SAE交互稀疏性
SCALAR: Benchmarking SAE Interaction Sparsity in Toy LLMs
AI总结:
针对孤立训练的稀疏自编码器(SAE)跨层连接不稀疏的问题,提出SCALAR基准评估SAE特征间的交互稀疏性,并设计阶梯SAE通过权重共享限制上游特征重复,在小型LLM上验证了其在保持可解释性的同时提升交互稀疏性的效果。
摘要:
机制可解释性旨在将神经网络分解为可解释特征并映射其连接回路。标准方法是在每层激活上训练稀疏自编码器(SAE)。然而,孤立训练的SAE不鼓励稀疏的跨层连接,导致上游特征不必要地影响多个下游特征,从而膨胀提取的回路。当前评估聚焦于单个SAE性能,未检查交互稀疏性。我们引入SCALAR(潜在激活关系的稀疏连接评估),这是一个测量SAE特征间交互稀疏性的基准。我们还提出“阶梯SAE”,使用权重共享限制下游特征间的上游特征重复。通过SCALAR,我们比较TopK SAE、Jacobian SAE(JSAE)和阶梯SAE。阶梯SAE在前馈层上比TopK SAE的相对稀疏性提升59.67%±1.83%,在Transformer块上提升63.15%±1.35%。JSAE在前馈层上比TopK提升8.54%±0.38%,但无法在Transformer块间有效训练,而阶梯SAE和TopK SAE可在残差流的任何位置工作。我们在216K参数的小型模型和GPT-2 Small(124M)上验证,阶梯SAE在保持特征可解释性的同时维持交互稀疏性提升。我们的工作通过基准测试和比较有前景的架构,强调了SAE中交互稀疏性的重要性。
英文摘要:
Mechanistic interpretability aims to decompose neural networks into interpretable features and map their connecting circuits. The standard approach trains sparse autoencoders (SAEs) on each layer's activations. However, SAEs trained in isolation don't encourage sparse cross-layer connections, inflating extracted circuits where upstream features needlessly affect multiple downstream features. Current evaluations focus on individual SAE performance, leaving interaction sparsity unexamined. We introduce SCALAR (Sparse Connectivity Assessment of Latent Activation Relationships), a benchmark measuring interaction sparsity between SAE features. We also propose "Staircase SAEs", using weight-sharing to limit upstream feature duplication across downstream features. Using SCALAR, we compare TopK SAEs, Jacobian SAEs (JSAEs), and Staircase SAEs. Staircase SAEs improve relative sparsity over TopK SAEs by $59.67\% \pm 1.83\%$ (feedforward) and $63.15\% \pm 1.35\%$ (transformer blocks). JSAEs provide $8.54\% \pm 0.38\%$ improvement over TopK for feedforward layers but cannot train effectively across transformer blocks, unlike Staircase and TopK SAEs which work anywhere in the residual stream. We validate on a $216$K-parameter toy model and GPT-$2$ Small ($124$M), where Staircase SAEs maintain interaction sparsity improvements while preserving feature interpretability. Our work highlights the importance of interaction sparsity in SAEs through benchmarking and comparing promising architectures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。