Introduction
Most modern text generation relies on autoregressive models, where a recurrent neural network (RNN) generates a sequence by feeding the word it just produced back into itself as input for the next step. While highly effective, this standard practice introduces two major issues:
- Exposure Bias: During training, the model is exposed to ground-truth words ("teacher forcing"). At test time, however, it must rely on its own potentially erroneous outputs. This discrepancy can lead to "drifting," where the model loses its way.
- Stochastic Confusion: In autoregressive models, a single source of randomness often has to handle both the high-level "plan" of the sequence and the low-level choice of the specific next token.
This paper introduces a non-autoregressive deep state space model for text generation that ditches this feedback loop. By combining deterministic transitions with independent noise sources and leveraging normalizing flows, the authors create a model that generates coherent word morphology while avoiding the systematic biases typical of traditional RNNs. They demonstrate that a sufficiently powerful state space model can cleanly separate global sequence uncertainty from local token uncertainty without needing autoregressive feedback.
Methods
The authors propose a Deep State Space Model (SSM) where the transition between states is governed by two components: a deterministic function of the previous state and an independent white noise source. Crucially, the transition function $F(h_t, \xi_t)$ does not see the previous word $w_{t-1}$.
Key technical innovations include:
- Two-Flow ELBO: To train the model using Variational Inference, the authors use separate "flows" (transition functions) for the generative model ($F_g$) and the inference model ($F_q$). These are coupled through the objective function, allowing the inference model to be more complex than the generative one.
- Normalizing Flows (TRIL): They utilize a specific family of invertible transformations called TRIL (lower-triangular matrices) to shape simple Gaussian noise into complex latent trajectories. This keeps the mathematics tractable while ensuring the model remains expressive.
- Importance-Weighted ELBO: Adapting the Importance Weighted Autoencoder (IWAE) approach to a sequential setting allows the inference network to "track" multiple potential paths the generative model might take, significantly improving training stability.
Datasets
The researchers evaluated their model on word morphology—the internal, character-by-character structure of words—using the BooksCorpus (a collection of ~1B tokens from unpublished novels). The vocabulary was restricted to 143,000 words with lengths between 2 and 12 characters. Alongside a standard 10% test-train split, they introduced a vocabulary-level split (holding out 10% of unique words entirely) to test how well the model generalizes to completely unseen word structures.
Key Insights
- Committing vs. Forgetting: The authors frame generation as a trade-off. The model must "commit" to global information (the overarching "plan" for the word) while "forgetting" local nuances that do not impact the future.
- Independence is Viable: Surprisingly, a non-autoregressive model can match or beat a standard GRU (Gated Recurrent Unit) on word generation. This suggests that the "latent trajectory" of the state space can carry all the necessary information to maintain coherence without a feedback loop.
- Entropy Dynamics: By inspecting Mutual Information, the researchers found that the noise injected at the beginning of a word is the most "informative." As the word progresses, the deterministic part of the state takes over, showing the model learns to set a trajectory and follow it.
Key Results
The proposed non-autoregressive model demonstrated strong performance, particularly when utilizing multiple layers of TRIL flows and importance sampling.
As shown in the table above, the best configuration (using two layers of TRIL flows and importance sampling $K=10$) achieved a test cross-entropy of 11.38, significantly outperforming the autoregressive GRU baseline (12.97). Furthermore, on the "unseen vocabulary" task, the proposed model maintained its lead over the baseline, suggesting it learns the underlying "rules" of English morphology better than simple character-level RNNs. Unlike standard RNNs where the hidden state is a "black box," the authors could explicitly measure how much each bit of noise contributed to the final output, providing a clearer look at the model's internal decision-making.
Limitations and Future Work
- Scale: The paper focuses on character-by-character word generation. Scaling this non-autoregressive approach to full sentences or paragraphs remains a significant challenge, as the "global information" required to maintain coherence over long sequences is much higher.
- Flow Stability: While the TRIL flows worked well, more complex flows like Real NVP were unstable in this sequential variational setting, indicating that the choice of flow architecture is highly sensitive.
- Computational Cost: Using importance sampling ($K=10$) improves results but increases the computational overhead during training compared to simpler models.
Summary updated