Journal article
A quantum search decoder for natural language processing
- Abstract:
- AbstractProbabilistic language models, e.g. those based on recurrent neural networks such as long short-term memory models (LSTMs), often face the problem of finding a high probability prediction from a sequence of random variables over a set of tokens. This is commonly addressed using a form of greedy decoding such as beam search, where a limited number of highest-likelihood paths (the beam width) of the decoder are kept, and at the end the maximum-likelihood path is chosen. In this work, we construct a quantum algorithm to find the globally optimal parse (i.e. for infinite beam width) with high constant success probability. When the input to the decoder follows a power law with exponentk> 0, our algorithm has runtimeRnf(R,k), whereRis the alphabet size,nthe input length; heref< 1/2, and$f\rightarrow 0$f→0exponentially fast with increasingk, hence making our algorithm always more than quadratically faster than its classical counterpart. We further modify our procedure to recover a finite beam width variant, which enables an even stronger empirical speedup while still retaining higher accuracy than possible classically. Finally, we apply this quantum beam search decoder to Mozilla’s implementation of Baidu’sDeepSpeechneural net, which we show to exhibit such a power law word rank frequency.
- Publication status:
- Published
- Peer review status:
- Peer reviewed
Actions
Access Document
- Files:
-
-
(Preview, Version of record, pdf, 2.8MB, Terms of use)
-
- Publisher copy:
- 10.1007/s42484-021-00041-1
Authors
- Publisher:
- Springer
- Journal:
- Quantum Machine Intelligence More from this journal
- Volume:
- 3
- Issue:
- 1
- Article number:
- 16
- Publication date:
- 2021-04-30
- DOI:
- EISSN:
-
2524-4914
- ISSN:
-
2524-4906
- Language:
-
English
- Pubs id:
-
2366640
- Local pid:
-
pubs:2366640
- Source identifiers:
-
W2972790990
- Deposit date:
-
2026-02-04
- ARK identifier:
This ORA record was generated from metadata provided by an external service. It has not been edited by the ORA Team.
Terms of use
- Copyright date:
- 2021
- Licence:
- CC Attribution (CC BY)
If you are the owner of this record, you can report an update to it here: Report update to this record