Saved in:
Bibliographic Details
Main Authors: Liu, Pangpang, Shi, Chengchun, Sun, Will Wei
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.02504
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910768164765696
author Liu, Pangpang
Shi, Chengchun
Sun, Will Wei
author_facet Liu, Pangpang
Shi, Chengchun
Sun, Will Wei
contents Aligning large language models (LLMs) with human preferences is critical to recent advances in generative artificial intelligence. Reinforcement learning from human feedback (RLHF) is widely applied to achieve this objective. A key step in RLHF is to learn the reward function from human feedback. However, human feedback is costly and time-consuming, making it essential to collect high-quality conversation data for human teachers to label. Additionally, different human teachers have different levels of expertise. It is thus critical to query the most appropriate teacher for their opinions. In this paper, we use offline reinforcement learning (RL) to formulate the alignment problem. Motivated by the idea of $D$-optimal design, we first propose a dual active reward learning algorithm for the simultaneous selection of conversations and teachers. Next, we apply pessimistic RL to solve the alignment problem, based on the learned reward estimator. Theoretically, we show that the reward estimator obtained through our proposed adaptive selection strategy achieves minimal generalized variance asymptotically, and prove that the sub-optimality of our pessimistic policy scales as $O(1/\sqrt{T})$ with a given sample budget $T$. Through simulations and experiments on LLMs, we demonstrate the effectiveness of our algorithm and its superiority over state-of-the-arts.
format Preprint
id arxiv_https___arxiv_org_abs_2410_02504
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Dual Active Learning for Reinforcement Learning from Human Feedback
Liu, Pangpang
Shi, Chengchun
Sun, Will Wei
Machine Learning
Aligning large language models (LLMs) with human preferences is critical to recent advances in generative artificial intelligence. Reinforcement learning from human feedback (RLHF) is widely applied to achieve this objective. A key step in RLHF is to learn the reward function from human feedback. However, human feedback is costly and time-consuming, making it essential to collect high-quality conversation data for human teachers to label. Additionally, different human teachers have different levels of expertise. It is thus critical to query the most appropriate teacher for their opinions. In this paper, we use offline reinforcement learning (RL) to formulate the alignment problem. Motivated by the idea of $D$-optimal design, we first propose a dual active reward learning algorithm for the simultaneous selection of conversations and teachers. Next, we apply pessimistic RL to solve the alignment problem, based on the learned reward estimator. Theoretically, we show that the reward estimator obtained through our proposed adaptive selection strategy achieves minimal generalized variance asymptotically, and prove that the sub-optimality of our pessimistic policy scales as $O(1/\sqrt{T})$ with a given sample budget $T$. Through simulations and experiments on LLMs, we demonstrate the effectiveness of our algorithm and its superiority over state-of-the-arts.
title Dual Active Learning for Reinforcement Learning from Human Feedback
topic Machine Learning
url https://arxiv.org/abs/2410.02504