SpeechGuard: Exploring the Adversarial Robustness of Multi-modal Large Language Models

Raghuveer Peri, Sai Muralidhar Jayanthi, Srikanth Ronanki, Anshu Bhatia, Karel Mundnich, Saket Dingliwal, Nilaksh Das, Zejiang Hou, Goeric Huybrechts, Srikanth Vishnubhotla, Daniel Garcia-Romero, Sundararajan Srinivasan, Kyu J. Han, Katrin Kirchhoff

Abstract

Integrated Speech and Large Language Models (SLMs) that can follow speech instructions and generate relevant text responses have gained popularity lately. However, the safety and robustness of these models remains largely unclear. In this work, we investigate the potential vulnerabilities of such instruction-following speech-language models to adversarial attacks and jailbreaking. Specifically, we design algorithms that can generate adversarial examples to jailbreak SLMs in both white-box and black-box attack settings without human involvement. Additionally, we propose countermeasures to thwart such jailbreaking attacks. Our models, trained on dialog data with speech instructions, achieve state-of-the-art performance on spoken question-answering task, scoring over 80% on both safety and helpfulness metrics. Despite safety guardrails, experiments on jailbreaking demonstrate the vulnerability of SLMs to adversarial perturbations and transfer attacks, with average attack success rates of 90% and 10% respectively when evaluated on a dataset of carefully designed harmful questions spanning 12 different toxic categories. However, we demonstrate that our proposed countermeasures reduce the attack success significantly.

Introduction

As Large Language Models (LLMs) evolve into multimodal powerhouses capable of "hearing" and "seeing," a new security frontier is opening up. While significant effort has been spent preventing text-based LLMs from providing harmful instructions (e.g., how to build bombs or rob banks), we are only just beginning to understand how these safety guardrails hold up when the input is audio. Researchers from AWS AI Labs investigate whether integrated Speech-Language Models (SLMs) can be manipulated via adversarial audio to bypass their safety training.

The Vulnerability of Spoken QA

Standard LLMs undergo "safety alignment" to ensure they refuse harmful requests. However, multimodal models like SLMs, which process audio directly rather than transcribing it first, introduce a continuous signal space that is much easier to attack mathematically than discrete text. While visual-language models have been shown to be vulnerable to adversarial images, the robustness of unified speech-text models remained largely unexplored until now.

Overview of adversarial jailbreaking in Spoken QA agents and the proposed defense mechanism.

In a typical Spoken QA task, a user asks a question via audio and the model responds in text. Without an attack, a safety-aligned model correctly refuses harmful prompts. However, by adding a learned perturbation ($\delta$), an attacker can force the model to generate a target "affirmative" response, effectively bypassing the safety logic.

Methods: The SpeechVerse Architecture

The researchers built a unified SLM architecture called SpeechVerse, which integrates a pre-trained audio encoder with a large language model backbone.

The SpeechVerse architecture, integrating a pre-trained audio encoder with a large language model.

The architecture consists of a 24-layer Conformer audio encoder and an LLM backbone (using Flan-T5 and Mistral-7B). To test its limits, two main attack scenarios were designed:

  1. White-box Attacks: Using Projected Gradient Descent (PGD), precise, tiny perturbations were calculated to add to the audio. By forcing the model to start with an affirmation (e.g., "Sure, here is how to..."), the model often fails to self-correct even when generating toxic content.
  2. Transfer (Black-box) Attacks: These tested if perturbations generated for one model (the surrogate) could jailbreak a different model (the victim) or if a perturbation for one specific question could work on another.

Countermeasures: Time-Domain Noise Flooding

To thwart these attacks, the authors proposed Time-Domain Noise Flooding (TDNF). This involves adding simple White Gaussian Noise (WGN) to the input audio. Because adversarial perturbations are often tiny and specifically tuned to the model's weights, adding even a small amount of random noise (30dB SNR) can disrupt the attack pattern while leaving the actual speech signal clear enough for the model to understand.

Key Results and Insights

  • High Vulnerability: In white-box settings, adversarial attacks achieved a ~90% Jailbreak Success Rate (JSR). These perturbations were often at 60dB SPR (Signal-to-Perturbation Ratio), making them virtually inaudible to humans.
  • Transferability: Cross-model attacks were less effective but still dangerous, with success rates around 10-20%.
  • Defense Success: The proposed TDNF defense was remarkably effective. At a 30dB SNR, the jailbreak success rate for some models dropped from 90% to near 0%.
  • Utility Trade-off: While the defense significantly improved safety, it caused a manageable ~15% drop in the model's "helpfulness" score on benign questions.

Conclusion

Audio is a "soft" target for adversarial attacks because it allows for gradient-based optimization. However, adversarial noise is fragile. The effectiveness of TDNF suggests that while SLMs are vulnerable to sophisticated jailbreaks, simple pre-processing defenses can significantly bolster their robustness without compromising core utility.

Citation: Peri, R., et al. (2024). SpeechGuard: Exploring the Adversarial Robustness of Multimodal Large Language Models. Findings of the Association for Computational Linguistics: ACL 2024, 10018–10035.

Summary updated

BibTeX
@inproceedings{peri2024speechguard,
  author = {Raghuveer Peri and Sai Muralidhar Jayanthi and Srikanth Ronanki and Anshu Bhatia and Karel Mundnich and Saket Dingliwal and Nilaksh Das and Zejiang Hou and Goeric Huybrechts and Srikanth Vishnubhotla and Daniel Garcia-Romero and Sundararajan Srinivasan and Kyu J. Han and Katrin Kirchhoff},
  title = {{SpeechGuard: Exploring the Adversarial Robustness of Multi-modal Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=owYZhL3uOC},
}
Figure