Saved in:
Bibliographic Details
Main Authors: Wang, Tianchun, Liu, Zichuan, Chen, Yuanzhou, Light, Jonathan, Liu, Weiyang, Chen, Haifeng, Zhang, Xiang, Cheng, Wei
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2502.11027
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918255819489280
author Wang, Tianchun
Liu, Zichuan
Chen, Yuanzhou
Light, Jonathan
Liu, Weiyang
Chen, Haifeng
Zhang, Xiang
Cheng, Wei
author_facet Wang, Tianchun
Liu, Zichuan
Chen, Yuanzhou
Light, Jonathan
Liu, Weiyang
Chen, Haifeng
Zhang, Xiang
Cheng, Wei
contents Large language model (LLM) scaling inference is key to unlocking greater performance, and leveraging diversity has proven an effective way to enhance it. Motivated by the observed relationship between solution accuracy and meaningful response diversity, we systematically study the effect of prompt diversity in scaling inference. We theoretically explain why diversified sampling improves Best-of-N scaling, showing that responses generated from diverse prompts after Best-of-N selection exhibit significantly lower error rates than those produced from stationary prompts. Building on this analysis, we derive a diversity-fidelity trade-off principle, that guides the design of sampling strategies introducing diversity. From this guidance, we instantiate a family of effective perturbation styles. We theoretically and empirically characterize when diversified exploration remains effective, demonstrating that it works under a variety of conditions, and we further show that under majority voting, diversity may vanish. Finally, we systematically evaluate how effective sampling diversity is and show that, when applied appropriately in different contexts, it yields relative gains of 10.8% in EM@100 for reasoning, 9.6% for mathematics, and 9.5% in Pass@100 for code generation. Overall, this work provides a systematic analysis that offers a theoretical and empirical foundation for understanding how sampling diversity affects LLM inference-time scaling.
format Preprint
id arxiv_https___arxiv_org_abs_2502_11027
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle On the Effect of Sampling Diversity in Scaling LLM Inference
Wang, Tianchun
Liu, Zichuan
Chen, Yuanzhou
Light, Jonathan
Liu, Weiyang
Chen, Haifeng
Zhang, Xiang
Cheng, Wei
Machine Learning
Large language model (LLM) scaling inference is key to unlocking greater performance, and leveraging diversity has proven an effective way to enhance it. Motivated by the observed relationship between solution accuracy and meaningful response diversity, we systematically study the effect of prompt diversity in scaling inference. We theoretically explain why diversified sampling improves Best-of-N scaling, showing that responses generated from diverse prompts after Best-of-N selection exhibit significantly lower error rates than those produced from stationary prompts. Building on this analysis, we derive a diversity-fidelity trade-off principle, that guides the design of sampling strategies introducing diversity. From this guidance, we instantiate a family of effective perturbation styles. We theoretically and empirically characterize when diversified exploration remains effective, demonstrating that it works under a variety of conditions, and we further show that under majority voting, diversity may vanish. Finally, we systematically evaluate how effective sampling diversity is and show that, when applied appropriately in different contexts, it yields relative gains of 10.8% in EM@100 for reasoning, 9.6% for mathematics, and 9.5% in Pass@100 for code generation. Overall, this work provides a systematic analysis that offers a theoretical and empirical foundation for understanding how sampling diversity affects LLM inference-time scaling.
title On the Effect of Sampling Diversity in Scaling LLM Inference
topic Machine Learning
url https://arxiv.org/abs/2502.11027