[Paper Review] Text Generation by Learning from Demonstrations
This paper proposes GOLD (Generation by Off-policy Learning from Demonstrations), an offline reinforcement learning method that trains text generation models by learning from reference (demonstration) sequences using importance weighting to improve generation quality. By aligning training with human evaluation through a quality-based reward, GOLD reduces exposure bias and outperforms MLE and policy gradient methods in both automatic metrics and human evaluations across summarization, question generation, and machine translation.
Current approaches to text generation largely rely on autoregressive models and maximum likelihood estimation. This paradigm leads to (i) diverse but low-quality samples due to mismatched learning objective and evaluation metric (likelihood vs. quality) and (ii) exposure bias due to mismatched history distributions (gold vs. model-generated). To alleviate these problems, we frame text generation as an offline reinforcement learning (RL) problem with expert demonstrations (i.e., the reference), where the goal is to maximize quality given model-generated histories. We propose GOLD (generation by off-policy learning from demonstrations): an easy-to-optimize algorithm that learns from the demonstrations by importance weighting. Intuitively, GOLD upweights confident tokens and downweights unconfident ones in the reference during training, avoiding optimization issues faced by prior RL approaches that rely on online data collection. According to both automatic and human evaluation, models trained by GOLD outperform those trained by MLE and policy gradient on summarization, question generation, and machine translation. Further, our models are less sensitive to decoding algorithms and alleviate exposure bias.
Motivation & Objective
- To address the misalignment between training objectives (maximum likelihood) and evaluation metrics (human-rated quality) in text generation.
- To mitigate exposure bias caused by training on gold prefixes but inferring with model-generated ones.
- To improve generation quality by learning from expert demonstrations without online interaction.
- To develop a stable, off-policy RL method that avoids optimization issues in prior RL-based text generation approaches.
- To create models that are robust to decoding strategies and less sensitive to length-related degradation.
Proposed method
- Formulates text generation as an offline reinforcement learning problem using reference sequences as expert demonstrations.
- Applies off-policy policy gradient with importance weighting to reweight training examples based on model confidence.
- Uses a reward function approximating human judgment of sequence quality, estimating how likely a human would generate each token.
- Trains the generator to maximize expected reward over trajectories induced by model-generated histories.
- Employs importance weighting to upweight high-confidence tokens and downweight low-confidence ones in the reference.
- Integrates the method into transformer-based models for end-to-end training on summarization, question generation, and translation tasks.
Experimental results
Research questions
- RQ1Can offline reinforcement learning from expert demonstrations improve text generation quality beyond maximum likelihood estimation?
- RQ2Does the proposed method reduce exposure bias and improve robustness to decoding strategies?
- RQ3Can importance weighting in off-policy RL stabilize training and improve performance compared to online policy gradient methods?
- RQ4To what extent does the method improve human-rated quality and automatic metrics in diverse text generation tasks?
- RQ5Does the model maintain high quality across longer generation lengths, avoiding degradation due to error compounding?
Key findings
- GOLD outperforms MLE and policy gradient fine-tuning on both automatic metrics (BLEU, ROUGE) and human evaluations across summarization, question generation, and machine translation.
- In human pairwise comparisons, 44.3% of GOLD-generated questions were rated better than MLE-generated ones, compared to 23.0% for MLE, with 32.8% tied.
- Human evaluations showed that GOLD-generated summaries were closer to reference summaries than MLE-generated ones, especially in semantic fidelity.
- GOLD models showed reduced sensitivity to decoding algorithms, indicating improved robustness.
- The method alleviated exposure bias, maintaining consistent output quality even as generation length increased.
- Importance weighting effectively stabilized training and improved sample efficiency by focusing on high-confidence reference tokens.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.