arrow
Return

A quantum search decoder for natural language processing

delete2021-04-30
delete3
delete
OA
AI
J
Johannes Bausch *
S
Sathyawageeswar Subramanian
S
Stephen Piddock
DOI:10.1007/s42484-021-00041-1delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Probabilistic 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 exponent k >0, our algorithm has runtime R-nf(R,R- k), where R is the alphabet size, n the input length; here f <1/2, and f0 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.
Keywords:
Recurrent neural networks
Quantum algorithms
Quantum search
Parsing
Natural language processing
Quantum speedups

Journal

Q
Quantum Machine Intelligence
IF:
4.4
Papers:
453
Citations:
796

Organization

U
University of Bristol
Scholars:
1.4K
Papers: 600
Citations: 0
U
University of Cambridge
Scholars:
3.7K
Papers: 1.4K
Citations: 0
Cited Papers

Cited Papers

Effect of reproductive disorders previous to conception on pregnancy attrition in dairy cows
err1996-09-01
err0
PREAI
errF. López-Gatius; J. Labèrnia; P. Santolaria; M. López-Béjar; J. Rutllant
errShare
errSave
Effects of protein sources and inclusion levels on nitrogen metabolism and urea kinetics of Nellore feedlot steers fed concentrate-based diets
err2021-06-09
err0
errOAAI
errVinícius Carneiro de Souza; Juliana Duarte Messana; Erick Darlisson Batista; Kênia Larissa Gomes Carvalho Alves; Evan C Titgemeyer; Alexandre Vaz Pires; Marcos Vinícius Ferraz Junior; Lorrayny Galoro Silva; João Alberto Negrão; Vladimir Eliodoro Costa; Maria Júlia Generoso Ganga; Paulo Henrique Detogni Colovate; Telma Teresinha Berchielli
errShare
errSave
The Biodegradation Role of Saccharomyces cerevisiae against Harmful Effects of Mycotoxin Contaminated Diets on Broiler Performance, Immunity Status, and Carcass characteristics
err2020-02-03
err0
errOAAI
errMuhammad Arif; Atia Iram; Muhammad A. K. Bhutta; Mohammed A. E. Naiel; Mohamed E. Abd El-Hack; Sarah I. Othman; Ahmed A. Allam; Mahmoud S. Amer; Ayman E. Taha
errShare
errSave
Deep learning in neural networks: An overview
err2015-01-01
err1.3W
errOAAI
errSchmidhuber, Juergen
errShare
errSave
Stabilization and utilization of hospital waste as road and asphalt aggregate
err2005-03-05
err0
PREAI
errIdris Azni; Saed Katayon; Muniandy Ratnasamy; Megat Mohd Noor Megat Johari
errShare
errSave
Impurity effects on ionic-liquid-based supercapacitors
err2016-12-27
err0
errOAAI
errKun Liu; Cheng Lian; Douglas Henderson; Jianzhong Wu
errShare
errSave
A bench for all moods
err2000-04-01
err0
PREAI
errAntonietta Grasso; Alain Karsenty; Dave Snowdon
errShare
errSave
researcher View more