Sequence Generation with Optimal-Transport-Enhanced Reinforcement Learning

Liqun Chen, Ke Bai, Chenyang Tao, Yizhe Zhang, Guoyin Wang, Wenlin Wang, Ricardo Henao, Lawrence Carin

Introduction

Sequence generation is a cornerstone of modern natural language processing (NLP), powering applications from machine translation to abstractive summarization. However, traditional training methods often struggle with the transition from local word-level prediction to global sequence-level optimization. Researchers from Duke University presented a novel solution at AAAI 2020: OTRL (Optimal-Transport-Enhanced Reinforcement Learning). By integrating Optimal Transport (OT) as a semantic regularizer, OTRL stabilizes the reinforcement learning (RL) process, leading to more robust models and state-of-the-art performance.

The Challenges of Sequence Generation

Most sequence models are trained using Maximum Likelihood Estimation (MLE), which focuses on predicting the next token given the ground truth. This approach suffers from exposure bias: during inference, the model generates its own context, and small errors can compound, leading to "gibberish" outputs.

Reinforcement Learning (RL) offers a potential fix by optimizing for global metrics like BLEU or ROUGE. However, RL in text generation faces three major hurdles:

  1. High Variance: Minor model updates can lead to drastic changes in rewards.
  2. Sparse Rewards: Standard metrics are often binary (match/no-match), failing to reward semantically similar but lexically different outputs.
  3. Brittleness: The transition from MLE to RL often causes a sudden performance collapse as the model enters an unguided exploration phase.

The OTRL Framework

The OTRL framework addresses these issues by introducing a hybrid loss function: $$\mathcal{L} = \lambda_1\mathcal{L}_{MLE} + \lambda_2\mathcal{L}_{OT} + \lambda_3\mathcal{L}_{RL}$$

Optimal Transport as a Semantic Bridge

The core innovation is the use of Optimal Transport (OT) to provide a "soft" semantic signal. Unlike rigid n-gram matching, OT calculates the cost of transforming the distribution of generated word embeddings into the reference distribution. By leveraging word embeddings, the model recognizes that "kitten" is semantically close to "cat," providing a smoother gradient for learning than traditional RL rewards.

Training Stability and Annealed Scheduling

To manage the transition between training objectives, the authors employ an annealed scheduling strategy. The model first learns basic syntax via MLE, then introduces OT to expand the semantic exploration space safely, and finally incorporates RL (Self-Critic) for fine-tuning on specific evaluation metrics.

Training stability comparison. OTRL (blue) mitigates the sharp performance dip typically observed when transitioning to RL training compared to standard Self-Critical (SC) methods (red).

This staged approach solves the "switch problem." As shown in the training curves, the inclusion of OT acts as a safety net, grounding the model's exploration in semantic meaning and preventing the performance "dip" common in pure RL transitions.

Experimental Evaluation

The authors evaluated OTRL across three diverse tasks: machine translation (IWSLT), abstractive summarization (CNN/Daily Mail, Gigaword), and image captioning (MS-COCO).

In the CNN/Daily Mail summarization task, OTRL demonstrated significant improvements over strong baselines, including the Pointer-Generator + Coverage model.

Performance comparison on the CNN/Daily Mail summarization task. OTRL achieves superior results across all ROUGE metrics.

Key results include:

  • Summarization: A state-of-the-art ROUGE-L score of 38.86 on CNN/Daily Mail.
  • Translation: An improvement to 28.13 BLEU on EN-DE translation, up from an MLE baseline of 26.44.
  • Image Captioning: Consistent gains across CIDEr and BLEU metrics.

Discussion and Key Insights

The success of OTRL stems from its ability to stabilize the "exploration boundary." By allowing for dynamic matching, the OT component ensures that the necessary concepts are present in the generated sequence, even if they are not in the exact position of the reference. This flexibility reduces the variance of the RL signal and prevents "mode-dropping," where a model collapses onto a narrow set of safe outputs.

Conclusion and Future Work

OTRL represents a significant step forward in making RL practical for sequence generation. While the current implementation focuses on 1-gram matching due to the computational complexity of higher-order n-grams, it provides a robust framework for future enhancements. Future research may explore more efficient ways to incorporate structural and syntactic constraints into the OT framework, further bridging the gap between local prediction and global semantic coherence.

Summary updated

BibTeX
@inproceedings{chen2020sequence,
  author = {Liqun Chen and Ke Bai and Chenyang Tao and Yizhe Zhang and Guoyin Wang and Wenlin Wang and Ricardo Henao and Lawrence Carin},
  title = {{Sequence Generation with Optimal-Transport-Enhanced Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6249},
}
Figure