Sequence Prediction with Neural Segmental Models

Hao Tang, Hao Tang 0002arXiv 2017

Introduction

Sequence prediction is a fundamental task in fields ranging from speech recognition to natural language processing. Traditional approaches often rely on frame-based models, such as Hidden Markov Models (HMMs) or standard Recurrent Neural Networks (RNNs), which predict labels for fixed-duration input slices. However, these models frequently struggle to capture segment-level features—like the total duration of a phoneme or energy distribution across a word—that are inherently tied to variable-length chunks of input. Segmental models address this by explicitly hypothesizing and labeling input segments. Despite their theoretical advantages, segmental models have historically been hindered by extreme computational complexity and a reliance on expensive, manually-annotated alignments.

Methods

This work introduces two key innovations to overcome the practical barriers of segmental modeling: discriminative segmental cascades and end-to-end training via marginal log loss.

Discriminative Segmental Cascades

To manage the massive search space of potential segments, a multi-pass inference strategy is employed. In the first pass, a computationally efficient model performs max-marginal pruning to discard unlikely segment candidates. Subsequent passes utilize more complex neural segmental models, such as those based on CNNs or LSTMs, to rescore the remaining sparse candidates. This approach focuses expensive neural computations only on the most promising segments.

End-to-End Training with Marginal Log Loss

Traditional segmental models require precise timestamps for every label, which are difficult to obtain. By using marginal log loss, the model treats segment boundaries as latent variables. The objective function marginalizes over all possible segmentations that yield the correct label sequence, allowing the model to learn optimal boundaries automatically during training without manual alignments.

Results and Key Insights

The proposed methods were evaluated on the TIMIT acoustic-phonetic speech dataset and an American Sign Language (ASL) fingerspelling dataset.

  • Efficiency and Accuracy: On TIMIT, the segmental cascade achieved a 1.8% absolute improvement in Phoneme Error Rate (PER) over first-pass baselines. Crucially, the cascade approach provided an 18-fold speedup in training and a 2.4x speedup in decoding compared to single-pass neural baselines.
  • Sign Language Performance: In ASL fingerspelling tasks, segmental models consistently outperformed frame-based Connectionist Temporal Classification (CTC) models, highlighting the importance of segment-level information in visual sequences where boundaries are fluid.
  • The CTC Connection: A significant theoretical finding of this work is the formal proof that CTC is a restricted special case of a segmental model trained with marginal log loss.

Discussion and Conclusion

The results demonstrate that end-to-end training without manual alignments is not only feasible but often superior, as the model learns "soft" boundaries that are more robust to noise. While challenges remain in scaling these models to large-vocabulary word recognition due to the size of the label set, the segmental framework offers a powerful and efficient path forward for complex sequence prediction tasks, including potential future applications in unsupervised unit discovery.

Summary updated

BibTeX
@misc{tang2017sequence,
  author = {Hao Tang and Hao Tang},
  title = {{Sequence Prediction with Neural Segmental Models}},
  year = {2017},
  eprint = {1709.01572},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.01572},
}
Figure