用轻量代理模型低成本复现大模型强化学习训练故障
MoE Proxy Models for Low-Cost Failure Reproduction and Diagnosis in LLM RL Post-Training
- 通过保留结构的聚类剪枝法筛选代表性专家构建代理模型
- 加速器需求降低50%-87.5%,单步NPU小时成本降33.3倍
- 适合调试大模型强化学习训练中的梯度溢出等问题
大型语言模型(LLM)的强化学习(RL)后训练计算开销巨大,系统链路复杂,调试成本高。实际中,框架适配、数值精度、算子实现等因素常导致梯度溢出、损失发散等故障。直接在大模型上复现故障需大量时间和资源。本文系统分析了在华为Ascend平台大规模RL训练中遇到的故障,总结典型故障类型,识别出三个与模型相关的故障复现关键因素。基于此,提出一种低代价故障调查与辅助诊断的代理模型构建方法。该方法采用保持结构的聚类式专家剪枝,保留模型主干架构、路由机制和基础任务能力,筛选代表性专家。实验表明,代理模型可降低50%-87.5%的加速器需求,单步NPU小时成本最高减少33.3倍,同时保持主要训练动态并准确复现原模型的故障响应。总体而言,代理模型可作为强化学习后训练中故障复现、定向验证和辅助诊断的低成本替代方案。
原文摘要 · Abstract (English)
Reinforcement learning (RL) post-training of large language models (LLMs) is computationally intensive and involves complex system pipelines with substantial debugging overhead. In practice, factors such as framework adaptation, numerical precision, and operator implementation can cause failures, including gradient overflow and loss divergence. Reproducing such failures directly on large models requires considerable time and computational resources. This paper systematically analyzes failures encountered during large-scale RL training on the Huawei Ascend platform, summarizes representative failure types, and identifies three model-side factors relevant to fault reproduction. Based on these factors, we propose a proxy-model construction method for low-cost fault investigation and auxiliary diagnosis. It employs structure-preserving, clustering-based expert pruning to select representative experts while retaining the model's backbone architecture, routing mechanism, and basic task capabilities. Our experimental results show that the proxy models reduce accelerator requirements by 50%-87.5% and achieve up to a 33.3x reduction in per-step NPU-hour cost, while preserving major training dynamics and reproducing fault responses consistent with the original models. Overall, the proxy models can serve as low-cost surrogates for fault reproduction, targeted validation, and auxiliary diagnosis in RL post-training.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。