何时以及为何将注意力头分组能加速μ子优化
When and Why Grouping Attention Heads Accelerates Muon Optimization
AI总结:
本文研究了将注意力头分组对μ子优化的影响,通过比较全矩阵μ子与分组μ子的性能,提出Group Muon方法,通过调整分组大小和规则优化模型验证损失。
摘要:
Muon对矩阵更新进行正交化,但多头注意力自然在头层面操作。这种粒度不匹配引发了μ子应应用于完整注意力投影、单个头还是中间头组的问题。本文通过全矩阵μ子与分组μ子的一步下降比较研究了这一问题。分析揭示了分组更新带来的白化增益与分组引起的范数成本之间的权衡。受此权衡启发,我们提出Group Muon,将头组大小和分组规则作为优化器超参数。在FineWeb上训练的GPT-2 Small中,适当分组在全QKV μ子和全头式μ子Split上均提升了验证损失。
英文摘要:
Muon orthogonalizes matrix updates, but multi-head attention naturally operates at the level of heads. This granularity mismatch raises the question of whether Muon should be applied to the full attention projection, to individual heads, or to intermediate head groups. We study this question through a one-step descent comparison between full-matrix Muon and group-wise Muon. Our analysis reveals a trade-off between the \textbf{group-wise whitening gain} from group-wise updates and the \textbf{grouping-induced norm cost}, an additional update-norm cost caused by replacing full-matrix whitening with group-wise whitening. Motivated by this trade-off, we propose \textbf{Group Muon}, which treats head group size and grouping rule as optimizer hyperparameters. On GPT-2 Small trained on FineWeb, appropriate grouping improves validation loss over both full-QKV Muon and fully head-wise MuonSplit.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。