超节点和光环:LLM前馈层中的损失关键枢纽
Supernodes and Halos: Loss-Critical Hubs in LLM Feed-Forward Layers
AI总结:
研究Transformer前馈网络中通道级重要性的组织方式,发现损失敏感性集中于少量通道,通过损失代理展示超节点和光环结构,验证保护核心对结构化剪枝的重要性。
摘要:
我们研究了Transformer前馈网络(FFN)中通道级重要性的组织。基于激活-梯度二阶矩的Fisher式损失代理(LP),我们发现损失敏感性集中在每层少量通道内。在Llama-3.1-8B中,每层顶部1%的通道占LP质量中位数为58.7%,范围为33.0%至86.1%。我们称这些损失关键通道为超节点。尽管FFN层也包含强激活异常值,但LP定义的超节点仅与激活定义的异常值弱重叠,且不被激活功率或权重范数单独解释。在核心周围,我们发现一个较弱但一致的光环结构:一些非超节点通道共享超节点的写入支持,并与保护核心表现出更强的冗余。我们使用一次结构化FFN剪枝作为诊断测试。在50% FFN稀疏度下,剪枝许多超节点的基线方法急剧下降,而我们的SCAR变体明确保护超节点核心;最强的变体SCAR-Prot在perplexity上达到54.8,相比Wanda-channel的989.2。LP集中模式在Mistral-7B、Llama-2-7B和Qwen2-7B中出现,且在针对Llama-3.1-70B的实验中仍然可见,并在OLMo-2-7B预训练期间增加。这些结果表明,LLM FFN发展出一个小的学得核心,保护这一核心对可靠结构化剪枝至关重要。
英文摘要:
We study the organization of channel-level importance in transformer feed-forward networks (FFNs). Using a Fisher-style loss proxy (LP) based on activation-gradient second moments, we show that loss sensitivity is concentrated in a small set of channels within each layer. In Llama-3.1-8B, the top 1% of channels per layer accounts for a median of 58.7% of LP mass, with a range of 33.0% to 86.1%. We call these loss-critical channels supernodes. Although FFN layers also contain strong activation outliers, LP-defined supernodes overlap only weakly with activation-defined outliers and are not explained by activation power or weight norms alone. Around this core, we find a weaker but consistent halo structure: some non-supernode channels share the supernodes' write support and show stronger redundancy with the protected core. We use one-shot structured FFN pruning as a diagnostic test of this organization. At 50% FFN sparsity, baselines that prune many supernodes degrade sharply, whereas our SCAR variants explicitly protect the supernode core; the strongest variant, SCAR-Prot, reaches perplexity 54.8 compared with 989.2 for Wanda-channel. The LP-concentration pattern appears across Mistral-7B, Llama-2-7B, and Qwen2-7B, remains visible in targeted Llama-3.1-70B experiments, and increases during OLMo-2-7B pretraining. These results suggest that LLM FFNs develop a small learned core of loss-critical channels, and that preserving this core is important for reliable structured pruning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。