[Paper Review] T-GSA: Transformer with Gaussian-weighted self-attention for speech enhancement
This paper proposes T-GSA, a Transformer-based speech enhancement model with Gaussian-weighted self-attention that attenuates attention weights based on temporal distance between frames, improving performance on speech denoising. The method significantly outperforms both standard Transformers and LSTM-based models, achieving state-of-the-art results on SDR and PESQ metrics across multiple datasets.
Transformer neural networks (TNN) demonstrated state-of-art performance on many natural language processing (NLP) tasks, replacing recurrent neural networks (RNNs), such as LSTMs or GRUs. However, TNNs did not perform well in speech enhancement, whose contextual nature is different than NLP tasks, like machine translation. Self-attention is a core building block of the Transformer, which not only enables parallelization of sequence computation, but also provides the constant path length between symbols that is essential to learning long-range dependencies. In this paper, we propose a Transformer with Gaussian-weighted self-attention (T-GSA), whose attention weights are attenuated according to the distance between target and context symbols. The experimental results show that the proposed T-GSA has significantly improved speech-enhancement performance, compared to the Transformer and RNNs.
Motivation & Objective
- To address the poor performance of standard Transformers in speech enhancement, where long-range dependencies and physical signal characteristics differ from NLP tasks.
- To improve attention mechanisms in Transformers for acoustic signals by incorporating distance-dependent attenuation based on signal correlation properties.
- To develop a self-attention mechanism that preserves correlation signs while reducing influence of distant frames, mimicking natural acoustic signal behavior.
- To achieve superior speech enhancement performance compared to existing recurrent and Transformer-based models.
Proposed method
- Introduces Gaussian-weighted self-attention (GSA) where attention weights are scaled by a learnable Gaussian function of the distance between target and context frames.
- Applies element-wise multiplication of a Gaussian weight matrix $ G_l $ with the raw score matrix $ C_l^u $, where $ g^l_{i,j} = e^{-|i-j|^2 / heta_l^2} $, with $ heta_l $ as a trainable variance parameter.
- Uses the standard Transformer encoder architecture with multi-head attention, layer normalization, and feed-forward networks, but modifies the attention mechanism with distance-based Gaussian weighting.
- Employs a real-valued Transformer for speech enhancement, with output mask applied to noisy STFT magnitude spectra to reconstruct clean speech via ISTFT.
- Optimizes the model using a joint loss function combining SDR and PESQ to improve both objective and perceptual quality.
- Trains the model end-to-end on two datasets: QUT-NOISE-TIMIT and VoiceBank-DEMAND, with both real and complex-valued variants evaluated.
Experimental results
Research questions
- RQ1Can a modified self-attention mechanism that incorporates distance-based attenuation improve Transformer performance in speech enhancement?
- RQ2How does Gaussian-weighted attention compare to standard self-attention and attention biasing in terms of SDR and PESQ performance?
- RQ3Does the proposed T-GSA model outperform state-of-the-art recurrent models like CNN-LSTM in speech enhancement tasks?
- RQ4What is the impact of using a learnable Gaussian variance in the attention weighting for acoustic signal processing?
- RQ5Can the T-GSA model generalize across diverse noise conditions and achieve consistent improvements in both objective and perceptual metrics?
Key findings
- T-GSA significantly outperformed the original Transformer (O-T) across all SNR ranges on the QUT-NOISE-TIMIT dataset, with SDR gains of up to 1.5 dB and PESQ improvements of 0.25–0.35 points.
- T-GSA surpassed the prior state-of-the-art CNN-LSTM model, achieving 19.57 dB SDR and 3.06 PESQ on the QUT-NOISE-TIMIT dataset, compared to 19.14 dB and 3.01 for CNN-LSTM.
- The complex-valued Transformer (C-T-GSA) achieved 0.1–0.2 dB higher SDR than the real-valued T-GSA, but showed degraded PESQ performance, suggesting challenges in phase estimation.
- On the VoiceBank-DEMAND dataset, T-GSA achieved 4.18 CSIG, 3.59 CBAK, 3.62 COVL, 3.06 PESQ, 10.78 SSNR, and 19.57 SDR, outperforming all compared generative models including SEGAN, WaveNet, and TF-GAN.
- The performance gap between attention biasing and Gaussian weighting was substantial, indicating that negative correlation modeling via Gaussian attenuation is more effective than simple positional biasing.
- The results confirm that modeling distance-dependent signal correlation through learnable Gaussian weights is crucial for effective speech enhancement in Transformer-based architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.