Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > quant-ph > arXiv:1909.05023

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Quantum Physics

arXiv:1909.05023 (quant-ph)
[Submitted on 9 Sep 2019 (v1), last revised 12 Jun 2020 (this version, v2)]

Title:A Quantum Search Decoder for Natural Language Processing

Authors:Johannes Bausch, Sathyawageeswar Subramanian, Stephen Piddock
View a PDF of the paper titled A Quantum Search Decoder for Natural Language Processing, by Johannes Bausch and 2 other authors
View PDF
Abstract: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 $R^{n f(R,k)}$, where $R$ is the alphabet size, $n$ the input length; here $f<1/2$, and $f\rightarrow 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.
Comments: 39 pages, 16 figures, 2 algorithms
Subjects: Quantum Physics (quant-ph); Computation and Language (cs.CL); Data Structures and Algorithms (cs.DS); Machine Learning (cs.LG)
MSC classes: 68T50, 68Q12, 68T05
Cite as: arXiv:1909.05023 [quant-ph]
  (or arXiv:1909.05023v2 [quant-ph] for this version)
  https://doi.org/10.48550/arXiv.1909.05023
arXiv-issued DOI via DataCite
Journal reference: Quantum Mach. Intell. 3, 16 (2021)
Related DOI: https://doi.org/10.1007/s42484-021-00041-1
DOI(s) linking to related resources

Submission history

From: Johannes Bausch [view email]
[v1] Mon, 9 Sep 2019 17:59:23 UTC (252 KB)
[v2] Fri, 12 Jun 2020 16:51:11 UTC (232 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled A Quantum Search Decoder for Natural Language Processing, by Johannes Bausch and 2 other authors
  • View PDF
  • TeX Source
  • Other Formats
view license
Current browse context:
quant-ph
< prev   |   next >
new | recent | 2019-09
Change to browse by:
cs
cs.CL
cs.DS
cs.LG

References & Citations

  • INSPIRE HEP
  • NASA ADS
  • Google Scholar
  • Semantic Scholar

1 blog link

(what is this?)
export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack