Learning structural SVMs with latent variables

Chun-Nam John Yu, Thorsten Joachims

Introduction

In many machine learning tasks, the relationship between an input (like a DNA sequence) and an output (like a functional label) is mediated by "latent variables"—hidden factors that are not directly observed. For example, in object recognition, the specific locations of an object's parts are hidden sub-structures, even if the overall object label is known.

While probabilistic models like Hidden Markov Models have long utilized latent variables via the Expectation-Maximization (EM) algorithm, Structural Support Vector Machines (SSVMs) traditionally required all variables to be fully observed during training. This paper bridges that gap by extending SSVMs to handle latent variables. By framing the resulting non-convex optimization problem as a difference of two convex functions, the authors employ the Concave-Convex Procedure (CCCP) to create an efficient, iterative training algorithm that brings the robust, large-margin benefits of SVMs to problems with hidden structures.

Methodology

The authors introduce a novel formulation for SSVMs that incorporates a latent variable $h$. The prediction rule is defined as: $$f_w(x) = \text{argmax}_{y,h} [w \cdot \Phi(x, y, h)]$$ where $\Phi$ represents a joint feature vector of the input $x$, the output label $y$, and the hidden state $h$.

The Optimization Challenge

Introducing latent variables makes the standard SSVM objective non-convex, precluding the use of standard convex optimization tools. However, the authors observe that the objective can be rewritten as the difference of two convex functions.

To optimize this, they use the Constrained Concave-Convex Procedure (CCCP). The resulting algorithm is intuitive and conceptually similar to the EM algorithm:

  1. Imputation Step: For each training example, find the latent variable $h^*$ that best explains the ground-truth label given the current model weights.
  2. Optimization Step: Treat these $h^*$ values as "observed" data and solve a standard, convex Structural SVM problem using the cutting-plane method.
  3. Iteration: Repeat the process until the objective function converges.

A crucial assumption simplifying this process is loss independence: the loss function $\Delta$ depends only on the output $y$, not the latent variable $h$. This is naturally satisfied in most applications, as the primary goal is typically correct classification rather than perfect latent state recovery.

Experiments and Results

The authors evaluate their Latent Variable SSVM on a biological sequence analysis task: discriminative motif finding in yeast DNA. The dataset consists of Autonomously Replicating Sequences (ARSs) from two yeast species (S. kluyveri and S. cerevisiae), with 124 positive examples and 75 negative examples. The task is to predict whether a DNA sequence is functional in S. cerevisiae while simultaneously identifying the specific motif (the latent variable) responsible for that function.

The proposed model is compared against a Gibbs sampler, a standard probabilistic baseline for motif finding.

Classification Error on Yeast DNA

As shown in Table 1, the Latent Variable Structural SVM outperformed the probabilistic baseline. For a motif length of $l=17$, the Latent SSVM achieved a classification error of 33.12%, compared to 35.06% for the Gibbs sampler. Furthermore, the Latent SSVM demonstrated superior data efficiency. The Gibbs sampler was provided an additional 6,400 intergenic sequences to estimate background probabilities, yet the discriminative SSVM still achieved lower error rates without this extra data.

Discussion and Limitations

Unlike generative methods that model the probability of the data, the Latent SSVM is discriminative, focusing specifically on class boundaries. This often leads to better classification performance with less data. Despite the non-convexity of the objective, the CCCP-based approach typically converges quickly, often within 20 iterations.

However, the approach has limitations:

  • Local Minima: The non-convex objective makes the algorithm sensitive to initialization. The authors mitigated this by using multiple random seeds, but finding more robust initialization strategies remains an area for future work.
  • Computational Overhead: The optimization step involves solving a full SSVM problem. While a cutting-plane method is used, re-using cutting planes between iterations could significantly speed up training.

Ultimately, while the paper focuses on DNA motifs, the Latent Variable SSVM framework is highly generalizable, paving the way for applications in natural language parsing, computer vision, and beyond.

Summary updated

BibTeX
@inproceedings{yu2009learning,
  author = {Chun-Nam John Yu and Thorsten Joachims},
  title = {{Learning structural SVMs with latent variables}},
  booktitle = {International Conference on Machine Learning},
  year = {2009},
  doi = {10.1145/1553374.1553523},
}
Figure