Taming the Sigmoid Bottleneck: Provably Argmaxable Sparse Multi-Label Classification

Andreas Grivas, Antonio Vergari, Adam Lopez
10/16/2023
cs.LG

Official code: andreasgrv/sigmoid-bottleneck (6 stars, MIT, last commit 2023-10-17).

Abstract

Sigmoid output layers are widely used in multi-label classification (MLC) tasks, in which multiple labels can be assigned to any input. In many practical MLC tasks, the number of possible labels is in the thousands, often exceeding the number of input features and resulting in a low-rank output layer. In multi-class classification, it is known that such a low-rank output layer is a bottleneck that can result in unargmaxable classes: classes which cannot be predicted for any input. In this paper, we show that for MLC tasks, the analogous sigmoid bottleneck results in exponentially many unargmaxable label combinations. We explain how to detect these unargmaxable outputs and demonstrate their presence in three widely used MLC datasets. We then show that they can be prevented in practice by introducing a Discrete Fourier Transform (DFT) output layer, which guarantees that all sparse label combinations with up to $k$ active labels are argmaxable. Our DFT layer trains faster and is more parameter efficient, matching the F1@k score of a sigmoid layer while using up to 50% fewer trainable parameters. Our code is publicly available at https://github.com/andreasgrv/sigmoid-bottleneck.

View on arXivView PDF

Code Implementations(1)

MIT

Sparse Multi Label Classification

60Shell, PythonOct 2, 20233 years agoMIT

Similar Papers

Cite this paper

@article{grivas2023taming,
  title  = {Taming the Sigmoid Bottleneck: Provably Argmaxable Sparse Multi-Label Classification},
  author = {Andreas Grivas and Antonio Vergari and Adam Lopez},
  year   = {2023},
  eprint = {2310.10443},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.10443v2}
}

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

Discussion