Maximize Likelihood / Maximize Entropy duality

Jihong Ju on August 24, 2019

The Maximize Entropy and Maximize Likelihood duality states that the two problems:

  • Maximizing entropy subject to expectation constraints
  • Maximizing likelihood given parameterized constraints on the distribution

are convex duals of each other.

Maximum Entropy Modeling

Unlike the wide-used Maximize Likelihood (ML) estimation, the maximum entropy estimation is less frequently seen in solving machine learning problems.

The Maximum Entropy (MaxEnt) problem is formalized as follows:

where p is the probability simplex, H(·) is the entropy. and (fj, bj) an (linear) expectation constraints on p.

To give an example of such problems, let us assume we have a biased dice and we want to estimate the probability of obtaining number 1, 2, …, 6 each time we roll. The additional knowledge we know about the dice is that the expected number for each roll is:

as opposed to 3.5 for an unbiased dice.

According to the maximum entropy principle, we can estimate the probability of obtaining each number, p, by solving the maximum entropy problem:

where the expected value of the obtained number is an expectation constraint of this optimization problem. In practice, such expectation constraints can usually be obtained from an empirical distribution, For instance, the expectation over the empirical distribution in this example can be obtained by rolling the dice multiple times and computing the average.

In the next section, we will discuss how to solve the maximum entropy problem.

Solve MaxEnt by ML estimation

With the aid of Lagrange multipliers, we can derive that the solution to the MaxEnt problem is in the form of a Gibbs distribution:

where μ1, …, μk are the parameters and Z is the partition function.

The solution to the MaxEnt problem therefore can be found to by solving the maximize likelihood estimation given the observations x1, …, xm:

As it turns out, maximizing entropy is a dual problem of maximum likelihood. The solution sets of the two problems intersect at a single point which solves both problems.

References:

  1. Amnon Shashua, Intro. to Machine Learning Lecture 3: Maximum Likelihood / Maximum Entropy Duality