ASR Language Model Rescoring for Memorization Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Modern automatic speech recognition (ASR) systems that leverage language models (LMs) unintentionally memorize sensitive user-specific text data during training, creating a privacy vulnerability that can be exploited by hackers.

Innovation Solution

Insert canary text samples into the training corpus and use a text-to-speech system to generate synthetic speech utterances, rescoring these with an external language model to detect memorization by analyzing the word error rate (WER), and apply per-sample gradient clipping to mitigate this memorization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If a language model is used to disambiguate acoustically similar transcriptions in ASR systems, then transcription accuracy is improved, but the system unintentionally memorizes sensitive text data creating privacy vulnerabilities

Engineering Contradiction:
Improvetranscription accuracyVSAvoidprivacy vulnerability
Core Design Contradiction:
Measurement precisionVSObject-affected harmful factors

Solution Approach 1:

The patent applies preliminary action by inserting canary text samples into the training corpus before training the language model. This proactive measure allows the system to detect memorization of sensitive data through canary tokens that trigger detection mechanisms, enabling privacy protection before actual sensitive data is compromised.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses canary text samples as an intermediary mechanism to detect memorization. These canary samples act as a mediator between the training process and security monitoring, allowing the system to indirectly detect whether sensitive data has been memorized without directly exposing the sensitive data itself.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If canary text samples are inserted into the training corpus and used for detection, then privacy security is improved, but the training process and evaluation complexity increase

Engineering Contradiction:
Improveprivacy securityVSAvoidtraining process complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The canary text samples serve multiple functions: they are inserted into the training corpus to train the language model, and simultaneously serve as detection triggers to monitor for memorization. This multi-functionality reduces the need for separate detection mechanisms and simplifies the overall system architecture.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The language model itself performs the detection function by generating transcriptions that reveal whether canary text samples have been memorized. The model's normal operation during evaluation serves the dual purpose of both transcription and security verification, eliminating the need for separate detection processes.

Inventive Principle:
Principle #25Self-service

3Reliability

If gradient clipping is applied to mitigate memorization, then privacy protection is improved, but training efficiency and convergence speed may be reduced

Engineering Contradiction:
Improveprivacy protectionVSAvoidtraining efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies gradient clipping selectively to gradients originating from canary text samples rather than all training data. This partial application of gradient clipping mitigates memorization of sensitive data while minimizing the impact on overall training efficiency, as the clipping is applied only to a subset of the training corpus.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS12579975B2Detecting unintended memorization in language-model-fused ASR systems
Publication Date: 2026.03.17 GOOGLE LLC
  • US12579975B2 patent drawing
  • US12579975B2 patent drawing
  • US12579975B2 patent drawing

AI summary

A method includes inserting a set of canary text samples into a corpus of training text samples and training an external language model on the corpus of training text samples and the set of canary text samples inserted into the corpus of training text samples. For each canary text sample, the method also includes generating a corresponding synthetic speech utterance and generating an initial transcription for the corresponding synthetic speech utterance. The method also includes rescoring the initial transcription generated for each corresponding synthetic speech utterance using the external language model. The method also includes determining a word error rate (WER) of the external language model based on the rescored initial transcriptions and the canary text samples and detecting memorization of the canary text samples by the external language model based on the WER of the external language model.