Autoregressive Text Generation Beyond Feedback Loops

Florian Schmidt, Stephan Mandt, Thomas Hofmann

Abstract: Florian Schmidt, Stephan Mandt, Thomas Hofmann. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).

2019.

Introduction: The Feedback Loop Problem

Most modern text generators, such as RNNs or Transformers, rely on an autoregressive feedback loop. To predict the next token, these models feed the previously generated word back into their internal hidden state. While effective, this architecture suffers from exposure bias: during training, the model is "teacher-forced" with ground-truth data, but at inference, it must rely on its own potentially erroneous predictions. A single mistake can derail the hidden state, leading to a "death spiral" of increasingly nonsensical text.

This paper investigates whether this feedback loop is strictly necessary and proposes a novel architecture that decouples the hidden state's evolution from previous word choices.

Proposed Method: Decoupling with SSM+CRF

The authors introduce a "middle ground" approach called SSM+CRF. This model separates global sentence structure from local word correlations:

  1. Latent State Space Model (SSM): The hidden states ($h_t$) evolve independently of the specific words generated. This ensures the "global plan" of the sentence remains robust to sampling noise.
  2. CRF Observation Model: To maintain coherence, the model uses a Conditional Random Field (CRF) to score word sequences. This allows for explicit modeling of pairwise interactions between adjacent words (bigrams) without feeding them back into the latent state.
Comparison of architectures: (left) non-autoregressive SSM, (middle) proposed SSM+CRF with local dependencies, and (right) the globally normalized sequence view.

By using global normalization over the entire sequence rather than local normalization at each step, the model also avoids label bias, a common issue where models favor states with fewer outgoing transitions.

Efficiency: Factorizing the Transition Matrix

A standard CRF over a large vocabulary $V$ is computationally prohibitive, as the transition matrix scales at $O(V^2)$. To make the model practical, the authors factorize the transition matrix using $d$-dimensional word embeddings. This reduces the complexity to $O(dV)$, making it comparable in efficiency to a standard softmax layer used in traditional RNNs.

Empirical Evaluation

The model was evaluated on unconditional generation using the SNLI (Stanford Natural Language Inference) dataset. By focusing on short, grammatically simple sentences without input context, the researchers could isolate the model's intrinsic ability to generate coherent language.

Key Results and Insights

The SSM+CRF was compared against standard RNNs (DRNN) and SeqGAN. Key findings include:

  • Fluency: The SSM+CRF significantly outperformed the non-autoregressive SSM baseline and surpassed the standard RNN in bigram perplexity.
  • Diversity and Stability: The model demonstrated exceptional stability compared to GAN-based approaches. Most notably, it achieved a repetition rate ($\rho_{REP}$) of 0.35%, which is remarkably close to the human "Oracle" rate of 0.17%. In contrast, SeqGAN and basic SSMs showed much higher repetition (up to 9%).
  • Robustness: By removing the feedback loop, the hidden state trajectory focuses on the latent meaning rather than specific word noise, leading to more consistent global structure.

Conclusion and Future Work

The SSM+CRF demonstrates that a feedback loop is not the only way to achieve high-quality text generation. While the current model focuses on pairwise (bigram) interactions, it provides a strong foundation for more robust generative models. Future work may explore more complex CRF structures to capture longer-distance dependencies or scaling the approach to even larger, more diverse corpora.

Summary updated

BibTeX
@inproceedings{schmidt2019autoregressive,
  author = {Florian Schmidt and Stephan Mandt and Thomas Hofmann},
  title = {{Autoregressive Text Generation Beyond Feedback Loops}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  url = {https://openreview.net/forum?id=T5WAs10faVr},
}
Figure