Speech Tokenizers are Vulnerable: Transferable Semantic Attack and Robust Tokenizer

Zhisheng Zhang, Yifan Mi, Yixuan Zhou, Haiyun Li, Shengbo Cai, Dongfu Song, Ziang Xu, Jie Hao, Zhiyong WuNeurIPS 2026

TL;DR

Modern AI voice assistants translate continuous sound waves into discrete "tokens" using a front-end component called a speech tokenizer. This paper reveals that speech tokenizers are an Achilles' heel: tiny, virtually imperceptible audio tweaks can scramble their internal semantic representations, causing downstream transcription and audio-language models to hallucinate wildly. To both demonstrate and fix this, the authors introduce T-SemAttack (a highly transferable black-box attack) and ROSETok (a hardened, noise-resilient speech tokenizer).

What Problem Does This Paper Address?

Large Audio-Language Models (LALMs) and modern Automatic Speech Recognition (ASR) systems work a lot like text LLMs, except they need an extra translator at the front door: a speech tokenizer. This component chops continuous audio waveforms into representations—often discrete tokens—that an LLM can digest.

Historically, researchers tested the toughness of these tokenizers by blasting them with random static (Gaussian noise). If the model survived, it was deemed robust. The authors ask a sharper question: What happens if perturbations aren't random, but specifically engineered to target semantic encoding? Furthermore, most existing adversarial audio attacks require white-box access to the entire end-to-end model and rely on expensive decoding objectives. The authors wanted to know if attacking just the front-end tokenizer could blindly break unseen, commercial black-box systems downstream.

Figure 1: Gaussian Noise vs. T-SemAttack across Tokenizers. We feed the pre-quantized rep- resentations from each tokenizer into SmolLM2-135M [10] and evaluate downstream semantic understanding on the FSC spoken command intent recognition task (↑).

Methods

The paper plays both offense and defense, introducing two novel frameworks:

