Enhancing the characterization of speech adversarial examples using a self-attention U-Net
Characterizing Speech Adversarial Examples Using Self-Attention U-Net Enhancement
The authors propose a self-attention U-Net (U-NetAt) to enhance adversarial speech; on over-the-air adversarial examples, PESQ rises from 1.31 to 2.78, and DeepSpeech's WER decreases absolutely by 2.22%.
Attackers use the gradient method (Gradadv) or an evolutionary algorithm (Evoadv) to generate over-the-air audio adversarial examples that make Mozilla DeepSpeech output a target phrase (e.g., "open the door"); an adaptive attack is also evaluated: the attacker can observe the inputs and outputs of the speech enhancement and ASR systems and launches a two-step attack.
- Audio adversarial examples threaten DNN speech recognition systems, while effective defenses and denoising methods are still being explored; existing detection methods can only discard suspicious audio and cannot correct adversarial inputs.
- Proposes a self-attention U-Net (U-NetAt), embedding attention gates in the upsampling blocks of a one-dimensional U-Net to extract temporal features for speech enhancement, combined with adversarial training to improve ASR robustness.
- On over-the-air adversarial examples, U-NetAt plus adversarial training raises PESQ from 1.31 to 2.78; DeepSpeech's WER under gradient and evolutionary attacks decreases absolutely by 2.22% and 2.03% respectively; the SNR required for the adaptive attack to reach 100% TASR drops from 7.63 dB to -2.23 dB.
- The authors state that future work includes more acoustic property analysis; experiments are conducted only on Mozilla DeepSpeech and LibriSpeech, the target phrase is "open the door", and the paper does not report the latency overhead introduced by enhancement or the number of repeated experiments.
- Evaluated models
- self-attention U-Net (U-NetAt)DeepSpeech
- Benchmarks
- LibriSpeechDEMAND noise database
- Metrics
- PESQSTISTOISNRWERRoSATASR
Researchers propose a self-attention U-Net enhancement model, U-Net_At, to characterize speech adversarial examples and improve the robustness of DNN speech recognition systems. On the adversarial speech enhancement task, the model raises PESQ from 1.13 to 2.78 and STOI from 0.83 to 0.96. On the ASR task, adversarial training combined with additive adversarial data augmentation reduces WER by an absolute 2.22% and 2.03% under gradient perturbation and evolutionary optimization perturbation, respectively.
Paper analysis
What problem does this paper attempt to solve?
How to defend against audio adversarial examples: the authors propose using a self-attention U-Net for speech enhancement to improve ASR robustness under adversarial perturbations.
Core problem: audio adversarial examples can induce DNN speech recognition systems to output malicious text or degrade performance, while effective defenses and denoising methods are still being explored (per the authors).
- Problem scenario: adversarial examples are bounded in amplitude (e.g., by an SNR constraint) and are hard to detect by evaluation metrics and the human ear, yet they can make ASR output specified malicious text (e.g., "open-the-door"); the authors regard this as a new challenge for ASR.
- Shortcomings of existing methods: the temporal dependency (TD) detection method of Yang et al. [7] achieves a detection rate of 93.6%, but the authors point out that an ASR with the TD framework cannot correct adversarial input and can only discard large amounts of real-time audio under continuous adversarial noise; adversarial training, in turn, is highly model-dependent and may be unstable under strong perturbations (per the authors).
- Core observation: citing evidence from [7], the authors hold that most audio adversarial examples have specific temporal dependencies, and therefore design an attention network sensitive to temporal segments to characterize and enhance adversarial speech.
- The paper proposes: a self-attention U-Net (U-NetAt) speech enhancement model, using interpretable metrics such as PESQ, STI, and STOI to characterize adversarial examples, and then combining with adversarial training to improve ASR robustness.
- Threat model:
- Attacker goal: make ASR output a specified target phrase ("open the door" in the experiments), i.e., a targeted attack.
- Attacker knowledge: covers two generation approaches—the gradient method (Gradadv, requires model information) and an evolutionary algorithm (Evoadv, black-box, no access to model information)—both tested under the over-the-air filtering setting.
- Attacker capability: an adaptive attack is evaluated under a stricter setting—the attacker can observe the inputs and outputs of the speech enhancement model and the ASR system and launches a two-step attack (following the setting of Qin et al. [11]).
- Victim system: Mozilla DeepSpeech ASR, with the defense deployed as a preprocessing module before ASR.
What related research exists?
Related work falls into three groups: audio adversarial example generation, adversarial defenses and adversarial training, and speech enhancement and the U-Net family.
Audio adversarial example generation
- Cisse et al. [8] propose a probabilistic loss function to degrade ASR performance; Carlini and Wagner [4] use two-step adversarial optimization with an l∞ norm constraint, achieving a 100% attack success rate on ASR; Iter et al. [9] exploit audio features such as MFCC to improve attack effectiveness.
- Alzantot et al. [10] and Khare et al. [5] attack with evolutionary algorithms in a black-box setting without access to ASR model information; the authors note that these works do not treat over-the-air physical effects as a threat model.
- Qin et al. [11] use unbounded max-norm optimization to improve the imperceptibility of adversarial examples, but the authors note that their experiments were conducted on a room simulator and not truly over-the-air playback; Yakura and Sakuma [6] propose robust adversarial examples that can attack DeepSpeech under over-the-air conditions.
Adversarial defenses and adversarial training
- Yang et al. [7] detect audio adversarial examples using temporal dependency (TD), with a detection rate of 93.6%; the authors note the shortcoming that it can only detect, not correct, adversarial input.
- Goodfellow et al. [3] propose training on a mixture of adversarial and clean examples to regularize the network; Michelsanti and Tan [16] and Sun et al. [17] use adversarial-example-based data augmentation to improve model robustness to perturbations; the authors note that such adversarial training is highly model-dependent and may be unstable under strong perturbations.
Speech enhancement and the U-Net family
- DNN vector-to-vector regression architectures such as those of Xu et al. [1, 2] achieve several benchmark results on single-channel speech enhancement of non-stationary noise; the authors note that whether deep enhancement models can overcome the new threat of adversarial examples has been insufficiently discussed.
- Ronneberger et al. [19] propose U-Net for image segmentation; Wave-U-Net [20] applies it to source separation and speech enhancement, and Macartney and Weyde [21] further improve it; the authors note that existing U-Net methods do not consider sequence-to-sequence mechanisms such as temporal dependencies.
Baselines and benchmarks: enhancement baselines are DNN [15] and Wave-U-Net (U-NetW) [21]; data use LibriSpeech [23] mixed with the DEMAND noise library [24]; the victim ASR model is Mozilla DeepSpeech [12].
The authors position this paper as: unlike detection-based methods, using an enhancement method to characterize the properties of adversarial examples and improve ASR robustness, and introducing self-attention into U-Net to capture temporal information.
How does the paper address this problem?
A one-dimensional U-Net with embedded attention gates separates adversarial speech into clean speech and an adversarial waveform, then adversarial training improves generalization, and multiple speech quality metrics characterize the effect.
Overall approach: model adversarial speech enhancement as a source separation problem, using a self-attention U-Net (U-NetAt) to reconstruct clean speech as ASR preprocessing; then use adversarial examples for data augmentation in adversarial training to improve DeepSpeech's robustness.
Adversarial example generation (attacks used in experiments)
- Gradient method (Gradadv): gradient optimization on MFCC features, with the objective argminv Loss(MFCC(x+v), y) + ϵ|v|, i.e., minimizing the ASR loss plus a perturbation magnitude penalty so that the model outputs the target phrase y; optimized with Adam.
- Evolutionary method (Evoadv): adopts the multi-objective evolutionary optimization of Khare et al. [5], with the fitness function decomposed into two objectives—the Euclidean similarity of MFCC features and the edit similarity of the generated text—as a gradient-free comparison.
- over-the-air setting: following [6], transformations of playback and recording are introduced during generation, including a 1,000–4,000 Hz band-pass filter, impulse response convolution, and white Gaussian noise.
U-NetAt model structure
- Task formalization: separate the mixed waveform m into source waveform S1 and adversarial waveform Sadv; processed with one-dimensional convolution with filter size 1 and 2×1 filters (zero padding before convolution); number of blocks L = 17, number of channels C = 1 (following the validation results of [21]).
- Attention gate: in the upsampling blocks, high-level representations are extracted from the input speech features, and a fixed-length context vector ct is obtained from query and key via the attention mechanism; the enhanced output also fuses the upcoming channel input and the cropped concatenated input from the symmetric downsampling block; scaled dot-product softmax self-attention [22] is used.
- Design rationale: the authors believe most audio adversarial examples have specific temporal dependencies, and existing U-Nets do not consider sequence mechanisms, hence the introduction of attention sensitive to temporal segments.
Training data and adversarial training
- Data: LibriSpeech downsampled to 16 kHz; clean data comprise 30 hours training and 5 hours test, from 73 male and female English speakers; mixed with 40 noises from the DEMAND noise library [24] at 4 SNR levels (15, 10, 5, 0 dB), totaling 8,345 training samples and 1,242 test samples.
- Adversarial training: the objective function is J̃(θ, x, y) = α J(θ, x, y) + (1−α)J(θ, x + ϵ sign(∇x J(θ, x, y))), i.e., training on a mixed loss of clean and FGSM adversarial examples; all experiments take α = 0.34 (described by the authors as an empirically fine-tuned setting).
Evaluation metrics and success criteria
- Speech quality metrics: SNR, PESQ (a linear combination of the average disturbance dsym and the asymmetric disturbance dasym, with coefficients a0 = 4.5, a1 = −0.1, a2 = −0.0309), STI, STOI; the authors note that STI and STOI had not previously been used for adversarial example analysis.
- ASR metrics: attack success rate (RoSA, the proportion of adversarial examples that DeepSpeech fully transcribes as the target phrase, counted as success only on exact match) and WER; the target phrase is "open the door".
- Adaptive attack evaluation: following the two-step attack setting of [11], the attacker observes the inputs and outputs of the enhancement and ASR systems; the attack cost is measured by the injected noise SNR (dB) required to reach 100% targeted attack success rate (TASR).
What experiments did the paper conduct?
On LibriSpeech with DeepSpeech as the victim ASR: U-NetAt enhancement plus adversarial training raises adversarial-example PESQ to 2.78, and WER under gradient attack decreases absolutely by 2.22%.
Experimental setup
- Victim ASR: Mozilla DeepSpeech; the authors describe it as the current benchmark for audio adversarial robustness, performing consistently with Kaldi under prior attacks.
- Attacks: the gradient method Gradadv [6] and the evolutionary method Evoadv [5], both generated under the over-the-air filtering setting [6]; target phrase "open the door"; generated samples have an SNR of 10.12 dB; the adaptive attack follows the two-step setting of [11].
- Enhancement method comparison: DNN [15], Wave-U-Net (U-NetW) [21], U-NetAt, and versions of each with adversarial training (DNNT, U-NetT,W, U-NetT,At).
- Data: LibriSpeech clean speech 30 hours training, 5 hours test (73 speakers), mixed with 40 DEMAND noises at 4 SNR levels, totaling 8,345 training and 1,242 test samples; ASR evaluation follows the 1,000 random phrases and over-the-air playback setting of [4, 6].
- Metrics: PESQ, STI, STOI, SNR (enhancement quality); RoSA and WER (ASR); SNR required for TASR (adaptive attack cost).
- Number of repetitions: not reported by the paper.
Main results
According to Table 4 (ASR results, %) and Tables 1, 3 (enhancement quality):
Swipe horizontally to read the table
Attack Metric w/o SE SE [15] SE [21] SEUAt Gradient [6] RoSA DeepSpeech 90.23 84.86 83.43 83.11 Gradient [6] RoSA DeepSpeech+AdvT 27.34 22.21 19.29 18.23 Gradient [6] WER DeepSpeech 85.90 72.97 67.46 66.12 Gradient [6] WER DeepSpeech+AdvT 19.37 18.92 17.64 17.15 Evolutionary [5] RoSA DeepSpeech+AdvT 20.47 18.45 17.81 16.14 Evolutionary [5] WER DeepSpeech+AdvT 19.45 19.42 18.44 17.42 - Enhancement is effective: the authors state that the temporal features learned by U-NetAt can enhance ASR robustness; the abstract reports an absolute WER decrease of 2.22% under gradient perturbations and 2.03% under evolutionary perturbations.
- Adversarial training provides gains: the authors state that additive adversarial data augmentation improves generalization ability; under evolutionary attacks the error rate is higher without AdvT, but with AdvT the WER gain is larger than under gradient attacks (Table 4).
- Spectrogram comparison: Figure 2 presents log-power spectrograms of clean, noisy, adversarial, U-NetAt-enhanced, and adversarially-trained-enhanced speech; the authors state that differences in speech detail recovered by enhancement and adversarial training are visible.
Ordinary noise enhancement (Table 1)
- What was measured: comparison of enhancement baselines on DEMAND noise-mixed speech.
- Results: U-NetAt achieves PESQ 2.88, STI 0.81, STOI 0.92, SNR 9.85; U-NetW achieves PESQ 2.86, SNR 9.83, both higher than DNN (PESQ 2.62); unenhanced noisy speech has PESQ 1.97.
- Authors' interpretation: U-Net-based methods score higher than DNN methods on noisy speech.
Direct enhancement of adversarial examples (Table 2, Table 3)
- What was measured: direct enhancement of over-the-air adversarial examples (Table 2), and the effect of enhancement models with adversarial training (Table 3).
- Results: in Table 2, all enhancement methods raise SNR from −1.52 to 7.23–7.68, but PESQ, STI, and STOI are all lower than the unenhanced Noisyadv (e.g., U-NetAt's PESQ 1.18 vs. 1.31); in Table 3, with adversarial training U-NetT,At reaches PESQ 2.78, STI 0.75, STOI 0.90, SNR 7.92.
- Authors' interpretation: direct enhancement instead lowers quality metrics, indicating the need for designs oriented toward robust ASR; after adversarial training all models improve.
Adaptive attack (Figure 3)
- What was measured: the injected noise SNR required to reach 100% TASR under a two-step attack in which the attacker can observe the inputs and outputs of the enhancement and ASR.
- Results: Gradadv drops from 7.63 dB (no enhancement) to −2.23 dB (with U-NetAt), and Evoadv drops from 7.82 dB to −3.21 dB.
- Authors' interpretation: attackers must inject larger noise to succeed, increasing the difficulty of launching an imperceptible attack in the real world and improving ASR robustness.
Other ablations and analyses
- Adversarial training coefficient: all experiments take α = 0.34, described by the authors as an empirically fine-tuned setting; no experiments comparing other values are reported.
- Model structure parameters: number of blocks L = 17, number of channels C = 1, following the validation results of [21]; no parameter sweep was done.
- Exceptional result: Table 2 shows that without adversarial training, PESQ, STI, and STOI after enhancement are all lower than for unenhanced adversarial examples; the authors use this only as an argument for the need for robust design and do not further explain the reason.
What are some points that can be further explored?
The authors only state that future work includes more acoustic property analysis; the experiments are limited to DeepSpeech, LibriSpeech, and a single target phrase.
Limitations noted by the authors and future directions
- More acoustic property analysis: In the Conclusions, the authors write that future work includes more acoustic property analysis (Section 5).
- The paper does not specifically discuss other limitations.
Scope of experimental coverage
- ASR system tested: only Mozilla DeepSpeech; the main text mentions that Kaldi performed consistently in prior studies, but this paper did not run Kaldi experiments itself (Section 4.1 footnote).
- Attack coverage: the gradient method Gradadv [6] and the evolutionary method Evoadv [5], both under the over-the-air filtering setting; the adaptive attack is evaluated under the two-step setting of [11] (Sections 2, 4.2).
- Target phrase and data: the target phrase is "open the door"; ASR evaluation follows the 1,000 random phrases of [4, 6]; adversarial training uses LibriSpeech 30 hours training and 5 hours test, mixed with 40 DEMAND noises at 4 SNR levels (Sections 3.2, 4.1).
- Enhancement comparison methods: DNN [15], Wave-U-Net [21] and U-NetAt, and versions of all three with adversarial training (Table 1–4).
- Not reported by the paper: number of experimental repetitions and variance, latency or computational overhead introduced by enhancement, comparison experiments on the value of the adversarial training coefficient α = 0.34.
Summarize the main content of the paper
The authors propose a self-attention U-Net to enhance adversarial speech as ASR preprocessing, combined with adversarial training to improve DeepSpeech's robustness under over-the-air attacks.
This is a paper on defending against audio adversarial examples: addressing the problem that audio adversarial examples can make DNN speech recognition systems output malicious text while detection-based methods can only discard rather than correct them, the authors propose a self-attention U-Net (U-NetAt) that enhances adversarial speech before ASR and combines it with adversarial training to improve robustness.
- Method highlights: attention gates are embedded in the upsampling blocks of a one-dimensional U-Net, using scaled dot-product self-attention to extract temporal features and separate the mixed waveform into clean speech and adversarial waveform; adversarial training uses an FGSM mixed loss with α = 0.34; enhancement effectiveness is characterized by PESQ, STI, STOI, and SNR.
- Enhancement quality: on over-the-air adversarial examples, U-NetAt plus adversarial training raises PESQ from 1.31 to 2.78, STI from 0.67 to 0.75, and STOI from 0.84 to 0.90 (Table 3); the abstract reports STOI reaching 0.96.
- ASR robustness: WER decreases absolutely by 2.22% under gradient attacks and by 2.03% under evolutionary attacks (abstract); in Table 4, DeepSpeech+AdvT with SEUAt has WER of 17.15% (gradient) and 17.42% (evolutionary).
- Adaptive attack: the injected noise required to reach 100% TASR drops from 7.63 dB to −2.23 dB (Gradadv) and from 7.82 dB to −3.21 dB (Evoadv); the authors state this raises the attack cost.
- Authors' conclusion: the authors consider the enhancement method different from detection-based methods, that temporal features and adversarial data augmentation can improve ASR robustness against gradient and evolutionary attacks, and emphasize the importance of using data properties to secure speech processing; future work includes more acoustic property analysis.