Noise-Masking Attacks and Defenses on Pretrained Speech ModelsNoise Masking Attacks and Defenses for Pretrained Speech Models
The authors extend the noise-masking attack to self-supervised pretrained speech encoders: first fine-tune an ASR model and then attack it; the authors state that names in the pretraining data can be recovered, and they evaluate several mitigations.
The attacker can access an audio encoder E trained on an audio pretraining dataset XP T, and the goal is to learn sensitive information about samples in XP T; the attacker can also collect a transcribed fine-tuning dataset (XF T , YF T ) that does not overlap with XP T. The attacker has domain knowledge, can identify the easily constructed non-sensitive parts and the unknown sensitive parts of a target utterance, and holds a function N that adds noise at the positions of the sensitive parts.
- Speech foundation models are often pretrained on large-scale data containing sensitive information, posing privacy leakage risks. Existing noise-masking attacks apply only to ASR models that have seen audio and transcriptions; self-supervised pretrained encoders have never seen sensitive text, and their leakage risk is unknown.
- The attacker takes a pretrained encoder, fine-tunes it with another non-overlapping transcribed dataset into an ASR model, then applies noise masking to it; the work also proposes transcript-based and agreement-based abstention filtering to improve precision, and evaluates three types of mitigation: data sanitization, modifying pretraining (MTR, adding silence), and deduplication.
- The authors say the attack can recover names from pretraining data: under LS-NoName fine-tuning with noise mask, Exact name accuracy is 1.6/1.5% (Table 1); abstention filtering can raise Any name precision to 35.9/45.5% (Table 2); data sanitization and Silence+MTR reduce Exact name accuracy to near 0 (Table 3).
- The authors say the attack success rate is lower than existing results on end-to-end ASR, that stronger noise generation or attack model training could raise the success rate, and recommend continued research on privacy-preserving training techniques. The experiments used only LibriLight for pretraining and LibriSpeech-family data for fine-tuning, the model was a 600M-parameter BEST-RQ encoder, and the only sensitive information tested was formatted names.
- Evaluated models
- BEST-RQ (600M Conformer encoder)
- Benchmarks
- LibriLightLibriSpeech (LS)LS-NoName
- Metrics
- Exact name accuracyExact name precisionAny name accuracyAny name precisionWER
The researchers extend the noise-masking attack from ASR models to pretrained speech encoders: by first fine-tuning the encoder to obtain an ASR model and then performing noise masking on it, private information can be recovered from the pretraining data, even if the model never saw transcribed text during pretraining. The noise-masking attack was proposed by Amid et al. in 2022, originally targeting ASR models, by requesting transcription of a segment of speech partially replaced with noise, causing the model to output sensitive transcriptions it memorized during training. The paper also shows how to improve the accuracy of such attacks and studies various countermeasures. Speech models are often trained on sensitive data to improve performance, and thus carry a risk of privacy leakage.
Paper analysis
What problem does this paper attempt to solve?
The self-supervised pretrained speech encoder has never seen sensitive text; can a noise-mask attack recover sensitive information in the pretraining data from it?
Core question: whether self-supervised pretrained speech encoders (pretrained on audio only, without transcriptions) leak sensitive information in their pretraining data through noise-masking attacks.
- Setting and importance: the common paradigm for building speech foundation models is large-scale pretraining followed by fine-tuning; pretraining requires diverse, potentially sensitive data sources, and machine learning models have been shown to be vulnerable to privacy attacks that leak training data information (according to the authors).
- Shortcomings of existing methods: the noise-masking attack proposed by Amid et al. [1] applies only to ASR models, requiring the model to have seen both audio and transcriptions during training; self-supervised pretrained encoders learn only from audio and have never seen sensitive text, so the original attack cannot be directly applied.
- Core observation: the authors' key finding is that after fine-tuning the pretrained encoder with another dataset into an ASR model and then applying noise masking, the attack still succeeds, which the authors say parallels privacy attacks on image model pretraining data.
- Contributions of the paper: the authors claim three—extending the noise-masking attack to the modern large-scale pretraining setting and providing methods to improve the precision of arbitrary noise-masking attacks; designing several mitigations (based on existing noise-masking defenses and mitigations for extraction attacks on non-speech models); and experimentally evaluating these attacks and mitigations.
- Threat model:
- Goal: learn sensitive information about samples in the pretraining audio dataset XP T.
- Knowledge: access to audio encoder E pretrained on XP T; domain knowledge to identify the target utterance (containing non-sensitive and sensitive parts), with the non-sensitive part easy to construct and the sensitive part unknown.
- Capabilities: can collect a transcribed audio dataset (XF T , YF T ) that does not overlap with XP T for ASR fine-tuning; holds a function N that can add noise at the positions of the sensitive part of an utterance.
- Victim system: a speech encoder self-supervised pretrained on potentially sensitive large-scale audio data and then fine-tuned into an ASR model.
What related research exists?
The paper relates to four lines of work: noise-masking attacks, other privacy attacks, pretraining data leakage, and defenses against extraction attacks.
Noise-masking attack (the object this paper directly extends)
- Amid et al. [1] (Interspeech 2022)—proposed the noise-masking attack: the attacker knows the non-sensitive part of an utterance, replaces the sensitive part with noise (e.g., cafe noise or silence), and requests transcription from the ASR model; trained records get transcribed as the memorized sensitive text; they also showed mitigation by modifying ASR training (adding silence and noise, i.e., MTR [17]). This paper extends the attack to the pretrained encoder setting and uses its MTR parameters for mitigation experiments.
Other forms of privacy attacks (the authors consider the harm relatively limited or the setting different)
- Shokri et al. [4] (2017)—membership inference attacks; the authors consider the potential harm of such attacks relatively limited compared with noise masking.
- Huang et al. [6] (Interspeech 2022)—detecting unintended memorization in language-model-fused ASR, targeting unnatural canary samples; the authors consider noise masking to directly demonstrate leakage on real data records.
Data leakage in pretrained/self-supervised models
- Guo et al. [7] (2023)—studied unintended memorization in self-supervised learning (images).
- Abascal et al. [8] (2023)—showed that fine-tuned models leak private information from their pretraining data. The authors state that this paper's attack on speech pretraining data parallels such privacy attacks on image models.
- Jagielski et al. [9] (ICLR 2022)—found that continued training (e.g., fine-tuning) reduces memorization leakage of prior samples; this is a challenge for this paper's attack, since fine-tuning may weaken leakage of XP T.
Extraction attacks and their defenses
- Carlini et al. [5] (USENIX Security 2021)—extracting training data from large language models; Carlini et al. [20] (USENIX Security 2023)—extracting training data from diffusion models.
- Abstention ideas for improving attack precision: Leino and Fredrikson [10] (USENIX Security 2020) and Carlini et al. [11] (IEEE S&P 2022) allow attackers to abstain on low-confidence results in membership inference; this paper introduces abstention into noise masking to improve precision.
- Defenses: Lukas et al. [16] (2023) and others proposed data curation to mitigate extraction attacks; Lee et al. [18] (2021) and Kandpal et al. [19] (ICML 2022) showed that deduplication can reduce extraction risk for language models, and Carlini et al. [20] reached a similar conclusion for diffusion models; the authors note these works consider extracting entire or large passages of records, whereas this paper focuses on extracting small sub-records.
Baselines and benchmarks: the direct comparison for attack success rate is the results of Amid et al. [1] on end-to-end ASR (e.g., silence masking recovers the correct name on 11.8% of training utterances); the experimental benchmarks are LibriLight [12] (pretraining) and LibriSpeech [13] (fine-tuning).
The authors position this paper as generalizing the attack of Amid et al. [1] to the modern large-scale self-supervised pretraining setting, while providing methods to improve attack precision and an evaluation of mitigations for this setting.
How does the paper address this problem?
Fine-tune the pretrained encoder into an ASR attack model, then apply noise mask; use abstention filtering to improve precision; use sanitization, modified pretraining, and deduplication as mitigations.
Overall approach: the attacker fine-tunes the pretrained encoder E with a non-overlapping transcribed dataset into an ASR model M, then directly applies the noise-masking attack of Amid et al. [1] to M; on top of this, an abstention mechanism is added to improve precision, and three types of mitigation are evaluated. The method has no separate name; the pipeline is shown in Figure 1.
Problem setting and attack pipeline
- Attacker setting: the attacker has access to encoder E pretrained on audio dataset XP T (drawn from population PP T); E encodes audio into a high-dimensional, hard-to-interpret latent space, and the specific privacy risk is hard to assess from the encoder alone, so the attacker is allowed to collect a transcribed fine-tuning set (XF T , YF T ) that does not overlap with XP T.
- Assumptions carried over: the attacker has domain knowledge and can identify the non-sensitive part of the target utterance (easy to construct) and the sensitive part (unknown); a function N adds noise at the positions of the sensitive part.
- Attack steps: first supervised fine-tuning on E with (XF T , YF T ) to obtain ASR model M, then noise masking on M. The authors note the difficulty is that continued training such as fine-tuning has been shown to reduce privacy leakage of prior samples [9], and what is to be leaked here is exactly XP T.
High-precision noise masking (abstention mechanism)
- Motivation: traditional noise masking targets overall attack success rate; in the privacy field, attackers have recently been allowed to abstain on low-confidence results [10, 11], evaluating success rate only on non-abstained attempts, corresponding to scenarios where leakage is more actionable (the attacker is more confident).
- Transcript-based abstention: filter out attack outputs that only transcribe non-sensitive audio content.
- Agreement-based abstention: try multiple noise types and keep only predictions where multiple noises give the same transcription.
Experimental setup (attack implementation)
- Data: LibriLight [12] (XP T) for pretraining, LibriSpeech (LS) [13] for fine-tuning; because the two overlap, the authors constructed a filtered version LS-NoName without formatted names, so that any successful attack extracting a formatted name can only come from pretraining memory. Formatted names are identified by searching LS transcriptions for specific titles and filtering cases followed by common words (footnote 1).
- Models: all models use the BEST-RQ [2] pretraining recipe, 600M-parameter encoder, 24-layer Conformer [14], fine-tuned for ASR with CTC loss [15]; training parameters follow the original BEST-RQ settings; default pretraining is 1M steps.
- Attack samples: about 1000 name-containing utterances from the LibriSpeech training set (not in LS-NoName), and all about 80 name-containing utterances in the LibriSpeech test set; 5 noises are sampled per utterance, from noise sources such as car, cabin, cafe, music, kitchen, podcast; silence masking is also considered separately.
Metrics
- Exact name accuracy: the proportion of utterances where any of the 5 noise samples recovers the correct name under attack, reflecting risk to ordinary sensitive pretraining samples.
- Exact name precision: the proportion of non-abstained attacks that recover the correct name, reflecting the attacker's confidence in the results.
- Any name accuracy: the proportion of utterances where noise masking returns any name, meaning private information is leaked (even if not the target person).
- Any name precision: the proportion of non-abstained attacks that return any name. Metrics are computed over 5 trials; the post-fine-tuning WER is also reported to measure encoder quality.
Mitigations
- Data sanitization: idealized defense—use an ASR model to automatically transcribe all of LibriLight and filter out utterances whose transcription contains any formatted name (similar to how LS-NoName was constructed). The authors note curation difficulties: all potentially sensitive content must be anticipated in advance, and detecting sensitive content at scale may require additionally training a sensitivity classifier.
- Modifying pretraining: the learning party cannot influence ASR fine-tuning, so at the pretraining stage MTR [17] (parameters as in [1]) and adding silence are used, making the pretrained model tend to predict noise/silence when encountering noise/silence context; silence masking tried 100ms and 500ms, and only 100ms is reported because the parameter's effect is limited.
- Data deduplication DD-(k, p): deduplicate by highly repeated k-grams in transcriptions, where k is the k-gram length and p is the proportion of the dataset removed; k is 3 and 5, p is set so that no more than 10% of the training set is removed; for 3-grams, the authors found that removing 35% of the data is needed to remove even 1% of name-containing k-grams, so p=0.35 is set for k=3.
What experiments did the paper conduct?
Centered on three questions: whether the attack is feasible, how high precision can be raised, and which training choices affect risk; three types of mitigation are also evaluated.
Experimental setup
- Model under test: 600M-parameter BEST-RQ encoder (24-layer Conformer), pretrained on LibriLight (1M steps by default), fine-tuned for 10,000 steps on LS or LS-NoName respectively to obtain the ASR attack model.
- Datasets: pretraining on LibriLight; fine-tuning on LibriSpeech (LS) and its de-named version LS-NoName; attack samples are about 1000 name-containing utterances from the LibriSpeech training set and all about 80 name-containing utterances in the test set.
- Attack setup: 5 sampled noises per utterance (sources such as car, cabin, cafe, music, kitchen, podcast), with silence mask considered separately.
- Metrics: Exact/Any name accuracy and precision (%, 5 trials), and post-fine-tuning WER; results are reported in pairs split by LibriSpeech clean/other (each cell is clean/other).
- Comparison: noise-mask results of Amid et al. [1] on end-to-end ASR (trained for 100,000 steps, 10 times the fine-tuning steps in this paper).
- Evaluation method: the paper used no model or human evaluation; a name counts as recovered based on whether the (formatted) name is recovered in the transcription.
Main results
Table 1 (RQ1, Exact/Any name accuracy, %, clean/other):
Swipe horizontally to read the table
Fine-tuning data Mask Exact (Train) Any acc (Train) Any acc (Test) LS Noise 2.7/2.6 11.9/14.2 5.7/9.3 LS Silence 1.4/1.5 6.5/9.3 2.9/3.7 LS-NoName Noise 1.6/1.5 10.8/13.8 2.9/1.9 LS-NoName Silence 1.1/1.0 4.9/7.3 0/1.9 - The authors say the noise-mask attack is feasible on pretraining data: under both fine-tuning datasets, exact names can be recovered from about 1–2% of training utterances, even when the fine-tuning set does not overlap with the pretraining set (LS-NoName); Any name leakage is higher.
- The authors note that the LS fine-tuning results may come from memorization of both pretraining and fine-tuning data, and only the LS-NoName results purely reflect pretraining leakage.
- The authors say the attack success rate in this paper is lower than the end-to-end ASR results of [1] (whose silence mask recovers correct names on 11.8% of training utterances, versus this paper's best of 2.7% with noise mask), and offer an explanation: training ASR from scratch requires more epochs, and [1] trained for 100,000 steps, 10 times this paper's, memorizing more.
- Exact name accuracy on the test set is all 0, which the authors explain as the model being unable to exactly complete data it has never seen.
Attack precision (RQ2, Table 2)
- What was measured: transcription-style and consistency abstention filters were applied to the RQ1 attacks, reporting precision (%, clean/other) under the best filtering strategy for each result.
- Results: the best results all used transcription-style filtering, sometimes better combined with consistency filtering; for example, LS fine-tuning with silence mask reaches Any name precision of 35.9/45.5 (Train) and 33.3/35.2 (Test), LS fine-tuning with noise mask has Exact name precision of 4.7/4.0 (Train); under LS-NoName fine-tuning, Test Any name precision is mostly 0.
- Authors' interpretation: precision can be far higher than accuracy, because transcription and consistency filtering can reliably identify unlikely continuations; for example, the silence-mask attack has accuracy below 2% without filtering, but utterance precision can exceed 12% after filtering.
Effect of training choices (RQ3)
- Pretraining duration: with 20k pretraining steps (50 times shorter than 1M steps), Exact name accuracy drops to 0.1/0.2, but WER rises from 3.6 to 8.7; the authors say intuitively shorter pretraining has weaker memorization.
- BestRQ parameters: changing codebook dimension (default 16) and vocab size (default 8192) overall has little effect on noise-mask risk unless it harms model performance; with codebook dimension 2, WER rises from 4.0 to 4.6, and Exact name accuracy under silence mask drops to only 0.1%.
Evaluation of mitigations (Table 3)
- What was measured: pretraining with each mitigation, fine-tuning on LS-NoName, then noise mask; reporting Exact/Any name accuracy (%, clean/other) and WER (LibriSpeech test-other); silence-mask results are not reported because they are qualitatively similar to noise mask.
Swipe horizontally to read the table
Mitigation WER Exact (Train) Any acc (Train) Any acc (Test) None (Baseline) 4.0 1.6/1.5 10.8/13.8 2.9/1.9 Sanitization 4.4 0/0.3 10.0/12.0 8.6/3.7 Silence 4.0 2.9/1.3 13.5/14.5 5.7/7.4 MTR 4.6 0.4/0.4 12.7/13.6 8.6/7.4 Silence+MTR 4.0 0.1/0.3 13.8/14.8 5.7/1.9 DD-(3, 0.35) 4.0 0.6/1.1 10.4/14.1 5.7/7.4 DD-(4, 0.1) 4.0 2.3/1.3 13.2/15.2 8.6/7.4 (The two rows DD-(4, 0.05) and DD-(5, 0.05) are omitted; their Exact (Train) are 1.4/0.5 and 1.6/1.3 respectively.)
- Data sanitization: the authors call it the most successful mitigation, with Exact name accuracy near 0; but it does not fully prevent the attack, which the authors attribute possibly to imperfect name filtering or inaccurate transcriptions used for filtering.
- Modifying pretraining: MTR, and MTR combined with silence, yield small Exact name attack success rates; the authors say this echoes the effectiveness of combined strategies in [1]; adding silence alone is ineffective even against the silence attack, which the authors suggest may be due to catastrophic forgetting of the pretraining silence behavior during fine-tuning [21].
- Deduplication: limited effect, with attack success rates on par with or even higher than no mitigation (e.g., DD-(4, 0.1) has Exact (Train) of 2.3/1.3, higher than baseline); the authors attribute this to many names not being repeated enough times to be removed—3-gram deduplication removing 35% of data removed only 5% of name-containing 3-grams—and consider deduplication unlikely to be a panacea for privacy risks in speech data.
- Negative results: the authors say no mitigation noticeably reduces Any name accuracy, possibly because the model repeats names in non-formatted contexts; they also note these accuracies remain lower than the best mitigation results of [1] on end-to-end ASR.
Other ablations and analyses
- Silence duration: 100ms and 500ms have limited effect; only 100ms is reported (Section 4.1).
- WER differences across mitigations are limited (Table 3, 3.8–4.6).
What are some points that can be further explored?
The authors acknowledge the attack is weaker than existing results on end-to-end ASR, and note that stronger attacks and privacy-preserving training techniques warrant further research.
Limitations and future directions noted by the authors
- Lower attack success rate than prior work: the authors state that the attack in this paper is less successful than the attack in [1] on ASR models trained end-to-end on sensitive data, but because the risk persists, they still propose data curation and training techniques to limit privacy attack risk (Conclusion).
- Stronger attacks may exist: the authors state that more sophisticated noise generation or attack model training could yield stronger attacks than those designed in this paper (Conclusion).
- Future directions: the authors suggest continued research on privacy-preserving training techniques (Conclusion).
- Limitations of deduplication: the authors believe diverse pretraining data may contain sensitive k-grams of varying lengths, and deduplication is unlikely to be a panacea for privacy risk in speech data (Section 4.2).
- Difficulty of data sanitization: the authors note that pre-training curation requires anticipating all potentially sensitive content in the dataset, and detecting sensitive content at scale is challenging, possibly requiring training an additional sensitivity classifier and running it over all pretraining data (Section 4.1).
Experimental coverage
- The tested model is a single architecture: a 600M-parameter BEST-RQ encoder (24-layer Conformer), 1 model in total, with default pretraining of 1M steps (Section 3.1).
- Data are limited to LibriLight (pretraining) and LibriSpeech/LS-NoName (fine-tuning); sensitive information was tested only for formatted names identified by specific titles (Section 3.1 and footnote 1).
- Attack samples are about 1000 training-set utterances and about 80 test-set utterances, with 5 noise samples each, and metrics are computed over 5 trials (Section 3.1).
- Mitigation evaluation covers data sanitization, MTR, adding silence and their combinations, and DD-(k, p) deduplication (k from 3–5, p up to 0.35), all evaluated under LS-NoName fine-tuning (Table 3).
- The paper does not report the number of attack queries or computational cost, nor the specific threshold values for abstention filtering.
Summarize the main content of the paper
Extending the noise-masking attack to self-supervised pretrained speech encoders: the attack is feasible but weaker than end-to-end ASR, and sanitization and MTR-type mitigations are relatively effective.
An attack and defense study on speech model privacy, from Google.
- Problem addressed: existing noise-masking attacks apply only to ASR models that have seen audio and transcriptions during training; modern speech foundation models are mostly self-supervised pretrained (audio only), and whether their pretraining data leaks through noise masking was previously unknown.
- Method highlights: the attacker fine-tunes the pretrained encoder with a non-overlapping transcribed dataset (LibriSpeech or its name-removed version LS-NoName) into an ASR model, then applies noise masking; transcript-based and agreement-based abstention are added to improve precision; on the mitigation side, data sanitization, MTR/adding silence at the pretraining stage, and k-gram deduplication DD-(k, p) are evaluated.
- Attack is feasible: under LS-NoName fine-tuning (fine-tuning set does not overlap with pretraining data), noise masking recovers exact names from 1.6/1.5% (clean/other) of training utterances (Table 1); test-set Exact name accuracy is all 0.
- Precision can be greatly improved: after abstention filtering, Any name precision for silence masking with LS fine-tuning reaches 35.9/45.5 (Table 2), whereas without filtering accuracy is below 2%.
- Mitigation effects vary: data sanitization lowers Exact name accuracy to 0/0.3, and Silence+MTR to 0.1/0.3; adding silence alone is ineffective, and deduplication has limited effect or is even higher; no mitigation clearly reduces Any name accuracy (Table 3).
- Authors' conclusions: sensitive data seen only during pretraining can also leak; this paper's attack is weaker than existing attacks on end-to-end ASR, but stronger attacks may exist, and the authors suggest continued research on privacy-preserving training techniques.
Related papers
- Measuring Forgetting of Memorized Training ExamplesAnalysis / interpretabilityarXiv