arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.19580cs.LGecon.GNq-fin.EC
收藏

Leap+Verify: 适应性预测权重以加速神经网络训练

Leap+Verify: Regime-Adaptive Speculative Weight Prediction for Accelerating Neural Network Training

Jeremy McEntire

AI总结:

Leap+Verify通过适应性预测权重加速神经网络训练,利用激活空间余弦相似性划分训练阶段,验证预测后提升训练效率。

摘要:

我们引入了Leap+Verify框架,该框架应用推测执行--预测未来的模型权重并在接受前验证预测--以加速神经网络训练。受语言模型推理中的推测解码和自动可扩展计算(ASC)架构用于程序执行的启发,Leap+Verify利用激活空间余弦相似性作为实时李雅普诺夫代理信号,将训练分解为三个动态检测的阶段(混沌、过渡、稳定)。在每个阶段内,分析权重预测器(动量、线性、二次外推)尝试预测模型参数K个训练步骤后的值;预测只有在通过保留的损失标准验证后才会被接受。我们在WikiText-103上训练的GPT-2 124M和Qwen 2.5-1.5B模型上评估了Leap+Verify,通过五个随机种子,遍历预测深度K在{5, 10, 25, 50, 75, 100}。基于动量的预测(Adam动量外推)在两个尺度上都彻底失败,预测的损失超过实际值100-10,000倍--在优化器状态外推中出现普遍的爆炸性增长。有限差分预测器(线性、二次)在动量失败的地方成功:在124M模型中,K=5时在稳定阶段达到24%的严格接受率;在1.5B模型中,过渡阶段达到37%的严格接受率。规模依赖性的发现是在阶段分布中:GPT-2 124M在34%的训练中处于稳定阶段,而Qwen 1.5B在64%的阶段处于混沌阶段,并且只在0-2个检查点中达到稳定。更大的模型在可预测时更可预测,但可预测的次数更少--实际瓶颈从预测器的准确性转移到阶段的可用性。跨种子结果高度一致(验证损失方差小于1%),并且三个阶段框架在不同种子中产生相同的相位边界(±50步)

英文摘要:

We introduce Leap+Verify, a framework that applies speculative execution -- predicting future model weights and validating predictions before acceptance -- to accelerate neural network training. Inspired by speculative decoding in language model inference and by the Automatically Scalable Computation (ASC) architecture for program execution, Leap+Verify decomposes training into three dynamically detected regimes (chaotic, transition, stable) using activation-space cosine similarity as a real-time Lyapunov proxy signal. Within each regime, analytic weight predictors (momentum, linear, quadratic extrapolation) attempt to forecast model parameters K training steps ahead; predictions are accepted only when validated against a held-out loss criterion. We evaluate Leap+Verify on GPT-2 124M and Qwen 2.5-1.5B trained on WikiText-103 across five random seeds, sweeping prediction depth K in {5, 10, 25, 50, 75, 100}. Momentum-based prediction (Adam moment extrapolation) fails catastrophically at both scales, with predicted losses exceeding actuals by 100-10,000x -- a universal norm explosion in optimizer-state extrapolation. Finite-difference predictors (linear, quadratic) succeed where momentum fails: at 124M, they achieve 24% strict acceptance at K=5 in stable regimes; at 1.5B, they achieve 37% strict acceptance in transition regimes. The scale-dependent finding is in regime distribution: GPT-2 124M spends 34% of training in stable regime, while Qwen 1.5B spends 64% in chaotic regime and reaches stable in only 0-2 of 40 checkpoints. Larger models are more predictable when predictable, but less often predictable -- the practical bottleneck shifts from predictor accuracy to regime availability. Cross-seed results are highly consistent (less than 1% validation loss variance), and the three-regime framework produces identical phase boundaries (plus or minus 50 steps) across seeds.

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

↑