Source-linked AI summary
Exponential Family Estimation via Adversarial Dynamics Embedding
Bo Dai, Zhen Liu, Hanjun Dai, Niao He, Arthur Gretton, Le Song, Dale Schuurmans
TL;DR
Intractable partition functions make general exponential-family models difficult to evaluate, sample, and learn. ADE jointly learns the primal model and a flexible dual sampler using dynamics embedding, and the paper reports advantages over state-of-the-art estimators in synthetic and real-data experiments.
Problem
Intractable partition functions make general exponential-family models difficult to evaluate, sample, and learn.
Source: §1 · p. 1Method
ADE uses a primal-dual MLE formulation and dynamics embedding to jointly learn a primal model and a flexible dual sampler with tractable entropy for the augmented model.
Source: §1 · p. 2, §3.2 · p. 6Results
The proposed approach can outperform current state-of-the-art estimators, and experiments on synthetic and real data illustrate its advantages.
Source: §1 · p. 2, §7 · p. 15Takeaways & Limitations
The learned sampler is coupled to the primal model, removing the need to design a separate sampling procedure after training.
Source: §1 · p. 2The comparison context notes that pseudo-likelihood may not apply to general continuous-variable exponential families, while noise-contrastive estimation requires an auxiliary distribution covering the data support.
Source: §4.4 · p. 10, §4.7 · p. 11
Abstract
from arXiv · showhide
We present an efficient algorithm for maximum likelihood estimation (MLE) of exponential family models, with a general parametrization of the energy function that includes neural networks. We exploit the primal-dual view of the MLE with a kinetics augmented model to obtain an estimate associated with an adversarial dual sampler. To represent this sampler, we introduce a novel neural architecture, dynamics embedding, that generalizes Hamiltonian Monte-Carlo (HMC). The proposed approach inherits the flexibility of HMC while enabling tractable entropy estimation for the augmented model. By learning both a dual sampler and the primal model simultaneously, and sharing parameters between them, we obviate the requirement to design a separate sampling procedure once the model has been trained, leading to more effective learning. We show that many existing estimators, such as contrastive divergence, pseudo/composite-likelihood, score matching, minimum Stein discrepancy estimator, non-local contrastive objectives, noise-contrastive estimation, and minimum probability flow, are special cases of the proposed approach, each expressed by a different (fixed) dual sampler. An empirical investigation shows that adapting the sampler during MLE can significantly improve on state-of-the-art estimators.
1 Introduction
General exponential-family models are difficult to evaluate, sample, and learn because their partition functions are often intractable. ADE directly approximates maximum likelihood by jointly learning a primal model and dual sampler, and experiments report that it can outperform current state-of-the-art estimators.
1 Introduction
- The paper addresses whether a simple, effective algorithm can estimate general exponential-family distributions despite intractable partition functions.Intractability makes evaluation, sampling, and learning difficult, hindering practical application.Source: §1 · p. 1
- Existing alternatives face distinct constraints: contrastive divergence uses biased gradients and requires careful MCMC-kernel design, while other criteria have computational or support requirements.Score matching requires third-order derivatives; noise-contrastive estimation requires a tractable auxiliary distribution that covers the data support.Source: §1 · p. 2
- ADE directly approximates MLE through a primal-dual formulation that jointly learns a sampler and model, addressing expensive, biased MCMC steps in contrastive divergence.The paper identifies naive transport mappings as making entropy estimation difficult and requiring an additional auxiliary model.Source: §1 · p. 2
- Dynamics embedding represents the dual distribution using primal-model parameters, retaining HMC's tractable augmented-model entropy while increasing sampler flexibility without extra parameters.The approach builds on an HMC-inspired augmented model with latent kinetic variables.Source: §1 · p. 2
- ADE can outperform current state-of-the-art estimators across a series of experiments.The introduction also describes contrastive divergence, pseudo-likelihood, score matching, non-local contrastive objectives, noise-contrastive estimation, and minimum probability flow as special cases with hand-designed dual samplers.Source: §1 · p. 2
2 Preliminaries
The preliminaries define the exponential-family estimation problem, introduce dynamics-based sampling, and derive a primal-dual view of MLE. This view replaces explicit partition-function computation with an optimization over a dual distribution whose parameterization must balance flexibility, tractable entropy, and dependence on the primal model.
2 Preliminaries
- The preliminaries situate these tools within exponential-family models, dynamics-based MCMC, and the primal-dual view of MLE.These are the three technical-background topics identified for the algorithm's derivation.Source: §2 · p. 2
2.1 Exponential Family and Energy-based Model
- For a general exponential-family model, MLE maximizes expected model energy minus the log-partition function, but both that function and a model expectation in the gradient are intractable.The sufficient statistic can be a general parametric model such as a neural network; the setup also considers learning the energy jointly with an unknown base density.Source: §2.1 · p. 3
2.2 Dynamics-based MCMC
- Dynamics-based MCMC samples by simulating differential-equation dynamics; HMC uses potential and kinetic energy, and finite-step sampling can approximate the model expectation used in MLE.HMC's continuous-time dynamics asymptotically visit the target distribution, while practical sampling adds an acceptance-rejection step to reduce discretization error.Source: §2.2 · p. 3
2.3 The Primal-Dual View of MLE
- Fenchel duality rewrites MLE as a max-min problem over a dual distribution, bypassing explicit partition-function computation and providing a distribution usable for inference.The dual sampler must be flexible, have tractable entropy, and explicitly incorporate the primal model; standard parameterizations do not jointly provide these properties and principled parameter coupling.Source: §2.3 · p. 4
3 Adversarial Dynamics Embedding
The section augments the exponential family with kinetic variables and uses dynamics embeddings to represent a flexible dual sampler while preserving the original MLE. It develops latent-space dynamics with tractable entropy and jointly learns the sampler and primal model.
3.1 Primal-Dual View of Augmented MLE
- The augmented model’s MLE is the same as the original MLE, and its design avoids the extra variational steps needed to handle an intractable marginal entropy.The momentum variable is latent; the augmented construction is used to formulate the primal-dual objective.Source: §3.1 · pp. 4–5
3.2 Representing Dual Sampler via Primal Model
- As the step size approaches zero, the HMC embedding has a stationary distribution whose marginal is the model distribution, supporting approximation of continuous-variable exponential families.The continuous-time particle density follows a Fokker–Planck equation.Source: §3.2 · p. 5
- Generalized HMC updates evolve momentum in a latent space, avoiding the high-dimensional, noisy observation space and making the dynamics more computationally efficient.The embedding generalizes the leapfrog update and differs from the real-NVP-inspired parametrization of Levy et al. (2018).Source: §3.2 · p. 6
- The dynamics embedding defines a flexible family with computable entropy, and classic HMC is a special case of its generalized leapfrog layer.The embedding’s density is tractable, enabling entropy estimation for the augmented model.Source: §3.2 · p. 6
3.3 Coupled Model and Sampler Learning
- The max-min learning procedure updates the primal potential and sampler together, with shared parameters linking the sampler to the model.The paper describes these updates as learning to sample and reports that parameter sharing promotes learning efficiency.Source: §3.3 · p. 7
4 Connections to Other Estimators
The section recasts several established estimators as ADE special cases, each corresponding to a fixed, hand-designed dual sampler. It contrasts these with ADE’s adaptive sampler, which can avoid errors associated with fixed sampling choices.
4 Connections to Other Estimators
- ADE recasts existing estimators as special cases by replacing its adaptive dual sampler with hand-designed samplers, which can lead to extra error and inferior solutions.The section covers contrastive divergence, pseudo- and composite likelihood, score matching, Stein discrepancy, non-local contrastive objectives, minimum probability flow, and noise-contrastive estimation.Source: §4 · pp. 7–8
4.1 Connection to Contrastive Divergence
- CD and PCD incur errors from both their sampler and gradient back-propagation truncation; ADE learns to sample and uses true gradients.CD arises when the empirical distribution initializes the sampler, sampling learning is eliminated, and gradients through the sampler are ignored; PCD uses previous-model samples.Source: §4.1 · p. 8
4.2 Connection to Score Matching
- Score matching is a second-order Taylor approximation of MLE using a fixed one-step Langevin Monte Carlo dual sampler.The section identifies this connection with the scaled score-matching objective.Source: §4.2 · pp. 8–9
4.3 Connection to Minimum Stein Discrepancy Estimator
- The diffusion Stein kernel estimator is a Taylor approximation of MLE using a fixed one-step Stein variational gradient descent dual sampler.The section derives the identity diffusion kernel Stein discrepancy objective as a special approximation to MLE.Source: §4.3 · pp. 9–10
4.4 Connection to Pseudo-Likelihood and Conditional Composite Likelihood
- Pseudo-likelihood and composite likelihood correspond to fixed conditional samplers; pseudo-likelihood may not apply to continuous exponential families with intractable conditionals.Pseudo-likelihood samples a coordinate, masks it, then samples that coordinate from its conditional distribution; composite likelihood uses a prefixed conditional block sampler.Source: §4.4 · p. 10
4.5 Connection to Non-local Contrastive Objectives
- Non-local contrastive objectives correspond to sampling a data point, selecting a subset conditionally, then sampling within that subset; this sampler is also inapplicable to general continuous exponential families.The subset is selected according to the stated weights w(x, Si).Source: §4.5 · p. 11
4.6 Connection to Minimum Probability Flow
- Minimum probability flow corresponds to a fixed sampler that draws x from the data and x′ from a transition kernel Γ(x′|x).The section describes MPF as exploiting one-step MCMC and accounting for sampler effects in its gradient.Source: §4.6 · p. 11
4.7 Connection to Noise-Contrastive Estimator
- Noise-contrastive estimation learns a density ratio against a user-defined reference distribution, and its performance depends on that distribution covering the data support.The section characterizes its negative sampler as approximate importance sampling and notes that support coverage is non-trivial in high-dimensional applications.Source: §4.7 · p. 11
5 Related Work
Prior energy-based estimation methods have faced trade-offs in sampler flexibility and entropy tractability. ADE uses an augmented model and a new parametrization to pursue both, while its learned sampler serves exponential-family estimation rather than a fixed model.
5 Related Work
- Earlier dual-sampler approaches were limited by restrictive approximation, intractable entropy, entropy bounds or heuristics, extra auxiliary components, or the need for a same-support proposal.ADE contrasts with these approaches by using an augmented model and a novel parametrization to achieve flexibility and tractability.Source: §5 · p. 12
- Unlike meta-learning methods that target a sampler for a fixed model, ADE learns a sampler to assist exponential-family model estimation and uses an augmented model with tractable entropy estimation.The paper identifies this goal as the key distinction from methods that only learn samplers.Source: §5 · p. 12
6 Experiments
ADE is evaluated on synthetic distributions and MNIST/CIFAR-10, where its sampler and learned energy are assessed alongside image generation and completion. The reported results favor ADE on most synthetic MMD comparisons and on the cited image-generation benchmarks.
6.1 Synthetic experiments
- On synthetic datasets, the learned sampler almost perfectly recovers the distribution, and its samples converge smoothly toward the true data distribution.The authors also interpret the convergence plots as indirect evidence of good convergence for the learned potential f.Source: §6.1 · pp. 12–13
- ADE obtains the best sampler MMD in most synthetic cases, compared with NF, SM, and CD.The comparison uses 1,000 samples for NF and ADE; SM is evaluated using vanilla HMC samples from its learned model.Source: Table 2 · p. 12, §6.1 · p. 13
6.2 Real-world Image Datasets
- ADE outperforms fixed Langevin PCD and enables the generator to outperform Spectral GAN on CIFAR-10.The comparison reports inception scores for unconditional CIFAR-10 models.Source: §6.2 · p. 14, Table 3 · p. 14
- On MNIST and CIFAR-10, generated and test-image energy distributions significantly overlap, which the authors say indicates that the learned energy functions capture the desired distributions.Figure 3 also shows generated images for both datasets.Source: §6.2 · p. 14, Figure 3 · p. 14
- For MNIST completion, ADE updates the noise-masked lower half of each input while keeping the upper half fixed, using learned dual-sampler steps.The paper visualizes outputs from 20 HMC runs.Source: §6.2 · p. 14
7 Conclusion
The conclusion presents ADE as an efficient approach to maximum-likelihood estimation for general exponential families, using a differentiable primal-dual formulation with auxiliary kinetic variables. It reports improved estimation and inference efficiency, and empirical advantages on synthetic and real data.
7 Conclusion
- ADE uses the primal-dual formulation of MLE for an augmented distribution with kinetic variables to incorporate the dual sampler into estimation differentiably.The approach allows parameters to be shared between the primal model and dual sampler.Source: §7 · p. 14
- The authors report that sharing primal and dual parameters achieves better estimation quality and inference efficiency.They also establish connections between ADE and existing estimators.Source: §7 · pp. 14–15
- The conclusion reports empirical advantages on both synthetic and real data.Figure 4 illustrates image completion with the ADE learned model and sampler on MNIST.Source: §7 · p. 15, Figure 4 · p. 15
A Proof of Theorems in Section 3
The appendix proves properties of the augmented model and develops alternative dynamics embeddings, density calculations, gradient estimation, and initialization choices for the practical algorithm.
A Proof of Theorems in Section 3
- The augmented model has the same MLE as the original model, and the HMC embedding’s particle density converges to the augmented target as time tends to infinity.The proof also establishes stationarity of the target distribution and unit Jacobian determinants for the discussed transformations.Source: A Proof of Theorems in Section 3 · pp. 19–20
B Variants of Dynamics Embedding
- The appendix identifies deterministic Langevin dynamics and continuous and generalized variants as alternatives that can be embedded.These variants extend the dynamics used to parameterize the dual sampler.Source: B Variants of Dynamics Embedding · p. 20
B.1 Deterministic Langevin Embedding
- Deterministic Langevin embedding uses x′ = x + η∇_x f(x), with density changes computed by change of variables; its log-determinant and derivative are expensive to compute.Polynomial expansions and Hutchinson approximation are described for approximating these computations.Source: §B.1 · p. 21
B.2 Continuous-time Langevin Embedding
- Continuous-time Langevin embedding provides samples and density values, with integrals approximable by numerical quadrature.The appendix distinguishes its trace-operator ODE from the Hessian-based flow of Grathwohl et al. (2019), and contrasts its shared-parameter fitting with Zhang et al. (2018).Source: §B.2 · p. 22
B.3 Generalized Continuous-time Langevin Embedding
- Generalized continuous-time Langevin embedding allows an arbitrary smooth function h to act on ξ_f(x) = (∇_x f(x), f(x), x), with density changes derived by change of variables.The local density update is approximated using a trace expression.Source: §B.3 · pp. 22–23
C Practical Algorithm
- The practical algorithm specifies gradient computation and initialization of qθ(x, v), with back-propagation through time costing proportionally to the number of sampling steps T.The initialization discussion includes nonparametric, flow-based, deterministic-Langevin, and deep latent-variable options.Source: C Practical Algorithm · p. 23, §C.1 · p. 23, §C.2 · pp. 23–24
C.1 Gradient Estimator
- When the dual sampler is optimal, the third gradient term vanishes; truncated gradients approximate back-propagation through time, with smaller truncation bias as T increases.This approximation relies on the stated convergence of HMC embedding as η approaches zero and T increases.Source: §C.1 · p. 23
C.2 Initialization Distribution Parametrization
- The initial dual distribution can be fixed to empirical data times a Gaussian momentum distribution, or parameterized with flows, deterministic Langevin embedding, or a deep latent-variable model.For generalized HMC, the auxiliary variable v can have lower dimension than x; vanilla leapfrog HMC requires equal dimensions.Source: §C.2 · pp. 23–24
D.1 Synthetic Experiments Details
The synthetic experiments describe model configurations, comparison procedures, and a parameter-recovery task for a diagonal-covariance Gaussian. Training uses generated samples from the target distribution and held-out samples for evaluation.
D.1 Synthetic Experiments Details
- The ADE configuration fixes 10 normalizing-flow layers and uses at most 10 dynamics updates, keeping sampling steps comparable to NF while using less memory.The NF baseline is tuned over 10, 15, or 20 layers.Source: §D.1 · p. 24
- Training-stability trials include clipping HMC samples, a 0.01 gradient penalty, proposal-Gaussian standard deviations of 1 or 0.5, and a momentum penalty equivalent to latent-variable prior variance.The authors state that the gradient penalty is not very important and that standard deviation 0.5 helps in some cases.Source: §D.1 · p. 24
- The synthetic data generator produces training data on the fly, with 1,000 samples generated for held-out evaluation.The unnormalized model exp(c · f) is illustrated with c tuned within [0.01, 10].Source: §D.1 · p. 24
- For MMD evaluation, NF and ADE use 1,000 sampler draws with a Gaussian kernel and median-trick bandwidth; SM is evaluated using vanilla HMC draws from its learned model.This procedure compensates for SM having no sampler of its own in the comparison.Source: §D.1 · p. 24
- The parameter-recovery experiment uses a high-dimensional Gaussian with diagonal covariance and a specified quadratic energy function.ADE uses a two-layer MLP proposal followed by three HMC steps, while CD uses up to 15 HMC steps.Source: §D.1 · p. 25
D.2 Real-world Experiments Details
ADE's real-world image experiments report strong generation metrics and describe the settings used for generation and image completion. The appendix also gives a non-parametric MNIST completion setup and its sampling procedure.
D.2 Real-world Experiments Details
- Table 4 presents the architectures for the potential function f(x) and initial dual sampler p0.The supplied implementation description places batch normalization before leaky ReLU in each generator deconvolution layer.Source: Table 4 · p. 25, §D.2 · p. 25
- The parametric image experiments train for 200,000 iterations with batch size 64 and use 30 HMC steps, learned step sizes, and entropy and momentum regularization coefficients of 10^-5.The setup uses spectral normalization and Adam with learning rate 10^-4; η is fixed at 0.5.Source: §D.2 · p. 25
- Around 2100 nats is ADE’s estimated CIFAR-10 log likelihood; ADE also achieves the best inception score among the compared energy-model and state-of-the-art GAN algorithms.The log likelihood is estimated with simple importance sampling and a uniform proposal on [−1, 1]^nd.Source: §D.2 · p. 25
- For non-parametric MNIST completion, the model is trained on fully observed images, then learned HMC updates the noise-masked lower half while the upper half stays fixed for 20 steps.The setup unfolds 60 HMC steps in the dual samplers and trains for 60,000 iterations with a replay buffer of 10,000.Source: §D.2 · pp. 25–26
E More Experiment Results
The appendix adds visual results for learned samplers and potential functions on synthetic datasets, alongside generated MNIST and CIFAR-10 images.
E More Experiment Results
- Figure 5 shows learned samplers in odd rows and potential functions in even rows across synthetic datasets; × marks training data and • marks ADE samplers.The appendix reports visualizations of learned models and samplers on all synthetic datasets.Source: Figure 5 · p. 26, E More Experiment Results · p. 26
- Figure 6 contains additional images generated by ADE on MNIST.The caption identifies the dataset and method for the generated images.Source: E More Experiment Results · p. 26, Figure 6 · p. 27
- Figure 7 contains additional images generated by ADE on CIFAR-10.The caption identifies the dataset and method for the generated images.Source: E More Experiment Results · p. 26, Figure 7 · p. 28