Punctuation Prediction Model for Conversational Speech

Piotr Zelasko, Piotr Szymanski, Jan Mizgajski, Adrian Szymczak, Yishay Carmiel, Najim Dehak

TL;DR

Automatic Speech Recognition (ASR) systems typically produce unpunctuated streams of text, hindering both human readability and downstream NLP tasks. This paper demonstrates how to restore punctuation in two-party conversational telephone speech by framing it as a sequence labeling problem using Bidirectional LSTMs and Dilated CNNs. By combining pre-trained GloVe word embeddings with speaker turn indicators and continuous, speaker-standardized word-timing features, the models achieve strong punctuation restoration without needing explicit pause tokens.

What Problem Does This Paper Address?

Standard ASR engines output raw lexical transcripts without capitalization or punctuation. In conversational settings (such as customer-agent telephone calls), this lack of structure impairs human comprehension and degrades downstream NLP systems (like intent classification or sentiment analysis) that are typically trained on well-formed, punctuated text.

However, predicting punctuation in spoken dialogue is uniquely challenging:

  1. Written corpora (news, Wikipedia) do not reflect the informal syntax, disfluencies, or interruptions of conversational speech.
  2. Punctuated conversational speech data with precise word-level timings is rare.
  3. Prior speech punctuation models often relied on artificial, discretized pause tokens or single-speaker text, ignoring dialogue overlap and subtle continuous timing dynamics.

Methods

The authors tackle these challenges with a multi-step data processing pipeline and deep sequence-labeling architectures:

  • Bioinformatics-Inspired Data Alignment: The Fisher corpus includes time-annotated transcripts (.txt) and separately punctuated transcripts (.txo). The authors used the Needleman-Wunsch dynamic programming algorithm (standard in DNA sequence alignment) to globally align the two versions, discarding discrepancies and extracting ground-truth punctuation tags (blank, ., ,, ?).
  • Interleaved Dialogue Representation: Transcripts from both conversation sides are sorted chronologically by word start times into a single unified sequence, naturally capturing cross-talk, turn-taking, and interruptions.
  • Input Features:
  • Lexical: Fixed 300-dimensional GloVe embeddings (trained on Common Crawl, 50k vocabulary).
  • Speaker Turn: A 1D binary indicator specifying which speaker uttered the word.
  • Continuous Timing Features (+T): Two 1D features: (1) time interval from the previous word's start to the current word's start, and (2) word duration. Crucially, these features are speaker-normalized per call, allowing the model to infer pause dynamics without explicit pause tokens.
  • Model Architectures:
  • BLSTM: 4 bidirectional LSTM layers (128 units per direction) providing wide conversational context.
  • Dilated 1D CNN: 6 layers of 1D convolutions (128 filters, kernel size 3 for the first five layers, 20 for the last, with dilation rate 2 on middle layers) activated by Scaled Exponential Linear Units (SELU).
  • Both architectures end in a fully connected layer with softmax over the four punctuation targets.

Datasets

  • The English Fisher Corpus (LDC2004T19 & LDC2005T19): ~11,000 telephone conversations split 8:1:1 for training, validation, and testing. Punctuation labels in the processed training set are heavily skewed: 79.1% blank, 11.5% comma, 8.2% dot, and 1.2% question mark.
  • Pre-trained Embeddings: Stanford's 42B-token Common Crawl GloVe embeddings. The authors also tested conversational embeddings trained on 525M words of Fisher conversational web data, but the larger web crawl embeddings performed better.

Key Insights and Ideas

  • Continuous Timings Outperform Discrete Tokens: Rather than quantizing silences into arbitrary discrete pause tokens, feeding continuous, speaker-standardized word durations and inter-word intervals directly to the network provides useful prosodic cues that consistently improve F1 scores across all punctuation classes.
  • Precision vs. Recall Trade-off (CNN vs. BLSTM):
  • The BLSTM captures wider conversational history, resulting in higher recall and overall F1 scores across most classes.
  • The CNN acts more conservatively, achieving higher precision—particularly on question marks (72.9% precision vs. 64.7% for BLSTM+T).
  • ASR Robustness in Practice: In qualitative evaluations on out-of-domain ASR transcripts, human evaluators preferred the CNN's output. Because BLSTMs rely on broader conversational context, an ASR recognition error earlier in the sequence can cascade and trigger erroneous punctuation downstream.
  • Syntactic Features Failed to Help: Incorporating Part-of-Speech (POS) tags from off-the-shelf tools (spaCy) offered no noticeable gain, likely because POS taggers perform poorly on unpunctuated, fragmented speech transcripts.

Key Results

Evaluating models with (+T) and without word-level timing features yielded the following per-class results:

Model Class Precision (%) Recall (%) F1-Score (%)
CNN Period (.) / Question (?) / Comma (,) 67.7 / 70.8 / 68.3 58.6 / 45.1 / 58.1 62.8 / 55.1 / 62.8
CNN + T Period (.) / Question (?) / Comma (,) 68.6 / 72.9 / 68.7 63.3 / 46.7 / 60.3 65.9 / 57.0 / 64.2
BLSTM Period (.) / Question (?) / Comma (,) 66.9 / 70.2 / 67.9 63.1 / 47.3 / 61.8 64.9 / 56.5 / 64.7
BLSTM + T Period (.) / Question (?) / Comma (,) 67.9 / 64.7 / 68.2 66.7 / 54.6 / 64.1 67.3 / 59.2 / 66.1
  • Adding timing information (+T) boosted F1 across all punctuated categories (e.g., period F1 jumped from 62.8% to 65.9% in CNNs, and question mark F1 increased from 56.5% to 59.2% in BLSTMs).
  • The most frequent errors were comma/blank confusions (~55k false positives and ~44k false negatives), reflecting the subjective nature of conversational comma placement.
  • Question marks were the most difficult to predict due to extreme class sparsity (1.2% of tokens), confounding with periods roughly 20% of the time.

Limitations and Future Work

  • Class Imbalance Sensitivity: Standard class-frequency sample weighting caused models to over-predict rare classes, spiking false positives and crippling precision.
  • Exclusion of Richer Acoustic Features: The authors did not include fundamental frequency ($F_0$), energy contours, or phone durations, which could help disambiguate questions from declarative statements.
  • Future Directions: Incorporating self-attention and Transformer-based architectures, expanding acoustic/prosodic feature sets beyond word boundaries, and evaluating end-to-end performance on noisy ASR transcripts.

Summary updated

BibTeX
@inproceedings{zelasko2018punctuation,
  author = {Piotr Zelasko and Piotr Szymanski and Jan Mizgajski and Adrian Szymczak and Yishay Carmiel and Najim Dehak},
  title = {{Punctuation Prediction Model for Conversational Speech}},
  booktitle = {Interspeech},
  year = {2018},
  url = {https://openreview.net/forum?id=TeMtvEkvLQ},
}

Loading related content...

Figure