TL;DR
End-to-end automatic speech recognition (ASR) models excel at transcription but struggle to provide precise word-level timestamps, a limitation that worsens in multilingual settings. This paper introduces the Target Word Activity Detector (TWAD), a lexicon-free approach that predicts word boundaries by combining sub-word token embeddings with pretrained ASR acoustic features. TWAD matches or outperforms traditional phone-alignment baselines while scaling effortlessly to any number of languages without additional computational overhead.
What Problem Does This Paper Address?
For downstream speech tasks like speaker diarization (who spoke when) and voice editing, knowing exactly when a word starts and ends is crucial. However, modern end-to-end (E2E) ASR models are trained to map audio directly to text without learning explicit time alignments.
Existing workarounds generally fall into two camps, both of which struggle to scale:
- Lexicon-based methods: These map acoustic frames to context-independent (CI) phones and use a pronunciation lexicon to align them to words. In a multilingual setup, this requires maintaining massive lexicons and relies on fragile language identification (LID) systems to pick the right dictionary.
- Modified token methods: These introduce special "word boundary" tokens during training. However, this increases computational costs and often degrades overall ASR transcription accuracy.
The authors tackle this scalability bottleneck by designing a system that estimates word boundaries across multiple languages simultaneously, completely bypassing the need for a phonetic lexicon.
Methods
TWAD draws inspiration from the speaker diarization community—specifically, Target Speaker Voice Activity Detection (TS-VAD), which uses speaker embeddings to detect when specific people are talking. TWAD flips this concept to detect when specific words are active.
The architecture operates as follows:
- Word Embedding Estimation: The system takes sub-word token embeddings from the ASR decoder and passes them through a bidirectional LSTM (BiLSTM) to generate a single, fixed-dimensional embedding for every word in the sentence.
- Feature Fusion: These word embeddings are replicated and concatenated with the acoustic frame embeddings from the ASR encoder, creating a joint 3D representation.
- Spatio-Temporal Modeling: A BiLSTM is applied along the time axis to capture acoustic correlations, followed by another BiLSTM along the word axis to capture linguistic context between adjacent words.
- Activity Mapping: A final softmax layer outputs a frame-by-word probability matrix ($p(w_i|x_n)$), mapping out exactly when each word is "active" in the audio.
Finally, a Dynamic Time Warping (DTW) algorithm cleans up the noisy matrix to extract the final, clean word boundaries.
Datasets
The authors evaluated their approach using internal Microsoft datasets spanning five languages: English (EN), French (FR), Spanish (ES), Italian (IT), and German (DE). The models were trained on massive corpora (ranging from 12K hours for German to 75K hours for English) and evaluated on dedicated subsets containing diverse acoustic conditions and speaking styles.
Key Insights and Ideas
- The "Where to Look" Paradox: One of the most compelling findings is the impact of layer selection from the pretrained ASR encoder. For the phone-based baseline, the middle layers (specifically layer 9) worked best because higher layers lose raw phonetic information. Conversely, TWAD performed best using the very last layer (layer 23). This is because TWAD relies on semantic and token-level correlations between the encoder and decoder, which mature in the final layers of the network.
- Lexicon-Free Scalability: Because TWAD maps tokens directly to acoustic frames, it treats all languages uniformly. As you add more languages, the model size doesn't explode, and there is no risk of "phone confusion" that typically plagues massive multilingual phonetic systems.
Key Results
The authors compared TWAD against a strong context-independent (CI) phone-alignment baseline.
- Superior Start-Time Accuracy: TWAD achieved a lower average start-time error (45.3 ms) across all five languages compared to the baseline (47.7 ms). It was particularly effective in Spanish and German.
- Comparable End-Time Accuracy: While the baseline held a slight edge in average end-time accuracy (48.9 ms vs. TWAD's 58.7 ms), TWAD's errors remained well within the acceptable threshold for demanding downstream tasks like speaker diarization.
- The Ultimate Trade-off: TWAD achieves these comparable metrics without requiring language identification at inference time or a single pronunciation dictionary, making it vastly superior for production deployment.
Limitations and Future Work
A current limitation of TWAD is its sensitivity to text formatting. The ASR model natively outputs "display text" (e.g., "$200"), but TWAD was trained on normalized text ("two hundred dollars"). When evaluated directly on raw display text tokens, its boundary precision degraded significantly (e.g., German start/end errors degraded from ~34ms to ~50ms).
To fix this, the authors note that future iterations will focus on training TWAD directly on display-format text. This adjustment should not only resolve the mismatch but actually improve performance by allowing the model to leverage punctuation marks as natural boundary anchors.
Summary updated