A Multi-Resolution Front-End for End-to-End Speech Anti-Spoofing

Wei Liu, Meng Sun, Xiongwei Zhang, Hugo Van hamme, Thomas Fang Zheng

TL;DR

This paper introduces a multi-resolution front-end for speech anti-spoofing that automatically learns to weight and combine different time-frequency resolutions. By using a differentiable STFT layer and a Squeeze-and-Excitation-inspired weighting mechanism, the model identifies which window lengths and frame shifts are most critical for detecting "fake" speech, ultimately improving performance while allowing for the pruning of redundant features.

What Problem Does This Paper Address?

In speech processing, the choice of time-frequency resolution (the window length and frame shift used in a Short-Time Fourier Transform) is a critical but often arbitrary decision. In the context of speech anti-spoofing—detecting whether a voice is genuine or generated by Text-to-Speech (TTS), Voice Conversion (VC), or a recording—this choice is particularly difficult.

Different spoofing attacks use different internal resolutions to generate audio. For example, a WaveNet vocoder might use a 25.5ms window, while an end-to-end TTS system might use 50ms. If a detection model uses a single fixed resolution, it might miss the subtle "fingerprints" left behind by specific synthesis techniques. The authors argue that the performance swing caused by changing resolutions can be as large as the swing caused by changing the entire neural network architecture.

Methods

The authors propose a "plug-in" learnable front-end that processes audio through multiple resolutions simultaneously:

  1. Differentiable STFT Layer: Instead of pre-calculating features, they use torch.stft within the network. This allows the model to optimize the feature extraction process end-to-end.
  2. Multi-Resolution Extraction: The model extracts log-energy spectra using a variety of window/shift combinations (e.g., window lengths of 512, 1024, and 2048 samples).
  3. Adaptive Pooling for Alignment: Because different resolutions result in different feature map sizes, the authors use an adaptive pooling layer to upsample all maps to a common maximum dimension ($W_{max} \times H_{max}$), allowing them to be stacked.
  4. Weight Prediction (SE-Block): Inspired by Squeeze-and-Excitation Networks (SENet), a small sub-network predicts a scalar weight for each resolution. This tells the model which resolutions are most "informative" for the current task.
  5. Pruning: To reduce complexity, the authors implement a pruning strategy. They sort the learned weights and discard resolutions with low importance, keeping only the most impactful ones.

The backend classifier used in their experiments is SENet34.

Datasets

The proposed method was evaluated on the ASVspoof 2019 dataset, specifically:

  • Logical Access (LA): Focused on synthetic speech (TTS and VC).
  • Physical Access (PA): Focused on "replay" attacks (recorded speech played back in a physical environment).

Performance was measured using Equal Error Rate (EER) and the tandem Detection Cost Function (t-DCF).

Key Insights and Ideas

  • Resolution as a Hyperparameter: The paper highlights that we often spend too much time tuning architectures and not enough time tuning the input resolution, which is equally impactful.
  • Window Length > Frame Shift: Their analysis suggests that window length is a more dominant factor in performance than frame shift for anti-spoofing tasks.
  • Pruning as a Regularizer: Surprisingly, "Refining" the model by pruning low-weight resolutions didn't just make the model smaller—it actually improved the EER on the LA track (from 5.43% down to 3.67%). This suggests that redundant resolutions can introduce noise that confuses the classifier.
  • Learned Importance: The model learned to favor longer windows for both LA and PA tracks, confirming that certain spoofing artifacts are better captured over longer temporal scales.

Key Results

  • PA Track: The "Full" multi-resolution model achieved an EER of 1.07%, significantly outperforming the best single-resolution baseline (1.79%).
  • LA Track: The "Refined" (pruned) model achieved an EER of 3.67%. For comparison, many "hand-selected" single resolutions resulted in EERs as high as 10-16%.
  • Comparison to Prior Art: When compared to a similar multi-resolution approach (Wang et al., 2020) on the PA track, this paper’s method reduced the EER from 1.76% to 1.53% using the same SENet50 backend, proving the value of learnable weights over simple stacking.

Limitations and Future Work

  • Heuristic Pruning: The pruning method relies on finding the "maximal gap" between sorted weights, which is a relatively simple heuristic. More sophisticated neural architecture search (NAS) methods could potentially find even better combinations.
  • Computational Overhead: While pruning helps, the initial training phase requires processing many resolutions in parallel, which increases the memory and computational footprint during the training stage.
  • Generalization: While the authors suggest this front-end can be applied to any speech classification task (like ASR or speaker ID), the paper only demonstrates results for anti-spoofing. Testing on broader tasks remains a future direction.

Summary updated

BibTeX
@inproceedings{liu2022multi,
  author = {Wei Liu and Meng Sun and Xiongwei Zhang and Hugo Van hamme and Thomas Fang Zheng},
  title = {{A Multi-Resolution Front-End for End-to-End Speech Anti-Spoofing}},
  booktitle = {Odyssey},
  year = {2022},
  doi = {10.21437/odyssey.2022-17},
}
Figure