SpeechAlign: Aligning Speech Generation to Human Preferences

Dong Zhang, Zhaowei Li, Shimin Li, Xin Zhang, Pengyu Wang, Yaqian Zhou, Xipeng Qiu

Introduction

Modern speech language models (SLMs) have significantly advanced the field of zero-shot text-to-speech (TTS) by utilizing hierarchical architectures. These systems typically employ an Autoregressive (AR) model to generate an initial layer of discrete audio tokens (codecs) from text, followed by a Non-Autoregressive (NAR) model that fills in remaining layers to produce high-fidelity audio. Despite their success, these models often suffer from a performance bottleneck known as the "distribution gap."

The Distribution Gap

The distribution gap arises from the discrepancy between training and inference. During training, the NAR model is optimized using "golden" (ground-truth) AR tokens. However, during actual inference, the NAR model receives "synthetic" tokens generated by the AR model. These synthetic tokens often contain subtle errors or distributional shifts.

Research using t-SNE visualizations has shown that golden and synthetic tokens form distinct, non-overlapping clusters. This means the NAR model is frequently asked to process data unlike anything it encountered during training, leading to degraded speech quality, higher Word Error Rates (WER), and poor speaker similarity.

Methodology: The SpeechAlign Framework

SpeechAlign introduces an iterative self-improvement strategy to bridge this gap by applying Direct Preference Optimization (DPO) to discrete speech tokens.

Preference Dataset Construction

To avoid the high cost of manual human labeling, SpeechAlign utilizes a clever heuristic: it treats original "golden" codec tokens as the "preferred" response and the model’s own "synthetic" outputs as the "dis-preferred" response. Human verification has confirmed this proxy, with listeners preferring golden reconstructions 71% of the time.

Iterative Self-Improvement

The framework operates in a "self-play" style loop:

  1. Generation: The current AR model generates synthetic tokens.
  2. Comparison: These are paired with golden tokens to create a preference dataset.
  3. Optimization: The model is updated via DPO to favor the golden distribution.
  4. Iteration: The updated model generates higher-quality synthetic tokens, which are then used to create a more nuanced and "harder" preference dataset for the next round of training.

Experimental Setup

The researchers utilized LibriSpeech for primary training and supervised fine-tuning (SFT), constructing a preference dataset of 50,000 speech-text pairs. To evaluate zero-shot generalization, the VCTK dataset was used to test the model on speakers not seen during training.

Key Results and Insights

The iterative DPO approach (SpeechAlign-DPO-Iter3) consistently outperformed baseline SFT models across multiple dimensions:

  • Accuracy: On LibriSpeech, the WER dropped from 7.2% (baseline) to 6.0%.
  • Timbre Consistency: Speaker Similarity (SIM) improved from 0.87 to 0.90.
  • Generalization: On the VCTK dataset, the model achieved a WER of 7.9%, compared to the baseline's 8.8%.
  • Scalability: The technique proved effective even for smaller models (e.g., 130M parameters), showing that preference alignment is a robust method for distribution calibration regardless of model size.

Qualitative human evaluations further supported these metrics, with SpeechAlign models being preferred for their naturalness and expressiveness. The iterative process proved crucial, as performance continued to improve through the third iteration, suggesting that as the model improves, the training signal from its own errors becomes more refined.

Limitations and Future Directions

While SpeechAlign significantly improves speech generation, the authors identified several areas for future exploration:

  • Fine-Grained Rewards: Current signals treat entire sequences as preferred or dis-preferred. Future work could implement token-level rewards to address specific attributes like pitch, rhythm, or timbre.
  • NAR Alignment: This research focused primarily on the AR stage. Applying similar preference optimization to the NAR stage could further mitigate the distribution gap.
  • Data Quality: Initial findings suggest that the quality and difficulty of preference pairs are more impactful than the sheer volume of data, indicating a need for more sophisticated data selection strategies.

Summary updated

BibTeX
@inproceedings{zhang2024speechalign,
  author = {Dong Zhang and Zhaowei Li and Shimin Li and Xin Zhang and Pengyu Wang and Yaqian Zhou and Xipeng Qiu},
  title = {{SpeechAlign: Aligning Speech Generation to Human Preferences}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=SKCbZR8Pyd},
}
Figure