Introduction
Automatic Speech Recognition (ASR) systems have become ubiquitous, yet they often produce "raw" text streams lacking punctuation and capitalization. This absence significantly degrades the performance of downstream Natural Language Processing (NLP) tasks such as machine translation and sentiment analysis, while also reducing readability for human users. While offline punctuation restoration can leverage global context, real-time applications—including live captioning and voice-controlled assistants—require models to predict punctuation with minimal "lookahead" or future context.
This paper addresses two primary challenges in real-time punctuation prediction: the lack of a unified decoding framework for sliding-window inference and the performance degradation of standard sequence tagging models under strict zero-lookahead constraints.
Methodology
Mask-Combine Decoding
The authors propose "mask-combine decoding," a generalized framework for processing long text sequences using overlapping sliding windows. In typical sliding-window approaches, predictions near the window boundaries are less reliable because they lack sufficient local context. Mask-combine decoding addresses this by applying configurable masks to the left ($m_l$) and right ($m_r$) edges of each window.
As shown in Figure 1, the window of size $w$ moves with a stride $s$. Instead of simply selecting the most frequent prediction (voting) or discarding edge tokens, this method averages the raw probability distributions from all overlapping windows covering a specific word. This ensembling effect stabilizes predictions and improves overall accuracy without requiring additional model training.
Classification-Based Approach
Standard punctuation models typically use sequence tagging, where a label is predicted for every token in a window. However, the authors hypothesize that for extremely low-latency scenarios, a targeted classification approach might be superior. In this setup, a special [PUNCT] token is inserted into the input stream at the position where a punctuation mark is to be predicted. The model is then trained to classify only this specific token. This forces the model to concentrate its representational power on the immediate local context, which is critical when future information is restricted.
Experimental Results
The models were evaluated on the IWSLT11 dataset using clean reference transcripts to isolate the performance of the punctuation logic from ASR errors.
Impact of Decoding Strategy
The mask-combine strategy proved highly effective. By utilizing four overlapping predictions per word, the authors observed a 1.9% absolute F1 improvement over a non-overlapping baseline. Furthermore, combining probability distributions outperformed simpler masking strategies by 0.4% F1, demonstrating the value of soft-label ensembling in sliding-window inference.
Tagging vs. Classification under Latency Constraints
A key finding of this research is the performance crossover between sequence tagging and classification based on the available lookahead ($l$).
As detailed in Figure 4, when the system operates with absolute zero lookahead ($l=0$), the classification approach significantly outperforms sequence tagging, achieving an overall F1 of 47.3 compared to 42.1. This 5.2% gap suggests that the [PUNCT] token insertion provides a better inductive bias for the model when it cannot "see" the next word. However, as soon as a single word of lookahead is introduced ($l=1$), sequence tagging regains the advantage (66.6 F1 vs 65.4 F1), likely because it can better model the dependencies between the current punctuation and the subsequent word.
Conclusion and Future Work
The "mask-combine" framework provides a robust, unified method for real-time punctuation prediction that maximizes the utility of overlapping window context. While sequence tagging remains the standard for most use cases, the classification approach offers a specialized solution for strict zero-latency requirements.
Future research should focus on the robustness of these methods when applied to noisy ASR outputs containing disfluencies. Additionally, the authors suggest exploring "dynamic lookahead," where the model decides whether to predict immediately or wait for more context based on its internal confidence levels.
Summary updated