mlsanityData to 14 Oct 2026

Fast threshold optimization for multi-label audio tagging using Surrogate gradient learning

arXiv 2103.00833 ↗First posted 1 Mar 2021cs.AI cs.SD eess.AScited by 2

Not on the map. Why?

Abstract (arXiv)

Multi-label audio tagging consists of assigning sets of tags to audio recordings. At inference time, thresholds are applied on the confidence scores outputted by a probabilistic classifier, in order to decide which classes are detected active. In this work, we consider having at disposal a trained classifier and we seek to automatically optimize the decision thresholds according to a performance metric of interest, in our case F-measure (micro-F1). We propose a new method, called SGL-Thresh for Surrogate Gradient Learning of Thresholds, that makes use of gradient descent. Since F1 is not differentiable, we propose to approximate the thresholding operation gradients with the gradients of a sigmoid function. We report experiments on three datasets, using state-of-the-art pre-trained deep neural networks. In all cases, SGL-Thresh outperformed three other approaches: a default threshold value (defThresh), an heuristic search algorithm and a method estimating F1 gradients numerically. It reached 54.9% F1 on AudioSet eval, compared to 50.7% with defThresh. SGL-Thresh is very fast and scalable to a large number of tags. To facilitate reproducibility, data and source code in Pytorch are available online: https://github.com/topel/SGL-Thresh

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 10 of its 15 references that are in the map. First posted on arXiv 1 Mar 2021.

Builds on

10 of 15 references.

References · 10

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2019Surrogate Gradient Learning in Spiking Neural Networkscited by 626
  4. 2019PANNs: Large-Scale Pretrained Audio Neural Networks for Audio Pattern Recognitioncited by 574
  5. 2016Binarized Neural Networks: Training Deep Neural Networks with Weights and Activations Constrained to +1 or -1cited by 105
  6. 2019Sound Event Detection of Weakly Labelled Data with CNN-Transformer and Automatic Threshold Optimizationcited by 29
  7. 2019Weakly Labelled AudioSet Tagging with Attention Neural Networkscited by 17
  8. 2019Technical report: supervised training of convolutional spiking neural networks with PyTorchcited by 13
  9. 2018Large-Scale Weakly Labeled Semi-Supervised Sound Event Detection in Domestic Environmentscited by 12
  10. 2019Evaluation of post-processing algorithms for polyphonic sound event detectioncited by 5

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 1.

2 papers.