Skip to main content
QUICK REVIEW

[Paper Review] On the Consistency of Top-k Surrogate Losses

Forest Yang, Sanmi Koyejo|arXiv (Cornell University)|Jan 30, 2019
Machine Learning and Data ClassificationComputer Science26 references5 citations
TL;DR

This paper establishes a theoretical framework for top-k classification consistency by introducing top-k calibration as a necessary and sufficient condition for surrogate loss consistency. It proposes a new family of Bregman divergence-based top-k calibrated losses, proves the inconsistency of standard hinge-like losses (including convex ones), and introduces a novel non-convex hinge loss that is top-k consistent, especially under linear models where cross-entropy fails.

ABSTRACT

The top-$k$ error is often employed to evaluate performance for challenging classification tasks in computer vision as it is designed to compensate for ambiguity in ground truth labels. This practical success motivates our theoretical analysis of consistent top-$k$ classification. Surprisingly, it is not rigorously understood when taking the $k$-argmax of a vector is guaranteed to return the $k$-argmax of another vector, though doing so is crucial to describe Bayes optimality; we do both tasks. Then, we define top-$k$ calibration and show it is necessary and sufficient for consistency. Based on the top-$k$ calibration analysis, we propose a class of top-$k$ calibrated Bregman divergence surrogates. Our analysis continues by showing previously proposed hinge-like top-$k$ surrogate losses are not top-$k$ calibrated and suggests no convex hinge loss is top-$k$ calibrated. On the other hand, we propose a new hinge loss which is consistent. We explore further, showing our hinge loss remains consistent under a restriction to linear functions, while cross entropy does not. Finally, we exhibit a differentiable, convex loss function which is top-$k$ calibrated for specific $k$.

Motivation & Objective

  • To formalize the conditions under which surrogate losses for top-k classification are consistent with the true top-k error metric.
  • To identify the fundamental role of top-k preserving-ness and top-k calibration in achieving Bayes optimality for top-k classification.
  • To resolve the theoretical inconsistency of widely used hinge-like top-k surrogate losses.
  • To develop a new class of top-k calibrated, differentiable, and convex losses for specific k values.
  • To analyze consistency under restricted function classes, particularly linear predictors, where standard losses like cross-entropy may fail.

Proposed method

  • Introduces the concept of top-k calibration as a necessary and sufficient condition for top-k consistency, linking it to the top-k preserving property of scorers.
  • Defines a family of top-k calibrated Bregman divergence surrogates based on the calibration condition, ensuring consistency.
  • Analyzes the inconsistency of existing hinge-like top-k losses by showing they fail to satisfy top-k calibration, even when convex.
  • Proposes a new non-convex hinge loss that satisfies top-k calibration and is thus top-k consistent, especially under linear models.
  • Demonstrates that convex and differentiable top-k calibrated losses need not be calibrated for k' > k, using a counterexample.
  • Employs synthetic experiments to validate theoretical claims, comparing performance across losses under varying data distributions and k values.

Experimental results

Research questions

  • RQ1Under what conditions is a surrogate loss for top-k classification consistent with the true top-k error?
  • RQ2Why do standard convex hinge-like top-k surrogate losses fail to be consistent, despite their popularity?
  • RQ3Can a convex and differentiable loss be top-k calibrated for all k' ≤ k, and what are the limitations for k' > k?
  • RQ4Is it possible to design a consistent hinge loss for top-k classification, and how does it differ from existing convex variants?
  • RQ5How does top-k consistency behave when models are restricted to linear functions, and how does this compare to cross-entropy?

Key findings

  • The proposed Bregman divergence-based surrogate losses are top-k calibrated and therefore top-k consistent, providing a theoretically sound alternative to existing methods.
  • Standard hinge-like top-k surrogate losses are not top-k calibrated, and no convex hinge loss can achieve top-k calibration, suggesting convexity is incompatible with top-k consistency.
  • A new non-convex hinge loss is constructed that is top-k consistent, particularly effective under linear models where cross-entropy fails to be consistent.
  • Cross-entropy is top-k consistent in the unrestricted setting but not under linear model restrictions, highlighting a critical limitation in practical deployment.
  • A convex and differentiable top-k calibrated loss exists for specific k values, but such losses are not necessarily calibrated for larger k' > k, as shown by a counterexample.
  • Synthetic experiments confirm that the proposed loss functions, especially ψ₄ and ψ₅, outperform standard cross-entropy and other surrogates in top-5 accuracy under both separated and ambiguous data distributions.

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.