JoeyS2T: Minimalistic Speech-to-Text Modeling with JoeyNMT

Mayumi Ohta, Julia Kreutzer, Stefan Riezler · DOI

Abstract

JoeyS2T is a minimalist, "no-frills" toolkit designed to lower the barrier to entry for speech-to-text (ST) and automatic speech recognition (ASR) research. By extending the popular JoeyNMT framework, it provides a clean, highly documented, and "flat" codebase that achieves competitive results on standard benchmarks while being nearly 10 times smaller than industry-standard toolkits. This paper outlines the design philosophy, architectural choices, and performance metrics of JoeyS2T.

1. Introduction

In the field of Natural Language Processing (NLP), the barrier to entry for speech-related tasks is significantly higher than for text-based tasks. While a student can implement and run a basic Machine Translation (MT) model in an afternoon, speech toolkits like ESPnet or fairseq are often perceived as "monsters"—massive, complex frameworks characterized by deep inheritance hierarchies and numerous external dependencies, such as Kaldi.

This complexity often discourages novices and researchers from adjacent fields. JoeyS2T aims to bridge this gap by providing a "starter kit" that follows the 80/20 principle: achieving approximately 80% of the performance of state-of-the-art systems with only 20% of the code complexity. It prioritizes human readability and ease of use over exhaustive feature sets.

2. Methodology

JoeyS2T is built as an extension of JoeyNMT, a minimalist toolkit originally designed for neural machine translation. To adapt a text-centric architecture for audio input, several speech-specific components were integrated into the standard Transformer architecture:

  • 1D-Convolutional Layers: Because audio signals are significantly longer than text sequences, JoeyS2T utilizes 1D-Conv layers at the beginning of the encoder. These layers downsample the input, reducing the computational burden on the self-attention mechanism.
  • Joint Optimization: Models are trained using a multi-task objective combining standard Cross-Entropy loss with Connectionist Temporal Classification (CTC) loss. The inclusion of CTC helps the model learn monotonic alignments between audio and text more efficiently during the training process.
  • Data Augmentation: To improve robustness, the toolkit incorporates SpecAugment, which applies random masks to blocks of frequency and time within the audio spectrogram.
  • Flat Code Structure: In contrast to toolkits that rely on complex object-oriented abstractions, JoeyS2T maintains a "flat" design. This allows users to easily follow stack traces during debugging and understand the flow of data through the model without navigating deep class hierarchies.

3. Experimental Setup

The authors evaluated JoeyS2T on two gold-standard benchmarks to verify its efficacy:

  1. LibriSpeech: The primary benchmark for English ASR, utilizing both the 100-hour (small) and 960-hour (large) subsets.
  2. MuST-C (En-De): A multilingual speech translation corpus derived from TED Talks, specifically focusing on the English-to-German translation task.

4. Key Results and Insights

4.1 Performance Metrics

Despite its minimalist design, JoeyS2T remains competitive with much larger frameworks:

  • ASR Performance: On the LibriSpeech 100h (test-clean) set, JoeyS2T achieved a 12.02 Word Error Rate (WER). While this does not surpass specialized "Conformer" models (which typically reach ~6.5 WER), it is on par with standard Transformer implementations.
  • Speech Translation: On the MuST-C (En-De) benchmark, the toolkit achieved a 23.33 BLEU score for end-to-end translation, performing similarly to or better than certain versions of the fairseq S2T toolkit.

4.2 Efficiency and Minimalism

The most significant finding is the toolkit's efficiency in terms of code volume. JoeyS2T consists of approximately 5,450 lines of code, compared to the ~41,000 lines found in ESPnet. This reduction in complexity does not sacrifice functionality for core research tasks. Furthermore, the toolkit handles data loading "on-the-fly," storing only file paths in memory to ensure stability when training on large-scale audio datasets.

5. Discussion and Limitations

JoeyS2T is intended as a pedagogical and research-friendly tool rather than an exhaustive production framework. As such, it has specific limitations:

  • Architectural Scope: It currently lacks support for the latest state-of-the-art architectures, such as Conformers or self-supervised pre-training methods like wav2vec 2.0. While these may be added in the future, the priority remains maintaining a minimalist spirit.
  • Preprocessing Challenges: The authors note a lack of standardized evaluation schemes in the speech community (similar to sacreBLEU for text), which can lead to minor discrepancies in results due to differing audio cleaning and normalization techniques.
  • Functional Focus: The toolkit is strictly limited to speech-to-text tasks; it does not support speech enhancement, speaker identification, or text-to-speech (TTS).

6. Conclusion

JoeyS2T demonstrates that massive frameworks are not a prerequisite for effective speech research. By providing a readable, extensible, and high-performing starter kit, it allows researchers to transition seamlessly from text-to-text translation to speech-to-text tasks within a single, unified ecosystem.

Summary updated

BibTeX
@inproceedings{ohta2022joeys,
  author = {Mayumi Ohta and Julia Kreutzer and Stefan Riezler},
  title = {{JoeyS2T: Minimalistic Speech-to-Text Modeling with JoeyNMT}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-demos.6},
}
Figure