arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.12430cs.LGmath.OCstat.ML
收藏

可微凸优化层

Differentiable Convex Optimization Layers

Stanford University(斯坦福大学);Facebook AI(Facebook人工智能);Carnegie Mellon University(卡内基梅隆大学);Bosch Center for AI(博世人工智能中心)

Akshay Agrawal, Brandon Amos, Shane Barratt, Stephen Boyd, Steven Diamond, Zico Kolter

摘要:

最近的工作已经展示了如何在深度学习架构中嵌入可微优化问题(即,其解决方案可以反向传播的问题)作为层。这种方法为某些问题提供了有用的归纳偏差,但现有的可微优化层软件是刚性的,难以应用于新的设置。在本文中,我们提出了一种方法来区分通过纪律凸规划,凸优化问题的一个子类使用特定领域的语言(DSL)的凸优化。我们介绍纪律参数化编程,纪律凸规划的一个子集,我们表明,每个纪律参数化程序可以表示为一个仿射映射的组成从参数到问题数据,求解器,和仿射映射从求解器的解决方案的原始问题的解决方案(一种新的形式,我们称为仿射求解仿射形式)。然后,我们演示了如何有效地区分这些组件中的每一个,允许端到端的分析微分通过整个凸计划。我们在CVXPY的1.1版本中实现了我们的方法,CVXPY是一种流行的Python嵌入式DSL,用于凸优化,并且还在PyTorch和TensorFlow 2.0中为纪律性凸程序实现了可微层。我们的实现显着降低了障碍,使用凸优化问题的可微程序。我们目前的线性机器学习模型和随机控制中的应用,我们表明,我们的层是有竞争力的(在执行时间)相比,从过去的工作专门微分求解器。

英文摘要:

Recent work has shown how to embed differentiable optimization problems (that is, problems whose solutions can be backpropagated through) as layers within deep learning architectures. This method provides a useful inductive bias for certain problems, but existing software for differentiable optimization layers is rigid and difficult to apply to new settings. In this paper, we propose an approach to differentiating through disciplined convex programs, a subclass of convex optimization problems used by domain-specific languages (DSLs) for convex optimization. We introduce disciplined parametrized programming, a subset of disciplined convex programming, and we show that every disciplined parametrized program can be represented as the composition of an affine map from parameters to problem data, a solver, and an affine map from the solver's solution to a solution of the original problem (a new form we refer to as affine-solver-affine form). We then demonstrate how to efficiently differentiate through each of these components, allowing for end-to-end analytical differentiation through the entire convex program. We implement our methodology in version 1.1 of CVXPY, a popular Python-embedded DSL for convex optimization, and additionally implement differentiable layers for disciplined convex programs in PyTorch and TensorFlow 2.0. Our implementation significantly lowers the barrier to using convex optimization problems in differentiable programs. We present applications in linear machine learning models and in stochastic control, and we show that our layer is competitive (in execution time) compared to specialized differentiable solvers from past work.

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

↑