paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SNIP: An Adaptive Mixed Precision Framework for Subbyte Large Language Model Training

SNIP:面向亚字节大语言模型训练的自适应混合精度框架
ASPLOS Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 22026匹配度 2/10 · 论文研究 LLM 训练中的 subbyte 混合精度与 ILP 逐层精度分配,属于机器学习系统/数值精度优化,未涉及静态分析、Agentic 程序、LLM 改进静态分析/形式化验证或浮点程序分析。与用户方向仅有低精度数值误差的微弱关联,核心问题不匹配。引用 0 inbox
Yunjie Pan, Yongyi Yang, Hanmei Yang, Scott Mahlke
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 SNIP:利用前向损失偏差与后向权重偏差指标,通过 ILP 逐层自适应分配 subbyte 混合精度,保持 LLM 质量并最多减少 80% FLOPs。

大语言模型训练中,现代 GPU 支持 subbyte 精度,但如何在不损害模型质量的前提下高效利用该精度仍具挑战。现有混合精度训练要么对所有 GEMM 统一精度,要么依赖难以泛化的启发式方法,导致收敛次优甚至不稳定。本文提出 SNIP,一种细粒度自适应混合精度训练框架,用于支持 subbyte 精度的 LLM 预训练。SNIP 周期性收集激活、梯度和优化器状态统计,定义前向传播中的损失偏差(量化导致训练损失上升)与反向传播中的权重偏差(梯度误差传播影响更新)两个指标,并基于这些指标构建整数线性规划问题,在满足效率目标的同时逐层优化精度以最小化整体质量损失。在 1B、3B、7B 和 70B 的 Llama 类模型上,SNIP 持续优于现有基线,最多减少 80% FLOPs,并在不同模型规模和训练阶段保持模型质量,计算开销极小。

问题
在支持 subbyte 精度的 GPU 上训练 LLM 时,现有混合精度方法或统一精度或依赖启发式,难以兼顾收敛稳定性和效率。
方法
SNIP 周期收集激活、梯度和优化器状态统计,定义前向损失偏差与后向权重偏差,并求解 ILP 以逐层分配精度。
评估
在 1B/3B/7B/70B Llama 类模型上对比现有基线,最多减少 80% FLOPs,同时保持模型质量且开销极小。
原文摘要(Abstract)

Training large language models (LLMs) efficiently while preserving model quality poses significant challenges, particularly with subbyte precision supported by state-of-the-art GPUs. Current mixed-precision training approaches either apply uniform precision to all GEMM operations or rely on heuristic-based methods that fail to generalize during training, leading to suboptimal convergence and instability. To address these challenges, this paper introduces SNIP, a fine-grained adaptive mixed-precision training framework for LLM pretraining that supports subbyte precision. SNIP periodically collects statistics on activations, gradients, and optimizer states to assess the precision loss impact on model quality. We define two key metrics: loss divergence in the forward pass, caused by quantization-induced increases in training loss, and weight divergence in the backward pass, which measures error propagation through gradients affecting model updates. These metrics guide an Integer Linear Programming (ILP) problem that systematically optimizes layerwise precision to minimize overall quality loss while meeting efficiency targets. Experiments on 1B, 3B, 7B and 70B Llama-like models demonstrate that SNIP consistently outperforms existing baselines, reducing FLOPs by up to 80% while preserving model quality across different model sizes and training phases with minimal computational overhead.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{PanYYM26,
  title = {SNIP: An Adaptive Mixed Precision Framework for Subbyte Large Language Model Training},
  author = {Yunjie Pan and Yongyi Yang and Hanmei Yang and Scott Mahlke},
  booktitle = {ASPLOS},
  year = {2026},
  doi = {10.1145/3779212.3790223}
}