Introduction
Modern auto-regressive text generators often struggle with long-form coherence. By predicting the next token based solely on previous outputs, these models suffer from exposure bias—where small errors compound during inference—and a lack of global coherence, resulting in text that is locally fluent but semantically drifting. While Reinforcement Learning (RL) offers a path to optimize sequence-level goals, the rewards are typically sparse, often only available after a complete sentence is generated. This paper introduces a "guider network" designed to provide intermediate rewards and global structural guidance by modeling the distant future of a sentence.
Architecture: The Guider Network
The core innovation is a model-based imitation learning approach that incorporates a Guider Network. This network acts as a "look-ahead" mechanism, drawing inspiration from Model Predictive Control (MPC) in robotics.
As shown in the architecture diagram, the system consists of several key components:
- Feature Extraction: A CNN encoder extracts semantic features from the current generated prefix.
- The Guider: An RNN that takes these prefix features and predicts the features of the sentence $c$ steps into the future. By predicting features rather than exact words, the model receives a smoother and more learnable signal.
- Guided Generation: The decoder uses an attention-like mechanism to combine its internal hidden state with the Guider's future predictions. This ensures that each token choice is informed by the intended global structure.
Training with Intermediate Rewards
To overcome the sparse reward problem, the authors implement Feature-Matching Rewards. Instead of waiting for a final discriminator score, the generator receives intermediate feedback based on how well the features of its actual output match the "future" features predicted by the Guider.
The training process follows a two-phase approach:
- Pre-training: The model is initialized using Maximum Likelihood Estimation (MLE).
- Adversarial Fine-tuning: The system is refined using Policy Gradient RL. The total reward is a weighted combination of the intermediate feature-matching rewards and a final adversarial reward from a discriminator. This dual-reward structure anchors the model, preventing semantic drift during long sequences.
Experimental Results
The proposed model, GMGAN, was evaluated across unconditional text generation, image captioning, and non-parallel style transfer tasks.
On the Image COCO dataset, GMGAN demonstrated significant improvements in both quality and diversity. As seen in the results table, it achieved a Test-BLEU-2 of 0.949, outperforming established baselines like SeqGAN (0.820) and LeakGAN (0.922). Notably, it maintained better diversity (lower Self-BLEU scores) than LeakGAN, suggesting it is less prone to mode collapse.
In human evaluations on the EMNLP2017 WMT News dataset, GMGAN scored 3.89/5.0, closely approaching the real data score of 4.21. In style transfer tasks on the Yelp dataset, the model achieved a sentiment transfer accuracy of 92.7% while preserving content better than previous state-of-the-art methods.
Conclusion and Future Work
By modeling the environment in feature space and providing intermediate rewards, the Guider Network effectively mitigates the issues of sparse rewards and semantic inconsistency in adversarial text generation. While the approach introduces some computational overhead due to the per-step feature extraction and prediction, the gains in global coherence and quality are substantial. Future research may explore more sophisticated attention mechanisms within the Guider or different types of "future" signals to further enhance long-form text synthesis.
Summary updated