Taming the Sigmoid Bottleneck: Provably Argmaxable Sparse Multi-Label Classification
Andreas Grivas, Antonio Vergari, Adam Lopez
TL;DR
The paper investigates the bottleneck drawbacks of sigmoid output layers in large-scale multi-label classification (MLC), showing that low-rank weight matrices can make many label combinations unargmaxable. It introduces a DFT-based output layer that, by constraining the weight matrix to the Grassmannian ${\mathsf{Gr}}^{+}_{n,2k+1}$, guarantees argmaxability for all label sets with at most $k$ active labels, and connects this to $2k$-alternating sign structures. The authors provide theoretical guarantees, discuss practical issues like tiny decision regions, and propose slack-variable extensions to preserve argmaxability while enlarging feasible regions. Empirically, the DFT layer achieves comparable or better F1@k scores with up to 50% fewer trainable parameters and faster convergence across three major MLC datasets, while avoiding unargmaxable outputs that plague standard BSLs. The work highlights that guaranteeing argmaxability can improve reliability and robustness in safety-critical and long-tail label scenarios, and suggests directions for extending these guarantees to other output-layer families.
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.
