Skip to main content
QUICK REVIEW

[Paper Review] Assessment of Self-Attention on Learned Features For Sound Event Localization and Detection

Parthasaarathy Sudarsanam, Archontis Politis|arXiv (Cornell University)|Jul 20, 2021
Music and Audio ProcessingComputer Science5 citations
TL;DR

This paper evaluates multi-head self-attention (MHSA) as a replacement for recurrent neural networks (RNNs) in sound event localization and detection (SELD). By replacing GRU layers in a SELDnet-like CRNN with MHSA blocks and optimizing hyperparameters, the model achieves a 35.2% higher F-score and 10.7% lower localization error than the baseline, with 2.5x faster inference due to parallelization.

ABSTRACT

Joint sound event localization and detection (SELD) is an emerging audio signal processing task adding spatial dimensions to acoustic scene analysis and sound event detection. A popular approach to modeling SELD jointly is using convolutional recurrent neural network (CRNN) models, where CNNs learn high-level features from multi-channel audio input and the RNNs learn temporal relationships from these high-level features. However, RNNs have some drawbacks, such as a limited capability to model long temporal dependencies and slow training and inference times due to their sequential processing nature. Recently, a few SELD studies used multi-head self-attention (MHSA), among other innovations in their models. MHSA and the related transformer networks have shown state-of-the-art performance in various domains. While they can model long temporal dependencies, they can also be parallelized efficiently. In this paper, we study in detail the effect of MHSA on the SELD task. Specifically, we examined the effects of replacing the RNN blocks with self-attention layers. We studied the influence of stacking multiple self-attention blocks, using multiple attention heads in each self-attention block, and the effect of position embeddings and layer normalization. Evaluation on the DCASE 2021 SELD (task 3) development data set shows a significant improvement in all employed metrics compared to the baseline CRNN accompanying the task.

Motivation & Objective

  • To isolate and evaluate the impact of multi-head self-attention (MHSA) on sound event localization and detection (SELD) performance.
  • To determine optimal hyperparameters for MHSA in SELD, including number of attention heads, blocks, and use of position embeddings and normalization.
  • To compare MHSA-based models with standard CRNN baselines in terms of accuracy, inference speed, and training efficiency.
  • To assess whether MHSA can outperform RNNs in modeling long-range temporal dependencies while enabling faster, parallel inference.

Proposed method

  • Replaced the gated recurrent unit (GRU) layers in a SELDnet-like CRNN with multi-head self-attention (MHSA) blocks to model temporal dependencies.
  • Used log mel-spectrograms and intensity vectors as input, concatenated along the channel dimension for multi-channel audio processing.
  • Applied learned fixed-size position embeddings to the input of the first MHSA block to preserve sequence order information.
  • Integrated residual connections and layer normalization between successive MHSA blocks to stabilize training and improve performance.
  • Trained models for 100 epochs using Adam optimizer with a fixed learning rate of 0.001 and mean squared error loss for regression-based DOA prediction.
  • Evaluated models on DCASE 2021 SELD development set using metrics including F-score, detection error rate, localization error, and localization recall.

Experimental results

Research questions

  • RQ1How does replacing RNNs with multi-head self-attention (MHSA) affect SELD performance in terms of detection and localization metrics?
  • RQ2What is the optimal number of attention heads and self-attention blocks for MHSA in the SELD task?
  • RQ3How do layer normalization and residual connections influence the training stability and performance of MHSA-based SELD models?
  • RQ4What is the impact of positional embeddings on MHSA performance in the absence of relative position inductive bias?
  • RQ5How does the inference speed of MHSA-based models compare to RNN-based baselines, given the parallelization advantage of attention?

Key findings

  • Replacing GRU layers with two MHSA blocks, each with eight attention heads, improved the F-score by 35.2% compared to the CRNN baseline.
  • The detection error rate (ER20) decreased by 11.6% in the best-performing MHSA configuration, indicating better event detection accuracy.
  • Localization recall (LRCD) increased by 25.2% and localization error (LECD) decreased by 10.7% in the optimal MHSA model, showing improved spatial accuracy.
  • The addition of position embeddings to the first MHSA block further enhanced performance, confirming their importance in maintaining sequence order.
  • Despite having nearly twice as many parameters, the MHSA model was 2.5 times faster during inference than the RNN-based baseline due to parallel computation.
  • The combination of residual connections and layer normalization was essential for stable training and high performance with multiple MHSA blocks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.