VioLA: Conditional Language Models for Speech Recognition, Synthesis, and Translation

Tianrui Wang, Long Zhou, Ziqiang Zhang, Yu Wu, Shujie Liu, Yashesh Gaur, Zhuo Chen, Jinyu Li, Furu Wei

TL;DR

This paper introduces VIOLA, a unified decoder-only Transformer model that handles speech recognition, synthesis, and translation tasks by treating them all as a conditional codec language modeling problem. By converting speech into discrete tokens, VIOLA simplifies multi-modal speech processing into a single sequence-to-sequence task, achieving competitive performance across various benchmarks.

What Problem Does This Paper Address?

The field of speech processing has seen a trend towards unifying different tasks and modalities under common architectural frameworks. While impressive progress has been made in individual tasks like speech recognition (ASR), machine translation (MT), and text-to-speech (TTS) synthesis, these often rely on specialized models or complex pipelines. Existing unified models, like VALL-E X, have shown promise in speech synthesis but are limited to that specific task. The core challenge this paper addresses is whether a single, versatile decoder-only generative model can effectively handle a broad spectrum of speech-related tasks, including recognition, translation, and synthesis, by leveraging a unified representation.

Methods

VIOLA's core innovation lies in its unified approach to speech processing tasks. The key steps are:

  • Speech Discretization: Continuous speech signals are converted into discrete tokens using an offline neural codec encoder (specifically, EnCodec). This transforms speech into a format analogous to text tokens.
  • Conditional Codec Language Modeling: All speech tasks (ASR, MT, TTS) are reframed as conditional codec language modeling problems. This means the model learns to predict sequences of discrete speech tokens (or text tokens for ASR/MT) given some input, all within a decoder-only Transformer architecture.
  • Multi-Task Learning: VIOLA is trained using a multi-task learning framework that simultaneously optimizes for ASR, MT, and TTS objectives.
  • Task and Language IDs: Task IDs (TID) and Language IDs (LID) are integrated into the model. These special tokens help the model distinguish between different tasks and languages, enhancing its ability to generalize and perform cross-lingual tasks.
  • Auto-regressive Decoder-Only Architecture: The model utilizes a standard Transformer decoder architecture, similar to large language models like GPT, which is known for its strong generative capabilities.

Datasets

The paper uses several publicly available datasets for training and evaluation:

  • WenetSpeech: A large-scale, multi-domain labeled speech dataset for Chinese ASR and TTS.
  • LibriLight: A large dataset of unlabeled English audiobooks used for English ASR.
  • AI Challenger & WMT2020: Datasets used for Chinese-English machine translation.
  • EMIME: A bilingual dataset used for evaluating Chinese-to-English speech-to-text translation (S2TT) and zero-shot Chinese-to-English speech-to-speech translation (S2ST).
  • LibriSpeech dev-clean and test-clean: Used for evaluating zero-shot English TTS.

Key Insights and Ideas

  • Unified Representation is Powerful: The paper demonstrates that by converting speech into discrete codec tokens, a wide range of speech tasks can be unified under a single language modeling framework. This significantly simplifies the architecture and training process.
  • Decoder-Only Models Can Conquer Speech: VIOLA shows that decoder-only generative models, traditionally associated with text generation, are highly capable of handling complex speech processing tasks, including recognition, which is often tackled by encoder-decoder or transducer models.
  • Task and Language IDs are Crucial for Generalization: The explicit inclusion of Task IDs and Language IDs is shown to be effective in enabling the model to differentiate and perform well across diverse tasks and languages, particularly in cross-lingual scenarios.
  • Cascading is a Viable Strategy: For tasks like speech-to-text translation and speech-to-speech translation, a cascaded approach (combining ASR, MT, and TTS modules) proves effective, offering competitive results even without a fully end-to-end model.

Key Results

  • Speech Recognition: VIOLA (18L) achieves a PER of 11.36, comparable to strong baselines, demonstrating that codec-based models can perform well in ASR.
  • Machine Translation: VIOLA (18L) achieves a BLEU score of 56.97, outperforming its smaller counterpart and matching AED models, highlighting its strong MT capabilities.
  • Speech-to-Text Translation (S2TT): The cascaded VIOLA model achieves a BLEU score of 55.85, only slightly lower than Fbank-based cascaded AED models, with a significant reduction in parameters.
  • Zero-Shot Text-to-Speech (TTS): VIOLA (18L) shows improved speaker similarity and speech naturalness compared to VALL-E X, demonstrating strong in-context learning for TTS.
  • Zero-Shot Cross-Lingual TTS (ZH→EN TTS): VIOLA (18L) achieves better average SS and BLEU scores than VALL-E X, indicating its effectiveness in cross-lingual synthesis.
  • Zero-Shot Speech-to-Speech (S2ST): VIOLA (18L) balances performance across ASR, MT, and TTS, achieving competitive SS, BLEU, and naturalness scores.

Limitations and Future Work

The authors acknowledge several limitations:

  • Supervised Learning Dependency: VIOLA is trained solely on supervised data, leaving potential untapped performance gains from unsupervised data like large text corpora or unlabeled speech.
  • In-Context Learning Scope: The in-context learning capability is currently demonstrated primarily for speech synthesis, not for all speech processing tasks.
  • Cascaded Inference: For S2TT and S2ST tasks, VIOLA currently relies on cascaded inference methods, lacking end-to-end capability.

Future work could explore leveraging unsupervised learning, extending in-context learning to other tasks, and developing end-to-end models for cross-modal speech tasks.

Summary updated

BibTeX
@article{wang2024viola,
  author = {Tianrui Wang and Long Zhou and Ziqiang Zhang and Yu Wu and Shujie Liu and Yashesh Gaur and Zhuo Chen and Jinyu Li and Furu Wei},
  title = {{VioLA: Conditional Language Models for Speech Recognition, Synthesis, and Translation}},
  journal = {IEEE ACM Trans. Audio Speech Lang. Process.},
  year = {2024},
  url = {https://openreview.net/forum?id=vejZxFftVW},
}
Figure