paper-with-me

Papers

Efficient and Modular Implicit Differentiation

2021-05-31 · NeurIPS 2021 12 · Mathieu Blondel, Quentin Berthet, Marco Cuturi, Roy Frostig, Stephan Hoyer, Felipe Llinares-López, Fabian Pedregosa, Jean-Philippe Vert

Automatic differentiation (autodiff) has revolutionized machine learning. It allows to express complex computations by composing elementary ones in creative ways and removes the burden of computing their derivatives by hand. More recently, differentiation of optimization problem solutions has attracted widespread attention with applications such as optimization layers, and in bi-level problems such as hyper-parameter optimization and meta-learning. However, so far, implicit differentiation remained difficult to use for practitioners, as it often required case-by-case tedious mathematical derivations and implementations. In this paper, we propose automatic implicit differentiation, an efficient and modular approach for implicit differentiation of optimization problems. In our approach, the user defines directly in Python a function $F$ capturing the optimality conditions of the problem to be differentiated. Once this is done, we leverage autodiff of $F$ and the implicit function theorem to automatically differentiate the optimization problem. Our approach thus combines the benefits of implicit differentiation and autodiff. It is efficient as it can be added on top of any state-of-the-art solver and modular as the optimality condition specification is decoupled from the implicit differentiation mechanism. We show that seemingly simple principles allow to recover many existing implicit differentiation methods and create new ones easily. We demonstrate the ease of formulating and solving bi-level optimization problems using our framework. We also showcase an application to the sensitivity analysis of molecular dynamics.

📄 PDF Abstract BibTeX arXiv:2105.15183

Code (2)

google/jaxopt 공식 구현 jax
mitmath/matrixcalc jax

Tasks

Meta-Learning

Similar Papers 제목 키워드 기반

Equivariant Deep Equilibrium Models for Imaging Inverse Problems

2025-11-24 · Alexander Mehta, Ruangrawee Kitichotkul, Vivek K Goyal, Julián Tachella arxiv

Equivariant imaging (EI) enables training signal reconstruction models without requiring ground truth data by leveraging signal symmetries. Deep equilibrium models (DEQs) are a powerful class of neural networks where the…

Improved Marginal Unbiased Score Expansion (MUSE) via Implicit Differentiation

2022-09-21 · Marius Millea

We apply the technique of implicit differentiation to boost performance, reduce numerical error, and remove required user-tuning in the Marginal Unbiased Score Expansion (MUSE) algorithm for hierarchical Bayesian inferen…

Bayesian InferenceProbabilistic Programming

Training Data Attribution via Approximate Unrolled Differentiation

2024-05-20 · Juhan Bae, Wu Lin, Jonathan Lorraine, Roger Grosse

Many training data attribution (TDA) methods aim to estimate how a model's behavior would change if one or more data points were removed from the training set. Methods based on implicit differentiation, such as influence…

counterfactual

One-step differentiation of iterative algorithms

2023-05-23 · NeurIPS 2023 11

In appropriate frameworks, automatic differentiation is transparent to the user at the cost of being a significant computational burden when the number of operations is large. For iterative algorithms, implicit different…

Bilevel Optimization

Modularity map of the network of human cell differentiation

2016-03-28

Cell differentiation in multicellular organisms is a complex process whose mechanism can be understood by a reductionist approach, in which the individual processes that control the generation of different cell types are…