arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.03276cs.LGcs.AI
收藏

重新审视可扩展的Hessian对角近似及其在强化学习中的应用

Revisiting Scalable Hessian Diagonal Approximations for Applications in Reinforcement Learning

University of Alberta(阿尔伯塔大学);Alberta Machine Intelligence Institute(阿尔伯塔机器智能研究所);Vector Institute(矢量研究所)

Mohamed Elsayed, Homayoon Farrahi, Felix Dangel, A. Rupam Mahmood

AI总结:

本文重新审视BL89的Hessian对角近似方案,提出改进方法HesScale,以接近梯度的计算成本获得高质量近似,并在强化学习中验证其能加快二阶优化并提升步长缩放稳定性。

摘要:

二阶信息对许多应用都很有价值,但计算起来颇具挑战性。若干工作专注于计算或近似Hessian对角线,但即使这种简化相比计算梯度也会引入显著的额外成本。在缺乏Hessian对角线的高效精确计算方案的情况下,我们重新审视了Becker和LeCun(1989,BL89)提出的早期近似方案,该方案的成本与梯度相似,但似乎一直被社区所忽视。我们提出了HesScale,这是对BL89的改进,只增加了可忽略不计的额外计算量。在小型网络上,我们发现这种改进的质量高于所有替代方案,甚至优于那些具有理论保证(如无偏性)的方法,同时计算成本要低得多。我们将这一见解用于使用小型网络的强化学习问题中,并在二阶优化和步长参数缩放中展示了HesScale。在我们的实验中,HesScale比现有方法优化得更快,并通过步长缩放提高了稳定性。这些发现为未来在更大模型中扩展二阶方法带来了希望。

英文摘要:

Second-order information is valuable for many applications but challenging to compute. Several works focus on computing or approximating Hessian diagonals, but even this simplification introduces significant additional costs compared to computing a gradient. In the absence of efficient exact computation schemes for Hessian diagonals, we revisit an early approximation scheme proposed by Becker and LeCun (1989, BL89), which has a cost similar to gradients and appears to have been overlooked by the community. We introduce HesScale, an improvement over BL89, which adds negligible extra computation. On small networks, we find that this improvement is of higher quality than all alternatives, even those with theoretical guarantees, such as unbiasedness, while being much cheaper to compute. We use this insight in reinforcement learning problems where small networks are used and demonstrate HesScale in second-order optimization and scaling the step-size parameter. In our experiments, HesScale optimizes faster than existing methods and improves stability through step-size scaling. These findings are promising for scaling second-order methods in larger models in the future.

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

↑