Phoneme-Aware Encoding for Prefix-Tree-Based Contextual ASR

Hayato Futami, Emiru Tsunoo, Yosuke Kashiwagi, Hiroaki Ogawa, Siddhant Arora, Shinji Watanabe

TL;DR

This paper introduces a phoneme-aware enhancement to Tree-constrained Pointer Generator (TCPGen), a popular method for contextual biasing in Automatic Speech Recognition (ASR). By incorporating pronunciation information (phonemes) into both the search tree encodings and the attention queries, the researchers significantly improved the recognition of rare words with unusual spellings, particularly in linguistically diverse languages like English and Japanese.

What Problem Does This Paper Address?

Standard end-to-end ASR models often struggle with "rare words"—proper nouns, technical terms, or place names—that don't appear frequently in training data. Contextual biasing helps by providing the model with a "hint list" of words likely to appear in a specific conversation.

A state-of-the-art approach for this is TCPGen, which organizes these hint words into a prefix tree (trie) of subword units. This makes the search efficient, but it has a major flaw: it relies almost entirely on graphemes (how words are written). This is problematic for words where the spelling doesn't clearly indicate the sound, such as the English word "choir" (/kwaɪər/) or Japanese Kanji, where characters represent concepts rather than specific sounds. If the model only knows the spelling, it may fail to "hook" onto the correct word when it hears the actual pronunciation.

Methods

The authors propose two main innovations to make TCPGen "phoneme-aware":

  1. Phoneme-aware Encoding (The "Key"): In TCPGen, each node in the prefix tree represents a subword. To add pronunciation info, the authors needed to align phonemes to these subwords. Since subword-to-phoneme boundaries are often ambiguous, they tested two alignment strategies:

  2. Attention-based: Using the weights from a sequence-to-sequence Grapheme-to-Phoneme (G2P) model.

  3. EM-based: Using an Expectation-Maximization algorithm for many-to-many alignment. The resulting phoneme embeddings are weighted by these alignments and added to the original grapheme-based subword embeddings.

  4. Phoneme-aware Query (The "Search"): The ASR model uses a "query" vector to look at the prefix tree. To make this search more effective, the authors added an auxiliary CTC (Connectionist Temporal Classification) objective to the ASR encoder. This branch predicts phonemes directly from the audio. These phoneme predictions are then injected into the attention query, allowing the model to explicitly "look" for sounds that match the phoneme-aware keys in the tree.

Datasets

The researchers evaluated their approach on two major corpora:

  • LibriSpeech (English): They used both the 100-hour subset and the full 960-hour set. This tested the model on a language where sounds often blend across syllable boundaries.
  • Corpus of Spontaneous Japanese (CSJ): A 280-hour set of simulated public speaking. This provided a testbed for a language with distinct syllables and complex ideographic characters (Kanji).

Key Insights and Ideas

  • The Query-Key Match: A major insight was that adding phoneme info to the tree (the "keys") isn't enough; the "query" coming from the audio needs to be phoneme-aware too. The CTC-based query injection was the missing link that allowed the model to actually utilize the new pronunciation data.
  • Language-Specific Alignment: The best way to align phonemes to subwords depends on the language. For English, "soft" attention-based alignment worked better because English sounds are fluid. For Japanese, "hard" EM-based alignment was superior because Japanese syllables are more distinct.
  • Graphemes are still necessary: The authors found that using only phonemes actually degraded performance. The best results came from a hybrid approach that combined both visual (grapheme) and acoustic (phoneme) representations.

Key Results

The primary metric used was R-WER (Rare Word Error Rate), which measures accuracy specifically on the "hint" words.

  • LibriSpeech (100h): The proposed method reduced R-WER from 15.0% (standard TCPGen) to 12.1% (with phoneme-aware queries).
  • LibriSpeech (960h): On the full dataset, R-WER improved from 12.9% to 12.3%.
  • Japanese (CSJ): The impact was even more dramatic. Standard TCPGen had an R-WER of 38.8%, which the phoneme-aware method slashed to 30.6%.

Limitations and Future Work

  • G2P Dependency: The system relies on a G2P model to generate phonemes for the biasing list. If the G2P model makes a mistake on a very rare word, the ASR model will likely inherit that error.
  • Complexity: Adding a CTC branch and GNN-based tree encodings increases the architectural complexity of the model.
  • Future Directions: The authors suggest exploring more integrated ways to learn the subword-phoneme alignment during training, rather than relying on pre-computed G2P alignments. They also aim to test the robustness of this approach on even larger-scale "found" data.

Summary updated

BibTeX
@inproceedings{futami2024phoneme,
  author = {Hayato Futami and Emiru Tsunoo and Yosuke Kashiwagi and Hiroaki Ogawa and Siddhant Arora and Shinji Watanabe},
  title = {{Phoneme-Aware Encoding for Prefix-Tree-Based Contextual ASR}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10447652},
}
Figure