arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.02041cs.LGphysics.comp-ph
收藏

通过时间稳定反向传播以学习复杂物理

Stabilizing Backpropagation Through Time to Learn Complex Physics

School of Computation, Information and Technology(计算、信息与技术学院);Technical University of Munich(慕尼黑工业大学)

Patrick Schnell, Nils Thuerey

AI总结:

本文针对物理模拟中通过时间反向传播的梯度爆炸与消失问题,提出一种基于梯度停止和逐分量比较的稳定反向传播方法,在不改变极小值位置的前提下实现平衡梯度流,并在三个控制任务上验证其有效性。

摘要:

在循环学习设置中,围绕极小值点的所有向量场里,梯度场因其爆炸和消失的更新方式,对于优化而言似乎是一个糟糕的选择,除了计算效率高之外几乎没有其他优势。我们试图在物理模拟的背景下改进这种次优做法,因为在物理模拟中,通过许多展开的时间步反向传播反馈被认为对于获得时间上连贯的行为至关重要。我们提出的替代向量场遵循两个原则:物理模拟器与神经网络不同,具有平衡的梯度流;并且对反向传播过程的某些修改不会改变原始极小值点的位置。由于对反向传播的任何修改都会使前向和反向过程解耦,梯度场的无旋转特性因此丧失。因此,我们讨论了使用这种旋转向量场进行优化的负面影响以及如何抵消这些影响。我们的最终方法可以通过一系列梯度停止和逐分量比较操作轻松实现,这些操作不会对可扩展性产生负面影响。我们在三个控制问题上的实验表明,尤其是当我们增加每个任务的复杂性时,来自梯度的不平衡更新无法再提供所需的精确控制信号,而我们的方法仍然能够解决这些任务。我们的代码可以在 https://github.com/tum-pbs/StableBPTT 找到。

英文摘要:

Of all the vector fields surrounding the minima of recurrent learning setups, the gradient field with its exploding and vanishing updates appears a poor choice for optimization, offering little beyond efficient computability. We seek to improve this suboptimal practice in the context of physics simulations, where backpropagating feedback through many unrolled time steps is considered crucial to acquiring temporally coherent behavior. The alternative vector field we propose follows from two principles: physics simulators, unlike neural networks, have a balanced gradient flow, and certain modifications to the backpropagation pass leave the positions of the original minima unchanged. As any modification of backpropagation decouples forward and backward pass, the rotation-free character of the gradient field is lost. Therefore, we discuss the negative implications of using such a rotational vector field for optimization and how to counteract them. Our final procedure is easily implementable via a sequence of gradient stopping and component-wise comparison operations, which do not negatively affect scalability. Our experiments on three control problems show that especially as we increase the complexity of each task, the unbalanced updates from the gradient can no longer provide the precise control signals necessary while our method still solves the tasks. Our code can be found at https://github.com/tum-pbs/StableBPTT.

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

↑