Skip to main content
QUICK REVIEW

[Paper Review] Mobile Keyboard Input Decoding with Finite-State Transducers

Tom Ouyang, David Rybach|arXiv (Cornell University)|Apr 13, 2017
Speech Recognition and SynthesisComputer Science3 references21 citations
TL;DR

This paper proposes a finite-state transducer (FST) decoder for mobile keyboard input that leverages speech recognition-inspired techniques to enable low-latency, on-device decoding under strict memory and speed constraints. The FST framework supports advanced features like autocorrection, word completion, next-word prediction, and novel post-correction capabilities that revise previously committed words using future context, reducing word error rate by 18.5% on tapping and 22.7% on gesture input compared to baseline systems.

ABSTRACT

We propose a finite-state transducer (FST) representation for the models used to decode keyboard inputs on mobile devices. Drawing from learnings from the field of speech recognition, we describe a decoding framework that can satisfy the strict memory and latency constraints of keyboard input. We extend this framework to support functionalities typically not present in speech recognition, such as literal decoding, autocorrections, word completions, and next word predictions. We describe the general framework of what we call for short the keyboard "FST decoder" as well as the implementation details that are new compared to a speech FST decoder. We demonstrate that the FST decoder enables new UX features such as post-corrections. Finally, we sketch how this decoder can support advanced features such as personalization and contextualization.

Motivation & Objective

  • To address the challenge of decoding noisy, low-precision mobile keyboard inputs under strict memory and latency constraints typical of mobile devices.
  • To extend finite-state transducer technology—previously used in speech recognition—into the domain of mobile keyboard input for improved accuracy and feature support.
  • To enable new user experience features such as post-correction, where previously committed words can be revised based on subsequent input.
  • To support on-device personalization and contextual adaptation using dynamic language models without compromising performance.

Proposed method

  • The FST decoder uses a hierarchical transducer architecture combining a lexicon FST, language model FST, and spatial model FST to map input key sequences to candidate words.
  • A time-synchronous decoding algorithm processes input in real time, maintaining low latency (<20ms) and minimal memory usage (<10MB for language models).
  • Post-correction is implemented via a streaming, continuous recognition architecture that re-evaluates prior words when new context becomes available.
  • Dynamic models (e.g., user-specific n-grams, contact lists) are integrated via on-the-fly lattice rescoring, allowing OOV word handling without predefining all vocabulary.
  • The system supports both tap and gesture input modes, with distinct handling for literal decoding and suggestion-based correction.
  • A character-to-word transducer is spliced into the decoder graph to handle OOV words by mapping character sequences directly to output words.

Experimental results

Research questions

  • RQ1Can a finite-state transducer framework designed for speech recognition be effectively adapted to mobile keyboard input under strict mobile constraints?
  • RQ2Can post-correction mechanisms that revise previously committed words improve overall decoding accuracy?
  • RQ3How does the integration of dynamic, on-device personalization models affect decoding performance and memory usage?
  • RQ4To what extent can the FST decoder outperform traditional token-passing decoders in terms of word error rate across tapping and gesture input?

Key findings

  • The FST decoder reduced word error rate (WER) by 18.5% on tapped input (from 6.31% to 5.07%) and by 22.7% on gesture input (from 11.90% to 9.20%) compared to the baseline system.
  • Post-correction enabled the system to correct the error 'a while lot' to 'a whole lot' by leveraging context from the following word, demonstrating the value of future context in disambiguation.
  • The decoder achieved low-latency performance (<20ms) and memory usage within 10MB, satisfying real-time mobile deployment constraints.
  • The integration of dynamic models via on-the-fly lattice rescoring allowed effective personalization and OOV word handling without increasing the static model size.
  • The FST framework naturally supports advanced features like next-word prediction, word completion, and autocorrection within a unified, mathematically principled architecture.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.