arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.13236cs.LGcs.CV
收藏

平衡网络中的联合推理与输入优化

Joint inference and input optimization in equilibrium networks

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

Swaminathan Gurumurthy, Shaojie Bai, Zachary Manchester, J. Zico Kolter

摘要:

深度学习中的许多任务都涉及优化\emph{inputs}到网络,以最小化或最大化某些目标;示例包括优化生成模型中的潜在空间以匹配目标图像,或反向扰动输入以降低分类器性能。然而,执行这样的优化传统上是相当昂贵的,因为它涉及针对每个梯度步长通过网络的完整的前向和后向传递。在一个单独的工作领域,最近的一个研究线程开发了深度平衡(DEQ)模型,这是一类放弃传统网络深度的模型,而是通过寻找单个非线性层的不动点来计算网络的输出。在本文中,我们表明,这两个设置之间有一个自然的协同作用。虽然单纯地使用DEQ来解决这些优化问题是昂贵的(由于为每个梯度步长计算固定点所需的时间),但我们可以利用基于梯度的优化可以将\emph{itself}转换为固定点迭代的事实来大幅提高整体速度。也就是说,我们\emph{simultaneously}都解决了DEQ固定点\emph{and}优化网络输入,所有在一个单一的“增强”DEQ模型,共同编码的原始网络和优化过程。事实上,该过程是足够快的,它允许我们有效地\emph{train} DEQ模型的任务,传统上依赖于一个“内部”的优化循环。我们在各种任务上展示了这种策略,例如在优化潜在代码的同时训练生成模型,训练去噪和修复等逆问题的模型,对抗训练和基于梯度的元学习。

英文摘要:

Many tasks in deep learning involve optimizing over the \emph{inputs} to a network to minimize or maximize some objective; examples include optimization over latent spaces in a generative model to match a target image, or adversarially perturbing an input to worsen classifier performance. Performing such optimization, however, is traditionally quite costly, as it involves a complete forward and backward pass through the network for each gradient step. In a separate line of work, a recent thread of research has developed the deep equilibrium (DEQ) model, a class of models that foregoes traditional network depth and instead computes the output of a network by finding the fixed point of a single nonlinear layer. In this paper, we show that there is a natural synergy between these two settings. Although, naively using DEQs for these optimization problems is expensive (owing to the time needed to compute a fixed point for each gradient step), we can leverage the fact that gradient-based optimization can \emph{itself} be cast as a fixed point iteration to substantially improve the overall speed. That is, we \emph{simultaneously} both solve for the DEQ fixed point \emph{and} optimize over network inputs, all within a single ``augmented'' DEQ model that jointly encodes both the original network and the optimization process. Indeed, the procedure is fast enough that it allows us to efficiently \emph{train} DEQ models for tasks traditionally relying on an ``inner'' optimization loop. We demonstrate this strategy on various tasks such as training generative models while optimizing over latent codes, training models for inverse problems like denoising and inpainting, adversarial training and gradient based meta-learning.

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

↑