arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.01802cs.LGcs.AImath.OC

优化层的交替微分法

Alternating Differentiation for Optimization Layers

ShanghaiTech University(上海科技大学);University of Technology Sydney(悉尼科技大学);Princeton University(普林斯顿大学);The University of Sydney(悉尼大学);JD Explore Academy(京东探索研究院)

Haixiang Sun, Ye Shi, Jingya Wang, Hoang Duong Tuan, H. Vincent Poor, Dacheng Tao

AI总结:

针对优化层隐式微分中 Jacobian 计算昂贵的问题,本文提出 Alt-Diff,通过交替执行原始与对偶更新降低矩阵维度,并支持截断加速。

摘要:

近年来,将优化问题作为优化层嵌入深度神经网络以编码约束和归纳先验的想法已逐渐流行。现有大多数方法聚焦于对 Karush-Kuhn-Tucker(KKT)条件进行隐式微分,这种方式需要在 Jacobian 矩阵上进行高成本计算,可能速度缓慢且内存消耗大。本文提出了一个名为 Alternating Differentiation(Alt-Diff,交替微分)的新框架,它以快速且递归的方式对优化问题(此处具体指具有多面体约束的凸优化问题)进行微分。Alt-Diff 以交替方式将微分过程解耦为原始更新和对偶更新。因此,Alt-Diff 显著降低了 Jacobian 矩阵的维度,尤其适用于具有大规模约束的优化问题,从而提高了隐式微分的计算速度。我们证明,Alt-Diff 得到的梯度与对 KKT 条件进行微分所得的梯度一致。此外,我们提出截断 Alt-Diff,以进一步加快计算速度。在若干标准假设下,我们证明梯度的截断误差上界与变量估计误差具有相同阶数。因此,可以截断 Alt-Diff 以进一步提高计算速度,而不会明显损失精度。一系列全面实验验证了 Alt-Diff 的优越性。

英文摘要:

The idea of embedding optimization problems into deep neural networks as optimization layers to encode constraints and inductive priors has taken hold in recent years. Most existing methods focus on implicitly differentiating Karush-Kuhn-Tucker (KKT) conditions in a way that requires expensive computations on the Jacobian matrix, which can be slow and memory-intensive. In this paper, we developed a new framework, named Alternating Differentiation (Alt-Diff), that differentiates optimization problems (here, specifically in the form of convex optimization problems with polyhedral constraints) in a fast and recursive way. Alt-Diff decouples the differentiation procedure into a primal update and a dual update in an alternating way. Accordingly, Alt-Diff substantially decreases the dimensions of the Jacobian matrix especially for optimization with large-scale constraints and thus increases the computational speed of implicit differentiation. We show that the gradients obtained by Alt-Diff are consistent with those obtained by differentiating KKT conditions. In addition, we propose to truncate Alt-Diff to further accelerate the computational speed. Under some standard assumptions, we show that the truncation error of gradients is upper bounded by the same order of variables' estimation error. Therefore, Alt-Diff can be truncated to further increase computational speed without sacrificing much accuracy. A series of comprehensive experiments validate the superiority of Alt-Diff.

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

↑