ZYN: Zero-Shot Reward Models with Yes-No Questions for RLAIF

Victor Gallego
8/11/2023
cs.CLcs.AI

Official code: vicgalle/zero-shot-reward-models (34 stars, MIT, last commit 2023-08-15).

Abstract

In this work, we address the problem of directing the text generation of a language model (LM) towards a desired behavior, aligning the generated text with the preferences of the human operator. We propose using another, instruction-tuned language model as a critic reward model in a zero-shot way thanks to the prompt of a Yes-No question that represents the user preferences, without requiring further labeled data. This zero-shot reward model provides the learning signal to further fine-tune the base LM using Reinforcement Learning from AI Feedback (RLAIF); yet our approach is also compatible in other contexts such as quality-diversity search. Extensive evidence of the capabilities of the proposed ZYN framework is provided through experiments in different domains related to text generation, including detoxification; optimizing sentiment of movie reviews, or any other attribute; steering the opinion about a particular topic the model may have; and personalizing prompt generators for text-to-image tasks. Code available at \url{https://github.com/vicgalle/zero-shot-reward-models/}.

View on arXivView PDF

Code Implementations(1)

MIT

ZYN: Zero-Shot Reward Models with Yes-No Questions

348PythonMar 3, 20233 years agoMIT
llmreinforcement-learningreward-modelsrlaifrlhf+2 more

Similar Papers

Cite this paper

@article{gallego2023zyn,
  title  = {ZYN: Zero-Shot Reward Models with Yes-No Questions for RLAIF},
  author = {Victor Gallego},
  year   = {2023},
  eprint = {2308.06385},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.06385v2}
}

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/2308.06385.svg)](https://codeofpaper.com/paper/2308.06385)

Discussion