Maximum likelihood markov random fields¶
We are given a dataset D and we want to estimate \(\theta\) via maximum likelihood. Since we work with exponential families the maximum likelihood is concave. The log likelihood is:
Here we have two parts:
\(\frac{1}{|D|}\sum_{x \in D}\theta^T f(x)\). This is the easy part since it is linear in \(\theta\) and we can decompose it.
\(\log Z(\theta) = \log \sum_x \exp(\theta^T f(x))\). This is hard to optimize, and hard to evaluate.
The gradient of the second parts is:
Computing the expectation requires inference with respect to \(p\) which in general is intractable, thus computing the gradient is intractable.
We can compute the hessian of \(\log Z(\theta)\):
The covariance matrix is always positive-definite, thus \(\log Z(\theta)\) is convex (this is also known from the fact that it is an exponential family).
Summary¶
Since computing the gradient is intractable the whole optimization problem is hard, even if it is convex.