Contextual Biasing with the Knuth-Morris-Pratt Matching Algorithm

Weiran Wang, Zelin Wu, Diamantino Caseiro, Tsendsuren Munkhdalai, Khe Chai Sim +8 more
9/29/2023
cs.CLeess.AS

No confident code implementation found for this paper.

Abstract

Contextual biasing refers to the problem of biasing the automatic speech recognition (ASR) systems towards rare entities that are relevant to the specific user or application scenarios. We propose algorithms for contextual biasing based on the Knuth-Morris-Pratt algorithm for pattern matching. During beam search, we boost the score of a token extension if it extends matching into a set of biasing phrases. Our method simulates the classical approaches often implemented in the weighted finite state transducer (WFST) framework, but avoids the FST language altogether, with careful considerations on memory footprint and efficiency on tensor processing units (TPUs) by vectorization. Without introducing additional model parameters, our method achieves significant word error rate (WER) reductions on biasing test sets by itself, and yields further performance gain when combined with a model-based biasing method.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2023contextual,
  title  = {Contextual Biasing with the Knuth-Morris-Pratt Matching Algorithm},
  author = {Weiran Wang and Zelin Wu and Diamantino Caseiro and Tsendsuren Munkhdalai and Khe Chai Sim and Pat Rondon and Golan Pundak and Gan Song and Rohit Prabhavalkar and Zhong Meng and Ding Zhao and Tara Sainath and Pedro Moreno Mengibar},
  year   = {2023},
  eprint = {2310.00178},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.00178v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.00178.svg)](https://codeofpaper.com/paper/2310.00178)

Discussion