[Paper Review] Personalized Speech recognition on mobile devices
This paper presents a compact, real-time speech recognition system for mobile devices using a quantized LSTM acoustic model with SVD-based compression and on-the-fly language model biasing for personalization. The system achieves 13.5% WER on dictation tasks while running 7× faster than real-time on a Nexus 5, with a total footprint of 20.3 MB, enabling accurate, low-latency on-device recognition without network dependency.
We describe a large vocabulary speech recognition system that is accurate, has low latency, and yet has a small enough memory and computational footprint to run faster than real-time on a Nexus 5 Android smartphone. We employ a quantized Long Short-Term Memory (LSTM) acoustic model trained with connectionist temporal classification (CTC) to directly predict phoneme targets, and further reduce its memory footprint using an SVD-based compression scheme. Additionally, we minimize our memory footprint by using a single language model for both dictation and voice command domains, constructed using Bayesian interpolation. Finally, in order to properly handle device-specific information, such as proper names and other context-dependent information, we inject vocabulary items into the decoder graph and bias the language model on-the-fly. Our system achieves 13.5% word error rate on an open-ended dictation task, running with a median speed that is seven times faster than real-time.
Motivation & Objective
- To develop a low-latency, accurate speech recognition system that runs entirely on mobile devices without relying on cloud connectivity.
- To reduce the memory and computational footprint of deep learning-based speech recognition models to fit within mobile constraints.
- To enable accurate recognition of personalized content such as contact names and device-specific commands on-device.
- To support both open-ended dictation and voice command tasks using a single, shared language model through Bayesian interpolation.
- To minimize latency and memory usage through model compression, efficient decoding, and on-the-fly personalization techniques.
Proposed method
- A quantized Long Short-Term Memory (LSTM) acoustic model is trained with Connectionist Temporal Classification (CTC) to predict context-independent phonemes, reducing model size and computational cost.
- Singular Value Decomposition (SVD) is applied to further compress the LSTM model, reducing its size by a factor of ten without significant accuracy loss.
- A single, shared language model is constructed using Bayesian interpolation to effectively support both dictation and voice command domains with minimal memory overhead.
- On-the-fly vocabulary injection and language model biasing are used to dynamically incorporate user-specific terms like contact names into the recognition process.
- A two-stage decoding strategy is employed: a fast first-pass decoder with a compact language model, followed by on-the-fly rescoring with a larger, compressed language model using LOUDS compression.
- A lightweight LSTM-based grapheme-to-phoneme (G2P) model is trained to generate pronunciations for personal contacts, replacing large FST-based systems.
Experimental results
Research questions
- RQ1Can a quantized and SVD-compressed LSTM acoustic model achieve high accuracy while running faster than real-time on a mobile device?
- RQ2How can a single language model effectively support both open-ended dictation and voice command tasks with minimal memory overhead?
- RQ3To what extent can on-the-fly language model biasing and vocabulary injection improve recognition accuracy for personalized terms like contact names?
- RQ4What is the computational and memory cost of injecting personal contact pronunciations at runtime without degrading latency?
- RQ5Can model compression techniques like SVD and quantization be effectively applied to RNNs for embedded speech recognition, and how do they compare to DNN-based approaches?
Key findings
- The system achieves a word error rate (WER) of 13.5% on an open-ended dictation task, significantly improving upon prior work under similar resource constraints.
- The system runs with a median speed of 7× faster than real-time on a Nexus 5, demonstrating low-latency performance suitable for interactive use.
- Incorporating 2 contacts into the decoder via vocabulary injection reduces WER from 13.7% to 9.0%, with on-the-fly biasing further reducing contact name WER to 12.8%.
- Even with 50 contact pronunciations injected on-the-fly, the median real-time factor increases only slightly to 0.17, indicating minimal latency impact.
- The total system footprint is 20.3 MB, with the acoustic model compressed to 3.0 MB and the G2P model to just 497 KB, enabling efficient on-device deployment.
- The use of Bayesian interpolation for language model sharing outperforms simple linear interpolation, enabling effective multi-domain support with a single compact model.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.