Sampling from Stochastic Finite Automata with Applications to CTC Decoding

Martin Jansche, Alexander Gutkin
5/21/2019
cs.CLcs.FLcs.LG

Official code: mjansche/ctc_sampling (3 stars, Apache-2.0, last commit 2020-12-30).

Abstract

Stochastic finite automata arise naturally in many language and speech processing tasks. They include stochastic acceptors, which represent certain probability distributions over random strings. We consider the problem of efficient sampling: drawing random string variates from the probability distribution represented by stochastic automata and transformations of those. We show that path-sampling is effective and can be efficient if the epsilon-graph of a finite automaton is acyclic. We provide an algorithm that ensures this by conflating epsilon-cycles within strongly connected components. Sampling is also effective in the presence of non-injective transformations of strings. We illustrate this in the context of decoding for Connectionist Temporal Classification (CTC), where the predictive probabilities yield auxiliary sequences which are transformed into shorter labeling strings. We can sample efficiently from the transformed labeling distribution and use this in two different strategies for finding the most probable CTC labeling.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for Sampling from Stochastic Finite Automata with Applications to CTC Decoding

32C++, ShellJul 1, 20195 years agoApache-2.0

Similar Papers

Cite this paper

@article{jansche2019sampling,
  title  = {Sampling from Stochastic Finite Automata with Applications to CTC Decoding},
  author = {Martin Jansche and Alexander Gutkin},
  year   = {2019},
  eprint = {1905.08760},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.08760}
}

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/1905.08760.svg)](https://codeofpaper.com/paper/1905.08760)

Discussion