A Quantum Search Decoder for Natural Language Processing
Not on the map. Why?
Abstract (arXiv)
Probabilistic language models, e.g. those based on an LSTM, 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 is distributed as a power-law with exponent k>0, our algorithm has runtime Rn f(R,k), where R is the alphabet size, n the input length; here f<1/2, and frightarrow 0 exponentially fast with increasing k, 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's DeepSpeech neural net, which we show to exhibit such a power law word rank frequency.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 9 Sep 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 0; 2023: 0; 2024: 1; 2025: 1.
5 papers.
- 2021QNLP in Practice: Running Compositional Models of Meaning on a Quantum Computercited by 65
- 2021lambeq: An Efficient High-Level Python Library for Quantum NLPcited by 43
- 2024Quantum Natural Language Processingcited by 6
- 2021Should Semantic Vector Composition be Explicit? Can it be Linear?cited by 3
- 2025QCSE: A Pretrained Quantum Context-Sensitive Word Embedding for Natural Language Processingcited by 0
- 2025QCSE: A Pretrained Quantum Context-Sensitive Word Embedding for Natural Language Processing6 Sep 2025
- 2024Quantum Natural Language Processing28 Mar 2024
- 2021lambeq: An Efficient High-Level Python Library for Quantum NLP8 Oct 2021
- 2021Should Semantic Vector Composition be Explicit? Can it be Linear?13 Apr 2021
- 2021QNLP in Practice: Running Compositional Models of Meaning on a Quantum Computer25 Feb 2021