Graph Structured Prediction Energy Networks.

Colin Graber, Alexander G. SchwingarXiv 2019

Abstract

For joint inference over multiple variables, a variety of structured prediction techniques have been developed to model correlations among variables and thereby improve predictions. However, many classical approaches suffer from one of two primary drawbacks: they either lack the ability to model high-order correlations among variables while maintaining computationally tractable inference, or they do not allow to explicitly model known correlations. To address this shortcoming, we introduce 'Graph Structured Prediction Energy Networks,' for which we develop inference techniques that allow to both model explicit local and implicit higher-order correlations while maintaining tractability of inference. We apply the proposed method to tasks from the natural language processing and computer vision domain and demonstrate its general utility.

Introduction

Joint prediction tasks, such as semantic segmentation in computer vision or part-of-speech tagging in natural language processing, require modeling complex dependencies between multiple output variables. Traditionally, researchers have faced a trade-off between two paradigms. Classical structured models, such as Conditional Random Fields (CRFs), utilize factor graphs to define explicit local relationships. While interpretable and mathematically grounded, they often struggle to capture global context due to the computational complexity of modeling high-order correlations. Conversely, Structured Prediction Energy Networks (SPENs) use deep neural networks to assign energy scores to entire configurations. While they capture complex global patterns, they often ignore known local constraints and are prone to overfitting.

Graph Structured Prediction Energy Networks (GSPENs) bridge this gap by combining the explicit logic of factor graphs with the implicit modeling power of deep energy networks. This hybrid approach allows for the inclusion of domain knowledge while maintaining the flexibility to learn complex, high-order correlations.

Methodology

The core innovation of GSPEN is a unified score function that combines local marginals from a factor graph with a non-linear transformation via a deep network. Unlike previous hybrid models such as NLStruct, GSPEN avoids complex saddle-point optimization, treating inference as a direct maximization of the score function subject to structural constraints.

Inference and Learning

The framework utilizes two primary inference algorithms: Frank-Wolfe Inference, which ensures predictions remain within the valid marginal polytope, and Structured Entropic Mirror Descent, which incorporates an entropy term to smooth the optimization landscape. The model is trained using a Structured SVM (SSVM) objective. As demonstrated in Figure 4, GSPEN exhibits superior training stability and achieves a lower Hamming loss more quickly than both pure SPENs and previous hybrid approaches.

Training stability: Hamming loss vs. Epoch for SPEN, NLStruct, and GSPEN models.

Experimental Evaluation

The authors evaluated GSPEN across a diverse set of tasks to demonstrate its general utility:

  • OCR (Optical Character Recognition): A synthetic dataset of 5-letter words with added noise to test reliance on linguistic structure.
  • Image Tagging: The MIRFLICKR25k dataset for multi-label prediction.
  • Multilabel Classification: The Bibtex and Bookmarks datasets involving hundreds of potential labels.
  • Named Entity Recognition (NER): The standard CoNLL 2003 English dataset.

Results and Discussion

GSPEN consistently outperformed state-of-the-art models, including Deep Value Networks (DVN) and pure SPENs, particularly in multi-label classification tasks.

Robustness and Inductive Bias

A key finding is that explicit local structure acts as a powerful regularizer. While pure SPENs may "hallucinate" patterns and overfit, GSPEN's local component provides an inductive bias that is especially valuable in low-data regimes. Figure 5 illustrates the performance of GSPEN across various dimensions, including inference iterations and training set size. Notably, Figure 5(c) highlights GSPEN's significant performance advantage when training data is scarce.

Performance analysis: (a) Accuracy vs. Inference Iterations, (b) Data Interpolation Factor, and (c) Train Data Size.

Furthermore, the inclusion of a fractional entropy term during inference was found to significantly improve convergence and final accuracy, particularly when using Mirror Descent, as seen in the performance gap between entropy-regularized methods and their standard counterparts.

Conclusion

GSPEN offers a robust framework for structured prediction by effectively merging classical factor graphs with deep energy networks. By avoiding saddle-point formulations, it achieves greater training stability and efficiency. Future work includes exploring automated structure learning to reduce the need for manual factor graph design and further optimizing inference speed for real-time applications.

Summary updated

BibTeX
@misc{graber2019graph,
  author = {Colin Graber and Alexander G. Schwing},
  title = {{Graph Structured Prediction Energy Networks.}},
  year = {2019},
  eprint = {1910.14670},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.14670},
}
Figure