Introduction
Automatic Speech Recognition (ASR) systems have achieved high word accuracy, yet their raw outputs often lack punctuation and contain various speech disfluencies, such as repetitions ("reparandums") or filler words like "um" ("interregnums"). This "word salad" poses a significant challenge for downstream natural language processing (NLP) applications—including machine translation and dialogue systems—which are typically trained on well-formed, clean text.
While standard Transformer models offer high accuracy, their "global" attention mechanism requires seeing an entire sequence before processing, introducing unacceptable latency for real-time applications like live subtitling. To address this, researchers from Alibaba’s DAMO Academy developed the Controllable Time-delay Transformer (CT-Transformer), a model designed for simultaneous punctuation prediction and disfluency detection with controllable latency.
Methodology: The CT-Transformer
The CT-Transformer introduces a streamlined architecture optimized for streaming inference.
1. Encoder-Only Architecture
Unlike traditional encoder-decoder Transformers, the CT-Transformer utilizes an encoder-only structure. It treats punctuation and disfluency detection as a joint sequence labeling task. Each input word is mapped to a punctuation tag and a disfluency tag simultaneously.
2. Controllable Time-delay Self-attention
The core innovation is the modified self-attention mask. In a standard Transformer, every word attends to every other word. The CT-Transformer restricts this so that a word at position $i$ can only "look ahead" at a fixed number of future words ($L$). This allows developers to precisely tune the trade-off between contextual accuracy and system latency.
3. Fast Decoding and Transfer Learning
The system employs a streaming decoding algorithm that processes text in small frames and dynamically clears the history buffer upon predicting an end-of-sentence mark. To compensate for limited annotated ASR data, the model is pre-trained on massive corpora (3.6B words for English, 1.6B for Chinese) with artificially injected disfluencies.
Experimental Setup
The model was evaluated on several benchmarks:
- IWSLT2011: A standard English dataset for punctuation prediction.
- Chinese Dataset: An in-house dataset of 240,000 utterances annotated for both tasks.
- Large-scale Pre-training: Web-crawled data from news and Wikipedia.
Key Results and Insights
The CT-Transformer demonstrates superior performance in both accuracy and efficiency.
Performance and Speed
On the IWSLT2011 benchmark, the model achieved a state-of-the-art F1-score of 74.9%, surpassing previous models (72.9%). Crucially, the encoder-only approach allows for significant parallelization, resulting in a 1.9x speedup over traditional Bi-LSTM architectures.
The Multi-task Advantage
A key finding was that joint training for punctuation and disfluency detection improves performance on both tasks. These tasks share linguistic features; for example, a disfluency often signals a break where punctuation should not be placed, or conversely, helps define sentence boundaries.
Streaming Stability
In real-time ASR, "flicker"—where predictions change as more context arrives—is a major usability issue. The CT-Transformer's masking strategy provides a principled way to "freeze" partial outputs, ensuring high stability in live streaming environments.
Conclusion and Future Work
The CT-Transformer provides a robust solution for cleaning ASR transcripts in real-time. Future research will focus on increasing robustness to ASR-specific phonetic errors and incorporating acoustic prosodic features (such as pitch and pauses) to further refine punctuation placement.
Summary updated