Selective Masking Adversarial Attack on Automatic Speech Recognition Systems

Zheng Fang, Shenyi Zhang, Tao Wang, Bowen Li, Lingchen Zhao, Zhangyi Wang · DOI

Abstract

Recent advancements in Automatic Speech Recognition (ASR) have significantly improved machine understanding of human speech, yet these systems remain vulnerable to adversarial perturbations. While most research focuses on single-source scenarios, real-world environments often involve multiple simultaneous speakers. This paper presents the Selective Masking Adversarial (SMA) attack, the first method designed to manipulate ASR systems in dual-source settings. By applying a calculated, nearly imperceptible perturbation, SMA forces an ASR system to transcribe only a "selected" speaker while effectively "muting" another, despite both remaining audible to human listeners. Experimental results demonstrate a 100% success rate across various ASR architectures, maintaining high audio quality and showing promising transferability to commercial systems.

Introduction

Audio adversarial attacks typically involve adding small, calculated noises to a single audio source to trick an AI into generating a specific, incorrect transcription. However, these "single-source" attacks do not account for the "cocktail party" effect common in real-world settings, where multiple voices overlap. In a standard dual-source scenario, an ASR system might produce a garbled mix of both speakers' words.

The Selective Masking Adversarial (SMA) attack addresses this by creating a deliberate inconsistency between human and machine perception. The goal is to produce an adversarial example where a human listener clearly hears two distinct voices, but the ASR system "sees" only one.

Comparison of single-source, dual-source, and dual-source attack scenarios.

Methodology

The SMA attack is executed in two primary stages: initialization and iterative optimization.

Dual-source Initialization

Unlike traditional attacks that begin with a single source, SMA starts by superimposing the "selected" audio ($x_{select}$) and the "muted" audio ($x_{mute}$) to create a base dual-source signal. A small amount of Gaussian noise is then added to initialize the adversarial perturbation ($\delta$). This starting point is critical for ensuring the final audio sounds like a natural overlay of two voices rather than a single voice obscured by static.

Selective Masking Optimization

The perturbation is refined through an iterative process using a multi-objective loss function designed to balance attack success with audio naturalness:

  1. Adversarial Loss ($L_{adv}$): Drives the ASR output toward the target transcription of the selected source.
  2. Mel-spectrogram Loss ($L_{mel}$): Enhances the acoustic similarity between the adversarial audio and the original selected source.
  3. Imperceptibility Loss ($L_p$): Minimizes the $L_2$ norm of the perturbation to keep it below the threshold of human detection.
The two-stage SMA attack pipeline: Dual-source initialization and Selective masking optimization.

Experimental Setup

The attack was evaluated using a command set of ten common voice instructions (e.g., "call my wife," "open the door") generated via Microsoft Azure's Text-to-Speech service. These were randomly paired to create 90 dual-source test cases. The researchers targeted four state-of-the-art ASR architectures: Citrinet, ContextNet, Conformer-CTC, and Conformer-Transducer.

Results and Analysis

The SMA attack demonstrated exceptional performance across all metrics:

  • Effectiveness: The attack achieved a 100% Success Rate of Attack (SRoA) across all four target models. In every trial, the ASR transcribed the selected source perfectly while ignoring the muted source.
  • Audio Quality: SMA maintained high signal fidelity. On the Conformer-CTC model, it achieved a Signal-to-Noise Ratio (SNR) of 37.15dB, vastly outperforming baseline attacks like KENKU (6.82dB) and ZQ-attack (2.92dB).
  • Transferability: Adversarial examples generated for specific models showed significant "black-box" transferability, succeeding on OpenAI Whisper (51.58%) and Microsoft Azure ASR (48.24%) without direct optimization for those systems.

Conclusion

The SMA attack reveals a significant new vulnerability in ASR systems, exploiting the way neural networks process features to "mask" specific information streams. While currently demonstrated in digital white-box settings, its high success rate and transferability suggest a need for more robust ASR training methodologies that account for multi-source adversarial environments. Future research will focus on "over-the-air" robustness in physical environments with background noise and echoes.

Summary updated

BibTeX
@inproceedings{fang2025selective,
  author = {Zheng Fang and Shenyi Zhang and Tao Wang and Bowen Li and Lingchen Zhao and Zhangyi Wang},
  title = {{Selective Masking Adversarial Attack on Automatic Speech Recognition Systems}},
  booktitle = {ICME},
  year = {2025},
  doi = {10.1109/icme59968.2025.11210179},
}
Figure