Entropy and Margin Maximization for Structured Output Learning

Patrick Pletscher, Cheng Soon Ong, Joachim M. BuhmannECML/PKDD 2010

Abstract

We consider the problem of training discriminative structured output predictors, such as conditional random fields (CRFs) and structured support vector machines (SSVMs). A generalized loss function is introduced, which jointly maximizes the entropy and the margin of the solution. The CRF and SSVM emerge as special cases of our framework. The probabilistic interpretation of large margin methods reveals insights about margin and slack rescaling. Furthermore, we derive the corresponding extensions for latent variable models, in which training operates on partially observed outputs. Experimental results for multiclass, linear-chain models and multiple instance learning demonstrate that the generalized loss can improve accuracy of the resulting classifiers.

Introduction

In the field of structured output prediction—tasks such as part-of-speech tagging or image segmentation—researchers have traditionally chosen between two dominant paradigms: Conditional Random Fields (CRFs) and Structured Support Vector Machines (SSVMs). CRFs offer an elegant probabilistic framework based on log-loss, while SSVMs focus on the geometric principle of maximizing the margin between correct and incorrect outputs.

Pletscher et al. argue that these two approaches are not mutually exclusive but are instead endpoints on a single mathematical continuum. By introducing a generalized loss function, they provide a bridge that unifies the probabilistic and geometric perspectives of structured learning.

The Generalized Loss Framework

The core innovation is a generalized loss function, $\ell_\beta$, which incorporates an inverse temperature parameter $\beta$. This parameter controls the "sharpness" of the model's internal distribution and determines its behavior:

  • Log-Loss (CRF): When $\beta = 1$ and the margin $\Delta = 0$, the framework recovers the standard CRF.
  • Max-Margin (SSVM): As $\beta \to \infty$, the model converges to the Structured SVM, focusing exclusively on the single most problematic incorrect output.
Comparison of the generalized loss function for various parameters. The framework bridges the gap between standard log-loss and max-margin loss by adjusting the inverse temperature $\beta$ and margin $\Delta$.

By examining the dual formulation of the optimization problem, the authors reveal a fundamental symmetry: training under this generalized loss is equivalent to balancing margin maximization with entropy maximization. In this view, entropy acts as a natural regularizer for the margin, explaining why CRFs often generalize well even without an explicit margin requirement.

Experimental Evaluation

The authors evaluated the generalized loss across several domains, including synthetic multiclass data, MNIST digit recognition, and Optical Character Recognition (OCR). They also extended the framework to Multiple Instance Learning (MIL), which involves latent variables where labels are assigned to "bags" of instances.

Key Findings

  1. Optimal Intermediate Temperatures: On several synthetic datasets, the best performance was achieved at intermediate values of $\beta$, outperforming both pure CRFs and pure SSVMs.
  2. Accuracy vs. Probabilistic Calibration: While higher $\beta$ values (closer to SSVM) often yielded higher raw accuracy—for instance, achieving 7.1% error on MNIST compared to 7.5% for the CRF—they tended to degrade the quality of the model's confidence scores. If well-calibrated probabilities are required, lower $\beta$ values are preferable.
  3. Robustness in Latent Variable Models: In MIL tasks with high uncertainty, lower $\beta$ values (closer to the CRF) proved more robust, as they consider the entire distribution of possible latent assignments rather than just the single most likely one.

Conclusion

This work provides a unified perspective on structured learning, showing that CRFs and SSVMs are part of a broader family of models that trade off entropy and margin. While the framework offers improved flexibility and performance, it faces computational challenges; calculating the partition function required for lower $\beta$ values can be NP-hard in complex graphical models. Future research into approximate inference techniques may help scale this unified approach to even more complex structured prediction problems.

Summary updated

BibTeX
@inproceedings{pletscher2010entropy,
  author = {Patrick Pletscher and Cheng Soon Ong and Joachim M. Buhmann},
  title = {{Entropy and Margin Maximization for Structured Output Learning}},
  booktitle = {ECML/PKDD},
  year = {2010},
  url = {https://openreview.net/forum?id=5oEAV8mWmV},
}
Figure