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

RLFlow:利用世界模型优化神经网络子图转换

RLFlow: Optimising Neural Network Subgraph Transformation with World Models

University of Cambridge(剑桥大学)

Sean Parker, Sami Alabed, Eiko Yoneki

摘要:

训练深度学习模型需要极长的执行时间并消耗大量的计算资源。与此同时,最近的研究提出了有望减少深度学习模型运行时间的系统和编译器。数据处理中的有效优化方法是期望的,并且深度学习模型的计算要求的减少是广泛研究的焦点。在本文中,我们解决了神经网络子图转换探索强化学习(RL)代理,以实现性能的改善。我们提出的方法RLFlow可以学习执行神经网络子图转换,而不需要专业设计的算法来实现高水平的性能。最近的工作旨在将强化学习应用于计算机系统,取得了一些成功,特别是使用无模型强化学习技术。基于模型的强化学习方法在研究中受到越来越多的关注,因为它们可以用于学习环境的过渡动力学;这可以利用诸如世界模型(WM)之类的致幻环境来训练代理,从而与无模型方法相比提高样本效率。WM使用变分自动编码器,它建立了系统的模型,并允许以廉价的方式探索模型。在RLFlow中,我们提出了一个设计基于模型的代理与WM学习,通过执行一系列的子图变换,以减少模型运行时间来优化神经网络的架构。我们表明,我们的方法可以匹配常见的卷积网络的最先进的性能,并优于高达5%的基于变压器风格的架构

英文摘要:

Training deep learning models takes an extremely long execution time and consumes large amounts of computing resources. At the same time, recent research proposed systems and compilers that are expected to decrease deep learning models runtime. An effective optimisation methodology in data processing is desirable, and the reduction of compute requirements of deep learning models is the focus of extensive research. In this paper, we address the neural network sub-graph transformation by exploring reinforcement learning (RL) agents to achieve performance improvement. Our proposed approach RLFlow can learn to perform neural network subgraph transformations, without the need for expertly designed heuristics to achieve a high level of performance. Recent work has aimed at applying RL to computer systems with some success, especially using model-free RL techniques. Model-based reinforcement learning methods have seen an increased focus in research as they can be used to learn the transition dynamics of the environment; this can be leveraged to train an agent using a hallucinogenic environment such as World Model (WM), thereby increasing sample efficiency compared to model-free approaches. WM uses variational auto-encoders and it builds a model of the system and allows exploring the model in an inexpensive way. In RLFlow, we propose a design for a model-based agent with WM which learns to optimise the architecture of neural networks by performing a sequence of sub-graph transformations to reduce model runtime. We show that our approach can match the state-of-the-art performance on common convolutional networks and outperforms by up to 5% those based on transformer-style architectures

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

↑