arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.02525cs.LG
收藏

AdaHOP: 通过异常模式感知旋转实现快速且准确的低精度训练

AdaHOP: Fast and Accurate Low-Precision Training via Outlier-Pattern-Aware Rotation

Advanced Micro Devices, Inc.(先进微器件公司);POSTECH(POSTECH大学)

Seonggon Kim, Alireza Khodamoradi, Pranathi Vasireddy, Kristof Denolf, Eunhyeok Park

AI总结:

本文提出AdaHOP,通过分析权重、激活和梯度中的三种稳定异常模式,采用自适应Hadamard变换和异常提取策略,在MXFP4精度下实现BF16级质量,提升内存压缩和训练速度。

摘要:

Hadamard变换已成为稳定低精度训练的关键工具,但现有方法在所有张量和计算路径中统一应用。本文指出这种一刀切策略存在固有局限:Hadamard平滑仅在其方向与操作数的异常结构正确对齐时才能减少量化误差。通过系统研究LLM训练中的权重、激活和梯度,我们识别出三种稳定的异常模式:行向、列向和无。并证明矩阵乘法中每对异常模式需要不同的变换或异常处理策略。我们提出AdaHOP,即具有异常模式感知策略的自适应Hadamard变换,当内维混合适当抑制操作数的异常时应用内Hadamard变换(IHT),当不适用时则选择性应用异常提取(OE),将主导的异常行或列提取到高精度路径。通过融合的硬件感知Triton内核,AdaHOP在MXFP4精度下实现BF16级质量的训练,同时实现高达3.6倍的内存压缩和1.46倍的端到端训练加速。

英文摘要:

Hadamard transforms have become a key tool for stabilizing low-precision training, but existing methods apply them uniformly across tensors and computation paths. We show that this one-size-fits-all strategy is inherently limited: Hadamard smoothing reduces quantization error only when its direction is properly aligned with the operand's outlier structure. Through a systematic study of weights, activations, and gradients in LLM training, we identify three stable outlier patterns, Row-wise, Column-wise, and None, and show that each outlier pattern pair in matrix multiplication requires a distinct transform or outlier-handling strategy. We propose AdaHOP, Adaptive Hadamard transform with Outlier-Pattern-aware strategy, which applies Inner Hadamard Transform (IHT) when inner-dimension mixing properly suppresses the operands' outliers, and selectively applies Outlier Extraction (OE) that extracts dominant outlier rows or columns into a high-precision path when it does not. With fused, hardware-aware Triton kernels, AdaHOP enables training from scratch at MXFP4 precision with BF16-level quality, while achieving up to 3.6X memory compression, 1.46X end-to-end training speedup over BF16.

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

↑