Skip to main content
QUICK REVIEW

[Paper Review] Transformer-based Models of Text Normalization for Speech Applications

Jae Hun Ro, Felix Stahlberg|arXiv (Cornell University)|Feb 1, 2022
Speech Recognition and SynthesisComputer Science8 citations
TL;DR

This paper evaluates Transformer-based models for text normalization in speech applications, particularly text-to-speech synthesis, comparing variants of seq2seq and two-stage architectures. The key finding is that fine-tuning a BERT encoder within a two-stage model yields the best performance, reducing sentence error rate to 1.42% on the Standard dataset and 5.59% on the Manual dataset, outperforming both RNN baselines and vanilla Transformers.

ABSTRACT

Text normalization, or the process of transforming text into a consistent, canonical form, is crucial for speech applications such as text-to-speech synthesis (TTS). In TTS, the system must decide whether to verbalize "1995" as "nineteen ninety five" in "born in 1995" or as "one thousand nine hundred ninety five" in "page 1995". We present an experimental comparison of various Transformer-based sequence-to-sequence (seq2seq) models of text normalization for speech and evaluate them on a variety of datasets of written text aligned to its normalized spoken form. These models include variants of the 2-stage RNN-based tagging/seq2seq architecture introduced by Zhang et al. (2019), where we replace the RNN with a Transformer in one or more stages, as well as vanilla Transformers that output string representations of edit sequences. Of our approaches, using Transformers for sentence context encoding within the 2-stage model proved most effective, with the fine-tuned BERT encoder yielding the best performance.

Motivation & Objective

  • To evaluate the effectiveness of Transformer-based architectures for text normalization in speech applications, particularly text-to-speech (TTS) synthesis.
  • To investigate whether pre-trained models like BERT improve performance over training from scratch or using standard Transformers.
  • To compare different architectural designs—single-pass seq2seq, edit-based representations, and two-stage models—on real-world text normalization datasets.
  • To analyze the impact of semiotic class tokenization errors on overall system performance and explore ways to mitigate them.
  • To assess the limitations of neural models in handling unrecoverable errors, especially when training data is limited or contains reference errors.

Proposed method

  • Adopt a two-stage architecture where the first stage classifies semiotic classes (e.g., numbers, dates) and the second stage performs normalization using a Transformer-based seq2seq model.
  • Replace RNNs in the original two-stage model with a Transformer encoder for sentence context encoding, evaluating both fine-tuned and frozen BERT variants.
  • Experiment with both full string output and edit-based representations using pos* tokens to denote source span replacements, reducing the need to copy unchanged characters.
  • Train models using standard cross-entropy loss and beam search inference, with data from two datasets: automatically generated (Standard) and manually annotated (Manual).
  • Use golden tokenization (manually verified semiotic class boundaries) to isolate and measure the impact of classification errors on overall performance.
  • Compare performance across models using sentence error rate (SER) as the primary metric, with ablation studies on fine-tuning vs. freezing BERT and input representation types.

Experimental results

Research questions

  • RQ1How do Transformer-based seq2seq models compare to RNN-based models in text normalization for TTS applications?
  • RQ2Does incorporating a pre-trained BERT encoder into the two-stage normalization pipeline improve performance over training from scratch or using standard Transformers?
  • RQ3What is the impact of edit-based vs. full-string output representations on model robustness and error rates?
  • RQ4To what extent do errors in semiotic class tokenization contribute to overall system error, and can golden tokenization significantly reduce these errors?
  • RQ5Are unrecoverable errors—such as misclassifying trivial as non-trivial—still prevalent even with advanced models like fine-tuned BERT?

Key findings

  • Fine-tuning a BERT encoder within the two-stage model achieved the lowest sentence error rate of 1.42% on the Standard dataset and 5.59% on the Manual dataset, outperforming all other models tested.
  • The two-stage model with a BERT encoder reduced error rates by 61% when using golden semiotic class tokenization, indicating that classification errors are a major source of failure.
  • Vanilla single-pass Transformer models performed poorly due to insufficient exposure to rare position tokens (pos*), especially with limited training data.
  • The model that used edit-based representations with tokenized input achieved a SER of 2.04% on the Standard dataset and 5.65% on the Manual dataset, showing moderate performance but less robustness than the two-stage BERT approach.
  • Even with the best model, unrecoverable errors persisted—such as misclassifying '7/8 inch' as 'five eighth'—highlighting persistent challenges in normalization.
  • The study confirms that reference errors in automatically generated datasets (e.g., 'TIME' → 't i m e') and rater inconsistency in manual annotations remain significant obstacles to reliable evaluation and model improvement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.