arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2203.11860cs.LGcs.NEmath.OCstat.ML
收藏

学习优化器中内存、计算和性能之间的实际权衡

Practical tradeoffs between memory, compute, and performance in learned optimizers

Google Research(谷歌研究院);Meta

Luke Metz, C. Daniel Freeman, James Harrison, Niru Maheswaranathan, Jascha Sohl-Dickstein

摘要:

优化在开发机器学习系统中起着昂贵而关键的作用。在学习优化器中,常用的手工设计优化器(例如Adam或SGD)的几个超参数被灵活的参数函数所取代。然后优化这些函数的参数,使得所得到的学习优化器最小化所选模型类上的目标损失。学习优化器既可以减少所需的训练步骤的数量,又可以改善最终的测试损失。然而,它们的训练可能是昂贵的,并且一旦训练好,由于优化器本身的计算和存储器开销,使用起来可能是昂贵的。在这项工作中,我们确定和量化的设计功能,管理内存,计算和性能权衡许多学习和手工设计的优化。我们进一步利用我们的分析来构建一个学习的优化器,它比以前的工作更快,内存效率更高。我们的模型和训练代码是开源的。

英文摘要:

Optimization plays a costly and crucial role in developing machine learning systems. In learned optimizers, the few hyperparameters of commonly used hand-designed optimizers, e.g. Adam or SGD, are replaced with flexible parametric functions. The parameters of these functions are then optimized so that the resulting learned optimizer minimizes a target loss on a chosen class of models. Learned optimizers can both reduce the number of required training steps and improve the final test loss. However, they can be expensive to train, and once trained can be expensive to use due to computational and memory overhead for the optimizer itself. In this work, we identify and quantify the design features governing the memory, compute, and performance trade-offs for many learned and hand-designed optimizers. We further leverage our analysis to construct a learned optimizer that is both faster and more memory efficient than previous work. Our model and training code are open source.

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

↑