Figure 2: The architecture and pipeline of T-SemAttack and ROSETok.
  • Offense — T-SemAttack: Because discrete quantization is non-differentiable (you can't easily pass gradients through a hard rounding step), T-SemAttack targets the continuous representations right before quantization. To make the attack transfer to unknown black-box models, it uses PGD-style optimization to simultaneously minimize cosine similarity between clean and perturbed audio across an ensemble of four diverse, open-source surrogates: S3Tokenizer, HuBERT, Whisper's encoder, and MFCC (low-level acoustic features). To keep the audio sounding natural to human ears, it applies a standard psychoacoustic masking constraint, hiding the adversarial noise inside louder frequency bands of the original speech.
  • Defense — ROSETok: Securing the massive LLM at the back end is expensive; fixing the tokenizer at the front door is much more efficient. Built on the standard DAC architecture (an encoder, 9-layer residual vector quantizer, and decoder), ROSETok introduces robust semantic distillation alongside a two-stage training recipe:
  • Base Pretraining (ROSETok-Base): Trained on speech corrupted with Gaussian noise to reconstruct clean audio, while a frozen "Semantic Teacher" (Whisper) forces the encoder's hidden states on noisy audio to match clean ones.
  • Attack-Aware Fine-Tuning (ROSETok-AAF): Briefly fine-tuned on T-SemAttack examples at a low learning rate to lock in adversarial resilience without forgetting how to reconstruct crisp audio.

Datasets

No new datasets are introduced, but a comprehensive bilingual suite is used:

  • Attack & Downstream Evaluation: LibriTTS (single-speaker English), Seed-TTS-Eval (multi-speaker English and Chinese), AIR-Bench (for LALM audio question-answering), and Fluent Speech Commands / FSC (for intent recognition via the XARES benchmark).
  • Tokenizer Training: Emilia (~96.7k hours of bilingual Chinese and English speech for base pretraining) and LibriSpeech (2,000 utterances for attack-aware fine-tuning, plus 100k-step ablations).

Key Insights and Ideas

  • Surviving static doesn't mean surviving semantics: Tokenizers that barely flinch under heavy 5 dB Gaussian noise completely collapse under a much quieter (~19.5 dB) T-SemAttack. Random noise tolerance is a false sense of security.
  • Perturbations snowball in deeper layers: Shallow acoustic layers barely notice the attack, but representations drift apart dramatically in deeper semantic layers (e.g., HuBERT's cosine similarity plunges from 0.881 at the input to 0.079 at the final layer).
Figure 3: Layer-wise analysis of representation similarity and effectiveness of perturbation magnitude.
  • Models share a universal "blind spot": Even though Whisper, HuBERT, and S3Tokenizer were trained with completely different objectives, their input gradients align along shared sensitive directions (likely due to similar Mel-spectrogram bottlenecks). Perturbing just the top rank-1 shared gradient subspace is enough to wreck transcription—explaining why the attack transfers effortlessly to closed-source models like GPT-4o and Gemini.
  • Audio enhancers can't save shifted tokens: Running attacked audio through state-of-the-art denoisers (like DeepFilterNet3 or diffusion-based AudioPure) cleans up the sound, but fails to stop the attack. Once the front-end semantic trajectory has been nudged across token boundaries, downstream language models can't piece it back together—they actually stop paying attention to the audio tokens and rely overly on text context.

Key Results

  • Breaking Black-Box ASR: On multi-speaker English (Seed-TTS), T-SemAttack drives average Word Error Rates (WER) across 9 ASR systems from 2.6% (clean) up to 81.9%—reaching 49.5% on GPT-4o-mini-transcribe and 71.7% on iFlytek—while maintaining high perceptual audio quality (~17.6 dB SNR) and running faster than prior attacks (RTF of 21.8 vs. E2E-VGuard's 26.8).
  • Derailing LALMs: Across 4 LALMs (including Qwen2-Audio, Qwen3-Omni, and Gemini-3-Flash), T-SemAttack spikes average ASR WER to 58.3% (taking Qwen2-Audio on LibriTTS from 3.0% to 97.3%) and drops AIR-Bench QA quality scores from 7.58 down to 5.48.
  • ROSETok Holds the Line: When evaluating downstream SpeechLLM intent recognition (FSC accuracy), existing "robust" tokenizers like StableToken plummet from 96.7% on clean audio to 35.0% under T-SemAttack. ROSETok-AAF maintains 77.9% accuracy under attack (92.7% clean), while achieving best-in-class audio reconstruction intelligibility (0.903 STOI under attack).

Limitations and Future Work

  • Offline Generation Cost: In their threat model, the authors explicitly note that T-SemAttack operates in an offline setting. With a Real-Time Factor (RTF) of 21.8 (meaning 1 second of audio takes ~22 seconds to optimize over 500 iterations), it is not yet capable of real-time, over-the-air streaming attacks.
  • Future Directions: Having established the speech tokenizer as a primary safety bottleneck in foundation models, the authors suggest future work should focus on building next-generation speech tokenizers with stronger native semantic consistency rather than relying solely on costly LLM-level guardrails.

Summary updated

Abstract

Speech tokenizers serve as speech front ends, encoding input speech signals into representations for downstream models, such as automatic speech recognition (ASR) systems and large audio-language models (LALMs). In this paper, we find that speech tokenizers are fragile at the semantic level: small perturbations can disrupt their semantic encoding process and consequently cause severe degradation in downstream ASR and LALM performance. To study this vulnerability, we propose T-SemAttack, a transferable semantic attack based on a semantic encoder ensemble. By jointly drifting the representation spaces of multiple semantic encoders, T-SemAttack effectively disrupts the semantic content of speech while preserving perceptual quality, thereby inducing error features. We further analyze layer-wise representation drift and cross-model gradient alignment. Our findings show that perturbations can induce substantial shifts in deep semantic representations and that the input gradients of different surrogate encoders exhibit directional alignment. These observations suggest that shared adversarially sensitive directions in the input space may be a key factor underlying cross-model attack transferability. Building on these, we introduce ROSETok, a robust speech tokenizer that combines noisy training with robust semantic distillation to improve reconstruction fidelity and downstream SpeechLLM robustness. Extensive experiments on multiple datasets, 9 open-source and black-box ASR systems, and 4 LALMs demonstrate that T-SemAttack achieves strong transferable attack performance, while the proposed Robust Speech Tokenizer exhibits robustness under high-fidelity reconstruction and downstream tasks. Our code and demo are available at https://wxzyd123.github.io/t-semattack.
BibTeX
@inproceedings{zhang2026speech,
  author = {Zhisheng Zhang and Yifan Mi and Yixuan Zhou and Haiyun Li and Shengbo Cai and Dongfu Song and Ziang Xu and Jie Hao and Zhiyong Wu},
  title = {{Speech Tokenizers are Vulnerable: Transferable Semantic Attack and Robust Tokenizer}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=oVx8Urehhw},
}
Figure