Top-k Multiclass SVM

Maksim Lapin, Matthias Hein, Bernt Schiele
11/20/2015
97 citations
stat.MLcs.CVcs.LG

Official code: mlapin/libsdca (33 stars, Python, MIT, PyTorch, last commit 2026-11-12).

Abstract

Class ambiguity is typical in image classification problems with a large number of classes. When classes are difficult to discriminate, it makes sense to allow k guesses and evaluate classifiers based on the top-k error instead of the standard zero-one loss.

Show full abstract

We propose top-k multiclass SVM as a direct method to optimize for top-k performance. Our generalization of the well-known multiclass SVM is based on a tight convex upper bound of the top-k error. We propose a fast optimization scheme based on an efficient projection onto the top-k simplex, which is of its own interest. Experiments on five datasets show consistent improvements in top-k accuracy compared to various baselines.

View on arXivView PDF

Code Implementations(1)

mlapin/libsdcaOfficial100%
PyTorchMIT

Accurate and fast classification losses for SDCA and neural networks: cross-entropy, top-k, multiclass and multilabel SVM, and distillation losses for PyTorch, JAX, NumPy, Rust, C/C++ and MATLAB

3313Python, C++Oct 25, 20152 weeks agoMIT
cppcross-entropycudahinge-lossjax+13 more

Similar Papers

Cite this paper

@article{lapin2015topk,
  title  = {Top-k Multiclass SVM},
  author = {Maksim Lapin and Matthias Hein and Bernt Schiele},
  year   = {2015},
  eprint = {1511.06683},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1511.06683}
}

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

Discussion