Loading…
Fast Best-of-N Decoding via Speculative Rejection
The safe and effective deployment of Large Language Models (LLMs) involves a critical step called alignment, which ensures that the model's responses are in accordance with human preferences. Prevalent alignment techniques, such as DPO, PPO and their variants, align LLMs by changing the pre-tra...
Saved in:
Published in: | arXiv.org 2024-10 |
---|---|
Main Authors: | , , , , , , , , |
Format: | Article |
Language: | English |
Subjects: | |
Online Access: | Get full text |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
cited_by | |
---|---|
cites | |
container_end_page | |
container_issue | |
container_start_page | |
container_title | arXiv.org |
container_volume | |
creator | Sun, Hanshi Haider, Momin Zhang, Ruiqi Yang, Huitao Qiu, Jiahao Yin, Ming Wang, Mengdi Bartlett, Peter Zanette, Andrea |
description | The safe and effective deployment of Large Language Models (LLMs) involves a critical step called alignment, which ensures that the model's responses are in accordance with human preferences. Prevalent alignment techniques, such as DPO, PPO and their variants, align LLMs by changing the pre-trained model weights during a phase called post-training. While predominant, these post-training methods add substantial complexity before LLMs can be deployed. Inference-time alignment methods avoid the complex post-training step and instead bias the generation towards responses that are aligned with human preferences. The best-known inference-time alignment method, called Best-of-N, is as effective as the state-of-the-art post-training procedures. Unfortunately, Best-of-N requires vastly more resources at inference time than standard decoding strategies, which makes it computationally not viable. In this work, we introduce Speculative Rejection, a computationally-viable inference-time alignment algorithm. It generates high-scoring responses according to a given reward model, like Best-of-N does, while being between 16 to 32 times more computationally efficient. |
format | article |
fullrecord | <record><control><sourceid>proquest</sourceid><recordid>TN_cdi_proquest_journals_3121790495</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>3121790495</sourcerecordid><originalsourceid>FETCH-proquest_journals_31217904953</originalsourceid><addsrcrecordid>eNpjYuA0MjY21LUwMTLiYOAtLs4yMDAwMjM3MjU15mQwdEssLlFwSi0u0c1P0_VTcElNzk_JzEtXKMtMVAguSE0uzUksySxLVQhKzUpNLsnMz-NhYE1LzClO5YXS3AzKbq4hzh66BUX5haVAg-Kz8kuL8oBS8caGRobmlgYmlqbGxKkCAEPLMsY</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>3121790495</pqid></control><display><type>article</type><title>Fast Best-of-N Decoding via Speculative Rejection</title><source>Publicly Available Content Database</source><creator>Sun, Hanshi ; Haider, Momin ; Zhang, Ruiqi ; Yang, Huitao ; Qiu, Jiahao ; Yin, Ming ; Wang, Mengdi ; Bartlett, Peter ; Zanette, Andrea</creator><creatorcontrib>Sun, Hanshi ; Haider, Momin ; Zhang, Ruiqi ; Yang, Huitao ; Qiu, Jiahao ; Yin, Ming ; Wang, Mengdi ; Bartlett, Peter ; Zanette, Andrea</creatorcontrib><description>The safe and effective deployment of Large Language Models (LLMs) involves a critical step called alignment, which ensures that the model's responses are in accordance with human preferences. Prevalent alignment techniques, such as DPO, PPO and their variants, align LLMs by changing the pre-trained model weights during a phase called post-training. While predominant, these post-training methods add substantial complexity before LLMs can be deployed. Inference-time alignment methods avoid the complex post-training step and instead bias the generation towards responses that are aligned with human preferences. The best-known inference-time alignment method, called Best-of-N, is as effective as the state-of-the-art post-training procedures. Unfortunately, Best-of-N requires vastly more resources at inference time than standard decoding strategies, which makes it computationally not viable. In this work, we introduce Speculative Rejection, a computationally-viable inference-time alignment algorithm. It generates high-scoring responses according to a given reward model, like Best-of-N does, while being between 16 to 32 times more computationally efficient.</description><identifier>EISSN: 2331-8422</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Algorithms ; Alignment ; Complexity ; Decoding ; Inference ; Large language models ; Rejection</subject><ispartof>arXiv.org, 2024-10</ispartof><rights>2024. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><linktohtml>$$Uhttps://www.proquest.com/docview/3121790495?pq-origsite=primo$$EHTML$$P50$$Gproquest$$Hfree_for_read</linktohtml><link.rule.ids>776,780,25731,36989,44566</link.rule.ids></links><search><creatorcontrib>Sun, Hanshi</creatorcontrib><creatorcontrib>Haider, Momin</creatorcontrib><creatorcontrib>Zhang, Ruiqi</creatorcontrib><creatorcontrib>Yang, Huitao</creatorcontrib><creatorcontrib>Qiu, Jiahao</creatorcontrib><creatorcontrib>Yin, Ming</creatorcontrib><creatorcontrib>Wang, Mengdi</creatorcontrib><creatorcontrib>Bartlett, Peter</creatorcontrib><creatorcontrib>Zanette, Andrea</creatorcontrib><title>Fast Best-of-N Decoding via Speculative Rejection</title><title>arXiv.org</title><description>The safe and effective deployment of Large Language Models (LLMs) involves a critical step called alignment, which ensures that the model's responses are in accordance with human preferences. Prevalent alignment techniques, such as DPO, PPO and their variants, align LLMs by changing the pre-trained model weights during a phase called post-training. While predominant, these post-training methods add substantial complexity before LLMs can be deployed. Inference-time alignment methods avoid the complex post-training step and instead bias the generation towards responses that are aligned with human preferences. The best-known inference-time alignment method, called Best-of-N, is as effective as the state-of-the-art post-training procedures. Unfortunately, Best-of-N requires vastly more resources at inference time than standard decoding strategies, which makes it computationally not viable. In this work, we introduce Speculative Rejection, a computationally-viable inference-time alignment algorithm. It generates high-scoring responses according to a given reward model, like Best-of-N does, while being between 16 to 32 times more computationally efficient.</description><subject>Algorithms</subject><subject>Alignment</subject><subject>Complexity</subject><subject>Decoding</subject><subject>Inference</subject><subject>Large language models</subject><subject>Rejection</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><sourceid>PIMPY</sourceid><recordid>eNpjYuA0MjY21LUwMTLiYOAtLs4yMDAwMjM3MjU15mQwdEssLlFwSi0u0c1P0_VTcElNzk_JzEtXKMtMVAguSE0uzUksySxLVQhKzUpNLsnMz-NhYE1LzClO5YXS3AzKbq4hzh66BUX5haVAg-Kz8kuL8oBS8caGRobmlgYmlqbGxKkCAEPLMsY</recordid><startdate>20241031</startdate><enddate>20241031</enddate><creator>Sun, Hanshi</creator><creator>Haider, Momin</creator><creator>Zhang, Ruiqi</creator><creator>Yang, Huitao</creator><creator>Qiu, Jiahao</creator><creator>Yin, Ming</creator><creator>Wang, Mengdi</creator><creator>Bartlett, Peter</creator><creator>Zanette, Andrea</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope></search><sort><creationdate>20241031</creationdate><title>Fast Best-of-N Decoding via Speculative Rejection</title><author>Sun, Hanshi ; Haider, Momin ; Zhang, Ruiqi ; Yang, Huitao ; Qiu, Jiahao ; Yin, Ming ; Wang, Mengdi ; Bartlett, Peter ; Zanette, Andrea</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-proquest_journals_31217904953</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Algorithms</topic><topic>Alignment</topic><topic>Complexity</topic><topic>Decoding</topic><topic>Inference</topic><topic>Large language models</topic><topic>Rejection</topic><toplevel>online_resources</toplevel><creatorcontrib>Sun, Hanshi</creatorcontrib><creatorcontrib>Haider, Momin</creatorcontrib><creatorcontrib>Zhang, Ruiqi</creatorcontrib><creatorcontrib>Yang, Huitao</creatorcontrib><creatorcontrib>Qiu, Jiahao</creatorcontrib><creatorcontrib>Yin, Ming</creatorcontrib><creatorcontrib>Wang, Mengdi</creatorcontrib><creatorcontrib>Bartlett, Peter</creatorcontrib><creatorcontrib>Zanette, Andrea</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science & Engineering Collection</collection><collection>ProQuest Central (Alumni)</collection><collection>ProQuest Central</collection><collection>ProQuest Central Essentials</collection><collection>ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering Collection</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Sun, Hanshi</au><au>Haider, Momin</au><au>Zhang, Ruiqi</au><au>Yang, Huitao</au><au>Qiu, Jiahao</au><au>Yin, Ming</au><au>Wang, Mengdi</au><au>Bartlett, Peter</au><au>Zanette, Andrea</au><format>book</format><genre>document</genre><ristype>GEN</ristype><atitle>Fast Best-of-N Decoding via Speculative Rejection</atitle><jtitle>arXiv.org</jtitle><date>2024-10-31</date><risdate>2024</risdate><eissn>2331-8422</eissn><abstract>The safe and effective deployment of Large Language Models (LLMs) involves a critical step called alignment, which ensures that the model's responses are in accordance with human preferences. Prevalent alignment techniques, such as DPO, PPO and their variants, align LLMs by changing the pre-trained model weights during a phase called post-training. While predominant, these post-training methods add substantial complexity before LLMs can be deployed. Inference-time alignment methods avoid the complex post-training step and instead bias the generation towards responses that are aligned with human preferences. The best-known inference-time alignment method, called Best-of-N, is as effective as the state-of-the-art post-training procedures. Unfortunately, Best-of-N requires vastly more resources at inference time than standard decoding strategies, which makes it computationally not viable. In this work, we introduce Speculative Rejection, a computationally-viable inference-time alignment algorithm. It generates high-scoring responses according to a given reward model, like Best-of-N does, while being between 16 to 32 times more computationally efficient.</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><oa>free_for_read</oa></addata></record> |
fulltext | fulltext |
identifier | EISSN: 2331-8422 |
ispartof | arXiv.org, 2024-10 |
issn | 2331-8422 |
language | eng |
recordid | cdi_proquest_journals_3121790495 |
source | Publicly Available Content Database |
subjects | Algorithms Alignment Complexity Decoding Inference Large language models Rejection |
title | Fast Best-of-N Decoding via Speculative Rejection |
url | http://sfxeu10.hosted.exlibrisgroup.com/loughborough?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-02-06T16%3A10%3A21IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest&rft_val_fmt=info:ofi/fmt:kev:mtx:book&rft.genre=document&rft.atitle=Fast%20Best-of-N%20Decoding%20via%20Speculative%20Rejection&rft.jtitle=arXiv.org&rft.au=Sun,%20Hanshi&rft.date=2024-10-31&rft.eissn=2331-8422&rft_id=info:doi/&rft_dat=%3Cproquest%3E3121790495%3C/proquest%3E%3Cgrp_id%3Ecdi_FETCH-proquest_journals_31217904953%3C/grp_id%3E%3Coa%3E%3C/oa%3E%3Curl%3E%3C/url%3E&rft_id=info:oai/&rft_pqid=3121790495&rft_id=info:pmid/&rfr_iscdi=true |