RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yang, Kevin, Klein, Dan, Celikyilmaz, Asli, Peng, Nanyun, Tian, Yuandong
Format: Preprint
Veröffentlicht: 2023
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911798969499648
author Yang, Kevin
Klein, Dan
Celikyilmaz, Asli
Peng, Nanyun
Tian, Yuandong
author_facet Yang, Kevin
Klein, Dan
Celikyilmaz, Asli
Peng, Nanyun
Tian, Yuandong
contents We propose Reinforcement Learning from Contrastive Distillation (RLCD), a method for aligning language models to follow principles expressed in natural language (e.g., to be more harmless) without using human feedback. RLCD creates preference pairs from two contrasting model outputs, one using a positive prompt designed to encourage following the given principles, and one using a negative prompt designed to encourage violating them. Using two different prompts causes model outputs to be more differentiated on average, resulting in cleaner preference labels in the absence of human annotations. We then use the preference pairs to train a preference model, which is in turn used to improve a base unaligned language model via reinforcement learning. Empirically, RLCD outperforms RLAIF (Bai et al., 2022b) and context distillation (Huang et al., 2022) baselines across three diverse alignment tasks--harmlessness, helpfulness, and story outline generation--and when using both 7B and 30B model scales for simulating preference data.
format Preprint
id arxiv_https___arxiv_org_abs_2307_12950
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment
Yang, Kevin
Klein, Dan
Celikyilmaz, Asli
Peng, Nanyun
Tian, Yuandong
Computation and Language
Artificial Intelligence
We propose Reinforcement Learning from Contrastive Distillation (RLCD), a method for aligning language models to follow principles expressed in natural language (e.g., to be more harmless) without using human feedback. RLCD creates preference pairs from two contrasting model outputs, one using a positive prompt designed to encourage following the given principles, and one using a negative prompt designed to encourage violating them. Using two different prompts causes model outputs to be more differentiated on average, resulting in cleaner preference labels in the absence of human annotations. We then use the preference pairs to train a preference model, which is in turn used to improve a base unaligned language model via reinforcement learning. Empirically, RLCD outperforms RLAIF (Bai et al., 2022b) and context distillation (Huang et al., 2022) baselines across three diverse alignment tasks--harmlessness, helpfulness, and story outline generation--and when using both 7B and 30B model scales for simulating preference data.
title RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2307.12950