All models

coqui_NeuralHMM

A text-to-speech model that replaces attention with a neural hidden Markov model.

Audio and speech · 18,100 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 18,100 operations (2.2 MB) and is drawn when you ask.

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
15.3M
Operations
18,100
Framework
PyTorch
Recurrent
Yes
Published
ICASSP 2022
Cited by
12 (as of 22 October 2026)
Authors
Shivam Mehta, Éva Székely, Jonas Beskow, Gustav Eje Henter
License
GPL-3.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3920
Graph hash
8767796c029995a17560a643f06a0dbbfd3634e5c7a9492683437ad28d97f3ff
Skeleton hash
19a37cdc0ba7f7e7e2a98faa6c86ce010ddc34f051271b52c5797b0dfcd31b9a
Architecture hash
c64594f16ef74e386300013ade1ea6e0f02d83f08a01f941ca7b64d8e454331c
Diagram SHA-256
7018edcdb93f9650f5da587b989242b3821d60f5d50053a1013a32f7d573c48b
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Neural HMM TTS is a text-to-speech model that replaces the attention mechanism of neural sequence-to-sequence synthesizers with a hidden Markov model defined by a neural network. The motivation given in the paper is that attention failures increase training time and can make synthesis babble incoherently.

The authors start from Tacotron 2 and modify it into an HMM-based model with monotonic alignment, trained to maximize the full sequence likelihood without approximation. The encoder turns each input sequence into its own HMM in which every encoder vector is a state. The system uses 2 states per phone.

In the paper's listening test, the two-state system reached a naturalness on par with the most comparable Tacotron 2 condition, the one without the post-net. The paper also reports that it was intelligible after 1k updates, where Tacotron 2 took approximately 14.5k updates to speak coherently. The approach also allows control over speaking rate.

Key idea. The paper replaces attention in Tacotron 2 with a neural left-right no-skip HMM, giving a probabilistic TTS model trained on the full sequence likelihood.

  • Neural HMM
  • Neural HMM TTS
  • NeuralHMM
  • neural hidden Markov model
  • text-to-speech
  • TTS
  • attention-free TTS
  • speech synthesis
  • HMM-based TTS

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{mehta2022neuralhmmsneedfor,
      title={Neural HMMs are all you need (for high-quality attention-free TTS)}, 
      author={Shivam Mehta and Éva Székely and Jonas Beskow and Gustav Eje Henter},
      year={2022},
      eprint={2108.13320},
      archivePrefix={arXiv},
      primaryClass={eess.AS},
      doi={https://doi.org/10.1109/ICASSP43922.2022.9746686},
      url={https://arxiv.org/abs/2108.13320}, 
}