Difference between revisions of "Generalized Expectation Criteria"

From Cohen Courses
Jump to navigationJump to search
(Created page with '== Summary == This can be viewed as a parameter estimation [[Category::method]] that can augment/replace traditional parameter estimation methods such as maximum likelihood esti…')
 
Line 15: Line 15:
 
</math>
 
</math>
  
We can partition the variables into "input" variables <math>X</math> and "output" variables <math>Y</math> that is conditioned on the input variables. When the assignment of the input variables <math>\tilde{\mathcal{X}}=\{\mathbf{x}_1,\mathbf{x}_2,...\} are provided, the conditional expectation is
+
We can partition the variables into "input" variables <math>X</math> and "output" variables <math>Y</math> that is conditioned on the input variables. When the assignment of the input variables <math>\tilde{\mathcal{X}}=\{\mathbf{x}_1,\mathbf{x}_2,...\}</math> are provided, the conditional expectation is
  
 
<math>
 
<math>
E_{\theta}[f(X,Y)\vert\~{\mathcal{X}}]
+
E_{\theta}[f(X,Y)\vert\tilde{\mathcal{X}}]
 
=
 
=
\sum_{\mathbf{x}\in\mathcal{X}}{p_{\theta}(\mathbf{x})f(\mathbf{x})}
+
{1\over\vert\tilde{\mathcal{X}}\vert}\sum_{\mathbf{x}\in\mathcal{\tilde{\mathcal{X}}}}{\sum_{\mathbf{y}\in Y}{p_{\theta}(\mathbf{x})f(\mathbf{x})}}
 
</math>
 
</math>
  

Revision as of 12:57, 2 November 2011

Summary

This can be viewed as a parameter estimation method that can augment/replace traditional parameter estimation methods such as maximum likelihood estimation. M

Support Vector Machines or Conditional Random Fields to efficiently optimize the objective function, especially in the online setting. Stochastic optimizations like this method are known to be faster when trained with large, redundant data sets.

Gradient Descent

Let be some set of variables and their assignments be . Let be the parameters of a model that defines a probability distribution . The expectation of a function according to the model is

We can partition the variables into "input" variables and "output" variables that is conditioned on the input variables. When the assignment of the input variables are provided, the conditional expectation is


for some small enough . Using this inequality, we can get a (local) minimum of the objective function using the following steps:

  • Initialize
  • Repeat the step above until the objective function converges to a local minimum

Stochastic Gradient Descent

One of the problems of the gradient descent method above is that calculating the gradient could be an expensive computation depending on the objective function or the size of the data set. Suppose your objective function is . If the objective function can be decomposed as the following,

where indicates the -th example(sometimes is a batch instead of one example), we can make the process stochastic. To make each step computationally efficient, a subset of the summand function is sampled. The procedure can be described as the following pseudocode:

  • Initialize
  • Repeat until convergence
    • Sample examples
    • For each example sampled

where is the learning rate. Note that this method is no different from the plain gradient descent method when the batch size becomes the number of examples. For computational efficiency, small batch size around 5~20 turn out to be most efficient.

Pros

When this method is used for very large data sets that has redundant information among examples, it is much faster than the plain gradient descent because it requires less computation each iteration. Also, it is known to be better with noisy data since it samples example to compute gradient.

Cons

The convergence rate is slower than second-order gradient methods. However the speedup coming from computationally efficient iterations are usually greater and the method can converge faster if learning rate is adjusted as the procedure goes on. Also it tends to keep bouncing around the minimum unless the learning rate is reduced in the later iterations.

Related Papers