LP-SparseMAP: Differentiable Relaxed Optimization for Sparse Structured Prediction

Vlad Niculae, André F. T. Martins
1/13/2020
cs.LGcs.CLstat.ML

Official code: deep-spin/lp-sparsemap (41 stars, C++, MIT, last commit 2023-11-20).

Abstract

Structured prediction requires manipulating a large number of combinatorial structures, e.g., dependency trees or alignments, either as latent or output variables. Recently, the SparseMAP method has been proposed as a differentiable, sparse alternative to maximum a posteriori (MAP) and marginal inference.

Show full abstract

SparseMAP returns a combination of a small number of structures, a desirable property in some downstream applications. However, SparseMAP requires a tractable MAP inference oracle. This excludes, e.g., loopy graphical models or factor graphs with logic constraints, which generally require approximate inference. In this paper, we introduce LP-SparseMAP, an extension of SparseMAP that addresses this limitation via a local polytope relaxation. LP-SparseMAP uses the flexible and powerful domain specific language of factor graphs for defining and backpropagating through arbitrary hidden structure, supporting coarse decompositions, hard logic constraints, and higher-order correlations. We derive the forward and backward algorithms needed for using LP-SparseMAP as a hidden or output layer. Experiments in three structured prediction tasks show benefits compared to SparseMAP and Structured SVM.

View on arXivView PDF

Code Implementations(1)

MIT

LP-SparseMAP: Differentiable sparse structured prediction in coarse factor graphs

418C++, CythonJan 14, 20203 years agoMIT

Similar Papers

Cite this paper

@article{niculae2020lpsparsemap,
  title  = {LP-SparseMAP: Differentiable Relaxed Optimization for Sparse Structured Prediction},
  author = {Vlad Niculae and André F. T. Martins},
  year   = {2020},
  eprint = {2001.04437},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.04437}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2001.04437.svg)](https://codeofpaper.com/paper/2001.04437)

Discussion