Efficient Parallel Audio Generation using Group Masked Language Modeling

Myeonghun Jeong, Minchan Kim, Joun Yeop Lee, Nam Soo Kim · DOI

Abstract

Recent advancements in audio generation have leveraged Large Language Models (LLMs) to synthesize high-fidelity speech. However, the trade-off between generation speed and audio quality remains a significant challenge. This paper presents a novel framework for parallel audio generation that utilizes Group-Masked Language Modeling (G-MLM) and a cross-attention architecture. By exploiting group-wise dependencies in neural codec tokens and implementing efficient prompt caching, the proposed model achieves superior voice similarity and clarity compared to state-of-the-art models like SoundStorm, while requiring significantly fewer inference iterations.

1. Introduction

The generation of high-fidelity audio via LLMs typically involves the quantization of continuous signals into discrete tokens using neural codecs. Traditionally, these tokens are generated using Autoregressive (AR) methods, which produce tokens sequentially. While AR models provide high quality, their inference speed is inherently limited, particularly for long-form audio.

To address this, Non-Autoregressive (NAR) models have been developed to generate tokens in parallel. Models such as Google's SoundStorm utilize iterative parallel decoding to maintain quality; however, they often require a high number of iterations (e.g., 20+) to achieve acceptable results. Furthermore, SoundStorm’s architecture, which prepends prompt tokens to the target sequence, suffers from quadratic computational growth as prompt length increases. This paper introduces a framework designed to overcome these bottlenecks through structural and algorithmic innovations.

2. Methodology

The proposed framework introduces three primary innovations aimed at improving both the efficiency and the quality of the synthesis process.

2.1 Group-Masked Language Modeling (G-MLM)

Standard models often utilize Residual Vector Quantization (RVQ) to represent audio. This research employs Group-RVQ (G-RVQ) via the HiFi-Codec, which organizes audio features into distinct groups. The core innovation, Group-Masked Language Modeling (G-MLM) and its corresponding inference scheme, Group-Iterative Parallel Decoding (G-IPD), leverage the high entanglement of tokens within these groups. By decoding these groups collectively rather than level-by-level, the model captures more information per pass, drastically reducing the number of iterations required to reach high-fidelity output.

2.2 Cross-Attention Prompting

Unlike previous architectures that concatenate prompt and target tokens in a single self-attention block, this model utilizes a dedicated Prompt Encoder. By employing a cross-attention mechanism, the speaker's style and acoustic characteristics are "injected" into the generation process. This separation prevents the computational load from scaling quadratically with the combined length of the prompt and the generated sequence.

2.3 KV Caching for Prompts

The use of cross-attention allows for the implementation of Key-Value (KV) caching for the prompt tokens. Since the prompt remains static during the iterative sampling of the target audio, its Key and Value matrices can be computed once and reused. This leads to substantial speedups, particularly when using long reference prompts (e.g., 10 seconds or more).

3. Experimental Setup

The model was trained and evaluated using the Libri-TTS dataset, specifically focusing on the test-clean subset to evaluate zero-shot performance on unseen speakers. Semantic tokens, providing the underlying linguistic structure, were extracted using Wav2Vec 2.0. The HiFi-Codec served as the neural audio codec to facilitate the conversion between continuous audio and discrete G-RVQ tokens.

4. Results and Discussion

The proposed model was benchmarked against SoundStorm across several metrics, including Mean Opinion Score (MOS), Character Error Rate (CER), and inference latency.

4.1 Audio Quality and Intelligibility

In subjective MOS tests, the proposed model achieved a score of 4.49, significantly outperforming SoundStorm’s 3.83 at an equivalent iteration count ($N=27$). Furthermore, the model demonstrated remarkable robustness; even at only 6 iterations, it maintained a MOS of 4.06, whereas SoundStorm’s quality degraded to a MOS of 3.24 even with twice the iterations ($N=12$).

In terms of intelligibility, the model recorded a CER of 2.36%, compared to 2.87% for SoundStorm. This indicates that the G-MLM approach produces clearer, more linguistically accurate speech.

4.2 Computational Efficiency

The architectural shift to cross-attention and KV caching resulted in consistent speed improvements. The efficiency gap between the proposed model and SoundStorm widened as the prompt length increased, confirming the scalability of the cross-attention approach for long-form synthesis.

5. Conclusion

This paper demonstrates that parallel audio generation can be made significantly more efficient without sacrificing quality. By treating RVQ tokens as groups and optimizing the prompt-injection mechanism, the proposed framework sets a new benchmark for speed and fidelity in zero-shot speech synthesis. Future work will focus on integrating this semantic-to-acoustic mapping with text-to-semantic modules to create a comprehensive, high-speed Text-to-Speech (TTS) system and extending the model to handle complex multi-speaker environments.

Summary updated

BibTeX
@article{jeong2024efficient,
  author = {Myeonghun Jeong and Minchan Kim and Joun Yeop Lee and Nam Soo Kim},
  title = {{Efficient Parallel Audio Generation using Group Masked Language Modeling}},
  journal = {IEEE Signal Processing Letters},
  year = {2024},
  url = {https://openreview.net/forum?id=rTDA0c93G8},
}
Figure