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

面向半精度近端策略优化(PPO)的结构感知数值稳定化

Structure-Aware Numerical Stabilization for Half-Precision Proximal Policy Optimization

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Linxuan Wu, Liang Chen

AI总结:

针对资源受限平台的半精度PPO存在数值不稳定问题,提出含三个结构感知模块的PPO-FP16,在保证性能的同时提升训练速度、降低内存占用,且无需重新调参。

摘要:

资源受限平台上的本地在线训练需要低计算量和训练状态开销。我们研究了商用GPU上半精度近端策略优化(PPO)的数值稳定性和计算效率。直接将PPO训练转换为FP16不可靠,因为数值误差会通过策略更新和后续数据收集反馈,而PPO会反复将当前策略与固定行为策略进行比较。我们提出了具有三个结构感知模块的PPO-FP16:全局标量保护模块稳定小批量或参数更新间共享的统计量;策略变化残差保护模块提取并保留当前策略与行为策略间的微小差异;高效持久更新保护模块稳定优化器状态和参数回写,同时减少状态存储。这些改动保留了PPO目标、超参数和训练预算。在6个连续控制任务和5个随机种子下,PPO-FP16在4种方法中实现了最低的平均回报AUC排名(1.90),在30个环境-种子对比中17次排名第一;9种性能配置中有8种实现了PPO更新速度提升1.16至2.03倍;与全精度FP32 Adam相比,优化器状态内存减少71.7%至74.9%,峰值已分配GPU内存最多减少44.5%。结果表明,保护少量结构重要的量可实现稳定、高效的FP16 PPO,无需重新调参。

英文摘要:

Local online training on resource-constrained platforms requires low computational and training-state overhead. We study the numerical stability and computational efficiency of half-precision proximal policy optimization (PPO) on commodity GPUs. Directly converting PPO training to FP16 is unreliable because numerical errors feed back through policy updates and subsequent data collection, while PPO repeatedly compares a current policy with a fixed behavior policy. We propose PPO-FP16 with three structure-aware modules. Global scalar protection stabilizes statistics shared across a minibatch or parameter update. Policy-change residual protection extracts and preserves small differences between the current and behavior policies. Efficient persistent-update protection stabilizes optimizer state and parameter writeback while reducing state storage. These changes preserve the PPO objective, hyperparameters, and training budget. Across six continuous-control tasks and five seeds, PPO-FP16 achieves the lowest mean return-AUC rank (1.90) among the four methods and ranks first in 17 of 30 environment-seed comparisons. Eight of nine performance configurations yield PPO update speedups ranging from 1.16 to 2.03 times. Relative to Full FP32 Adam, optimizer-state memory is reduced by 71.7 to 74.9 percent, and peak allocated GPU memory is reduced by up to 44.5 percent. The results show that protecting a small set of structurally important quantities can deliver stable, efficient FP16 PPO without retuning.

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

↑