Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Mudgal, Sidharth, Lee, Jong, Ganapathy, Harish, Li, YaGuang, Wang, Tao, Huang, Yanping, Chen, Zhifeng, Cheng, Heng-Tze, Collins, Michael, Strohman, Trevor, Chen, Jilin, Beutel, Alex, Beirami, Ahmad
Format: Preprint
Veröffentlicht: 2023
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2310.17022
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913375728959488
author Mudgal, Sidharth
Lee, Jong
Ganapathy, Harish
Li, YaGuang
Wang, Tao
Huang, Yanping
Chen, Zhifeng
Cheng, Heng-Tze
Collins, Michael
Strohman, Trevor
Chen, Jilin
Beutel, Alex
Beirami, Ahmad
author_facet Mudgal, Sidharth
Lee, Jong
Ganapathy, Harish
Li, YaGuang
Wang, Tao
Huang, Yanping
Chen, Zhifeng
Cheng, Heng-Tze
Collins, Michael
Strohman, Trevor
Chen, Jilin
Beutel, Alex
Beirami, Ahmad
contents KL-regularized reinforcement learning (RL) is a popular alignment framework to control the language model responses towards high reward outcomes. We pose a tokenwise RL objective and propose a modular solver for it, called controlled decoding (CD). CD exerts control through a separate prefix scorer module, which is trained to learn a value function for the reward. The prefix scorer is used at inference time to control the generation from a frozen base model, provably sampling from a solution to the RL objective. We empirically demonstrate that CD is effective as a control mechanism on popular benchmarks. We also show that prefix scorers for multiple rewards may be combined at inference time, effectively solving a multi-objective RL problem with no additional training. We show that the benefits of applying CD transfer to an unseen base model with no further tuning as well. Finally, we show that CD can be applied in a blockwise decoding fashion at inference-time, essentially bridging the gap between the popular best-of-K strategy and tokenwise control through reinforcement learning. This makes CD a promising approach for alignment of language models.
format Preprint
id arxiv_https___arxiv_org_abs_2310_17022
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Controlled Decoding from Language Models
Mudgal, Sidharth
Lee, Jong
Ganapathy, Harish
Li, YaGuang
Wang, Tao
Huang, Yanping
Chen, Zhifeng
Cheng, Heng-Tze
Collins, Michael
Strohman, Trevor
Chen, Jilin
Beutel, Alex
Beirami, Ahmad
Machine Learning
Artificial Intelligence
Computation and Language
KL-regularized reinforcement learning (RL) is a popular alignment framework to control the language model responses towards high reward outcomes. We pose a tokenwise RL objective and propose a modular solver for it, called controlled decoding (CD). CD exerts control through a separate prefix scorer module, which is trained to learn a value function for the reward. The prefix scorer is used at inference time to control the generation from a frozen base model, provably sampling from a solution to the RL objective. We empirically demonstrate that CD is effective as a control mechanism on popular benchmarks. We also show that prefix scorers for multiple rewards may be combined at inference time, effectively solving a multi-objective RL problem with no additional training. We show that the benefits of applying CD transfer to an unseen base model with no further tuning as well. Finally, we show that CD can be applied in a blockwise decoding fashion at inference-time, essentially bridging the gap between the popular best-of-K strategy and tokenwise control through reinforcement learning. This makes CD a promising approach for alignment of language models.
title Controlled Decoding from Language Models
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2310.17022