Sequence Prediction with Unlabeled Data by Reward Function Learning

Lijun Wu, Li Zhao, Tao Qin, Jianhuang Lai, Tie-Yan Liu

Introduction

Sequence-to-sequence models have become the backbone of modern natural language processing, powering applications from machine translation to text summarization. Traditionally, these models are trained using Maximum Likelihood Estimation (MLE), which optimizes the probability of the next token given the previous ground-truth tokens. However, MLE suffers from two fundamental flaws: exposure bias—where the model struggles when its own generated tokens deviate from the training distribution—and metric mismatch, where word-level optimization does not necessarily correlate with sequence-level quality metrics like BLEU or ROUGE.

Reinforcement Learning (RL) offers a solution by optimizing sequence-level rewards directly. Yet, standard RL algorithms like REINFORCE typically require a ground-truth reference to calculate a reward, limiting their application to scarce labeled datasets. This paper proposes a novel framework that enables RL to utilize vast amounts of unlabeled data by learning a secondary reward network to estimate sequence quality.

The Reward Function Learning Framework

The core innovation of this work is the introduction of a Reward Network that acts as a proxy for traditional evaluation metrics. Unlike standard metrics that require a reference sequence ($Y$) to evaluate a prediction ($\hat{Y}$), this learned reward function takes only the source sequence ($X$) and the predicted sequence ($\hat{Y}$) as inputs.

Architecture and Mechanism

The reward network is designed as an RNN-based architecture equipped with an attention mechanism. It is trained to map the pair $(X, \hat{Y})$ to a scalar value that approximates the reward the sequence would receive if a ground-truth reference were available. By training this network on labeled data to mimic metrics like BLEU or ROUGE, it develops the ability to "judge" the quality of translations or summaries based solely on the source context.

Overcoming Data Sparsity

In the vast space of possible sequences, most random outputs yield a reward of zero. To ensure the reward network provides a useful supervision signal, the authors employ a strategy focused on the Biased Data Distribution. The reward network is specifically trained on the distribution of sequences currently being generated by the policy model. As the policy improves, the reward network is updated to distinguish between increasingly subtle differences in quality, effectively "leveling up" alongside the generator.

The Training Loop

The training process follows an alternating cycle:

  1. Reward Estimation: The reward network is trained on labeled data to minimize the squared error between its predictions and the actual sequence-level metrics.
  2. Policy Optimization: The main sequence-to-sequence model (the policy) processes unlabeled data. The reward network generates "pseudo-rewards" for these outputs, which are then used to update the policy via RL gradients.

Experimental Evaluation

The researchers evaluated the framework on two benchmark tasks to test its versatility across different sequence lengths and objectives.

Machine Translation

Using the IWSLT 2014 German-English dataset, the authors combined 153k labeled sentence pairs with an equivalent amount of unlabeled source sentences from the IWSLT 2015 set. The proposed method achieved a 22.35 BLEU score, significantly outperforming the standard REINFORCE algorithm (21.35) and a strong semi-supervised baseline (21.65).

Text Summarization

For summarization, the authors utilized the Gigaword Corpus, treating the first sentence of an article as the source and the headline as the target. With 189k labeled pairs and 189k unlabeled articles, the model reached a 13.21 ROUGE-2 score. This represents a substantial improvement over the MLE baseline (10.22) and standard RL (12.87), demonstrating that the learned reward signal remains effective even in tasks with higher compression ratios.

Key Insights and Robustness

A critical finding of the study is the importance of the hyperparameter $\alpha$, which scales the pseudo-rewards. This allows the system to balance the high-confidence signal from labeled data with the estimated signal from unlabeled data. Furthermore, the authors conducted ablation studies replacing the learned reward with random signals; the resulting performance drop confirmed that the reward network was indeed capturing meaningful semantic and structural quality rather than providing arbitrary feedback.

Limitations and Future Work

While the framework successfully bridges the gap between labeled and unlabeled data, the authors identify several avenues for refinement:

  • Reward Complexity: Predicting a scalar from a source-target pair is inherently difficult. Future iterations could incorporate pre-trained language models or external knowledge bases (like dictionaries) to provide a more nuanced critique.
  • Uncertainty Quantification: The current model provides a point estimate for rewards. Incorporating confidence intervals could allow the policy to weight feedback more heavily when the reward network is certain of its judgment.
  • Task Expansion: Extending this approach to open-ended generation, such as dialogue or image captioning, remains a promising frontier where human-aligned reward functions are particularly valuable.

Conclusion

By learning to estimate rewards without ground-truth references, this research provides a scalable path for applying Reinforcement Learning to unlabeled data. The results in translation and summarization suggest that a learned "critic" can effectively guide sequence models toward better performance, mitigating the limitations of MLE and the data-scarcity constraints of traditional RL.

Summary updated

BibTeX
@inproceedings{wu2017sequence,
  author = {Lijun Wu and Li Zhao and Tao Qin and Jianhuang Lai and Tie-Yan Liu},
  title = {{Sequence Prediction with Unlabeled Data by Reward Function Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/432},
}
Figure