Sampling from Stochastic Finite Automata with Applications to CTC Decoding

Martin Jansche, Alexander Gutkin


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.


 DOI: 10.21437/Interspeech.2019-2740

Cite as: Jansche, M., Gutkin, A. (2019) Sampling from Stochastic Finite Automata with Applications to CTC Decoding. Proc. Interspeech 2019, 2230-2234, DOI: 10.21437/Interspeech.2019-2740.


@inproceedings{Jansche2019,
  author={Martin Jansche and Alexander Gutkin},
  title={{Sampling from Stochastic Finite Automata with Applications to CTC Decoding}},
  year=2019,
  booktitle={Proc. Interspeech 2019},
  pages={2230--2234},
  doi={10.21437/Interspeech.2019-2740},
  url={http://dx.doi.org/10.21437/Interspeech.2019-2740}
}