Mitigating the Exposure Bias in Sentence-Level Grapheme-to-Phoneme (G2P) Transduction

Eunseop Yoon, Hee Suk Yoon, Dhananjaya Gowda, SooHwan Eom, Daehyeok Kim, John B. Harvill, Heting Gao, Mark Hasegawa-Johnson, Chanwoo Kim, Chang D. Yoo · DOI · OpenReview

TL;DR

This paper tackles the challenge of accurately converting written text to its phonetic pronunciation at the sentence level, a task crucial for applications like speech synthesis. They introduce a novel "loss-based sampling" technique to mitigate "exposure bias" in the ByT5 model, significantly improving its performance on longer sequences and handling complex linguistic phenomena like heteronyms.

What Problem Does This Paper Address?

Grapheme-to-phoneme (G2P) conversion, the process of translating written text into its phonetic representation, is fundamental for many speech technologies. While word-level G2P has seen success, real-world applications often require sentence-level G2P. This is more complex because it involves understanding how pronunciation changes based on context (heteronyms) and how words flow together (linking sounds).

The authors found that ByT5, a powerful character-level transformer model that previously excelled at word-level G2P, struggles with sentence-level tasks. The core issue is "exposure bias." In auto-regressive models like ByT5, training uses "teacher forcing" (always feeding the correct previous output), but during inference, the model must rely on its own previous predictions. This discrepancy can lead to error accumulation, especially in longer sequences, degrading performance. ByT5's character-level operation exacerbates this by requiring longer decoding steps.

Methods

The paper proposes a loss-based sampling method to combat exposure bias. Here's how it works:

  1. Identify Error-Prone Positions: During training, the model processes the ground-truth phoneme sequence. For each step, it calculates the cross-entropy loss between its predicted phoneme distribution and the actual ground-truth phoneme. High loss values indicate positions where the model is likely to make mistakes.
  2. Targeted Sampling: Instead of always using the ground-truth phoneme for the next step in training (teacher forcing), the model now samples from these high-loss positions. The idea is to intentionally feed the model its own potentially incorrect predictions at these critical points.
  3. Adaptive Replacement: The number of positions to "resample" is not fixed but adaptively determined by the Phoneme Error Rate (PER) from the previous training epoch. This allows the model to dynamically adjust how much it exposes itself to its own errors.
  4. Improved Training: By forcing the model to learn from its own mistakes during training, it becomes more robust and better equipped to handle the auto-regressive nature of inference.

This method builds upon existing "two-pass decoding" strategies but makes the sampling process more intelligent by focusing on areas where errors are statistically more likely.

Datasets

The primary dataset used is TIMIT, a widely used corpus for speech processing tasks. TIMIT provides phonetic transcriptions for spoken sentences. To adapt it for sentence-level G2P, the authors concatenated up to 3 sentences during training. For evaluation, they created two test subsets: Testsetshort (up to 3 sentences) and Testsetlong (up to 5 sentences), to specifically test performance on longer sequences.

Key Insights and Ideas

  • Exposure Bias is a Real Bottleneck for Sentence-Level G2P: The paper convincingly demonstrates that while ByT5 is strong at word-level, its character-level nature amplifies exposure bias in longer sentence-level G2P, leading to significant performance drops.
  • Loss-Driven Sampling is Smarter than Uniform Sampling: Instead of randomly choosing which predictions to re-feed during training, focusing on positions with high cross-entropy loss is a more effective strategy for mitigating exposure bias.
  • Adaptive Sampling is Key: Dynamically adjusting the sampling rate based on the model's performance (PER) allows for more efficient and effective training, preventing over-correction or under-correction.
  • Sentence-Level G2P is Crucial for Linguistic Nuances: The paper highlights how sentence-level G2P, enabled by their method, is essential for correctly handling heteronyms, something word-level models struggle with.

Key Results

  • Significant PER/WER Reduction: The proposed loss-based sampling method, especially with an adaptive sample ratio, outperforms the teacher-forcing baseline and uniform sampling. On the Testsetlong (longer sequences), their method achieved a PER of 21.99% (greedy search) and 21.50% (beam search), outperforming the baseline by over 2 percentage points.
  • Improved Long Sequence Handling: Qualitative examples show the proposed model successfully predicting full phonetic sequences for longer inputs where the baseline model either terminated early or generated extraneous phonemes.
  • Better Heteronym Disambiguation: The paper provides examples demonstrating that their sentence-level G2P approach can correctly disambiguate heteronyms, a task the word-level ByT5 model failed at.

Limitations and Future Work

  • Data Dependency: The authors acknowledge that high-quality phoneme-labeled data that captures contextual information and linking sounds is crucial. The TIMIT dataset, while valuable, might reflect specific dialectal pronunciations.
  • Future Directions: The paper suggests that further research could explore more advanced techniques for sentence-level G2P, potentially involving even richer contextual modeling or different transformer architectures. The success of their method also opens doors for applying similar loss-based sampling strategies to other sequence generation tasks facing exposure bias.

Summary updated

Abstract

Text-to-Text Transfer Transformer (T5) has recently been considered for the Grapheme-to-Phoneme (G2P) transduction. As a follow-up, a tokenizer-free byte-level model based on T5 referred to as ByT5, recently gave promising results on word-level G2P conversion by representing each input character with its corresponding UTF-8 encoding. Although it is generally understood that sentence-level or paragraph-level G2P can improve usability in real-world applications as it is better suited to perform on heteronyms and linking sounds between words, we find that using ByT5 for these scenarios is nontrivial. Since ByT5 operates on the character level, it requires longer decoding steps, which deteriorates the performance due to the exposure bias commonly observed in auto-regressive generation models. This paper shows that the performance of sentence-level and paragraph-level G2P can be improved by mitigating such exposure bias using our proposed loss-based sampling method.
BibTeX
@inproceedings{yoon2023mitigating,
  author = {Eunseop Yoon and Hee Suk Yoon and Dhananjaya Gowda and SooHwan Eom and Daehyeok Kim and John B. Harvill and Heting Gao and Mark Hasegawa-Johnson and Chanwoo Kim and Chang D. Yoo},
  title = {{Mitigating the Exposure Bias in Sentence-Level Grapheme-to-Phoneme (G2P) Transduction}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-2336},
}
Figure