Skip to main content
QUICK REVIEW

[Paper Review] Structured Prediction with Projection Oracles

Mathieu Blondel|arXiv (Cornell University)|Oct 24, 2019
Machine Learning and Data ClassificationComputer Science9 citations
TL;DR

This paper introduces a general framework for structured prediction that derives convex, smooth loss functions using projection oracles onto convex sets. By projecting predicted outputs onto a convex hull (e.g., the marginal polytope), the method improves accuracy over standard losses, with consistent gains in label ranking, ordinal regression, and multilabel classification when using efficient projections onto structured polytopes like the Birkhoff or order simplex.

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. 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.

Motivation & Objective

  • To develop a general, computationally feasible framework for deriving convex and smooth surrogate loss functions in structured prediction.
  • To enable consistent learning by combining projection-based losses with calibrated decoding, ensuring convergence to the optimal target loss.
  • To provide a flexible alternative to existing surrogate losses by leveraging efficient projection oracles instead of MAP or marginal inference oracles.
  • To demonstrate that projecting onto the marginal polytope or its efficient supersets yields improved predictive accuracy across diverse structured prediction tasks.

Proposed method

  • The framework uses Fenchel-Young losses derived from a convex set containing the output space, with the loss defined via projection onto that set.
  • The user selects a convex set (e.g., Birkhoff polytope, order simplex, knapsack polytope) and provides a projection oracle onto it.
  • The loss is constructed as the Fenchel-Young loss associated with a convex conjugate function and the projection operator onto the chosen set.
  • The marginal polytope—the convex hull of the output space—is identified as the optimal convex set for projection, ensuring consistency with the target loss.
  • When projection onto the marginal polytope is infeasible, the framework allows using any convex superset (e.g., [0,1]^k, simplex) with cheaper projection algorithms.
  • Calibrated decoding is applied at test time to map continuous predictions back to valid discrete outputs, ensuring consistency with the target loss.

Experimental results

Research questions

  • RQ1Can a general framework be designed to derive convex and smooth surrogate losses for structured prediction using only a projection oracle?
  • RQ2Does projecting predictions onto the marginal polytope or its supersets lead to improved generalization and accuracy compared to standard losses?
  • RQ3How does the choice of convex set (e.g., Birkhoff polytope, order simplex, knapsack polytope) affect performance in structured prediction tasks?
  • RQ4Is the proposed loss consistent with the target loss when combined with calibrated decoding, even when the target loss is non-convex?

Key findings

  • Using the Birkhoff polytope for both projection and decoding in label ranking achieved the lowest Hamming loss of 5.10 on the Wine dataset, outperforming all other configurations.
  • In ordinal regression, the Euclidean projection onto the order simplex reduced the mean absolute error (MAE) to 0.43, outperforming ridge regression (MAE 0.72) and other baselines.
  • For multilabel classification, the knapsack polytope improved the F1 score on datasets with few labels per sample (e.g., 'birds', 'emotions', 'scene') compared to the unit cube baseline.
  • KL and Euclidean projections yielded similar performance, indicating that the choice of divergence is less critical than the choice of convex set.
  • Visualizing soft permutation matrices via projection onto the Birkhoff polytope enabled better interpretability, a benefit lost when using supersets like [0,1]^{k×k}.
  • The framework ensures consistency with the target loss when combined with calibrated decoding, even for non-convex target losses, under mild assumptions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.