Weak-to-Strong Search: Align Large Language Models via Searching over Small Language Models

Zhanhui Zhou, Zhixuan Liu, Jie Liu, Zhichen Dong, Chao Yang +1 more
5/29/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: ZHZisZZ/weak-to-strong-search (68 stars, last commit 2024-12-10).

Abstract

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\%$.

View on arXivView PDF

Code Implementations(1)

[NeurIPS'24] Weak-to-Strong Search: Align Large Language Models via Searching over Small Language Models

684PythonMay 22, 20241 years ago

Similar Papers

Cite this paper

@article{zhou2024weaktostrong,
  title  = {Weak-to-Strong Search: Align Large Language Models via Searching over Small Language Models},
  author = {Zhanhui Zhou and Zhixuan Liu and Jie Liu and Zhichen Dong and Chao Yang and Yu Qiao},
  year   = {2024},
  eprint = {2405.19262},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.19262},
  url    = {http://arxiv.org/abs/2405.19262v3},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.19262.svg)](https://codeofpaper.com/paper/2405.19262)

Discussion