Robustifying automatic speech recognition by extracting slowly varying features

Matías Pizarro, Dorothea Kolossa, Asja Fischer · DOI

TL;DR

Researchers have developed a defense for automatic speech recognition (ASR) systems that makes them over four times more robust against adversarial attacks. By filtering out fast-changing audio features using Slow Feature Analysis (SFA) and low-pass filtering, they successfully blocked malicious noise that tricks AI while remaining nearly imperceptible to human ears.

What Problem Does This Paper Address?

Deep learning-based ASR systems—the tech behind Alexa, Siri, and automated transcription—are surprisingly fragile. They are vulnerable to adversarial attacks: tiny, calculated amounts of noise added to an audio signal. To a human, the audio sounds perfectly normal, but the ASR system is "steered" to transcribe a completely different, malicious message (e.g., "Alexa, open the front door").

The core issue is that neural networks often rely on high-frequency, fast-changing features that humans don't prioritize. Attackers hide their "malicious instructions" in these specific signal components. This paper investigates whether we can "robustify" these systems by forcing them to ignore these volatile features and focus only on the slowly varying components of speech that humans actually use to understand language.

Methods

The authors propose a defense mechanism that acts as a pre-processing shield for the ASR system. They tested three main strategies:

  1. Slow Feature Analysis (SFA): This is an unsupervised learning technique that extracts the "slowest" components of a signal. Speech tends to change relatively slowly compared to random noise or engineered adversarial perturbations. By applying SFA, the system discards the jittery, fast-changing parts of the audio.
  2. Low-Pass Filtering (LPF): The researchers applied a filter with a cutoff frequency of 7 kHz. Since humans can understand speech quite well even without high-frequency components, and adversarial noise often hides in those upper registers, this simple step limits the "attack surface" available to a hacker.
  3. Hybrid Defense: Combining both SFA and LPF.

Crucially, the authors found that for these defenses to work, the ASR model must be trained on this pre-processed data, not just tested on it. They used a hybrid DNN-HMM (Deep Neural Network - Hidden Markov Model) architecture, which is a standard workhorse in speech recognition.

Figure 1: Spectrogram of original audio sample (1a) in comparison to the spectrogram of a corresponding adversarial audio sample before (1b) and after applying SFA (1c) or a low-pass filter (1d).

Datasets

The experiments were conducted using the TIDIGITS dataset. This is a classic, small-vocabulary benchmark consisting of approximately 8,000 utterances of digits (0-9) spoken by various people. While small, it provides a controlled environment to rigorously test the mathematical foundations of the defense.

Key Insights and Ideas

  • The "Slowness" Hypothesis: The most powerful insight is that adversarial noise is often "unnatural" in its temporal dynamics. By mathematically enforcing "slowness" via SFA, you strip away the attacker's ability to manipulate the model's high-dimensional decision boundaries.
  • Frequency Constraints: Adversarial perturbations are often most effective in high-frequency bands where human hearing is less sensitive (due to wider "critical bands" in the cochlea). Capping the frequency at 7 kHz effectively "blinds" the attacker to their favorite hiding spots.
  • The Robustness Trade-off: There is a classic trade-off in AI security: as you make a model more robust to attacks, you often make it slightly less accurate on clean, normal data. The researchers sought the "sweet spot" where robustness is high but accuracy remains usable.

Key Results

The researchers evaluated their models using Word Error Rate (WER). In the context of an attack, a high WER against the attacker's "target transcript" is a win—it means the attack failed to fool the system.

  • Baseline Vulnerability: Without defense, the system was easily fooled. As the noise level ($\epsilon$) increased, the system's WER relative to the attacker's target dropped toward zero, meaning the attack was nearly 100% successful.
  • LPF Success: The Low-Pass Filter model was a standout. It maintained a clean-data WER of 0.80% (virtually identical to the baseline's 0.79%) but was significantly more resistant to attacks.
  • SFA + LPF Powerhouse: The combined model was the most robust by far. Against a standard attack ($\epsilon = 0.5$), it achieved a target WER of 94.14%, meaning the attacker almost never succeeded in forcing their desired transcript. However, this came at the cost of a higher clean-data WER (2.21%).
Figure 2: Mean WER and standard deviation over 5 runs, comparing the predicted transcript and the original text or the adversarial text for different models and perturbation levels ϵ.

Limitations and Future Work

  • Vocabulary Scale: The study used TIDIGITS (digits only). The authors acknowledge that future work needs to test these methods on large-vocabulary ASR systems (like those used for transcribing full sentences) to see if the "slowness" features still capture enough information for complex language.
  • Adaptive Adversaries: The current study assumes a "white box" setting where the attacker knows the model but perhaps not the specific defense parameters. Future research will involve testing against "adaptive" attackers who specifically try to craft noise that can bypass SFA and LPF.
  • Transfer Learning: To make training more efficient, the authors suggest exploring whether the lower layers of a pre-trained robust network can be reused for different tasks.

Summary updated

BibTeX
@misc{pizarro2021robustifying,
  author = {Matías Pizarro and Dorothea Kolossa and Asja Fischer},
  title = {{Robustifying automatic speech recognition by extracting slowly varying features}},
  year = {2021},
  eprint = {2112.07400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.07400},
}
Figure