NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning the joint distribution of two sequences using little or no paired data

Soroosh Mariooryad, Matt Shannon, Siyuan Ma, Tom Bagby, David Kao, Daisy Stanton, Eric Battenberg, R. J. Skerry-RyanarXiv 2022

Abstract

We present a noisy channel generative model of two sequences, for example text and speech, which enables uncovering the association between the two modalities when limited paired data is available. To address the intractability of the exact model under a realistic data setup, we propose a variational inference approximation. To train this variational model with categorical data, we propose a KL encoder loss approach which has connections to the wake-sleep algorithm. Identifying the joint or conditional distributions by only observing unpaired samples from the marginals is only possible under certain conditions in the data distribution and we discuss under what type of conditional independence assumptions that might be achieved, which guides the architecture designs. Experimental results show that even tiny amount of paired data (5 minutes) is sufficient to learn to relate the two modalities (graphemes and phonemes here) when a massive amount of unpaired data is available, paving the path to adopting this principled approach for all seq2seq models in low data resource regimes.

Introduction

Modern AI for speech recognition (ASR) and text-to-speech (TTS) is incredibly hungry for paired data—recordings of people speaking specific, transcribed sentences. While we have nearly infinite amounts of "unpaired" data (books without audio and audio without transcripts), teaching a machine to associate the two without a "Rosetta Stone" is a fundamental challenge in unsupervised learning.

The core difficulty is identifiability: if you only see the marginal distributions (the set of all possible texts and the set of all possible sounds), how do you know which text belongs to which sound? Without constraints, a model might perfectly learn the statistics of speech and text separately but fail to find the correct mapping between them, or it might get stuck in local optima, such as mapping vowels to consonants.

Methodology

The authors propose a noisy channel generative model. Instead of just predicting text from speech (discriminative), they model the joint distribution $p(x, y)$ by factorizing it into a prior $p(x)$ and a decoder $p(y|x)$. Unlike GANs, where components compete, the generative model and the variational encoder here are cooperative: improving one improves the other.

Key technical innovations include:

  • KL Encoder Loss: Standard Variational Autoencoders (VAEs) use a "reparameterization trick" that doesn't work for discrete data like text. To fix this, the authors introduce a training procedure reminiscent of the "wake-sleep" algorithm. They minimize a KL divergence where the variational posterior (the encoder) appears in the second argument, making the training cooperative rather than adversarial.
  • Time Locality Constraint: To prevent the decoder from simply "ignoring" the input text and memorizing speech patterns, they restrict its power. By forcing the model to generate speech based only on local "glimpses" of the text (time locality), the model is incentivized to discover the actual mapping to explain the data. This "structural inducement" forces the math to find the cross-modal relationship as the only way to satisfy the objective function.
  • Temperature Adjustment: Sampling from the model at a lower temperature ($T=0.5$) during training was found to be crucial for stability, helping the model avoid compounding errors common in autoregressive sequences.

Experimental Setup

The researchers evaluated their approach on two main tasks:

  1. Substitution Ciphers: A synthetic task where the model must "break" a code where letters are swapped, using only a dictionary of English and the enciphered text (zero paired data).
  2. LibriTTS: A large-scale corpus of English speech. They used 166 hours of data, but crucially, they restricted the "paired" portion to tiny fractions (ranging from 5 minutes to 10 hours) to simulate low-resource languages.

Key Results

The most striking insight is that while zero-paired learning is theoretically possible, it is highly sensitive to initialization. However, adding just 5 minutes of paired data acts as a "seed" that allows the model to escape local optima and leverage the massive unpaired corpus effectively.

Phoneme and Character Error Rates (PER/CER) for supervised-only vs. semi-supervised models across varying amounts of paired data.

On Grapheme-to-Phoneme (g2p) tasks with only 5 minutes of paired data:

  • The supervised-only baseline was nearly useless, with a ~50% Phoneme Error Rate (PER).
  • The proposed semi-supervised model achieved a 9.4% PER.

Furthermore, the model demonstrated the ability to correctly predict the spelling of rare names (like "Buck Mulligan") that appeared in the unpaired text and unpaired speech but were never seen together in the paired training set.

Conclusion and Future Work

While the results are impressive for categorical data (phonemes and graphemes), moving to raw audio (continuous signals) is much harder. Continuous signals require extremely accurate density modeling; if the model's "guess" at what speech sounds like is slightly off, the whole mathematical framework can become unbalanced. Future work involves applying this to end-to-end ASR and TTS by using "tokenized" speech representations, which would allow this framework to handle raw audio while maintaining the stability of discrete sequence modeling.

Summary updated

BibTeX
@misc{mariooryad2022learning,
  author = {Soroosh Mariooryad and Matt Shannon and Siyuan Ma and Tom Bagby and David Kao and Daisy Stanton and Eric Battenberg and R. J. Skerry-Ryan},
  title = {{Learning the joint distribution of two sequences using little or no paired data}},
  year = {2022},
  eprint = {2212.03232},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.03232},
}
Figure