Structured Prediction with Projection Oracles

Mathieu Blondel
10/24/2019
stat.MLcs.LG

Official code: mblondel/projection-losses (28 stars, Python, BSD-2-Clause, last commit 2019-11-18).

Abstract

We propose in this paper a general framework for deriving loss functions for structured prediction. In our framework, the user chooses a convex set including the output space and provides an oracle for projecting onto that set.

Show full abstract

Given that oracle, our framework automatically generates a corresponding convex and smooth loss function. As we show, adding a projection as output layer provably makes the loss smaller. We identify the marginal polytope, the output space's convex hull, as the best convex set on which to project. However, because the projection onto the marginal polytope can sometimes be expensive to compute, we allow to use any convex superset instead, with potentially cheaper-to-compute projection. Since efficient projection algorithms are available for numerous convex sets, this allows us to construct loss functions for a variety of tasks. On the theoretical side, when combined with calibrated decoding, we prove that our loss functions can be used as a consistent surrogate for a (potentially non-convex) target loss function of interest. We demonstrate our losses on label ranking, ordinal regression and multilabel classification, confirming the improved accuracy enabled by projections.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

Python implementation of projection losses.

282PythonOct 24, 20197 years agoBSD-2-Clause

Similar Papers

Cite this paper

@article{blondel2019structured,
  title  = {Structured Prediction with Projection Oracles},
  author = {Mathieu Blondel},
  year   = {2019},
  eprint = {1910.11369},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.11369}
}

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/1910.11369.svg)](https://codeofpaper.com/paper/1910.11369)

Discussion