Realization of Variational Divergence Minimization (VDM)
On this page 15 headings
What is VDM?
Variational Divergence Minimization (VDM) is a framework for training generative models by minimizing a divergence between the real-data distribution and the model-generated distribution.
The central idea is to convert a divergence, which may be difficult to compute directly, into a variational optimization objective that can be estimated from samples.
Goal: Train a generator so that its output distribution resembles the distribution of real training data.
Dataset and real-data distribution
Consider a dataset:
Assume the observations are independently and identically distributed:
Here:
: training dataset
: an individual training sample
: number of samples
: real-data probability distribution
i.i.d.: independent and identically distributed
For example, if the dataset contains handwritten digits, describes the underlying distribution of real digit images.
We observe samples from , but generally do not know its exact probability density.

Latent noise and the generator
First, sample a random latent vector:
where is the zero mean vector and is the identity covariance matrix.
A generator neural network transforms the latent vector into a synthetic observation:
Here:
: latent random vector
: generator function
: generator parameters, including weights and biases
: generated sample
: distribution induced by the generator
Thus:
Changing changes the generated samples and therefore the model distribution .

Original divergence minimization objective
We want the generated distribution to resemble the real distribution .
The mathematical objective is:
Here, is an -divergence.
For distributions with densities and , under appropriate conditions:
The function is convex, conventionally normalized by
The notation means finding the generator parameters that minimize the divergence.
Important: The generator minimizes divergence; it does not necessarily minimize the individual output values of the scoring network.
Why direct divergence minimization is difficult
The divergence formula involves the density ratio:
In many generative modeling problems, we can sample from the real and generated distributions but cannot evaluate both densities directly.
This makes the original divergence difficult to calculate and optimize.
The solution is to use the variational representation studied in Week 1.
Variational representation of an f-divergence
Recall the convex conjugate:
Fenchel–Young inequality gives:
Using the density ratio and taking expectations leads to:
Define the variational objective:
Here:
: an admissible scoring function
: convex conjugate of
: expectation over real samples
: expectation over generated samples
Under appropriate conditions, maximizing over a sufficiently rich class of admissible functions recovers the divergence:
This formulation is useful because expectations can be approximated using samples.

Parameterizing the scoring function
Instead of searching over all possible functions , represent the scoring function with a neural network:
where contains the scoring network's trainable parameters.
The practical objective becomes:
The scoring network learns a function that maximizes the variational objective for a fixed generator.
Its output is a score, not necessarily a probability.
The function must also satisfy the domain requirements of . The teacher introduces a suitable output activation for this in the next topic.
The min–max objective
Combining generator optimization with scoring-network optimization gives:
The two networks have opposing optimization objectives.
Scoring network:
For fixed generator parameters, find the scoring function that gives the strongest available variational lower bound.
Generator:
For a fixed scoring function, update the generator to reduce the objective.
The intended overall result is to reduce the divergence between real and generated distributions.
When the scoring-function family is restricted, the maximized variational objective may be only a lower bound on the true divergence. Exact equivalence requires suitable assumptions about the function class and optimization.

Estimate the objective from samples
Expectations are population averages. With n real samples and m independent noise samples, replace each expectation by its own sample average. The real and generated batch sizes need not be equal.
Suppose the mean score on real samples is 1.5, and the mean conjugate-transformed score on generated samples is 0.6. The estimated objective is 1.5 − 0.6 = 0.9. These are illustrative evaluated averages, not raw probabilities.
Keep the scoring network fixed. If a generator update changes the second mean to 0.8, the estimate becomes 1.5 − 0.8 = 0.7. The objective decreased. Notice that the generated conjugate-transformed term increased: minimizing the difference does not mean pushing every scoring output down.
A finite-sample estimate fluctuates and need not itself be a certified lower bound on the population divergence. The variational lower-bound statement concerns the population expectations under its assumptions.
Why is this adversarial optimization?
The problem is called adversarial because the two networks have opposing objectives.
The scoring network tries to expose discrepancies between real and generated distributions.
The generator tries to reduce those discrepancies.
The networks do not need to output opposite numerical scores. Their opposition comes from maximizing versus minimizing the same objective.
This leads to a min–max or saddle-point optimization problem.

Understanding a saddle point
Consider the simple mathematical example:
For :
This is minimized at:
For :
This is maximized at:
Therefore:
The point is a minimum in the direction and a maximum in the direction.
This illustrates the mathematical meaning of a saddle point. Real neural-network objectives are more complicated and are not guaranteed to converge to such a point.

Complete mathematical flow
There are two sampling streams, not a transformation from real observations into latent noise. Real observations come from the dataset; latent noise enters the generator. The scoring network evaluates samples from both streams.
The original goal is to choose generator parameters that minimize the divergence. Its variational realization replaces the density calculation with expectations and a trainable scoring network.
We write sup when a best score may be approached without being attained. The usual min–max notation assumes the relevant extrema are attained. With a restricted neural-network family, the maximized objective can remain a lower bound rather than the full divergence.
Common mistakes
Confusing and : is the real-data distribution; is the generated distribution.
Confusing and : belongs to the generator; belongs to the scoring network.
Assuming the critic minimizes: The scoring network maximizes the variational objective.
Assuming the scoring output must be zero: The goal is not to force every to zero.
Treating a restricted variational lower bound as automatically equal to the divergence: Equality requires suitable conditions.
Confusing and : The former returns the minimum value; the latter identifies parameters achieving it.
Quick revision
VDM: Variational Divergence Minimization.
Real distribution: .
Noise: .
Generator: .
Generated distribution: .
Scoring network: .
Generator objective: Minimize discrepancy.
Scoring network objective: Maximize the variational lower bound.
Overall objective:
One-line memory anchor:
The scoring network finds the strongest available measure of the difference, while the generator learns to reduce that difference.
Next topic: Implementing VDM with neural networks, including the output activation needed to keep in the domain of the convex conjugate.
Check your understanding
What changes when the generator parameters change?
Show solution
The mapping from noise to generated observations changes, so the induced distribution may change. The real-data distribution is the target and is not trained by those updates.
Which network maximizes the objective?
Show solution
The scoring network, with parameters w, maximizes it while the generator is fixed. The generator, with parameters , minimizes it while the scoring network is fixed.
Does the scoring network output a probability by definition?
Show solution
No. It outputs an admissible score. Its permitted output range depends on the effective domain of the chosen convex conjugate.
Is every neural scoring network guaranteed to recover the exact divergence?
Show solution
No. A restricted function family and imperfect optimization may leave a gap. Equality requires a sufficiently rich admissible class and suitable regularity assumptions.
Real mean score = 2.0 and generated mean conjugate-transformed score = 1.3. What is the estimated objective?
Show solution
2.0 − 1.3 = 0.7. The second term is the average after applying the convex conjugate, not necessarily the average raw critic score.
In the saddle example, what happens along when w = 0?
Show solution
The objective is ², minimized at = 0. Along w with = 0, it is −w², maximized at w = 0.
Are real samples generated by passing them through the noise distribution?
Show solution
No. Real samples and latent noise are separate inputs. Noise passes through the generator to produce synthetic samples; the scoring network can evaluate both real and synthetic samples.
What is the difference between min and argmin?
Show solution
min gives the smallest objective value; argmin gives the parameter value or set of values that achieves that value. An optimum need not always be attained.
