Teacher Forcing Recovers Reward Functions for Text Generation

Yongchang Hao, Yuxin Liu, Lili Mou
10/17/2022
cs.LGcs.AIcs.CL
rl

Official code: MANGA-UOFA/LMReward (31 stars, Python, last commit 2023-05-27).

Abstract

Reinforcement learning (RL) has been widely used in text generation to alleviate the exposure bias issue or to utilize non-parallel datasets. The reward function plays an important role in making RL training successful.

Show full abstract

However, previous reward functions are typically task-specific and sparse, restricting the use of RL. In our work, we propose a task-agnostic approach that derives a step-wise reward function directly from a model trained with teacher forcing. We additionally propose a simple modification to stabilize the RL training on non-parallel datasets with our induced reward function. Empirical results show that our method outperforms self-training and reward regression methods on several text generation tasks, confirming the effectiveness of our reward function.

View on arXivView PDF

Code Implementations(1)

The official repo for the paper "Teacher Forcing Recovers Reward Functions for Text Generation"

311Python, ShellOct 7, 20223 years ago

Similar Papers

Cite this paper

@article{hao2022teacher,
  title  = {Teacher Forcing Recovers Reward Functions for Text Generation},
  author = {Yongchang Hao and Yuxin Liu and Lili Mou},
  year   = {2022},
  eprint = {2210.08708},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.08708}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.08708.svg)](https://codeofpaper.com/paper/2210.08708)

Discussion