弱到强搜索:通过在小语言模型上搜索来对齐大语言模型
Weak-to-Strong Search: Align Large Language Models via Searching over Small Language Models
AI总结:
本文提出弱到强搜索方法,通过在测试时贪心搜索小模型的对数概率差来对齐冻结大模型,避免直接微调大模型,并在AlpacaEval 2.0上验证了其提升白盒与黑盒大模型胜率的有效性。
摘要:
大语言模型通常通过微调来与人类偏好对齐。然而,微调一个大语言模型可能具有挑战性。在这项工作中,我们引入了弱到强搜索,将对齐一个大语言模型框架化为测试时的贪心搜索,以最大化小的已调优模型与未调优模型之间的对数概率差,同时从冻结的大模型中采样。该方法既可作为(1)一种计算高效的模型扩展策略,避免直接调优大模型,也可作为(2)弱到强泛化的一个实例,通过弱的测试时引导来增强强模型。在实验上,我们展示了弱到强搜索在不同任务上的灵活性。在受控情感生成和摘要任务中,我们使用已调优和未调优的gpt2来改进大模型的对齐,而无需额外训练。关键的是,在一个更困难的指令遵循基准AlpacaEval 2.0上,我们展示了重用现成的小模型(例如zephyr-7b-beta及其未调优版本)可以提高白盒和黑盒大模型相对于gpt-4-turbo的长度控制胜率(例如,Llama-3-70B-Instruct从34.4%提高到37.9%,gpt-3.5-turbo-instruct从16.0%提高到20.1%),尽管小模型的胜率很低,约为10.0%。
英文摘要:
Large language models are usually fine-tuned to align with human preferences. However, fine-tuning a large language model can be challenging. In this work, we introduce $\textit{weak-to-strong search}$, framing the alignment of a large language model as a test-time greedy search to maximize the log-probability difference between small tuned and untuned models while sampling from the frozen large model. This method serves both as (1) a compute-efficient model up-scaling strategy that avoids directly tuning the large model and as (2) an instance of weak-to-strong generalization that enhances a strong model with weak test-time guidance. Empirically, we demonstrate the flexibility of weak-to-strong search across different tasks. In controlled-sentiment generation and summarization, we use tuned and untuned $\texttt{gpt2}$s to improve the alignment of large models without additional training. Crucially, in a more difficult instruction-following benchmark, AlpacaEval 2.0, we show that reusing off-the-shelf small models (e.g., $\texttt{zephyr-7b-beta}$ and its untuned version) can improve the length-controlled win rates of both white-box and black-box large models against $\texttt{gpt-4-turbo}$ (e.g., $34.4\% \rightarrow 37.9\%$ for $\texttt{Llama-3-70B-Instruct}$ and $16.0\% \rightarrow 20.1\%$ for $\texttt{gpt-3.5-turbo-instruct}$), despite the small models' low win rates $\approx 10.0\%$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。