ISCA Archive Interspeech 2017
ISCA Archive Interspeech 2017

An Efficient Phone N-Gram Forward-Backward Computation Using Dense Matrix Multiplication

Khe Chai Sim, Arun Narayanan

The forward-backward algorithm is commonly used to train neural network acoustic models when optimizing a sequence objective like MMI and sMBR. Recent work on lattice-free MMI training of neural network acoustic models shows that the forward-backward algorithm can be computed efficiently in the probability domain as a series of sparse matrix multiplications using GPUs. In this paper, we present a more efficient way of computing forward-backward using a dense matrix multiplication approach. We do this by exploiting the block-diagonal structure of the n-gram state transition matrix; instead of multiplying large sparse matrices, the proposed method involves a series of smaller dense matrix multiplications, which can be computed in parallel. Efficient implementation can be easily achieved by leveraging on the optimized matrix multiplication routines provided by standard libraries, such as NumPy and TensorFlow. Runtime benchmarks show that the dense multiplication method is consistently faster than the sparse multiplication method (on both CPUs and GPUs), when applied to a 4-gram phone language model. This is still the case even when the sparse multiplication method uses a more compact finite state model representation by excluding unseen n-grams.


doi: 10.21437/Interspeech.2017-1557

Cite as: Sim, K.C., Narayanan, A. (2017) An Efficient Phone N-Gram Forward-Backward Computation Using Dense Matrix Multiplication. Proc. Interspeech 2017, 1646-1650, doi: 10.21437/Interspeech.2017-1557

@inproceedings{sim17_interspeech,
  author={Khe Chai Sim and Arun Narayanan},
  title={{An Efficient Phone N-Gram Forward-Backward Computation Using Dense Matrix Multiplication}},
  year=2017,
  booktitle={Proc. Interspeech 2017},
  pages={1646--1650},
  doi={10.21437/Interspeech.2017-1557}
}