Skip to main content
QUICK REVIEW

[Paper Review] Learning to Generate Better Than Your LLM

Jonathan Chang, Kianté Brantley|arXiv (Cornell University)|Jun 20, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper proposes Reinforcement Learning with Guided Feedback (RLGF), a framework that enhances LLM fine-tuning by using a pre-trained guide LLM to provide dynamic, expert-like feedback during policy optimization. By leveraging the guide LLM to generate initial text spans or complete partial generations, RLGF improves sample efficiency and performance beyond standard PPO and supervised fine-tuning on IMDB, CommonGen, and TL;DR tasks, achieving superior results across multiple metrics including BLEU and human preference scores.

ABSTRACT

Reinforcement learning (RL) has emerged as a powerful paradigm for fine-tuning Large Language Models (LLMs) for text generation. In particular, recent LLMs such as ChatGPT and GPT-4 can engage in fluent conversations with users after finetuning with RL. Capitalizing on key properties of text generation, we seek to investigate RL algorithms beyond general purpose algorithms like Proximal Policy Optimization (PPO). In particular, we extend RL algorithms to allow them to interact with a dynamic black-box guide LLM and propose RL with guided feedback (RLGF), a suite of RL algorithms for LLM fine-tuning. We provide two ways for the guide LLM to interact with the LLM to be optimized for maximizing rewards. The guide LLM can generate text which serves as additional starting states for the RL optimization procedure. The guide LLM can also be used to complete the partial sentences generated by the LLM that is being optimized, treating the guide LLM as an expert to imitate and surpass eventually. We experiment on the IMDB positive sentiment, CommonGen, and TL;DR summarization tasks. We show that our RL algorithms achieve higher performance than supervised learning (SL) and the RL baseline PPO, demonstrating the benefit of interaction with the guide LLM. On both CommonGen and TL;DR, we not only outperform our SL baselines but also improve upon PPO across a variety of metrics beyond the one we optimized for. Our code can be found at https://github.com/Cornell-RL/tril.

Motivation & Objective

  • Address the metric and distributional mismatch between supervised fine-tuning and real-world text generation by using reinforcement learning to directly optimize task-specific rewards.
  • Overcome the sample inefficiency and local minima issues of vanilla policy gradient methods like PPO in natural language generation.
  • Leverage the generalization capabilities of pre-trained LLMs as dynamic guide policies to reduce the search space and accelerate convergence in RL-based fine-tuning.
  • Explore two distinct modes of interaction between the policy and guide LLM: generating initial state sequences and completing partial generations to imitate and surpass expert behavior.
  • Demonstrate that RLGF can learn policies that surpass both the guide LLM and standard RL baselines across multiple downstream generation tasks.

Proposed method

  • Introduce a novel RL framework, RL with Guided Feedback (RLGF), where a pre-trained guide LLM acts as a black-box expert to provide feedback during policy training.
  • Use the guide LLM to generate partial or full text sequences that serve as starting states for the RL agent’s rollouts, enriching the initial state distribution.
  • Use the guide LLM to complete partial generations from the target policy, enabling the RL agent to learn from expert completions and aim to surpass them.
  • Integrate the guide LLM’s feedback into a policy gradient framework, allowing the target policy to optimize for a predefined reward function while benefiting from structured, high-quality supervision.
  • Implement two variants of RLGF: one that uses the guide LLM to seed rollouts (state-based guidance), and another that uses it to complete partial outputs (completion-based guidance).
  • Train the target policy using standard policy gradient algorithms (e.g., PPO) but with experience collected via interaction with the guide LLM, enabling more efficient and effective learning.

Experimental results

Research questions

  • RQ1Can a pre-trained LLM serve as an effective guide policy to improve the sample efficiency and performance of RL-based LLM fine-tuning?
  • RQ2Does using a guide LLM to generate initial text spans or complete partial generations lead to better policy optimization than standard RL or supervised fine-tuning?
  • RQ3Can RLGF surpass not only the supervised fine-tuned baseline but also the performance of the guide LLM itself on downstream generation tasks?
  • RQ4How does RLGF perform across multiple metrics beyond the primary reward objective, especially in zero-shot and few-shot evaluation settings?
  • RQ5To what extent does the choice of guide LLM (e.g., SFT+nucleus sampled model) affect the final performance of the optimized policy?

Key findings

  • RLGF outperforms both supervised fine-tuning and standard PPO across all evaluated tasks—IMDB, CommonGen, and TL;DR—on multiple metrics including BLEU, ROUGE, and human preference scores.
  • On the CommonGen and TL;DR tasks, RLGF achieves higher performance than PPO even on metrics not directly optimized for, indicating improved generalization and robustness.
  • The policy fine-tuned with RLGF surpasses the performance of the guide LLM itself, demonstrating that the framework enables the agent to learn beyond the capabilities of the initial expert.
  • The use of the guide LLM to generate initial state sequences significantly improves training stability and convergence speed compared to random or static initialization.
  • Completion-based guidance, where the guide LLM completes partial outputs, leads to more coherent and contextually accurate generations, especially in long-form and complex reasoning tasks.
  • The framework is flexible and modular, allowing the use of various pre-trained LLMs or even human experts as the guide policy, with minimal architectural changes to the RL pipeline.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.