驯服Sigmoid瓶颈:可证明存在Argmax解的稀疏多标签分类
Taming the Sigmoid Bottleneck: Provably Argmaxable Sparse Multi-Label Classification
AI总结:
针对多标签分类中sigmoid低秩输出层存在大量无法argmax的标签组合的瓶颈问题,提出DFT输出层,保证k个以内活跃标签的稀疏组合可argmax,参数减少50%仍达相当F1@k性能。
摘要:
Sigmoid输出层被广泛应用于多标签分类(MLC)任务中,这类任务可为任意输入分配多个标签。在许多实际MLC任务中,可能的标签数量达数千个,往往超过输入特征的数量,进而导致输出层呈低秩特性。在多分类任务中,已知这类低秩输出层是一种瓶颈,会导致无法argmax的类别:即不存在任何输入能预测出这些类别。本文表明,在MLC任务中,类似的sigmoid瓶颈会导致数量呈指数级增长的无法argmax的标签组合。我们阐释了检测这些无法argmax的输出的方法,并在三个广泛使用的MLC数据集中证实了它们的存在。随后我们证明,通过引入离散傅里叶变换(Discrete Fourier Transform, DFT)输出层,可在实际中避免这类问题,该层能保证所有活跃标签数不超过$k$的稀疏标签组合都存在argmax解。我们的DFT层训练速度更快,参数效率更高,在可训练参数减少多达50%的情况下,仍能达到与sigmoid层相当的F1@k分数。我们的代码已公开于https://github.com/andreasgrv/sigmoid-bottleneck。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。