[Paper Review] Implicit MLE: Backpropagating Through Discrete Exponential Family Distributions
This paper introduces Implicit Maximum Likelihood Estimation (I-MLE), a general-purpose framework for backpropagating through discrete exponential family distributions by approximating gradients via target distributions derived from the loss and most probable states. I-MLE outperforms baseline methods like the straight-through estimator and is competitive with relaxation-based approaches, especially when using novel Sum-of-Gamma noise distributions for perturb-and-MAP sampling.
Combining discrete probability distributions and combinatorial optimization problems with neural network components has numerous applications but poses several challenges. We propose Implicit Maximum Likelihood Estimation (I-MLE), a framework for end-to-end learning of models combining discrete exponential family distributions and differentiable neural components. I-MLE is widely applicable as it only requires the ability to compute the most probable states and does not rely on smooth relaxations. The framework encompasses several approaches such as perturbation-based implicit differentiation and recent methods to differentiate through black-box combinatorial solvers. We introduce a novel class of noise distributions for approximating marginals via perturb-and-MAP. Moreover, we show that I-MLE simplifies to maximum likelihood estimation when used in some recently studied learning settings that involve combinatorial solvers. Experiments on several datasets suggest that I-MLE is competitive with and often outperforms existing approaches which rely on problem-specific relaxations.
Motivation & Objective
- To address the challenge of training neural networks with discrete latent variables or combinatorial optimization components, where standard backpropagation fails due to non-differentiable or discontinuous outputs.
- To develop a general-purpose learning framework that avoids problem-specific relaxations and does not require full probabilistic inference or faithful sampling.
- To enable end-to-end training of models combining discrete exponential family distributions and differentiable neural components, particularly in settings involving combinatorial solvers or discrete latent variables.
- To simplify gradient computation by relying only on the ability to compute the most probable states (MAP inference), making the method scalable and widely applicable.
Proposed method
- I-MLE computes gradients by constructing a target distribution $ q $ that approximates the empirical distribution of the most probable states observed during the forward pass.
- The framework uses perturbation-based implicit differentiation, where noise is added to the parameters to generate samples and estimate gradients via the perturb-and-MAP strategy.
- A novel family of Sum-of-Gamma (SoG) noise distributions is introduced to better approximate marginals in Gumbel-max sampling, improving gradient quality.
- Two types of target distributions are proposed: one based on the MAP solution (M-M), and another based on the mean of the loss-weighted distribution (μ-μ), both used to define the implicit gradient estimator.
- The method avoids smooth relaxations and does not require access to the full probability distribution, relying only on MAP inference and loss feedback.
- I-MLE is shown to reduce to standard maximum likelihood estimation in specific settings involving combinatorial solvers, establishing theoretical consistency.
Experimental results
Research questions
- RQ1Can we train hybrid neural models with discrete components without relying on problem-specific smooth relaxations or gradient approximations?
- RQ2How can we effectively backpropagate through discrete exponential family distributions when gradients are zero almost everywhere?
- RQ3What noise distribution yields better gradient estimates for perturb-and-MAP sampling in discrete latent variable models?
- RQ4Can I-MLE achieve performance comparable to or better than relaxation-based methods like Gumbel-Softmax in discrete latent variable learning?
- RQ5Does I-MLE enable effective end-to-end training of models involving black-box combinatorial solvers, such as shortest path computation?
Key findings
- I-MLE significantly outperforms the straight-through estimator (STE) in discrete VAEs, achieving lower test loss on 10-subset and 1-subset tasks.
- Using Sum-of-Gamma (SoG) noise distributions in I-MLE leads to lower test loss than Gumbel-Softmax in 10-subset VAEs, despite higher variance in samples.
- For the Warcraft shortest path task, I-MLE with the μ-μ target distribution achieves 97.2% accuracy at K=12, outperforming BB and DPO methods.
- I-MLE with μ-μ configuration achieves 93.7% accuracy at K=30, matching or exceeding the performance of BB and DPO across all grid sizes.
- The method shows faster convergence in training dynamics, suggesting improved optimization stability compared to baseline approaches.
- I-MLE simplifies to explicit maximum likelihood estimation in settings involving combinatorial solvers, confirming theoretical consistency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.