Recipes for Steering and Scaling LLMs via Sampling
- Source
- arxiv.org
- Author
- Jiajun He, Zongyu Guo, Jos\'e Miguel Hern\'andez-Lobato, Yuanqi Du
- Date

Context
A can improve its answers by spending more computation on how it samples possible responses. This paper develops two approaches: Sequential Monte Carlo grows several partial answers and resamples them, while Replica Exchange swaps partial answers of different lengths between levels. Both can steer generation using the model's own probabilities without an external reward model.
Tests on mathematics and science questions using Qwen 2.5 models reveal a tradeoff. Sequential Monte Carlo favored a strong single answer, while Replica Exchange retained more useful diversity across candidates. The full paper also finds that simply selecting the best of several samples remains competitive, on par with Sequential Monte Carlo and ahead of Replica Exchange in its comparison. The benefit depends on whether the task needs one answer or several alternatives.
- Model — A computational system that uses learned patterns to produce an output from information supplied to it.
articleAccelerating LLM Inference via Vector Index Based Output EmbeddingsMartin Loretz, Sepp Hochreiter
articleShould SLMs be in the Driver's Seat? A Study of Local Models as Interpreters in Cloud-Written Agent ProgramsBoris Radovi\v{c}, Marco Canini, Veljko Pejovi\'c
articleAgentic Data Engineering for LLMs: System Design and a Controlled Empirical StudyRuomeng Ding, Qianli Shen, Zhaoyang Han, Meixin Chen, Daoyuan Chen, Yaliang Li