Extreme Classification via Adversarial Softmax Approximation

Robert Bamler, Stephan Mandt
2/15/2020
stat.MLcs.LG

Official code: mandt-lab/adversarial-negative-sampling (14 stars, Python, MIT, last commit 2020-04-08).

Abstract

Training a classifier over a large number of classes, known as 'extreme classification', has become a topic of major interest with applications in technology, science, and e-commerce. Traditional softmax regression induces a gradient cost proportional to the number of classes $C$, which often is prohibitively expensive.

Show full abstract

A popular scalable softmax approximation relies on uniform negative sampling, which suffers from slow convergence due a poor signal-to-noise ratio. In this paper, we propose a simple training method for drastically enhancing the gradient signal by drawing negative samples from an adversarial model that mimics the data distribution. Our contributions are three-fold: (i) an adversarial sampling mechanism that produces negative samples at a cost only logarithmic in $C$, thus still resulting in cheap gradient updates; (ii) a mathematical proof that this adversarial sampling minimizes the gradient variance while any bias due to non-uniform sampling can be removed; (iii) experimental results on large scale data sets that show a reduction of the training time by an order of magnitude relative to several competitive baselines.

View on arXivView PDF

Code Implementations(1)

MIT

Code for paper by Bamler & Mandt, "Extreme Classification via Adversarial Softmax Approximation" (ICLR 2020)

145Python, Jupyter NotebookFeb 14, 20206 years agoMIT

Similar Papers

Cite this paper

@article{bamler2020extreme,
  title  = {Extreme Classification via Adversarial Softmax Approximation},
  author = {Robert Bamler and Stephan Mandt},
  year   = {2020},
  eprint = {2002.06298},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.06298}
}

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

Discussion