Transferable Adversarial Robustness for Speech Foundation Models via Hierarchical Stabilization

Aref Mousavi, Shahab Sherafat, Kiarash Kiani Feriz, Amirparsa Safari, Raoof Zare Moayedi, Mohammad Hossein Rohban, Mohammad SabokrouarXiv 2026

TL;DR

Researchers have developed a way to make Speech Foundation Models (SFMs) robust against adversarial attacks without the massive computational cost of retraining them for every new task. By stabilizing representations across all hidden layers once and then refining classifier margins using only clean data, they achieve a massive 50.4 percentage point boost in robust accuracy with minimal impact on performance.

What Problem Does This Paper Address?

Speech Foundation Models (SFMs) like Wav2Vec2 and HuBERT are the workhorses of modern audio processing. Their main appeal is efficiency: you take a massive, pre-trained "backbone," freeze it, and simply learn a lightweight "layer fusion" (a weighted average of the backbone's internal layers) and a classifier for your specific task (e.g., identifying a speaker or detecting emotion).

However, these models are notoriously fragile. Small, often imperceptible "adversarial" perturbations to the input audio can completely flip the model's prediction. The standard fix—Adversarial Training (AT)—requires generating these malicious examples and updating the entire backbone for every single downstream task. This is computationally expensive and defeats the purpose of using a frozen, efficient backbone. The authors ask: Can we bake robustness into the backbone before we even know what the downstream tasks will be?

Methods

The authors propose a two-stage framework that treats robustness as the interaction between two factors: how much a representation "moves" when attacked, and how far the "margin" is to the nearest decision boundary.

Stage 1: Hierarchical Robustification

Instead of robustifying just the final output, the authors stabilize representations across all hidden layers. This is crucial because different downstream tasks prefer different layers. They use a "smooth maximum" objective (Log-Sum-Exp) to penalize the layer that drifts the most under attack. This ensures that no matter which combination of layers a future task chooses, the resulting representation will be stable. This stage uses unlabeled, task-independent speech data.

Overview of the two-stage framework: (a) Hierarchical robustification of the backbone, (b) Clean task adaptation, and (c) Head-only margin refinement.

Stage 2: Clean Margin-Aware Refinement

Once the backbone is robust and a specific task is chosen, the authors perform "clean" adaptation. They freeze the backbone and the learned layer fusion, then refine only the classifier. Crucially, they do this by maximizing the geometric distance (margin) between classes using only clean data. By pushing the decision boundaries further away from the data points, they make it harder for the (now limited) representation movement to cause a misclassification.

Datasets

  • Robustification (Stage 1): 100 hours of unlabeled speech from Common Voice.
  • Downstream Tasks:
    • Speech Commands (KS): Keyword spotting (content).
  • Fluent Speech Commands (IC): Intent classification (semantics).
  • VoxCeleb1 (SID): Speaker identification (identity).
  • IEMOCAP (ER): Emotion recognition (paralinguistics).

Key Insights and Ideas

  • The Hierarchy Matters: Stabilizing only the terminal (last) layer is insufficient. As shown in Figure 5(a), terminal-layer stabilization actually results in the highest drift in earlier layers. Hierarchical stabilization successfully pushes the "peak drift" down across the entire model.
  • Movement vs. Margin: The paper elegantly decomposes robustness into a sufficient condition: if the movement caused by an attack is smaller than the distance to the decision boundary, the prediction is preserved.
  • Robustness Transferability: Robustness learned on unlabeled data via hierarchical stabilization transfers effectively across diverse tasks, from speaker ID to emotion detection, without needing task-specific adversarial examples.
  • Efficiency: Stage 1 is a one-time cost (approx. 19 GPU-hours). Stage 2 is extremely fast (approx. 0.37 GPU-hours per task), compared to over 10 GPU-hours per task for full adversarial training.
Comparison of layer-wise drift and robust accuracy across different SNR budgets.

Key Results

  • Massive Robustness Gains: Across 12 backbone-task pairs, the full method improved mean Robust Accuracy (RA) by 50.4 percentage points over standard models.
  • Minimal Clean Trade-off: This gain came at a small cost of only 3.2 percentage points in Clean Accuracy (CA).
  • Stage 2 Value-Add: Margin refinement alone (Stage 2) added an average of 4.0 percentage points to robust accuracy without ever seeing an adversarial example during that phase.
  • Consistency: The method remained effective across various attack strengths (SNR budgets), significantly outperforming terminal-layer-only baselines (Figure 6(b)).

Limitations and Future Work

  • Clean Accuracy Drop: While small, there is still a trade-off between clean performance and robustness.
  • Classification Focus: The study focuses on utterance-level classification tasks. Extending this hierarchical stabilization to sequence-to-sequence tasks like full Automatic Speech Recognition (ASR) remains a direction for future research.
  • White-Box Assumption: The evaluation primarily focuses on adaptive white-box attacks; exploring "black-box" transferability in more detail could be beneficial.

Summary updated

Abstract

Frozen speech foundation models (SFMs) make downstream adaptation efficient: the backbone can stay fixed while a task learns layer fusion and a lightweight classifier. Full adversarial fine-tuning is a standard route to robustness, but generating adversarial examples and updating the backbone for every task sacrifices that efficiency. We ask whether robustness can instead be learned before future tasks are known. For a frozen backbone and linear classifier, robustness can be understood through the interaction between representation stability and decision-boundary margin. This leads directly to our design: we stabilize representations across the hidden layers, rather than only the final layer, while preserving clean representations; after clean adaptation selects the layer mixture, we keep it fixed and enlarge only the classifier margin, without downstream adversarial examples. We evaluate Wav2Vec2, HuBERT, and WavLM Large on four tasks under adaptive 30 dB attacks. Across 12 backbone-task pairs, hierarchical robustification improves robust accuracy by 46.4 pp, while margin refinement adds 4.0 pp for 1.1 pp of clean accuracy. Code and configurations are available at https://github.com/arefmousavi/hierarchical-robust-sfm.
BibTeX
@misc{mousavi2026transferable,
  author = {Aref Mousavi and Shahab Sherafat and Kiarash Kiani Feriz and Amirparsa Safari and Raoof Zare Moayedi and Mohammad Hossein Rohban and Mohammad Sabokrou},
  title = {{Transferable Adversarial Robustness for Speech Foundation Models via Hierarchical Stabilization}},
  year = {2026},
  eprint = {2610.05310},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.05310},
}
Figure