Exponentiated gradient algorithms for log-linear structured prediction

Amir Globerson, Terry Koo, Xavier Carreras, Michael CollinsICML 2007

Overview

Structured prediction involves predicting complex outputs, such as parse trees or sequences, where the number of possible labels is exponentially large. Conditional Random Fields (CRFs) are the gold standard for these tasks, but training them is computationally expensive. Standard optimization techniques like L-BFGS and Conjugate Gradient (CG) are "batch" methods: they require a full pass over the entire dataset to make a single update to the model weights. For massive datasets, this is agonizingly slow. While stochastic gradient descent (SGD) offers an online alternative, it can be unstable.

This paper introduces an efficient optimization framework for training log-linear models using Exponentiated Gradient (EG) updates. By operating on the convex dual of the likelihood objective, the authors develop an "online-style" algorithm that updates parameters after seeing individual examples. This leads to significantly faster convergence than standard batch methods while maintaining the stability and theoretical guarantees of dual coordinate ascent.

Methodology

The authors shift the perspective from the Primal problem (maximizing regularized log-likelihood) to the Convex Dual problem. In the dual, the variables represent probability distributions over all possible labels for each training instance.

The core contribution is the application of Exponentiated Gradient (EG) updates to this dual problem:

  1. The Update Rule: Instead of additive updates (like standard gradient descent), EG uses multiplicative updates: $\alpha_{new} \propto \alpha_{old} \cdot \exp(-\eta \nabla)$. This is naturally suited for variables that must stay on a probability simplex (i.e., non-negative and summing to one).
  2. Online vs. Batch: They propose two versions. The Batch version updates all distributions simultaneously, while the Online version updates the distribution for a single example at a time.
  3. Handling Complexity: Since the label set is often exponentially large, they show how to perform these updates efficiently using "parts" (e.g., edges in a graph or dependencies in a tree) and marginals, similar to how the Forward-Backward or Inside-Outside algorithms work.
  4. Theoretical Proofs: They provide a new convergence proof using Bregman divergences. Notably, their analysis simplifies and tightens previous bounds for max-margin models.

Experimental Setup

The authors evaluated their approach on two distinct tasks:

  • Multiclass Classification: A subset of the MNIST handwritten digit dataset (7k training examples, 10 classes). This served as a baseline to compare against standard logistic regression.
  • Structured Prediction (Dependency Parsing): The Slovene dataset from the CoNLL-X Shared Task. This involves predicting the grammatical structure (projective directed spanning trees) of sentences. The dataset contains 1,234 sentences (~23k tokens).

Key Insights and Results

By working in the dual, the algorithm can ensure a monotonic improvement of the objective function at every single step (even in the online version), which is not guaranteed in primal SGD. Furthermore, EG is "geometry-aware." Because it uses multiplicative updates, it naturally respects the constraints of probability distributions without needing expensive projection steps.

MNIST Classification Results

On the MNIST task, the EG algorithm reached the optimal objective value and peak test accuracy significantly faster than L-BFGS and Conjugate Gradient (CG). The experiments also show the primal and dual objectives converging to the same value, confirming the theoretical duality and the algorithm's ability to find the global optimum.

Dependency Parsing Results

On the complex dependency parsing task, EG converged to a high-quality solution in roughly 20-50 passes over the data, whereas CG and L-BFGS required hundreds of "effective iterations" to reach the same level of accuracy. While the authors provide a theoretical safe learning rate ($\eta$), they found that a simple "halving" line-search strategy on individual examples makes the algorithm much faster in practice.

Limitations and Future Work

  • Online Convergence Rate: While the authors proved the online version converges to the optimum, they did not provide a specific rate of convergence (e.g., $1/T$) for the online case, noting it as an "interesting challenge."
  • Memory Overhead: Dual methods require storing or recomputing dual variables ($\alpha$) for every training instance. While the authors use a clever $\theta$ parameterization to mitigate this, it can still be more memory-intensive than simple primal SGD for certain models.
  • Line Search: The current adaptive learning rate strategy is "crude." More sophisticated line-search methods tailored for the dual objective could potentially yield even better performance.

Summary updated

BibTeX
@inproceedings{globerson2007exponentiated,
  author = {Amir Globerson and Terry Koo and Xavier Carreras and Michael Collins},
  title = {{Exponentiated gradient algorithms for log-linear structured prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2007},
  url = {https://openreview.net/forum?id=B1E8e3bObH},
}
Figure