Abstract
End-to-end automatic speech recognition (ASR) systems have made significant progress in general scenarios. However, it remains challenging to transcribe contextual named entities (NEs) in the contextual ASR scenario. Previous approaches have attempted to address this by utilizing the NE dictionary. These approaches treat entities as individual tokens and generate them token-by-token, which may result in incomplete transcriptions of entities. In this paper, we treat entities as indivisible wholes and introduce the idea of copying into ASR. We design a systematic mechanism called CopyNE, which can copy entities from the NE dictionary. By copying all tokens of an entity at once, we can reduce errors during entity transcription, ensuring the completeness of the entity. Experiments demonstrate that CopyNE consistently improves the accuracy of transcribing entities compared to previous approaches. Even when based on the strong Whisper, CopyNE still achieves notable improvements.
Introduction
While modern end-to-end ASR systems are highly capable in general scenarios, they often stumble in "contextual" settings—such as interactions with voice assistants involving specific contacts, local businesses, or niche organization names. These Named Entities (NEs) are frequently rare in training data, leading models to misspell them or replace them with phonetically similar but incorrect common words (homophones).
Existing state-of-the-art methods, such as Contextual Bias Attention, attempt to solve this by using a dictionary to "bias" the model toward certain tokens. However, because these methods generate entities token-by-token, a single error in a character sequence can ruin the entire entity. CopyNE addresses this by treating entities as indivisible wholes, allowing the model to "copy-paste" an entire string from a dictionary at once.
The CopyNE Framework
The CopyNE architecture is built upon the standard CTC-Transformer framework, enhanced with a dedicated copying mechanism.
Key components of the system include:
- NE Encoder: A multi-layer LSTM that converts dictionary entities into fixed-length vector representations.
- Dot-product Attention: At each decoding step, the model compares its state with dictionary entities to produce a "copy probability."
- The "Empty" Entity ($\emptyset$): A pseudo-entity that allows the model to proceed with standard token generation when no dictionary entry is relevant.
- Unified Inference Space: During decoding, the model considers a combined probability space, choosing between picking a single token from the standard vocabulary or "jumping" to copy a multi-token entity.
- Confidence Threshold ($\gamma$): A tunable parameter used during inference to prevent the model from "hallucinating" or forced-copying irrelevant entities when evidence is low.
Experimental Results
The researchers evaluated CopyNE on Chinese (Aishell-1, ST-cmds) and English benchmarks. To specifically measure performance on entities, they utilized "-NE" versions of these datasets, which contain only audio clips featuring named entities.
Key Findings
- Significant Error Reduction: On Chinese datasets, CopyNE achieved a relative reduction in Entity Character Error Rate (NE-CER) of over 55% compared to standard models.
- Whisper Integration: Even when applied to the robust OpenAI Whisper-small model, CopyNE reduced NE-CER by approximately 25-26% on Chinese tasks.
- English Performance: The model achieved a 16.8% relative reduction in NE-WER (Named Entity Word Error Rate) on English tasks.
- Dictionary Robustness: CopyNE remains effective even when the dictionary is "noisy" with irrelevant entities. While performance slightly degrades as dictionary size increases, it consistently outperforms previous biasing methods.
Conclusion
By treating named entities as indivisible units, CopyNE avoids the "falling off the rails" problem common in token-by-token generation. Qualitative analysis confirms that while previous methods might get the pronunciation right but the characters wrong, CopyNE successfully retrieves exact strings from the dictionary. Future work will focus on dynamically filtering the dictionary during decoding to maintain performance even when dealing with thousands of potential entities.
Summary updated