SHINE: SHaring the INverse Estimate from the forward pass for bi-level optimization and implicit models

Zaccharie Ramzi, Florian Mannel, Shaojie Bai, Jean-Luc Starck, Philippe Ciuciu +1 more
6/1/2021
37 citations
cs.LGstat.ML

Official code: zaccharieramzi/shine (7 stars, Python, MIT, last commit 2022-05-05). 1 more implementation below.

Abstract

In recent years, implicit deep learning has emerged as a method to increase the effective depth of deep neural networks. While their training is memory-efficient, they are still significantly slower to train than their explicit counterparts.

Show full abstract

In Deep Equilibrium Models (DEQs), the training is performed as a bi-level problem, and its computational complexity is partially driven by the iterative inversion of a huge Jacobian matrix. In this paper, we propose a novel strategy to tackle this computational bottleneck from which many bi-level problems suffer. The main idea is to use the quasi-Newton matrices from the forward pass to efficiently approximate the inverse Jacobian matrix in the direction needed for the gradient computation. We provide a theorem that motivates using our method with the original forward algorithms. In addition, by modifying these forward algorithms, we further provide theoretical guarantees that our method asymptotically estimates the true implicit gradient. We empirically study this approach and the recent Jacobian-Free method in different settings, ranging from hyperparameter optimization to large Multiscale DEQs (MDEQs) applied to CIFAR and ImageNet. Both methods reduce significantly the computational cost of the backward pass. While SHINE has a clear advantage on hyperparameter optimization problems, both methods attain similar computational performances for larger scale problems such as MDEQs at the cost of a limited performance drop compared to the original models.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
zaccharieramzi/shineOfficial7PythonMIT2022-05-05
zaccharieramzi/hoagOfficial7Python–2021-11-21
MIT

Code for the DEQ experiments of the ICLR 2022 spotlight "SHINE: SHaring the INverse Estimate from the forward pass for bi-level optimization and implicit models"

71PythonMar 18, 20214 years agoMIT
bi-level-optimizationdeep-learningimplicit-modelsquasi-newton-method

Code for the bi-level experiments of the ICLR 2022 paper "SHINE: SHaring the INverse Estimate from the forward pass for bi-level optimization and implicit models" (on branch shine)

70PythonMar 23, 20215 years ago
bi-level-optimizationimplicit-modelsquasi-newton-method

Similar Papers

Cite this paper

@article{ramzi2021shine,
  title  = {SHINE: SHaring the INverse Estimate from the forward pass for bi-level optimization and implicit models},
  author = {Zaccharie Ramzi and Florian Mannel and Shaojie Bai and Jean-Luc Starck and Philippe Ciuciu and Thomas Moreau},
  year   = {2021},
  eprint = {2106.00553},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.00553}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.00553.svg)](https://codeofpaper.com/paper/2106.00553)

Discussion