TL;DR
CopyNE is a novel contextual Automatic Speech Recognition (ASR) framework that treats named entities (like rare names or places) as indivisible wholes rather than sequences of individual tokens. By introducing a copy mechanism that pulls entire entities directly from a contextual dictionary at once, CopyNE drastically reduces transcription errors caused by rare words and homophones, even when integrated with powerful models like OpenAI's Whisper.
What Problem Does This Paper Address?
Standard end-to-end ASR systems perform remarkably well in general scenarios, but they frequently stumble when encountering contextual named entities (NEs)—such as personalized contact names, niche organization titles, or specific locations. Because these entities appear infrequently in the training data, models struggle to transcribe them accurately.
Previous approaches attempted to solve this by providing the ASR model with a contextual NE dictionary. However, these models still generate text token-by-token. If an entity consists of multiple tokens, the model might correctly predict the first token but get derailed on subsequent ones, often substituting a rare token with a phonetically identical but much more common word (a homophonic error).
Methods
The authors introduce CopyNE, a framework built on top of the standard CTC-Transformer architecture that treats entities as indivisible units. Instead of guessing the next token, the model can choose to copy an entire multi-token entity directly from the dictionary.
Key components of the CopyNE architecture include:
- NE Encoder: A multi-layer LSTM that encodes the token sequences of entities in the dictionary into continuous vector representations. It includes a pseudo-entity ($\emptyset$) to represent the choice of not copying anything.
- Dot-Product Attention: Measures the relevance between the decoder's current hidden state and the entity representations to compute a "copy probability" for each entity.
- Dict-Enhanced Prediction: The weighted sum of these entity representations forms a dictionary context vector, which is fed back into the decoder to assist standard token prediction.
- Copy Loss ($\mathcal{L}_{copy}$): During training, a specialized loss function uses a left-to-right maximum matching algorithm on the ground-truth text to explicitly train the model to trigger the copy mechanism at the first token of a valid entity.
- Unified Search Space & Confidence Thresholding ($\gamma$): During inference, the model evaluates a combined probability space of both standard vocabulary tokens and dictionary entities. To prevent the model from hallucinating incorrect entities, a confidence threshold $\gamma$ filters out low-confidence copies.
Datasets
The model was evaluated across both Chinese and English datasets:
- Chinese Mandarin: Aishell-1 (150 hours) and ST-cmds (110 hours). Since these lacked entity annotations, the authors utilized third-party annotations (Aishell-ner) and named-entity recognition tools (HanLP) to extract entities.
- English: The Eng dataset (150 hours), which compiles manually annotated entity data from popular corpora like Librispeech, CommonVoice, TED-LIUM, and VoxForge.
- Evaluation Subsets: For all datasets, the authors created specific "*-NE" subsets containing only the utterances that included named entities to rigorously test contextual performance.
Key Insights and Ideas
- The Power of Wholeness: Treating a phrase as an indivisible unit fundamentally bypasses the language model's bias toward high-frequency tokens. Once the model decides to copy "铜陵" (Tongling), it cannot accidentally output "铜铃" (copper bell).
- The Necessity of a Safety Valve: Introducing a confidence threshold ($\gamma$) is critical. If the model's maximum copy probability is too low, it safely defaults back to standard token-by-token generation. The authors found that a high threshold ($\gamma = 0.9$) yields the best balance, preventing false-positive copies.
Key Results
CopyNE achieved massive improvements in entity transcription accuracy, measured by Named Entity Character/Word Error Rate (NE-CER/NE-WER):
- Standard Baseline Improvements: Without Whisper, CopyNE achieved a relative reduction in NE-CER of 55.4% on the Aishell-NE test set and 53.9% on the ST-cmds-NE test set compared to previous state-of-the-art contextual biasing methods (like CBA).
- Whisper Integration: When building on top of OpenAI's Whisper-small, CopyNE still secured a relative NE-CER reduction of 25.4% (Aishell-NE) and 26.7% (ST-cmds-NE).
- English Performance: On the English Eng-NE dataset, the Whisper+CopyNE setup achieved a 16.8% relative reduction in NE-WER compared to the standard Whisper baseline.
Limitations and Future Work
The primary limitation of CopyNE is its sensitivity to dictionary noise. As the number of irrelevant "noisy" entities in the dictionary scales up (e.g., quadrupling the dictionary size), the model's performance degrades because the attention mechanism faces more distraction.
Additionally, CopyNE inherently cannot correct entities that are completely missing from the provided dictionary (Out-Of-Dictionary or OOD scenarios). The authors plan to explore methods for dynamically filtering out interfering entities from the dictionary during the decoding process to mitigate these issues.
Summary updated