Skip to main content
QUICK REVIEW

[Paper Review] Efficient Dynamic WFST Decoding for Personalized Language Models

Jun Liu, Jiedan Zhu|arXiv (Cornell University)|Oct 23, 2019
Algorithms and Data CompressionComputer Science9 references6 citations
TL;DR

This paper proposes a two-layer cache mechanism—public and private—to accelerate dynamic WFST decoding with personalized language models in speech recognition. By pre-composing static graph components globally and caching user-specific language model states locally, the method reduces decoding time by a factor of five in multi-turn dialogues, with minimal WER impact and improved memory efficiency for high-concurrency systems.

ABSTRACT

We propose a two-layer cache mechanism to speed up dynamic WFST decoding with personalized language models. The first layer is a public cache that stores most of the static part of the graph. This is shared globally among all users. A second layer is a private cache that caches the graph that represents the personalized language model, which is only shared by the utterances from a particular user. We also propose two simple yet effective pre-initialization methods, one based on breadth-first search, and another based on a data-driven exploration of decoder states using previous utterances. Experiments with a calling speech recognition task using a personalized contact list demonstrate that the proposed public cache reduces decoding time by factor of three compared to decoding without pre-initialization. Using the private cache provides additional efficiency gains, reducing the decoding time by a factor of five.

Motivation & Objective

  • Improve decoding efficiency for dynamic WFST-based speech recognition with personalized language models.
  • Address the high latency and memory overhead of on-the-fly composition for user-specific language models in real-time voice assistants.
  • Enable low-latency, scalable deployment of personalized language models in multi-user, multi-threaded production environments.
  • Reduce the computational cost of dynamic graph composition without compromising recognition accuracy.

Proposed method

  • Introduce a two-layer cache: a public cache pre-composes the static HCL part of the WFST, shared globally across users.
  • Implement a private cache that stores and reuses the personalized language model FST for each user, shared across their utterances in a session.
  • Use a simplified pre-initialization method based on breadth-first search (BFS) to pre-compose non-terminal states in the HCL graph.
  • Propose a data-driven pre-initialization technique that uses a small set of prior utterances to guide state expansion, improving efficiency over BFS.
  • Combine both pre-initialization methods to achieve optimal performance and memory efficiency.
  • Apply FST replacement to dynamically swap the class-based language model with user-specific FSTs during decoding, minimizing on-demand composition.

Experimental results

Research questions

  • RQ1Can pre-composing static WFST components reduce decoding latency in dynamic language model scenarios?
  • RQ2How does a data-driven pre-initialization method compare to breadth-first search in terms of decoding speed and memory efficiency?
  • RQ3To what extent can a private cache for user-specific language models improve efficiency in multi-turn dialog systems?
  • RQ4What is the marginal memory cost of pre-composed graphs versus fully dynamic graphs under high concurrency?

Key findings

  • Pre-composition using the public cache reduces decoding time by a factor of three compared to fully dynamic decoding.
  • The data-driven pre-initialization method outperforms breadth-first search in both RTF reduction and memory efficiency.
  • For multi-turn dialog sessions of five turns, the private cache reduces decoding time by a factor of five compared to fully dynamic decoding.
  • The marginal memory cost per additional concurrent request is 1.5× lower for the pre-composed graph than for the fully dynamic graph.
  • Extending BFS pre-composition beyond five steps provides no further RTF improvement and increases memory usage due to infrequent state composition.
  • Combining both pre-initialization methods achieves the best performance, with reduced RTF and tighter p50/p95 percentile gaps.

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.