[Paper Review] Parallel Scheduled Sampling
This paper introduces Parallel Scheduled Sampling, a fully parallelizable technique that replicates the benefits of Scheduled Sampling—reducing train-test distribution shift in autoregressive models—while eliminating sequential bottlenecks. By generating model predictions in parallel and mixing them with ground-truth tokens using a learnable probability schedule, the method achieves state-of-the-art performance on image generation, summarization, and dialog tasks, with up to 20% lower FID and 13.8% higher IS than teacher-forcing.
Auto-regressive models are widely used in sequence generation problems. The output sequence is typically generated in a predetermined order, one discrete unit (pixel or word or character) at a time. The models are trained by teacher-forcing where ground-truth history is fed to the model as input, which at test time is replaced by the model prediction. Scheduled Sampling aims to mitigate this discrepancy between train and test time by randomly replacing some discrete units in the history with the model's prediction. While teacher-forced training works well with ML accelerators as the computation can be parallelized across time, Scheduled Sampling involves undesirable sequential processing. In this paper, we introduce a simple technique to parallelize Scheduled Sampling across time. Experimentally, we find the proposed technique leads to equivalent or better performance on image generation, summarization, dialog generation, and translation compared to teacher-forced training. In dialog response generation task, Parallel Scheduled Sampling achieves 1.6 BLEU score (11.5%) improvement over teacher-forcing while in image generation it achieves 20% and 13.8% improvement in Frechet Inception Distance (FID) and Inception Score (IS) respectively. Further, we discuss the effects of different hyper-parameters associated with Scheduled Sampling on the model performance.
Motivation & Objective
- Address the train-test discrepancy in autoregressive sequence generation, where teacher-forcing during training does not match autoregressive decoding at inference.
- Overcome the computational bottleneck of sequential processing in Scheduled Sampling, which limits scalability on long sequences and large models.
- Develop a fully parallelizable alternative to Scheduled Sampling that maintains its empirical benefits while enabling efficient training on modern ML accelerators.
- Demonstrate that the proposed method achieves superior or comparable performance to teacher-forcing and Scheduled Sampling across diverse sequence generation tasks, including image generation and dialog response modeling.
Proposed method
- Generate a full sequence of model predictions in parallel using ground-truth context, equivalent to a teacher-forcing forward pass.
- Apply a parallel mixing operation where each token at time step t is selected independently from either the ground-truth or the model’s predicted token based on a scheduled probability.
- Use a learnable mixing probability that increases over time, emulating the curriculum learning schedule of original Scheduled Sampling.
- Perform standard teacher-forcing training using the mixed sequence as input, enabling backpropagation through the entire sequence.
- Repeat the prediction and mixing steps multiple times to allow the model to converge toward a distribution close to true autoregressive decoding.
- Introduce a warm-up phase where teacher-forcing is used initially before transitioning to the mixed training regime to stabilize learning.
Experimental results
Research questions
- RQ1Can Scheduled Sampling be parallelized without sacrificing its ability to reduce train-test distribution shift in autoregressive models?
- RQ2Does the proposed parallelization technique maintain the performance gains of Scheduled Sampling while enabling efficient training on large-scale models?
- RQ3How do hyperparameters such as mixing probability and number of passes affect model performance across different sequence generation tasks?
- RQ4In what scenarios does Parallel Scheduled Sampling outperform teacher-forcing, and what are the limits of its effectiveness?
- RQ5Can the method be effectively applied to long-sequence tasks such as summarization and image generation where sequential Scheduled Sampling is infeasible?
Key findings
- Parallel Scheduled Sampling achieves a 20% improvement in Frechet Inception Distance (FID) and a 13.8% improvement in Inception Score (IS) on CIFAR-10 image generation compared to teacher-forcing.
- In dialog response generation, the method improves BLEU score by 1.6 points (11.5% relative improvement) over teacher-forcing.
- On the summarization task, Parallel Scheduled Sampling outperforms teacher-forcing with both beam search and greedy decoding on the base model, and with greedy decoding on the larger model.
- The method reduces training time to just 0.3% of that required for sequential Scheduled Sampling, making it practical for large models and long sequences.
- Despite strong gains on image and text tasks, no improvement was observed on machine translation (WMT 2014 English-German), possibly due to shorter sequence lengths.
- The approach is equivalent to Scheduled Sampling under specific hyperparameter settings, preserving the interpolation between teacher-forcing and full autoregressive decoding.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.