Adaptive Perturbation-Based Gradient Estimation for Discrete Latent Variable Models
Pasquale Minervini, Luca Franceschi, Mathias Niepert
Abstract
The integration of discrete algorithmic components in deep learning architectures has numerous applications. Recently, Implicit Maximum Likelihood Estimation (IMLE, Niepert, Minervini, and Franceschi 2021), a class of gradient estimators for discrete exponential family distributions, was proposed by combining implicit differentiation through perturbation with the path-wise gradient estimator. However, due to the finite difference approximation of the gradients, it is especially sensitive to the choice of the finite difference step size, which needs to be specified by the user. In this work, we present Adaptive IMLE (AIMLE), the first adaptive gradient estimator for complex discrete distributions: it adaptively identifies the target distribution for IMLE by trading off the density of gradient information with the degree of bias in the gradient estimates. We empirically evaluate our estimator on synthetic examples, as well as on Learning to Explain, Discrete Variational Auto-Encoders, and Neural Relational Inference tasks. In our experiments, we show that our adaptive gradient estimator can produce faithful estimates while requiring orders of magnitude fewer samples than other gradient estimators. All source code and datasets are available at https://github.com/EdinburghNLP/torch-adaptive-imle .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Differentiation of Blackbox Combinatorial Solvers cites Smart Predict-and-Optimize for Hard Combinatorial Optimization Problems
- Differentiation of Blackbox Combinatorial Solvers cites MIPaaL: Mixed Integer Program as a Layer
- LVM-Med: Learning Large-Scale Self-Supervised Vision Models for Medical Imaging via Second-order Graph Matching cites Differentiation of Blackbox Combinatorial Solvers
- Smart Predict-and-Optimize for Hard Combinatorial Optimization Problems cites MIPaaL: Mixed Integer Program as a Layer
- Interior Point Solving for LP-based prediction+optimisation cites Differentiation of Blackbox Combinatorial Solvers
- Interior Point Solving for LP-based prediction+optimisation cites Smart Predict-and-Optimize for Hard Combinatorial Optimization Problems
- Interior Point Solving for LP-based prediction+optimisation cites MIPaaL: Mixed Integer Program as a Layer
- LPGD: A General Framework for Backpropagation through Embedded Optimization Layers cites Differentiation of Blackbox Combinatorial Solvers
- LPGD: A General Framework for Backpropagation through Embedded Optimization Layers cites Smart Predict-and-Optimize for Hard Combinatorial Optimization Problems
- LPGD: A General Framework for Backpropagation through Embedded Optimization Layers cites Interior Point Solving for LP-based prediction+optimisation
- LPGD: A General Framework for Backpropagation through Embedded Optimization Layers cites MIPaaL: Mixed Integer Program as a Layer
- ExGra-Med: Extended Context Graph Alignment for Medical Vision-Language Models cites Differentiation of Blackbox Combinatorial Solvers
- ExGra-Med: Extended Context Graph Alignment for Medical Vision-Language Models cites LVM-Med: Learning Large-Scale Self-Supervised Vision Models for Medical Imaging via Second-order Graph Matching
- Probabilistic Graph Rewiring via Virtual Nodes cites SIMPLE: A Gradient Estimator for k-Subset Sampling
Cited by top-tier papers8
- LVM-Med: Learning Large-Scale Self-Supervised Vision Models for Medical Imaging via Second-order Graph MatchingDuy M. H. Nguyen, Hoang Nguyen, Nghiem Tuong Diep, Tan Ngoc Pham et al.NeurIPS 2023 · 107 citations
- Probabilistic Graph Rewiring via Virtual NodesChendi Qian, Andrei Manolache, Christopher Morris, Mathias NiepertNeurIPS 2024 · 24 citations
- ExGra-Med: Extended Context Graph Alignment for Medical Vision-Language ModelsDuy M. H. Nguyen, Nghiem Tuong Diep, Trung Nguyen, Hoang-Bao Le et al.NeurIPS 2025 · 7 citations
- LPGD: A General Framework for Backpropagation through Embedded Optimization LayersAnselm Paulus, Georg Martius, Vít MusilICML 2024 · 5 citations
- SIMPLE: A Gradient Estimator for k-Subset SamplingKareem Ahmed, Zhe Zeng, Mathias Niepert, Guy Van den BroeckICLR 2023 · 2 citations
Builds on11
- Mastering Atari with Discrete World ModelsDanijar Hafner, Timothy P. Lillicrap, Mohammad Norouzi, Jimmy BaICLR 2021 · 1,170 citations
- Differentiation of Blackbox Combinatorial SolversMarin Vlastelica Pogancic, Anselm Paulus, Vít Musil, Georg Martius et al.ICLR 2020 · 341 citations
- Smart Predict-and-Optimize for Hard Combinatorial Optimization ProblemsJayanta Mandi, Emir Demirovic, Peter J. Stuckey, Tias GunsAAAI 2020 · 184 citations
- MIPaaL: Mixed Integer Program as a LayerAaron M. Ferber, Bryan Wilder, Bistra Dilkina, Milind TambeAAAI 2020 · 169 citations
- Interior Point Solving for LP-based prediction+optimisationJayanta Mandi, Tias GunsNeurIPS 2020 · 138 citations
Related papers
- Implicit MLE: Backpropagating Through Discrete Exponential Family DistributionsMathias Niepert, Pasquale Minervini, Luca FranceschiNeurIPS 2021 · 121 citations
- Variational Inference for Sequential Data with Future Likelihood EstimatesGeon-Hyeong Kim, Youngsoo Jang, Hongseok Yang, Kee-Eung KimICML 2020 · 6 citations
- Gradient Estimation with Discrete Stein OperatorsJiaxin Shi, Yuhao Zhou, Jessica Hwang, Michalis K. Titsias et al.NeurIPS 2022 · 27 citations
- Path-Gradient Estimators for Continuous Normalizing FlowsLorenz Vaitl, Kim Andrea Nicoli, Shinichi Nakajima, Pan KesselICML 2022 · 14 citations
- Gradient-Based Program Synthesis with Neurally Interpreted LanguagesMatthew Macfarlane, Clément Bonnet, Herke van Hoof, Levi LelisICLR 2026 · 3 citations
