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

通过可扩展归因图分解从十亿参数语言模型中提取分层稀疏电路

Hierarchical Sparse Circuit Extraction from Billion-Parameter Language Models through Scalable Attribution Graph Decomposition

Department of CSE, Muffakham Jah College of Engineering and Technology (MJCET)(计算机科学与工程系,穆法卡姆·贾赫工程与技术学院(MJCET))

Mohammed Mudassir Uddin, Shahnawaz Alam, Mohammed Kaif Pasha

AI总结:

提出分层归因图分解(HAGD)方法,通过跨层编码器训练、谱粗化、GNN引导分层遍历和因果干预验证,将电路提取复杂度降至O(n² log n),在多个大模型上实现高行为保留。

摘要:

从十亿参数Transformer中提取稀疏电路受到$O(2^n)$搜索代价和共激活路径中普遍特征复用的限制。分层归因图分解(HAGD)通过四个阶段解决这一问题:跨层编码器训练、归因图的谱粗化、图神经网络(GNN)引导的分层遍历以及因果干预验证,将最坏情况复杂度降至$O(n^2 \log n)$。在RedPajama语料库上训练的逐层编码器生成单语义字典;梯度-激活乘积形成加权归因图;归一化拉普拉斯谱聚类构建多分辨率层次结构;基于注意力的GNN在连续粗化阶段分配电路成员分数。评估涵盖GPT-2(117M-774M)、Pythia(1.4B-6.9B)和Llama(7B-70B),涉及模算术、奇偶校验、整数排序、共指消解(WinoGrande)、常识推理(HellaSwag)和事实回忆。在模算术上,行为保留达到91%(±2.3%),电路节点数为49-347,而ACDC在超过1.4B参数时耗尽内存。跨架构迁移系数范围为0.38-0.82,族内对(Llama-7B → Llama-70B)达到0.82。局限性包括忽略注意力头电路、15-20%无法解释的重建方差、基于消融的验证循环性以及超过几百个节点的电路可解释性不确定。

英文摘要:

Extracting sparse circuits from billion-parameter transformers is constrained by $O(2^n)$ search cost and pervasive feature reuse across co-active pathways. Hierarchical Attribution Graph Decomposition (HAGD) addresses this through four stages: cross-layer transcoder training, spectral coarsening of attribution graphs, graph-neural-network (GNN)-guided hierarchical traversal, and causal intervention verification, reducing worst-case complexity to $O(n^2 \log n)$. Per-layer transcoders trained on the RedPajama corpus yield monosemantic dictionaries; gradient-activation products form weighted attribution graphs; normalized-Laplacian spectral clustering builds multi-resolution hierarchies; an attention-based GNN assigns circuit-membership scores at successive coarsening stages. Evaluation spans GPT-2 (117M-774M), Pythia (1.4B-6.9B), and Llama (7B-70B) across modular arithmetic, parity computation, integer sorting, coreference resolution (WinoGrande), commonsense reasoning (HellaSwag), and factual recall. Behavioral preservation reaches 91\% ($\pm$2.3\%) on modular arithmetic with 49-347-node circuits, while ACDC exhausts memory beyond 1.4B parameters. Cross-architecture transfer coefficients span 0.38-0.82, with within-family pairs (Llama-7B $\to$ Llama-70B) attaining 0.82. Limitations include omitted attention-head circuits, 15-20\% unexplained reconstruction variance, ablation-based validation circularity, and uncertain interpretability of circuits exceeding several hundred nodes.

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

↑