Dobb:块对角特征基中的分片局部预处理
Dobb: Shard-Local Preconditioning in Block-Diagonal Eigenbases
AI总结:
针对TP/FSDP下感知矩阵优化器的通信开销问题,提出Dobb优化器,通过分片本地计算更新,在GPT-2 XL和32 H100 GPU的FSDP基准中,其验证损失更低、优化器调用时间大幅缩短。
摘要:
训练参数和优化器状态超出单个节点内存的语言模型,需要将这些张量跨设备分片。在张量并行(TP)或完全分片数据并行(FSDP)下,Muon等感知矩阵的优化器会引入跨分片执行全局矩阵运算的通信开销。我们提出Dobb(Distributed Optimizer with Block-diagonal Eigenbases,带块对角特征基的分布式优化器),这是一种感知矩阵的优化器,旨在参数分片内本地计算更新。Dobb用对角块近似输入激活二阶矩,并在每个块内跟踪完整基;它将动量投影到这些基中,对系数应用符号归一化,再重构更新。当每个块在TP或FSDP下位于一个分片内时,Dobb本地执行其矩阵更新,仅需激活二阶矩的数据并行同步,无需额外通信。我们将Dobb与Dion(一种旨在保留正交更新优势同时减少通信的分布式感知矩阵优化器)进行基准测试。在GPT-2 XL(15.6亿参数)上,采用16个块的Dobb达到2.476的验证损失,而秩分数为1/16的Dion达到2.511;在32个H100 GPU上的FSDP下,Dobb将摊销后的优化器调用时间从Dion的124.1毫秒降至9.2毫秒。
英文摘要:
Training language models whose parameters and optimizer state exceed a single node's memory requires sharding these tensors across devices. Under tensor parallelism (TP) or fully sharded data parallelism (FSDP), matrix-aware optimizers such as Muon introduce communication to perform global matrix operations across shards. We propose Dobb (Distributed Optimizer with Block-diagonal Eigenbases), a matrix-aware optimizer designed to compute updates locally within parameter shards. Dobb approximates the input-activation second moment with diagonal blocks and tracks a complete basis within each block. It projects momentum into these bases, applies sign normalization to the coefficients, and reconstructs the update. When each block lies within one shard under TP or FSDP, Dobb applies its matrix update locally, requiring no communication beyond data-parallel synchronization of the activation second moments. We benchmark Dobb against Dion, a distributed matrix-aware optimizer designed to retain the benefits of orthonormalized updates while reducing communication. On GPT-2 XL (1.56B parameters), Dobb with 16 blocks reaches a validation loss of 2.476, compared with 2.511 for Dion at rank fraction 1/16. Under FSDP on 32 H100 GPUs, Dobb reduces the amortized optimizer-call time from 124.1 ms for Dion to 9.2 ms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。